/* -------------------------------------------------------
 * Product Page Layout
 * ----------------------------------------------------- */
/* Header scrolls with the page (overrides mobile sticky from hero.css on this template). */
body.single-product .site-header {
  position: relative;
}

.product-page-wrap {
  overflow-x: hidden;
  min-width: 0;
  max-width: 100%;
}

.product-page-article {
  display: block;
}

.product-page {
  display: grid;
  /* ~60% gallery / ~40% buy column (3:2); minmax prevents grid blowout */
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 56px;
  padding-top: 24px;
  padding-bottom: 48px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* -------------------------------------------------------
 * Product Gallery (Sticky Left)
 * ----------------------------------------------------- */
.product-gallery {
  position: sticky;
  top: 16px;
  align-self: start;
  min-width: 0;
  max-width: 100%;
}

.product-gallery__main {
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

/*
 * Desktop: main image + thumbnail row should fit in the viewport height.
 * --product-gallery-above ≈ header + page padding; --product-gallery-thumbs-stack ≈ margin + thumb row.
 */
@media (min-width: 769px) {
  body.single-product {
    --product-gallery-above: 6.75rem;
    --product-gallery-thumbs-stack: 5.75rem;
  }

  body.single-product.has-marquee {
    --product-gallery-above: 8.25rem;
  }

  .product-gallery__main {
    --gallery-cap: min(calc(100svh - var(--product-gallery-above) - var(--product-gallery-thumbs-stack)),
        calc(100dvh - var(--product-gallery-above) - var(--product-gallery-thumbs-stack)));
    width: min(100%, var(--gallery-cap));
    max-height: var(--gallery-cap);
    margin-inline: auto;
  }
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.product-gallery__main img.is-loading {
  opacity: 0.5;
}

.product-gallery__thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.product-gallery__nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

@media (hover: hover) {
  .product-gallery__nav:hover {
    border-color: var(--color-primary);
    background: #f9fafb;
  }
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f3f4f6;
  padding: 0;
  transition: border-color 0.15s ease;
  cursor: pointer;
  scroll-snap-align: start;
}

.product-gallery__thumb.is-active {
  border-color: var(--color-primary);
}

@media (hover: hover) {
  .product-gallery__thumb:hover {
    border-color: var(--color-primary);
  }
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------
 * Product Details (Scrollable Right)
 * ----------------------------------------------------- */
.product-details {
  min-width: 0;
  max-width: 95%;
  padding-bottom: 40px;
}

.product-details__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.product-details__title-row--solo-title {
  justify-content: flex-start;
}

.product-details__title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--color-text);
}

.product-details__title-qty {
  flex-shrink: 0;
}

.product-details__excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: #4b5563;
  margin: -8px 0 16px;
}

.product-details__excerpt p {
  margin: 0 0 10px;
}

.product-details__excerpt p:last-child {
  margin-bottom: 0;
}

.product-details__price {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 0;
  color: var(--color-text);
}

.product-details__price del {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
  margin-right: 8px;
}

.product-details__price ins {
  text-decoration: none;
  color: #b8860b;
  font-weight: 800;
  background: none;
}

.product-details__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 16px 0;
}

.product-details__divider--top {
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Urgency & Trust Indicators */
.product-details__urgency {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.product-details__urgency-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.product-details__urgency-item--viewing {
  color: var(--color-text);
}

.product-details__urgency-item--viewing strong {
  font-weight: 700;
}

.product-details__urgency-item--sold {
  color: #dc2626;
  font-weight: 600;
}

.product-details__urgency-item--stock {
  display: flex;
  align-items: center;
  gap: 8px;
}

.urgency-icon {
  flex-shrink: 0;
  color: inherit;
}

.urgency-icon--eye {
  color: #9ca3af;
}

.urgency-icon--fire {
  color: #dc2626;
}

.urgency-icon--check {
  color: #15803d;
}

@keyframes urgency-icon-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.product-details__urgency .urgency-icon {
  animation: urgency-icon-blink 1.6s ease-in-out infinite;
}

.product-details__urgency .urgency-icon--eye {
  animation-delay: 0s;
}

.product-details__urgency .urgency-icon--fire {
  animation-delay: 0.35s;
}

.product-details__urgency .urgency-icon--check {
  animation-delay: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
  .product-details__urgency .urgency-icon {
    animation: none;
  }
}

.product-details__stock {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.stock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.stock-dot--out {
  background: #ef4444;
}

.product-details__stock--in {
  color: #15803d;
}

.product-details__stock--out {
  color: #dc2626;
}

/* Offers for you (product page) — uses theme neutrals + primary */
.product-offers {
  margin-bottom: 24px;
  padding: 18px 16px 16px;
  background: var(--color-bg-alt, #f5f5f7);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.product-offers__head {
  margin-bottom: 14px;
}

.product-offers__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.product-offers__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-muted, #6b7280);
}

.product-offers__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.product-offer-card__text {
  min-width: 0;
  flex: 1;
}

.product-offer-card__label {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text, #111827);
  line-height: 1.35;
}

.product-offer-card__apply {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  /* Solid label for readability; fill stays very light via color-mix below */
  color: color-mix(in srgb, var(--color-primary) 92%, #0f172a);
  background: color-mix(in srgb, var(--color-primary) 7%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--color-primary) 44%, #d1d5db);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  font-family: var(--font-base);
}

@media (hover: hover) {
  .product-offer-card__apply:hover:not(:disabled) {
    background: color-mix(in srgb, var(--color-primary) 14%, #fff);
    border-color: color-mix(in srgb, var(--color-primary) 55%, #cbd5e1);
  }
}

.product-offer-card__apply:active:not(:disabled) {
  transform: scale(0.98);
}

.product-offer-card__apply:disabled {
  cursor: wait;
  opacity: 0.75;
}

/* Attribute Groups */
.product-details__attr-group {
  margin-bottom: 20px;
}

.product-details__attr-group--color {
  padding-top: 16px;
}

.product-details__attr-label {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--color-text);
}

.ecom-variation-select {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-top: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font-base);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
}

.product-details__size-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.size-btn.is-active,
.size-btn:focus-visible {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

/* Quantity and color swatches on one row, grouped together */
.product-details__color-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
}

.product-details__color-qty-row .product-details__attr-qty {
  flex-shrink: 0;
}

.product-details__color-qty-row .product-details__color-swatches {
  flex-shrink: 0;
}

.product-details__color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.color-swatch:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Selected: white gap + primary ring so it reads on any fill (e.g. blue on blue) */
.color-swatch.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary);
}

.color-swatch:not(.is-active) {
  opacity: 0.8;
}

@media (hover: hover) {
  .color-swatch:not(.is-active):hover {
    opacity: 0.95;
  }
}

/* Hidden WooCommerce fields only (quantity: title row or .product-details__color-qty-row) */
.product-details__atc-form {
  display: block;
  margin: 0 0 24px;
  padding: 0;
  border: none;
  min-height: 0;
}


.product-details__cta-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.qty-selector {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--color-border, #d1d5db);
  border-radius: 10px;
  overflow: hidden;
  height: 48px;
  background: #fff;
  flex-shrink: 0;
}

.qty-selector--in-title {
  /* Same white stepper as default; class kept for markup hooks */
  background: #fff;
  border-color: var(--color-border, #d1d5db);
}

.qty-selector--in-title .qty-btn,
.qty-selector--in-title .qty-input {
  background: #fff;
}

@media (hover: hover) {
  .qty-selector--in-title .qty-btn:hover {
    background: #f9fafb;
  }
}

.qty-btn {
  width: 44px;
  height: 100%;
  background: #fff;
  border: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

@media (hover: hover) {
  .qty-btn:hover {
    background: #f9fafb;
  }
}

.qty-input {
  width: 48px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--color-border, #d1d5db);
  border-right: 1px solid var(--color-border, #d1d5db);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-base);
  color: var(--color-text);
  -moz-appearance: textfield;
  outline: none;
  background: #fff;
}

.qty-input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Secondary — white outlined icon add to cart */
.btn-atc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 0;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-border, #d1d5db);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-atc__icon {
  flex-shrink: 0;
  display: block;
}

@media (hover: hover) {
  .btn-atc:hover {
    background: #f9fafb;
    border-color: #c5cad3;
    color: var(--color-primary-hover, #0f2149);
  }
}

/* Primary CTA */
.btn-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  height: 52px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.35px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(26, 50, 100, 0.32);
}

@media (hover: hover) {
  .btn-buy-now:hover {
    background: var(--color-primary-hover, #0f2149);
    color: #fff;
    box-shadow: 0 6px 24px rgba(15, 33, 73, 0.38);
  }
}

/* Secure Checkout */
.product-details__secure-checkout {
  margin-bottom: 20px;
}

.product-details__secure-title {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-align: center;
  margin: 0 0 12px;
}

.product-details__payments.footer__payments {
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 20px;
  row-gap: 16px;
}

/* Match footer scale: beat WooCommerce / global img { height:auto; max-width:100% } */
.product-page-wrap .product-details__secure-checkout .footer__payments img.footer__payment-icon,
.product-page-wrap .product-details__secure-checkout .footer__payments .footer__payment-icon--inline {
  height: 18px !important;
  width: auto !important;
  max-height: 18px !important;
  max-width: 124px !important;
  min-height: 0;
  flex-shrink: 0;
  display: block;
}

.product-page-wrap .product-details__secure-checkout .footer__payments img.footer__payment-icon {
  object-fit: contain;
  object-position: center;
}

.product-page-wrap .product-details__secure-checkout .footer__payments .footer__payment-icon--inline {
  line-height: 0;
}

.product-page-wrap .product-details__secure-checkout .footer__payments .footer__payment-icon--inline svg {
  height: 18px !important;
  width: auto !important;
  max-height: 18px !important;
  max-width: 124px !important;
  display: block;
  vertical-align: top;
}

/* Shipping / delivery strip (icon | rule | two-line copy) */
.product-details__shipping {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 22px 0 20px;
}

.product-details__shipping-icon {
  flex-shrink: 0;
  color: #000000;
}

.product-details__shipping-rule {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  min-height: 2.75rem;
  background: #e0e0e0;
}

.product-details__shipping-copy {
  flex: 1;
  min-width: 0;
}

.product-details__shipping-lead {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  color: #757575;
  margin: 0 0 6px;
}

.product-details__shipping-countdown {
  color: inherit;
  font-weight: inherit;
}

.product-details__shipping-dates {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
  color: #757575;
}

.product-details__shipping-date {
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-details__shipping-and {
  color: #757575;
  font-weight: 400;
}

/* -------------------------------------------------------
 * Product Tabs
 * ----------------------------------------------------- */
.product-tabs {
  border-top: 1px solid var(--color-border);
  padding: 0;
}

.product-tabs__bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.product-tabs__bar::-webkit-scrollbar {
  display: none;
}

.product-tabs__tab {
  flex-shrink: 0;
  padding: 16px 24px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  min-height: 52px;
}

.product-tabs__tab.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

@media (hover: hover) {
  .product-tabs__tab:hover {
    color: var(--color-text);
  }
}

.product-tabs__panel {
  padding: 40px 0;
}

.product-tabs__panel[hidden] {
  display: none;
}

.dummy-review[hidden] {
  display: none;
}

.product-tabs__desc-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 40px;
}

.product-tabs__desc-body {
  flex: 1;
  min-width: min(100%, 280px);
}

.product-tabs__desc-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--color-text);
}

.product-tabs__desc-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted, #4b5563);
}

.product-tabs__desc-text p {
  margin: 0 0 14px;
}

.product-tabs__desc-text p:last-child {
  margin-bottom: 0;
}

.product-tabs__desc-image img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-tabs__attr-table {
  width: 100%;
  border-collapse: collapse;
}

.product-tabs__attr-table th,
.product-tabs__attr-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.product-tabs__attr-table th {
  font-weight: 700;
  width: 180px;
  background: #f9fafb;
}

/* Additional info: spec sheet (Category / Details), light theme */
.product-tabs__attr-table--spec {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.product-tabs__attr-table--spec thead th {
  background: #f3f4f6;
  color: var(--color-text);
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
}

.product-tabs__attr-table--spec tbody th {
  background: #f9fafb;
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.product-tabs__attr-table--spec tbody td {
  background: #ffffff;
  color: var(--color-muted, #374151);
  font-weight: 400;
  border-bottom: 1px solid var(--color-border);
}

.product-tabs__attr-table--spec tbody tr:last-child th,
.product-tabs__attr-table--spec tbody tr:last-child td {
  border-bottom: none;
}

.product-tabs__video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.product-tabs__video-wrap iframe,
.product-tabs__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dummy-reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dummy-review {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.dummy-review__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 8px;
}

.dummy-review__author {
  font-weight: 700;
  color: var(--color-text);
}

.dummy-review__meta {
  font-size: 13px;
  color: var(--color-muted);
}

.dummy-review__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.reviews-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.reviews-pagination__btn {
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.reviews-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (hover: hover) {
  .reviews-pagination__btn:not(:disabled):hover {
    border-color: var(--color-primary);
    background: #f9fafb;
  }
}

.reviews-pagination__status {
  font-size: 13px;
  color: var(--color-muted);
}

/* Related products */
.product-related-section {
  padding: 48px 0 64px;
  border-top: 1px solid var(--color-border);
  background: #fafafa;
}

.product-related-section__title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  margin: 0 0 28px;
  color: var(--color-text);
}

.product-related-section ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-related-section ul.products li.product {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

@media (hover: hover) {
  .product-related-section ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
}

.product-related-section ul.products li.product a.woocommerce-LoopProduct-link {
  text-decoration: none;
  color: inherit;
}

.product-related-section ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px 4px;
  margin: 0;
}

.product-related-section ul.products li.product .price {
  padding: 0 14px 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.product-related-section ul.products li.product .button {
  display: block;
  margin: 0 14px 14px;
  text-align: center;
  padding: 10px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .product-related-section ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-related-section ul.products {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------
 * FAQ Section
 * ----------------------------------------------------- */
.product-faq {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.product-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.product-faq__heading {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

.product-faq__subtext {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  min-height: 44px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--color-muted);
}

.faq-item__question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.faq-item__answer[hidden] {
  display: none;
}

.faq-item__answer p {
  margin: 0;
}

/* -------------------------------------------------------
 * Sticky Bottom Bar
 * ----------------------------------------------------- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  will-change: transform;
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.sticky-bar__product {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.sticky-bar__product img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sticky-bar__product span {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-bar__qty {
  flex-shrink: 0;
}

.sticky-bar .qty-selector {
  height: 44px;
  border-radius: 10px;
}

.sticky-qty {
  width: 44px;
}

.sticky-bar__buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(26, 50, 100, 0.28);
}

@media (hover: hover) {
  .sticky-bar__buy-now:hover {
    background: var(--color-primary-hover, #0f2149);
    color: #fff;
    box-shadow: 0 4px 16px rgba(15, 33, 73, 0.34);
  }
}

/* -------------------------------------------------------
 * Responsive — Product Page
 * ----------------------------------------------------- */
@media (max-width: 1024px) {
  .product-page {
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .product-gallery {
    position: static;
  }

  .product-gallery__main {
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin-inline: 0;
  }

  .product-gallery__thumbs-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .product-details {
    max-width: 100%;
  }

  .product-details__cta-row {
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
    margin-right: 0;
  }

  .product-tabs__attr-table th {
    width: 36%;
    min-width: 0;
    word-break: break-word;
  }

  .product-tabs__attr-table td {
    word-break: break-word;
  }

  .product-tabs__desc-image img {
    width: 140px;
    height: 140px;
    max-width: min(140px, 100%);
  }

  .product-faq__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sticky-bar__product span {
    display: none;
  }
}

@media (max-width: 480px) {
  .product-details__title-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .product-details__title-qty {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .product-details__color-qty-row {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

@media (max-width: 600px) {
  .product-details__urgency {
    flex-direction: column;
    gap: 8px;
  }

  .product-offer-card {
    flex-direction: column;
    align-items: stretch;
  }

  .product-offer-card__apply {
    width: 100%;
  }

  .sticky-bar__inner {
    gap: 10px;
  }

  .sticky-bar__qty {
    display: none;
  }
}

/* =======================================================
   Checkout Details Modal
   ======================================================= */

/*
 * Ensure the HTML `hidden` attribute always wins over any `display` value set
 * by component rules (e.g. display:flex on the coupon badge).
 */
.ecom-modal [hidden] {
  display: none !important;
}

.ecom-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ecom-modal[hidden] {
  display: none;
}

.ecom-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ecom-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-rows: minmax(0, 1fr) auto;
}

.ecom-modal__scroll {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.ecom-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #f4f4f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #555;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.ecom-modal__close:hover {
  background: #e4e4e7;
  color: #111;
}

/* Two-column body */
.ecom-modal__body {
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 0;
}

/* LEFT — form column */
.ecom-modal__form-col {
  padding: 32px 28px;
  border-right: 1px solid #f0f0f0;
}

.ecom-modal__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  padding-right: 36px;
  line-height: 1.3;
}

.ecom-modal__subtitle {
  font-size: 0.82rem;
  color: #888;
  margin: 0 0 20px;
}

.ecom-modal__form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ecom-modal__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ecom-modal__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ecom-modal__field label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ecom-modal__field label .req {
  color: #dc2626;
  margin-left: 2px;
}

.ecom-modal__field label .optional {
  font-weight: 400;
  text-transform: none;
  font-style: italic;
  color: #9ca3af;
  letter-spacing: 0;
}

.ecom-modal__field input {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.91rem;
  color: #111;
  background: #fafafa;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  width: 100%;
  box-sizing: border-box;
}

.ecom-modal__field input::placeholder {
  color: #b0b7c3;
}

.ecom-modal__field input:focus {
  border-color: var(--color-primary, #1d222b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #1d222b) 12%, transparent);
  background: #fff;
}

.ecom-modal__field input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.ecom-modal__field--pincode {
  max-width: 160px;
}

/* RIGHT — order summary column */
.ecom-modal__summary-col {
  background: #f8f9fb;
  border-radius: 0 14px 0 0;
  display: flex;
  flex-direction: column;
}

.ecom-modal__summary {
  padding: 32px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.ecom-modal__summary-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  margin: 0;
}

.ecom-modal__summary-product {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e8e8;
}

.ecom-modal__summary-product-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

.ecom-modal__summary-product-qty {
  font-size: 0.82rem;
  color: #666;
}

.ecom-modal__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
}

.ecom-modal__summary-amount {
  font-weight: 600;
  color: #111;
}

.ecom-modal__summary-row--discount {
  color: #166534;
}

.ecom-modal__summary-row--discount .ecom-modal__summary-amount {
  color: #15803d;
}

.ecom-modal__coupon-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 0.79rem;
  color: #15803d;
  font-weight: 500;
}

.ecom-modal-coupon-code {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ecom-modal__summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1.5px solid #e0e0e0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  margin-top: auto;
}

.ecom-modal__summary-total-amount {
  font-size: 1.05rem;
  color: var(--color-primary, #1d222b);
}

.ecom-modal__error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: #991b1b;
  line-height: 1.5;
}

.ecom-modal__submit {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-primary, #1d222b);
  color: #fff;
  border: none;
  border-radius: var(--cta-border-radius, 6px);
  cursor: pointer;
  transition: opacity 0.2s;
}

.ecom-modal__submit:hover {
  opacity: 0.88;
}

.ecom-modal__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ecom-modal__footer {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-self: end;
}

.ecom-modal__footer-spacer {
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.ecom-modal__footer-cta {
  background: #f8f9fb;
  border-top: 1px solid #e8e8e8;
  padding: 14px 22px 22px;
  border-radius: 0 0 14px 0;
}

.ecom-modal__footer-cta .ecom-modal__submit {
  margin: 0;
}

/* ---- Modal animations ---- */
@keyframes ecomOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ecomOverlayOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes ecomDialogIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

@keyframes ecomDialogOut {
  from { opacity: 1; transform: scale(1)    translateY(0);    }
  to   { opacity: 0; transform: scale(0.96) translateY(10px); }
}

@keyframes ecomDialogInMobile {
  from { opacity: 0.6; transform: translateY(32px); }
  to   { opacity: 1;   transform: translateY(0);    }
}

@keyframes ecomDialogOutMobile {
  from { opacity: 1;   transform: translateY(0);    }
  to   { opacity: 0.3; transform: translateY(32px); }
}

.ecom-modal--open .ecom-modal__overlay {
  animation: ecomOverlayIn 0.22s ease forwards;
}

.ecom-modal--open .ecom-modal__dialog {
  animation: ecomDialogIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ecom-modal--closing .ecom-modal__overlay {
  animation: ecomOverlayOut 0.18s ease forwards;
}

.ecom-modal--closing .ecom-modal__dialog {
  animation: ecomDialogOut 0.18s ease-in forwards;
}

/* Mobile — single column, summary on top, sheet height 80vh, CTA pinned in footer */
@media (max-width: 768px) {
  .ecom-modal {
    align-items: flex-end;
    padding: 0;
  }

  .ecom-modal__dialog {
    border-radius: 16px 16px 0 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 80vh;
    max-height: 80vh;
    height: 80dvh;
    max-height: 80dvh;
    max-width: 100%;
  }

  .ecom-modal__body {
    grid-template-columns: 1fr;
  }

  .ecom-modal__form-col {
    border-right: none;
    border-top: 1px solid #f0f0f0;
    padding: 20px 18px 24px;
    order: 2;
  }

  .ecom-modal__summary-col {
    border-radius: 16px 16px 0 0;
    order: 1;
  }

  .ecom-modal__summary {
    padding: 20px 18px 16px;
    gap: 10px;
  }

  .ecom-modal__row--two {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .ecom-modal__field--pincode {
    max-width: 100%;
  }

  .ecom-modal__footer {
    grid-template-columns: 1fr;
  }

  .ecom-modal__footer-spacer {
    display: none;
  }

  .ecom-modal__footer-cta {
    border-radius: 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }

  .ecom-modal__footer-cta .ecom-modal__submit {
    border-radius: var(--cta-border-radius, 6px);
  }

  .ecom-modal--open .ecom-modal__dialog {
    animation: ecomDialogInMobile 0.32s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  }

  .ecom-modal--closing .ecom-modal__dialog {
    animation: ecomDialogOutMobile 0.2s ease-in forwards;
  }
}