/* ================= POPUP STYLES (ISOLATED) ================= */
#product-popup {
  all: initial; /* reset inherited styles from global CSS */
  * {
    all: unset;
  }
  display: block;
  font-family: 'Helvetica Neue', 'Inter', sans-serif;
}

/* All popup CSS is now scoped under #product-popup */
#product-popup {
  --color-primary: #ed533b;
  --color-text-dark: #1e1e1e;
  --color-text-light: #eaeaea;
  --color-text-muted: #d9d9d9;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-dark-swatch: #252525;
  --gradient-main-bg: linear-gradient(213deg, #e5e5e5 80.55%, #909090 229.27%);
  --gradient-card-bg: linear-gradient(146deg, #dfdfdf 53.41%, #a6c4e5 113.36%);
}

#product-popup .product-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

#product-popup .product-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--gradient-main-bg);
  border-radius: 78px;
  overflow: hidden;
  max-width: 900px;
  width: 90%;
  min-height: 600px;
  padding: 0;
  margin: 0 auto;
  position: relative;
}



#product-popup .product-image-section {
  flex: 1;
  max-width: 50%;
  position: relative;
  overflow: hidden;
  height: 400px; /* fixed height so modal doesn't resize */
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-popup .product-image {
  width: auto;
  height: 100%;
  object-fit: fit; /* scale images proportionally */
  display: block;
  transition: all 0.3s ease; /* smooth swap */
}


#product-popup .product-details-section {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#product-popup .details-card {
  background: var(--gradient-card-bg);
  border-radius: 44px;
  padding: 66px 44px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#product-popup .promo-badge {
  position: absolute;
  top: 21px;
  left: 41px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-weight: 900;
  font-size: 16px;
  padding: 4px 16px;
  border-radius: 12px;
}

#product-popup .product-name {
  font-weight: 500;
  font-size: 32px;
  color: var(--color-text-dark);
  text-align: right;
  margin: 0 0 8px;
}

#product-popup .product-price {
  font-weight: 400;
  font-size: 20px;
  color: var(--color-text-dark);
  text-align: right;
  margin: 0;
}

#product-popup .separator {
  border: none;
  height: 1px;
  background-color: var(--color-black);
  margin: 18px 0;
}

#product-popup .options-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#product-popup .color-swatches {
  display: flex;
  gap: 5.4px;
}

#product-popup .swatch {
  width: 20.2px;
  height: 21px;
  cursor: pointer;
  border-radius: 4px;
}

#product-popup .swatch.white {
  background-color: var(--color-white);
}

#product-popup .swatch.black {
  background-color: var(--color-dark-swatch);
}

#product-popup .swatch.active {
  border: 2px solid black;
}

#product-popup .size-selector {
  display: flex;
  gap: 5px;
  align-items: center;
}



#product-popup .description-section {
  margin-top: auto;
  padding-top: 20px;
}

#product-popup .description-text {
  font-size: 16px;
  line-height: 17px;
  color: var(--color-black);
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 1100px) {
  #product-popup .product-card {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 40px;
  }
  #product-popup .product-image-section {
    width: 100%;
    max-width: 500px;
  }
  #product-popup .product-details-section {
    width: 100%;
    max-width: 500px;
    padding: 0;
  }
  #product-popup .details-card {
    padding: 60px 25px 25px;
  }
}

@media (max-width: 480px) {
  #product-popup .product-card,
  #product-popup .details-card {
    border-radius: 30px;
  }
  #product-popup .product-name {
    font-size: 28px;
  }
  #product-popup .product-price {
    font-size: 18px;
  }
  #product-popup .description-text {
    font-size: 14px;
  }
}
#product-popup .size-option {
  width: 33px;
  height: 33px;
  border: 1px solid rgb(0, 0, 0);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  cursor: pointer;
}

#product-popup .size-option.active {
  background-color: #333;
  color: white;
}
.shop-button {
  
  display: inline-block !important;
  padding: 10px 20px !important;
  background-color: #0084FF !important;
  color: white !important;
  font-weight: bold !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  text-align: center !important;
  margin-top: 12px !important;
  transition: background-color 0.2s !important;
  cursor: pointer !important;
  align-items: center !important;
}
.shop-button:hover {
  background-color: #006bbd !important;
}


#product-popup .swatch.black { background-color: black; }
#product-popup .swatch.white { background-color: white; }
#product-popup .swatch.gray { background-color: gray; }
#product-popup .swatch.light-blue { background-color: #add8e6; }
#product-popup .swatch.orange-red { background-color: orangered; }
#product-popup .swatch.blue { background-color: rgb(50, 61, 163); }
#product-popup .swatch.dark-blue { background-color: #00008b; }
#product-popup .swatch.red { background-color: red; }
#product-popup .swatch.green { background-color: green; }
#product-popup .swatch.yellow { background-color: yellow; }
#product-popup .swatch.brown { background-color: brown; }
#product-popup .swatch.purple { background-color: purple; }
#product-popup .swatch.beige { background-color: beige; }
#product-popup .swatch.light-pink { background-color: #ffb6c1; }
#product-popup .swatch.orange { background-color: orange; }
