/**
 * Single product page.
 *
 * A verbatim port of the {% stylesheet %} block in sections/product.liquid,
 * with three additions at the end of the file:
 *
 *   - .product-form__row--simple, for a product with no variants
 *   - .product-info__price updates, because this theme refreshes the price
 *     when a variation is chosen (the Shopify script did not)
 *   - .product-option__input, the hidden field WooCommerce reads
 *
 * Loaded only on a single product page, per the project's per-page CSS rule.
 * Depends on tokens.css and base.css.
 *
 * @package maaz-dev
 */

/* ============================================================
   GLOBAL SAFETY LAYER — prevents ANY overflow on ANY device
   ============================================================ */
.product-page,
.product-page *,
.product-page *::before,
.product-page *::after {
  box-sizing: border-box;
}

.product-page {
  background: #FFFFFF;
  overflow-x: hidden;
  max-width: 100%;
}

/* Universal image rule — ANY image size will now behave */
.product-page img,
.product-page svg,
.product-page video,
.product-page iframe {
  max-width: 100%;
  height: auto;
}

/* Long text never breaks the layout */
.product-page h1,
.product-page h2,
.product-page h3,
.product-page p,
.product-page a,
.product-page span,
.product-page li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Breadcrumb */
.product-breadcrumb { padding: 20px 32px 0; max-width: 100%; }
.product-breadcrumb__inner { max-width: 1400px; margin: 0 auto; }
.product-breadcrumb__list { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.product-breadcrumb__link { font-family: 'Inter', sans-serif; font-size: 13px; color: #888888; text-decoration: none; }
.product-breadcrumb__link:hover { color: #8B0000; }
.product-breadcrumb__sep { font-size: 12px; color: #CCCCCC; }
.product-breadcrumb__current { font-family: 'Inter', sans-serif; font-size: 13px; color: #444444; }

/* Top Layout */
.product-top { max-width: 100%; overflow-x: hidden; }
.product-top__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
}

/* CRITICAL FIX: grid children must be allowed to shrink */
.product-gallery,
.product-info {
  min-width: 0;
  max-width: 100%;
}

/* Gallery */
.product-gallery { position: sticky; top: 100px; align-self: start; }
.product-gallery__main {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: #F8F8F8;
  width: 100%;
}

/* ===== GALLERY LAYOUT VARIANTS (desktop only) ===== */
@media screen and (min-width: 769px) {
  .product-gallery--thumbs_left,
  .product-gallery--thumbs_right {
    display: flex;
    gap: 14px;
  }
  .product-gallery--thumbs_left { flex-direction: row; }
  .product-gallery--thumbs_right { flex-direction: row-reverse; }
  .product-gallery--thumbs_left .product-gallery__main,
  .product-gallery--thumbs_right .product-gallery__main {
    flex: 1;
    min-width: 0;
    order: 2;
  }
  .product-gallery--thumbs_left .product-gallery__thumbs,
  .product-gallery--thumbs_right .product-gallery__thumbs {
    flex-direction: column;
    flex-shrink: 0;
    width: 80px;
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0;
    order: 1;
  }
  .product-gallery--thumbs_left .product-gallery__thumb,
  .product-gallery--thumbs_right .product-gallery__thumb {
    width: 80px;
    height: 80px;
  }
}

.product-gallery__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.25s ease; }
.product-gallery__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

/* IMAGE FIX: contain = full product always visible, never cropped,
   works with square, portrait, landscape, or any dimension */
.product-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #F8F8F8;
}

.product-gallery__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #CCCCCC;
}
.product-gallery__placeholder svg { width: 60px; height: 60px; }
.product-gallery__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: #8B0000; color: #FFFFFF; font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px;
}
.product-gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9); border: 1px solid #E0E0E0; border-radius: 50%;
  color: #111111; cursor: pointer; transition: all 0.15s ease;
}
.product-gallery__arrow:hover { background: #8B0000; color: #FFFFFF; border-color: #8B0000; }
.product-gallery__arrow--prev { left: 16px; }
.product-gallery__arrow--next { right: 16px; }
.product-gallery__thumbs {
  display: flex; gap: 10px; margin-top: 14px;
  overflow-x: auto; padding-bottom: 4px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.product-gallery__thumb {
  flex-shrink: 0; width: 70px; height: 70px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: #F8F8F8; transition: border-color 0.15s ease;
}
.product-gallery__thumb.is-active { border-color: #8B0000; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product Info */
.product-info__vendor { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #999999; margin: 0 0 8px; }
.product-info__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700; color: #111111; margin: 0 0 14px; line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
}
.product-info__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.product-info__stars { display: flex; gap: 2px; }
.product-info__review-link { font-family: 'Inter', sans-serif; font-size: 13px; color: #888888; text-decoration: underline; text-underline-offset: 2px; }
.product-info__price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.product-info__price--regular, .product-info__price--sale { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 700; color: #111111; }
.product-info__price--sale { color: #8B0000; }
.product-info__price--compare { font-family: 'Inter', sans-serif; font-size: 17px; color: #AAAAAA; text-decoration: line-through; }
.product-info__price-badge { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: #4CAF50; background: #F0FFF0; padding: 3px 10px; border-radius: 20px; }
.product-info__short-desc { font-family: 'Inter', sans-serif; font-size: 15px; color: #555555; line-height: 1.7; margin: 0 0 24px; }

/* Options */
.product-option { margin-bottom: 20px; max-width: 100%; }
.product-option__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.product-option__label { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: #111111; text-transform: uppercase; letter-spacing: 0.04em; }
.product-option__selected { font-family: 'Inter', sans-serif; font-size: 13px; color: #888888; }
.product-option__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.product-option__btn {
  padding: 10px 20px; border: 1.5px solid #E0E0E0; border-radius: 8px; background: #FFFFFF;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #444444;
  cursor: pointer; transition: all 0.15s ease; max-width: 100%;
}
.product-option__btn:hover { border-color: #8B0000; color: #8B0000; }
.product-option__btn.is-active { background: #8B0000; border-color: #8B0000; color: #FFFFFF; }
.product-option__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.product-option__swatch {
  width: 36px; height: 36px; border-radius: 50%; padding: 3px; border: 2px solid transparent;
  cursor: pointer; background: transparent; transition: border-color 0.15s ease; flex-shrink: 0;
}
.product-option__swatch.is-active { border-color: #8B0000; }
.product-option__swatch-inner { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--swatch-color, #CCCCCC); border: 1px solid rgba(0,0,0,0.1); }
.product-option__select-wrap { position: relative; max-width: 280px; width: 100%; }
.product-option__select {
  width: 100%; height: 46px; padding: 0 36px 0 14px; border: 1.5px solid #E0E0E0; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 16px; color: #111111; background: #FFFFFF;
  cursor: pointer; appearance: none; outline: none; transition: border-color 0.15s ease;
}
.product-option__select:focus { border-color: #8B0000; }
.product-option__select-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #888888; pointer-events: none; }

/* Form Row */
.product-form { max-width: 100%; }
.product-form__row { display: flex; gap: 12px; margin: 24px 0 12px; max-width: 100%; flex-wrap: nowrap; }
.quantity-selector {
  display: flex; align-items: center; border: 1.5px solid #E0E0E0; border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.quantity-selector__btn {
  width: 42px; height: 50px; background: #FAFAFA; border: none; font-size: 18px; color: #444444; cursor: pointer; transition: background 0.15s ease; flex-shrink: 0;
}
.quantity-selector__btn:hover { background: #F0F0F0; }
.quantity-selector__input {
  width: 44px; height: 50px; border: none; border-left: 1px solid #E0E0E0; border-right: 1px solid #E0E0E0;
  text-align: center; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; color: #111111; outline: none;
  -moz-appearance: textfield; flex-shrink: 0;
}
.quantity-selector__input::-webkit-outer-spin-button, .quantity-selector__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-form__add-btn {
  flex: 1 1 auto; min-width: 0; height: 50px; background: #111111; color: #FFFFFF; border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.18s ease;
  padding: 0 12px;
}
.product-form__add-btn:hover:not(:disabled) { background: #8B0000; }
.product-form__add-btn:disabled { background: #CCCCCC; cursor: not-allowed; }
.product-form__buy-now-btn {
  width: 100%; max-width: 100%; height: 50px; background: #8B0000; color: #FFFFFF; border: 2px solid #8B0000; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; margin-bottom: 20px; transition: all 0.18s ease;
}
.product-form__buy-now-btn:hover { background: #6B0000; border-color: #6B0000; }

/* Trust Badges */
.product-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px; background: #FAFAFA; border-radius: 12px; margin-bottom: 24px; max-width: 100%; }
.product-trust__item { display: flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: #444444; min-width: 0; }
.product-trust__item svg { flex-shrink: 0; }
.product-trust__item span { overflow-wrap: break-word; min-width: 0; }

/* Highlights */
.product-highlights { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid #F0F0F0; }
.product-highlights__item { display: flex; align-items: flex-start; gap: 10px; font-family: 'Inter', sans-serif; font-size: 14px; color: #555555; }
.product-highlights__icon { font-size: 16px; flex-shrink: 0; color: #8B0000; font-weight: 700; line-height: 1.5; }
.product-highlights__text { min-width: 0; overflow-wrap: break-word; }

/* Tabs */
/* ==========================================================================
   Product tabs: Description, Specifications, How to Use

   A wide blush band holding one floating white card. The tabs sit above it
   as a centred pill switcher; the merchant's content inside gets its own
   type scale, so an <h2> typed into the description stays in proportion.
   ========================================================================== */

.product-tabs {
  --tabs-red: 139, 0, 0;
  padding: 72px 0 80px;
  max-width: 100%;
  overflow-x: hidden;
  border-top: 1px solid rgba(var(--tabs-red), 0.08);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(var(--tabs-red), 0.07), transparent 70%),
    linear-gradient(180deg, #fff6f6 0%, #fdeeee 100%);
}

.product-tabs__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Pill switcher */
.product-tabs__nav {
  display: flex; gap: 6px;
  width: fit-content; max-width: 100%;
  margin: 0 auto 32px; padding: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--tabs-red), 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 28px -12px rgba(var(--tabs-red), 0.3);
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.product-tabs__nav::-webkit-scrollbar { display: none; }

.product-tabs__btn {
  padding: 12px 30px; background: transparent; border: none; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: #6b6b6b; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.product-tabs__btn:hover { color: rgb(var(--tabs-red)); background: rgba(var(--tabs-red), 0.06); }
.product-tabs__btn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(var(--tabs-red), 0.92) 0%, rgba(190, 24, 24, 0.84) 100%);
  box-shadow: 0 8px 18px -8px rgba(var(--tabs-red), 0.6);
}
.product-tabs__btn:focus-visible { outline: 2px solid rgb(var(--tabs-red)); outline-offset: 2px; }

/* The card */
.product-tabs__panel { display: none; }
.product-tabs__panel.is-active {
  display: block;
  padding: 48px 56px 52px;
  background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
  border: 1px solid rgba(var(--tabs-red), 0.12);
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(var(--tabs-red), 0.06),
    0 24px 50px -24px rgba(var(--tabs-red), 0.32),
    0 0 24px rgba(190, 24, 24, 0.05);
}

.product-tabs__seo-heading {
  font-family: 'Inter', sans-serif; font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.3; color: #111111;
  margin: 0 0 24px; padding-bottom: 20px;
  border-bottom: 1px solid rgba(var(--tabs-red), 0.1);
}

/* Merchant content */
.product-tabs__content { font-family: 'Inter', sans-serif; font-size: 16px; color: #4a4a4a; line-height: 1.8; max-width: 100%; }
.product-tabs__content > :first-child { margin-top: 0; }
.product-tabs__content > :last-child { margin-bottom: 0; }
.product-tabs__content p { margin: 0 0 16px; }
.product-tabs__content strong { color: #1a1a1a; }
.product-tabs__content a { color: rgb(var(--tabs-red)); text-decoration: underline; text-underline-offset: 3px; }

.product-tabs__content h1,
.product-tabs__content h2 {
  position: relative;
  font-family: 'Inter', sans-serif; font-size: clamp(1.2rem, 1.9vw, 1.4rem); font-weight: 700;
  line-height: 1.35; letter-spacing: -0.01em; color: #111111;
  margin: 36px 0 14px; padding-left: 16px;
}
.product-tabs__content h1::before,
.product-tabs__content h2::before {
  content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, rgba(var(--tabs-red), 0.9), rgba(190, 24, 24, 0.5));
}
.product-tabs__content h3 { font-family: 'Inter', sans-serif; font-size: 1.12rem; font-weight: 700; line-height: 1.4; color: #111111; margin: 28px 0 10px; }
.product-tabs__content h4,
.product-tabs__content h5,
.product-tabs__content h6 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; color: #111111; margin: 22px 0 8px; }

/* Bullet lists: red checks, two columns on wide screens. */
.product-tabs__content ul {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px;
}
.product-tabs__content ul li {
  position: relative; margin: 0; padding: 10px 14px 10px 40px;
  background: rgba(var(--tabs-red), 0.035);
  border: 1px solid rgba(var(--tabs-red), 0.08);
  border-radius: 12px; line-height: 1.6;
}
.product-tabs__content ul li::before {
  content: ''; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(var(--tabs-red), 0.9)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Numbered lists read as steps. */
.product-tabs__content ol { list-style: none; counter-reset: step; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.product-tabs__content ol li {
  counter-increment: step; position: relative; margin: 0; padding: 14px 18px 14px 60px;
  background: #ffffff; border: 1px solid rgba(var(--tabs-red), 0.1); border-radius: 14px;
  box-shadow: 0 6px 16px -10px rgba(var(--tabs-red), 0.25); line-height: 1.6;
}
.product-tabs__content ol li::before {
  content: counter(step); position: absolute; left: 16px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #ffffff;
  background: linear-gradient(135deg, rgba(var(--tabs-red), 0.92), rgba(190, 24, 24, 0.84));
}

.product-tabs__content img { max-width: 100%; height: auto; border-radius: 14px; }

/* Wide tables scroll instead of breaking the page. */
.product-tabs__content table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0;
  display: block; overflow-x: auto; white-space: nowrap;
  border: 1px solid rgba(var(--tabs-red), 0.12); border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.product-tabs__content table td, .product-tabs__content table th {
  padding: 12px 18px; border-bottom: 1px solid rgba(var(--tabs-red), 0.08); text-align: left; font-size: 14px;
}
.product-tabs__content table tr:last-child td { border-bottom: none; }
.product-tabs__content table th { background: rgba(var(--tabs-red), 0.06); color: #111111; font-weight: 700; }

/* Specifications: label / value tiles in two columns. */
.product-tabs__content .product-specs-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
}
.product-tabs__content .product-specs-list li {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  margin: 0; padding: 14px 18px 14px 22px;
  font-family: 'Inter', sans-serif; font-size: 15px; color: #4a4a4a; line-height: 1.5;
  background: #ffffff; border: 1px solid rgba(var(--tabs-red), 0.1); border-radius: 12px;
  box-shadow: 0 6px 16px -12px rgba(var(--tabs-red), 0.3);
  overflow-wrap: break-word;
}
.product-tabs__content .product-specs-list li::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; height: auto;
  border-radius: 0 3px 3px 0; background: rgba(var(--tabs-red), 0.75);
}
.product-specs-list li strong {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--tabs-red));
}

@media screen and (max-width: 768px) {
  .product-tabs { padding: 44px 0 52px; }
  .product-tabs__nav { width: 100%; margin-bottom: 20px; }
  .product-tabs__btn { flex: 1 1 auto; padding: 10px 10px; font-size: 13.5px; }
  .product-tabs__panel.is-active { padding: 26px 20px 30px; border-radius: 18px; }
  .product-tabs__content { font-size: 15px; }
  .product-tabs__content ul,
  .product-tabs__content .product-specs-list { grid-template-columns: minmax(0, 1fr); }
}

/* Related Products */
.related-products { padding: 60px 0; border-top: 1px solid #EBEBEB; max-width: 100%; overflow-x: hidden; }
.related-products__inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.related-products__title { font-family: 'Inter', sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; color: #111111; margin: 0 0 28px; text-align: center; }
.related-products__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.related-product-card { text-decoration: none; display: block; min-width: 0; }
.related-product-card__image-wrap { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; background: #F8F8F8; margin-bottom: 12px; }
.related-product-card__image { width: 100%; height: 100%; object-fit: contain; background: #F8F8F8; transition: transform 0.3s ease; }
.related-product-card:hover .related-product-card__image { transform: scale(1.05); }
.related-product-card__title { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #111111; margin: 0 0 4px; overflow-wrap: break-word; }
.related-product-card__price { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; color: #8B0000; margin: 0; }

/* ===== PRODUCT FAQs ===== */
.product-faqs { padding: 60px 0; background: #FAFAFA; border-top: 1px solid #EBEBEB; max-width: 100%; overflow-x: hidden; }
.product-faqs__inner { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.product-faqs__title { font-family: 'Inter', sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; color: #111111; margin: 0 0 28px; text-align: center; }
.product-faqs__list { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid #E8E8E8; }
.product-faq__item { border-bottom: 1px solid #E8E8E8; background: #FFFFFF; }
.product-faq__item:last-child { border-bottom: none; }
.product-faq__question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: transparent; border: none; cursor: pointer; text-align: left;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; color: #111111;
  transition: color 0.15s ease, background 0.15s ease;
}
.product-faq__question span:first-child { min-width: 0; overflow-wrap: break-word; }
.product-faq__question:hover { color: #8B0000; background: #FFF8F8; }
.product-faq__question[aria-expanded="true"] { color: #8B0000; }
.product-faq__icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: #F5F5F5;
  flex-shrink: 0; color: #111111; transition: background 0.15s ease, color 0.15s ease;
}
.product-faq__question[aria-expanded="true"] .product-faq__icon { background: #8B0000; color: #FFFFFF; }
.product-faq__icon-plus { display: block; }
.product-faq__icon-minus { display: none; }
.product-faq__question[aria-expanded="true"] .product-faq__icon-plus { display: none; }
.product-faq__question[aria-expanded="true"] .product-faq__icon-minus { display: block; }
.product-faq__answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.product-faq__answer[data-open] { max-height: 600px; }
.product-faq__answer-inner { padding: 0 22px 18px; font-family: 'Inter', sans-serif; font-size: 14px; color: #555555; line-height: 1.8; }
.product-faq__answer-inner p { margin: 0; overflow-wrap: break-word; }

/* ============================================================
   RESPONSIVE BREAKPOINTS — 320px up to 4K
   ============================================================ */

/* Large desktop */
@media screen and (min-width: 1441px) {
  .product-top__inner { gap: 64px; }
}

/* Small desktop / large tablet landscape */
@media screen and (max-width: 1200px) {
  .product-top__inner { gap: 40px; padding: 24px 24px 56px; }
  .related-products__inner,
  .product-tabs__inner,
  .product-faqs__inner { padding: 0 24px; }
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .product-top__inner { gap: 32px; padding: 20px 20px 48px; }
  .related-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-gallery { position: static; }
}

/* Mobile — single column */
@media screen and (max-width: 768px) {
  .product-breadcrumb { padding: 16px 16px 0; }
  .product-breadcrumb__current { display: none; }
  .product-top__inner { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 40px; gap: 28px; }
  .product-gallery { position: static; }
  .product-gallery__arrow { width: 36px; height: 36px; }
  .product-gallery__arrow--prev { left: 10px; }
  .product-gallery__arrow--next { right: 10px; }
  .product-trust { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .product-tabs__inner { padding: 0 16px; }
  .related-products { padding: 40px 0; }
  .related-products__inner { padding: 0 16px; }
  .product-faqs { padding: 44px 0; }
  .product-faqs__inner { padding: 0 16px; }
  .product-faq__question { padding: 15px 16px; font-size: 14px; }
  .product-faq__answer-inner { padding: 0 16px 15px; }
  .product-info__price--regular, .product-info__price--sale { font-size: 23px; }
}

/* Small mobile */
@media screen and (max-width: 480px) {
  .product-top__inner { padding: 12px 14px 32px; }
  .related-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-gallery__thumb { width: 58px; height: 58px; }
  .product-form__add-btn { font-size: 14px; }
  .product-form__buy-now-btn { font-size: 14px; }
  .product-option__btn { padding: 9px 15px; font-size: 13px; }
}

/* Very small mobile (iPhone SE, Galaxy Fold closed, 320px) */
@media screen and (max-width: 380px) {
  .product-top__inner { padding: 10px 12px 28px; }
  .product-breadcrumb { padding: 12px 12px 0; }
  .quantity-selector__btn { width: 34px; }
  .quantity-selector__input { width: 36px; }
  .product-form__add-btn { font-size: 13px; padding: 0 8px; }
  .product-trust { padding: 14px; }
  .product-trust__item { font-size: 12px; }
  .related-products__grid { grid-template-columns: minmax(0, 1fr); }
  .product-tabs__inner,
  .product-faqs__inner,
  .related-products__inner { padding: 0 12px; }
}

/* ==========================================================================
   Additions for WooCommerce
   ========================================================================== */

/*
 * WooCommerce reads the chosen attributes from hidden inputs named
 * attribute_*. The visible control is the swatch, button or select.
 */
.product-option__input {
	display: none;
}

/* A product with no variants has no selector row above the quantity. */
.product-form__row--simple {
	margin-top: var(--rlr-space-8);
}

/*
 * The price block is re-rendered when a variation is chosen, so it needs a
 * stable minimum height or the column jumps as the user clicks through
 * options.
 */
.product-info__price {
	min-height: 2.2em;
}

/* Woo prints prices inside <bdi>, which must not break the inline layout. */
.product-info__price bdi,
.related-product-card__price bdi {
	unicode-bidi: normal;
}

.product-info__price del,
.product-info__price ins {
	text-decoration: none;
	background: none;
}

/* WooCommerce validation and stock notices inside our form. */
.product-form .woocommerce-variation-availability,
.product-form .stock {
	margin: var(--rlr-space-8) 0 0;
	font-size: var(--rlr-fs-13);
	color: var(--rlr-text-muted);
}

.product-form .stock.out-of-stock {
	color: var(--rlr-error-deep);
}
