/* =========================================
   SHOP STAR GLOW — SINGLE PRODUCT PAGE
   Palette: Black, White, Gold
========================================= */

.ssg-product-page {
  --ssg-black: #111111;
  --ssg-white: #ffffff;
  --ssg-gold: #d5b56a;
  --ssg-muted: #777777;
  --ssg-border: #e7e4de;
  --ssg-surface: #f7f6f3;

  background: var(--ssg-white);
  color: var(--ssg-black);
  padding: 48px 24px 80px;
}

.ssg-product-container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* =========================================
   PRODUCT GALLERY
========================================= */

.ssg-product-gallery {
  min-width: 0;
}

.ssg-product-gallery .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.ssg-product-gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}

.ssg-product-gallery .woocommerce-product-gallery__image {
  overflow: hidden;
  background: var(--ssg-surface);
}

.ssg-product-gallery .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ssg-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin: 12px 0 0 !important;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.ssg-product-gallery .flex-control-thumbs::-webkit-scrollbar {
  display: none;
}

.ssg-product-gallery .flex-control-thumbs li {
  flex: 0 0 76px;
  width: 76px !important;
  margin: 0 !important;
}

.ssg-product-gallery .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--ssg-surface);
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease;
}

.ssg-product-gallery .flex-control-thumbs img:hover,
.ssg-product-gallery .flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: var(--ssg-gold);
}

/* =========================================
   PRODUCT INFORMATION
========================================= */

.ssg-product-information {
  min-width: 0;
  padding-top: 8px;
}

.ssg-product-summary {
  margin-bottom: 26px;
}

.ssg-product-title {
  margin: 0 0 14px;
  color: var(--ssg-black);
  font-family: inherit;
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.ssg-product-price {
  color: var(--ssg-black);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.ssg-product-price del {
  margin-right: 8px;
  color: #999999;
  font-size: 14px;
  font-weight: 400;
}

.ssg-product-price ins {
  color: var(--ssg-black);
  text-decoration: none;
}

/* =========================================
   VARIATIONS
========================================= */

.ssg-product-purchase .variations {
  width: 100%;
  margin: 0 0 20px;
  border: 0;
  border-collapse: collapse;
}

.ssg-product-purchase .variations tr,
.ssg-product-purchase .variations th,
.ssg-product-purchase .variations td {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.ssg-product-purchase .variations tr {
  margin-bottom: 18px;
}

.ssg-product-purchase .variations label {
  display: block;
  margin-bottom: 8px;
  color: var(--ssg-black);
  font-size: 12px;
  font-weight: 600;
}

.ssg-product-purchase .variations select {
  width: 100%;
  min-height: 46px;
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--ssg-border);
  border-radius: 0;
  background-color: var(--ssg-white);
  color: var(--ssg-black);
  font: inherit;
  font-size: 13px;
}

.ssg-product-purchase .reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: var(--ssg-muted);
  font-size: 11px;
}

/* =========================================
   QUANTITY & PURCHASE BUTTONS
========================================= */

.ssg-product-purchase form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

.ssg-product-purchase form.cart .quantity {
  margin: 0 !important;
}

.ssg-product-purchase .quantity .qty {
  width: 64px;
  height: 48px;
  padding: 8px;
  border: 1px solid var(--ssg-border);
  border-radius: 0;
  background: var(--ssg-white);
  color: var(--ssg-black);
  font: inherit;
  font-size: 13px;
  text-align: center;
}

.ssg-product-purchase .single_add_to_cart_button,
.ssg-product-purchase form.cart button.button {
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--ssg-black);
  border-radius: 0;
  background: var(--ssg-black);
  color: var(--ssg-white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.ssg-product-purchase .single_add_to_cart_button:hover,
.ssg-product-purchase form.cart button.button:hover {
  border-color: var(--ssg-gold);
  background: var(--ssg-gold);
  color: var(--ssg-black);
}

.ssg-product-purchase .single_add_to_cart_button:disabled,
.ssg-product-purchase .single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Variable product purchase area */

.ssg-product-purchase .woocommerce-variation {
  margin-bottom: 14px;
}

.ssg-product-purchase .woocommerce-variation-price {
  margin-bottom: 10px;
  font-size: 15px;
}

.ssg-product-purchase .woocommerce-variation-availability {
  margin-bottom: 12px;
  font-size: 12px;
}

/* Keep WooCommerce notices readable */

.ssg-product-page .woocommerce-message,
.ssg-product-page .woocommerce-error,
.ssg-product-page .woocommerce-info {
  margin-bottom: 24px;
  font-size: 13px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
  .ssg-product-page {
    padding: 32px 20px 60px;
  }

  .ssg-product-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 28px;
  }

  .ssg-product-title {
    font-size: clamp(24px, 3.5vw, 32px);
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 640px) {
  .ssg-product-page {
    padding: 20px 16px 48px;
  }

  .ssg-product-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .ssg-product-information {
    padding-top: 0;
  }

  .ssg-product-summary {
    margin-bottom: 20px;
  }

  .ssg-product-title {
    margin-bottom: 10px;
    font-size: 27px;
    line-height: 1.22;
    letter-spacing: -0.035em;
  }

  .ssg-product-price {
    font-size: 16px;
  }

  .ssg-product-gallery .flex-control-thumbs li {
    flex-basis: 64px;
    width: 64px !important;
  }

  .ssg-product-purchase form.cart {
    gap: 8px;
  }

  .ssg-product-purchase .quantity .qty {
    width: 58px;
  }

  .ssg-product-purchase .single_add_to_cart_button,
  .ssg-product-purchase form.cart button.button {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ssg-product-gallery .flex-control-thumbs img,
  .ssg-product-purchase .single_add_to_cart_button {
    transition: none;
  }
}

/* Product title */
.ssg-product-information .product_title {
  font-size: 32px !important;
  line-height: 1.2;
  font-weight: 400;
}

@media (max-width: 768px) {
  .ssg-product-information .product_title {
    font-size: 26px !important;
    line-height: 1.25;
  }
}

/* Brand above the product title */
.ssg-product-brand {
  margin-bottom: 8px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Product title */
.ssg-product-information .ssg-product-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
}

/* Price spacing */
.ssg-product-price {
  margin-bottom: 24px;
}

/* Scent and size details */
.ssg-product-attributes {
  margin: 20px 0;
}

.ssg-product-attribute {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
}

.ssg-attribute-label {
  color: #777;
}

/* Short product summary */
.ssg-product-short-description {
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.7;
}

.ssg-product-short-description p {
  margin: 0 0 10px;
}

@media (max-width: 768px) {
  .ssg-product-information .ssg-product-title {
    font-size: 26px;
  }

  .ssg-product-attributes {
    margin: 16px 0;
  }
}
