/* ==========================================================================
   SINGLE PRODUCT PAGE — save as css/product.css
   Covers: image gallery + thumbs, product details, feature icons,
   highlights list, stock badge, qty selector, add to cart, buy now.
   Drift.js handles the zoom pane itself — this only styles the trigger area.
   ========================================================================== */

.product-page {
  padding: 25px 24px 70px;
}

.product-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ================= GALLERY ================= */

.product-gallery { position: relative; }

.product-main-image {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
}

.product-main-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-rose);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.product-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none; /* Drift handles hover on the image itself */
}

.product-zoom-btn svg { width: 16px; height: 16px; color: var(--color-ink); }

/* thumbnails row */
.product-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.product-thumbs-track {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-thumbs-track::-webkit-scrollbar { display: none; }

.product-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1.6px solid transparent;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

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

.product-thumb.is-active { border-color: var(--color-rose); }

.thumb-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.thumb-arrow svg { width: 12px; height: 12px; }

.thumb-arrow:hover { background: var(--color-rose-soft); color: var(--color-rose-dark); }

/* ================= DETAILS ================= */

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  color: var(--color-ink);
  margin: 0 0 8px;
}

.product-tagline {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-ink);
  margin: 0 0 16px;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.product-stars { display: flex; gap: 0px; }
.product-stars svg { width: 24px; height: 24px; fill: var(--color-star); }

.product-rating-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-ink);
}

.product-rating-sep { color: var(--color-border); }

.product-rating-count {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-muted);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--color-rose-dark);
  margin-bottom: 22px;
}

/* feature icon grid */
.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 16px 8px;
  margin-bottom: 22px;
}
.product-feature-grid.below {
    border: 0px;
    margin-top: 9px;
}
.product-feature-grid.below .product-feature img{
	width: 38px;
    height: 38px;
	filter: none;
}
.product-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border-right: 1px solid var(--color-border);
}
.product-feature:last-child {
    border-right: none;
}
.product-feature img { width: 45px; height: 45px; object-fit: contain; filter: saturate(4);}

.product-feature span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
}

/* highlights */
.product-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.product-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink);
  line-height: 1.5;
}

.product-highlights svg {
  width: 16px;
  height: 16px;
  color: var(--color-rose);
  flex-shrink: 0;
  margin-top: 2px;
}

/* stock */
.product-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--color-rose-dark);
  margin-bottom: 22px;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf72;
  flex-shrink: 0;
}

/* purchase row: qty + add to cart */
.product-purchase-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.qty-btn {
  width: 40px;
  height: 46px;
  font-size: 18px;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.qty-btn:hover { background: var(--color-rose-soft); }

.qty-input {
  width: 36px;
  text-align: center;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-ink);
  background: transparent;
}

.add-to-cart-btn {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  background: var(--color-rose);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.add-to-cart-btn svg { width: 17px; height: 17px; }

.add-to-cart-btn:hover { background: var(--color-rose-dark); transform: translateY(-1px); }

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.add-to-cart-btn.is-loading .btn-label,
.add-to-cart-btn.is-loading svg:not(.btn-spinner) { display: none; }

.add-to-cart-btn.is-loading .btn-spinner { display: block; }

/* success message */
.cart-success-msg {
  display: none;
  align-items: center;
  gap: 8px;
  background: #eaf7ee;
  color: #2f8a4e;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.cart-success-msg.is-visible {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

.cart-success-msg svg {
  width: 15px;
  height: 15px;
  color: #2f8a4e;
  flex-shrink: 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* buy now */
.buy-now-btn-full {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--color-rose), var(--color-rose-dark));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-now-btn-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 85, 128, 0.28);
}

/* ==========================================================================
   Drift.js zoom pane theming — Drift injects .drift-zoom-pane itself,
   this just makes it match the site's look
   ========================================================================== */

.drift-zoom-pane {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 34px rgba(0,0,0,0.14);
}
.page-frame.product{
	min-height: 113px;
}
.page-frame.product {
    height: 150px;
    background: linear-gradient(
    to top,
    #FFFFFF 0%,
    rgba(255,248,252,.95) 12%,
    rgba(252,239,246,.78) 42%,
    rgba(244,238,252,.48) 68%,
    rgba(233,242,255,.20) 86%,
    transparent 100%
),
    url("../images/no-banner-bg.webp");
    background-size: cover;
}
header.site-header.no-banner nav {
   box-shadow: 0 10px 20px rgba(255, 105, 150, .12);
   border-color:#fff;
}
.shop-breadcrumb {
    width: 100%;
    transform: translate(0px, 52px);
}
.shop-breadcrumb-inner{
	padding: 14px 13px !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .product-page-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
	
  .product-name { font-size: 26px; }
  .product-price { font-size: 24px; }

  .product-thumbs-track { grid-template-columns: repeat(4, 1fr); }

  .product-feature-grid { grid-template-columns: repeat(4, 1fr); padding: 14px 0px; }
  .product-feature img { width: 30px; height: 30px; }
  .product-feature span { font-size: 10px; }

  /* Drift's hover-zoom doesn't work well with touch — disable pane on mobile */
  .drift-zoom-pane { display: none !important; }
}
.product-main-image{
    position:relative;
    overflow:hidden;
    border-radius:28px;
    cursor:zoom-in;
    user-select:none;
}

.product-main-image img{

    width:100%;
    display:block;
}

/* Lens */

.zoom-lens{

    position:absolute;

    width:320px;
    height:320px;

    border-radius:50%;

    border:4px solid #fff;

    box-shadow:
        0 18px 45px rgba(0,0,0,.18);

    overflow:hidden;

    pointer-events:none;

    display:none;

    background-repeat:no-repeat;

    background-color:#fff;

    z-index:50;
}
@media (max-width: 480px) {
  .product-page { padding: 12px 16px 50px; }
  .product-name { font-size: 24px; }
  .qty-btn { width: 32px; height: 42px; }
  .add-to-cart-btn { height: 44px; font-size: 14px; }
  header.site-header.no-banner {
	  height: 92px;
	  padding-top: 12px;
  }
  .page-frame.product {
    min-height: 92px;
}
.shop-breadcrumb-inner {
    gap: 4px;
}
.shop-breadcrumb-inner {
    padding: 14px 24px !important;
}
.shop-breadcrumb {
    transform: translate(0px, 36px);
}
.page-frame.product {
    background: linear-gradient(
    to top,
    #FFFFFF 0%,
    rgba(255,248,252,.95) 12%,
    rgba(252,239,246,.78) 38%,
    rgba(244,238,252,.48) 68%,
    rgba(233,242,255,.20) 86%,
    transparent 100%
),
    url("../images/no-banner-bg.webp");
}
.page-frame.product{
	height: 141px;
}
.product-price{
	margin-bottom: 16px;
}
.product-rating-row {
    margin-bottom: 11px;
}
.product-feature {
    padding: 0 2px;
}
.product-feature-grid.below .product-feature img {
    width: 32px;
    height: 32px;
}
.zoom-lens {
    width: 135px;
    height: 135px;
}
}


