/* ============================================================
   SHAH FABRIC — MAIN STYLESHEET
   ============================================================ */

@import url('tokens.css');
/* Font loading moved to <link rel="stylesheet"> in each page's <head>
   with preconnect hints — @import here would block CSS parsing and add
   an extra round-trip before fonts even start downloading. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--color-primary); color: #fff; padding: var(--space-2) var(--space-3);
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
  white-space: nowrap;
}
.btn-primary { background: var(--color-button); color: var(--color-button-text); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.05); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--color-announcement-bg);
  color: var(--color-announcement-text);
  font-size: 13px;
  padding: 10px var(--space-3);
  position: relative;
  overflow: hidden;
  transition: opacity 350ms ease;
}
.announcement-bar.is-fading { opacity: 0; }
.announcement-bar a { text-decoration: underline; }
.announcement-bar__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 18px;
}
.announcement-bar__message { text-align: center; flex: 1; }
.announcement-bar__social {
  position: absolute;
  right: 0;
  display: flex;
  gap: 10px;
}
.announcement-bar__social-icon {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none !important; opacity: 0.85;
  transition: all 200ms ease;
}
.announcement-bar__social-icon svg { width: 12px; height: 12px; fill: currentColor; }
.announcement-bar__social-icon:hover { opacity: 1; }

@media (max-width: 640px) {
  .announcement-bar__social { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar { transition: none; }
}

/* ============================================================
   SALE TIMER RIBBON
   ============================================================ */
.sale-ribbon {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  flex-wrap: wrap;
}
.sale-ribbon__timer { display: flex; gap: 6px; font-weight: 600; }
.sale-ribbon__timer span.boxed {
  background: rgba(255,255,255,0.18);
  padding: 3px 8px;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
  display: inline-block;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  gap: var(--space-3);
}
/* Logo position — controlled by Admin → Site Settings → Logo Position */
/* Default DOM order is logo, nav, icons */
.site-header[data-logo-pos="left"] .logo   { grid-column: 1; justify-self: start; }
.site-header[data-logo-pos="left"] .main-nav { grid-column: 2; justify-self: center; }
.site-header[data-logo-pos="left"] .header-icons { grid-column: 3; justify-self: end; }

.site-header[data-logo-pos="center"] .main-nav { grid-column: 1; justify-self: start; }
.site-header[data-logo-pos="center"] .logo { grid-column: 2; justify-self: center; }
.site-header[data-logo-pos="center"] .header-icons { grid-column: 3; justify-self: end; }

.site-header[data-logo-pos="right"] .main-nav { grid-column: 1; justify-self: start; }
.site-header[data-logo-pos="right"] .header-icons { grid-column: 2; justify-self: end; }
.site-header[data-logo-pos="right"] .logo { grid-column: 3; justify-self: end; }

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.logo img { max-height: 44px; }

.main-nav { display: flex; gap: var(--space-4); justify-content: center; position: relative; }
.main-nav > li { position: relative; }
.main-nav a {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: var(--space-2) 0; display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}
.main-nav a:hover { border-color: var(--color-primary); }
.main-nav .has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  min-width: 200px;
  padding: var(--space-2) 0;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all var(--transition-base);
  z-index: 50;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a { display: block; padding: var(--space-2) var(--space-3); text-transform: none; letter-spacing: normal; }
.dropdown-menu a:hover { background: var(--color-background); border-color: transparent; }

.header-icons { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); }
.icon-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--color-header-text); display: inline-flex; padding: 6px;
}
.icon-btn svg { width: 22px; height: 22px; }
.badge-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 600;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; }

/* Search flyout */
.search-flyout {
  position: fixed; inset: 0; background: rgba(20,16,12,0.5);
  z-index: 200; display: none;
}
.search-flyout.is-open { display: block; }
.search-flyout__panel {
  background: var(--color-surface); padding: var(--space-4);
  max-width: 640px; margin: 80px auto 0; border-radius: 6px;
}
.search-flyout__panel input {
  width: 100%; padding: 14px 16px; font-size: 16px;
  border: 1px solid var(--color-border); border-radius: 4px;
}
.search-results { margin-top: var(--space-3); display: grid; gap: var(--space-2); max-height: 50vh; overflow-y: auto; }
.search-result-item { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-2); border-radius: 6px; }
.search-result-item:hover { background: var(--color-background); }
.search-result-item img { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; }

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: min(85vw, 340px);
  background: var(--color-surface); z-index: 300;
  transform: translateX(-100%); transition: transform var(--transition-base);
  overflow-y: auto; padding: var(--space-4);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-overlay {
  position: fixed; inset: 0; background: rgba(20,16,12,0.5); z-index: 299;
  display: none;
}
.mobile-drawer-overlay.is-open { display: block; }
.mobile-drawer a { display: block; padding: var(--space-2) 0; font-size: 15px; border-bottom: 1px solid var(--color-border); }
.mobile-drawer__close { background: none; border: none; font-size: 24px; cursor: pointer; margin-bottom: var(--space-3); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider { position: relative; width: 100%; aspect-ratio: 3/1; overflow: hidden; background: #eee; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease;
  display: flex; align-items: flex-end;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-slide__content {
  position: relative; z-index: 2; color: #fff;
  padding: var(--space-6) var(--space-5);
  background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent 60%);
  width: 100%;
}
.hero-slide__content h2 { font-size: clamp(28px, 4vw, 52px); margin-bottom: var(--space-2); }
.hero-slide__content p { max-width: 480px; margin-bottom: var(--space-3); }
.hero-arrows button {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: none; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; z-index: 5; font-size: 18px;
}
.hero-arrows .prev { left: var(--space-3); }
.hero-arrows .next { right: var(--space-3); }
.hero-dots { position: absolute; bottom: var(--space-3); right: var(--space-4); display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; }
.hero-dots button.is-active { background: #fff; width: 22px; border-radius: 4px; }

@media (max-width: 768px) {
  /* Banners are always uploaded as exactly 1500x500 (3:1) — keep the
     SAME ratio on mobile too, just smaller. Forcing a different ratio
     here was cropping/zooming into banner images badly on phones. */
  .hero-slider { aspect-ratio: 3/1; min-height: 150px; }
  .hero-slide__content { padding: var(--space-3) var(--space-3) var(--space-2); }
  .hero-slide__content h2 { font-size: clamp(16px, 5vw, 24px); margin-bottom: 4px; line-height: 1.15; }
  .hero-slide__content p { font-size: 12px; margin-bottom: 8px; -webkit-line-clamp: 1; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-slide__content .btn { padding: 8px 16px; font-size: 11px; }
  .hero-arrows button { width: 32px; height: 32px; font-size: 14px; }
  .hero-dots { bottom: 8px; right: var(--space-2); }
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section { padding: var(--space-6) 0; }
.section-heading { text-align: center; margin-bottom: var(--space-5); }
.section-heading h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: var(--space-2); }
.section-heading p { color: var(--color-text-muted); }
.section-heading .eyebrow {
  display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-secondary); margin-bottom: var(--space-2);
}

/* ============================================================
   COLLECTIONS GRID
   ============================================================ */
.collections-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
.collection-card { position: relative; overflow: hidden; }
.collection-card__image { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 500ms ease; }
.collection-card:hover .collection-card__image { transform: scale(1.05); }
.collection-card__label {
  position: absolute; bottom: var(--space-3); left: var(--space-3); right: var(--space-3);
  color: #fff; text-align: center;
}
.collection-card__label h3 { font-size: 20px; }
.collection-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent 50%);
}

@media (max-width: 768px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

/* ============================================================
   PRODUCT GRID & CARD
   ============================================================ */
.product-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4);
}
.product-filters { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.filter-select, .sort-select {
  padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 4px;
  background: var(--color-surface); font-family: var(--font-body); font-size: 13px;
}

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
}
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); } }

.product-card { position: relative; }
.product-card__media { position: relative; overflow: hidden; background: #eee; aspect-ratio: 3/4; }
.product-card__image {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: opacity 400ms ease;
}
.product-card__image--hover { opacity: 0; }
.product-card:hover .product-card__image--hover { opacity: 1; }
.product-card:hover .product-card__image--main { opacity: 0; }

.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-sale { background: var(--color-sale-badge); color: #fff; }
.badge-discount { background: var(--color-accent); color: #fff; }

.wishlist-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(255,255,255,0.9); border: none; border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition-base);
}
.wishlist-btn:hover { transform: scale(1.1); }
.wishlist-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--color-accent); stroke-width: 1.6; }
.wishlist-btn.is-active svg { fill: var(--color-primary); stroke: var(--color-primary); }

.quickview-trigger {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.94); color: var(--color-accent);
  text-align: center; padding: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  border: none; cursor: pointer; opacity: 0; transform: translateY(8px);
  transition: all var(--transition-base); z-index: 2;
}
.product-card:hover .quickview-trigger { opacity: 1; transform: translateY(0); }

.product-card__info { padding-top: var(--space-2); text-align: center; }
.product-card__title { font-size: 14px; margin-bottom: 4px; }
.product-card__price { font-size: 14px; }
.price-current { font-weight: 600; }
.price-compare { text-decoration: line-through; color: var(--color-text-muted); margin-left: 6px; font-size: 13px; }

.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-5); }
.pagination button {
  width: 38px; height: 38px; border: 1px solid var(--color-border); background: var(--color-surface);
  border-radius: 4px; cursor: pointer;
}
.pagination button.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ============================================================
   QUICK VIEW DRAWER
   ============================================================ */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,16,12,0.5); z-index: 400; display: none; }
.drawer-overlay.is-open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(92vw, 460px);
  background: var(--color-surface); z-index: 401;
  transform: translateX(100%); transition: transform 320ms ease;
  overflow-y: auto; padding: var(--space-4);
}
.drawer.is-open { transform: translateX(0); }
.drawer__close { background: none; border: none; font-size: 22px; cursor: pointer; float: right; }
.drawer__gallery { position: relative; aspect-ratio: 3/4; margin-bottom: var(--space-3); border-radius: 6px; overflow: hidden; background: #eee; }
.drawer__gallery img { width: 100%; height: 100%; object-fit: cover; }
.drawer__thumbs { display: flex; gap: 6px; margin-bottom: var(--space-3); }
.drawer__thumbs img { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: 0.6; }
.drawer__thumbs img.is-active { opacity: 1; outline: 2px solid var(--color-primary); }
.trust-badges { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-3) 0; font-size: 12px; color: var(--color-text-muted); }
.trust-badges span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.pdp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-5) 0; }
@media (max-width: 900px) { .pdp-layout { grid-template-columns: 1fr; gap: var(--space-4); } }

.pdp-gallery__main { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; background: #eee; cursor: zoom-in; }
.pdp-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery__thumbs { display: flex; gap: 8px; margin-top: var(--space-2); overflow-x: auto; }
.pdp-gallery__thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: 0.6; flex-shrink: 0; }
.pdp-gallery__thumbs img.is-active { opacity: 1; outline: 2px solid var(--color-primary); }

.pdp-info h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: var(--space-2); }
.pdp-price { font-size: 22px; margin-bottom: var(--space-2); }
.pdp-countdown { display: flex; gap: 8px; margin: var(--space-3) 0; }
.pdp-countdown .unit { background: var(--color-accent); color: #fff; padding: 8px 12px; border-radius: 4px; text-align: center; min-width: 54px; }
.pdp-countdown .unit small { display: block; font-size: 10px; opacity: 0.7; }

.option-group { margin: var(--space-3) 0; }
.option-group label.group-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: var(--space-2); text-transform: uppercase; letter-spacing: 0.05em; }
.size-options, .color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-option {
  border: 1px solid var(--color-border); background: var(--color-surface);
  padding: 9px 14px; cursor: pointer; font-size: 13px; border-radius: 4px;
}
[data-size-shape="circle"] .size-option { border-radius: 50%; width: 42px; height: 42px; padding: 0; display: flex; align-items: center; justify-content: center; }
.size-option.is-selected { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.color-option {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--color-border);
}
.color-option.is-selected { border-color: var(--color-primary); }

.qty-selector { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 4px; width: fit-content; }
.qty-selector button { background: none; border: none; width: 38px; height: 40px; cursor: pointer; font-size: 16px; }
.qty-selector input { width: 44px; text-align: center; border: none; font-size: 14px; }

.pdp-actions { display: flex; gap: var(--space-2); margin: var(--space-4) 0; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1; min-width: 140px; }

.stock-note { font-size: 13px; color: var(--color-text-muted); margin-top: var(--space-2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 500; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 30px; background: none; border: none; cursor: pointer; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-summary { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.reviews-summary .stars { color: var(--color-secondary); font-size: 20px; }
.review-item { border-bottom: 1px solid var(--color-border); padding: var(--space-3) 0; }
.review-item__head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.review-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; margin-top: var(--space-2); }
.review-form { display: grid; gap: var(--space-2); max-width: 480px; margin-top: var(--space-4); }
.review-form input, .review-form textarea {
  padding: 12px; border: 1px solid var(--color-border); border-radius: 4px; font-family: var(--font-body);
}
.star-rating-input { display: flex; gap: 4px; font-size: 24px; cursor: pointer; }
.star-rating-input span { color: #ddd; }
.star-rating-input span.is-active { color: var(--color-secondary); }

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.cart-drawer .drawer__item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.cart-drawer .drawer__item img { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-drawer .drawer__item-info { flex: 1; }
.cart-drawer .drawer__item-info h4 { font-size: 14px; margin-bottom: 4px; }
.cart-drawer .drawer__item-meta { font-size: 12px; color: var(--color-text-muted); margin-bottom: 6px; }
.cart-drawer .remove-btn { background: none; border: none; color: var(--color-text-muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.cart-drawer__footer { position: sticky; bottom: 0; background: var(--color-surface); padding-top: var(--space-3); border-top: 1px solid var(--color-border); margin-top: var(--space-3); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: var(--space-3); font-weight: 600; }

.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-5); padding: var(--space-5) 0; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form { display: grid; gap: var(--space-3); }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 500; }
.form-row input, .form-row textarea, .form-row select {
  padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 4px; font-family: var(--font-body); font-size: 14px;
}
.form-error { color: var(--color-sale-badge); font-size: 12px; }
.order-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; padding: var(--space-4); height: fit-content; }
.order-summary__item { display: flex; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }

/* Empty states */
.empty-state { text-align: center; padding: var(--space-7) var(--space-3); color: var(--color-text-muted); }
.empty-state h3 { font-family: var(--font-heading); color: var(--color-text); margin-bottom: var(--space-2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: var(--space-3) 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-heading); font-size: 16px; font-weight: 500;
}
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; color: var(--color-text-muted); }
.faq-item.is-open .faq-item__a { max-height: 300px; padding-bottom: var(--space-3); }
.faq-item__q .plus { transition: transform var(--transition-base); }
.faq-item.is-open .plus { transform: rotate(45deg); }

/* ============================================================
   PROMO SECTION (homepage)
   ============================================================ */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 768px) {
  .promo-grid { grid-template-columns: 1fr; gap: var(--space-3); text-align: center; }
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section { display: flex; justify-content: center; padding: var(--space-6) 0; }
.video-frame {
  position: relative; width: min(340px, 80vw); aspect-ratio: 9/16;
  border-radius: 16px; overflow: hidden; background: #111; cursor: pointer;
}
.video-frame video, .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
}
.video-play-overlay .play-btn {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--color-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: var(--space-6) 0 var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.footer-grid a { display: block; font-size: 13px; opacity: 0.8; padding: 4px 0; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 220ms ease;
}
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; transition: fill 220ms ease; }

/* Real brand colors on hover/tap — icon shapes are defined in js/layout.js */
.social-icon-btn[data-platform="facebook"]:hover,
.social-icon-btn[data-platform="facebook"]:active   { background: #1877F2; border-color: #1877F2; color: #fff; }
.social-icon-btn[data-platform="instagram"]:hover,
.social-icon-btn[data-platform="instagram"]:active  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; color: #fff; }
.social-icon-btn[data-platform="pinterest"]:hover,
.social-icon-btn[data-platform="pinterest"]:active  { background: #E60023; border-color: #E60023; color: #fff; }
.social-icon-btn[data-platform="tiktok"]:hover,
.social-icon-btn[data-platform="tiktok"]:active     { background: #000000; border-color: #000000; color: #fff; }
.social-icon-btn[data-platform="youtube"]:hover,
.social-icon-btn[data-platform="youtube"]:active    { background: #FF0000; border-color: #FF0000; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: var(--space-3); text-align: center; font-size: 12px; opacity: 0.7; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.collection-banner { height: 280px; }
@media (max-width: 640px) { .collection-banner { height: 180px; } }

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 350;
  transition: transform 200ms ease;
  animation: whatsapp-pop 400ms ease;
}
.floating-whatsapp-btn.pos-right { left: auto; right: 20px; }
.floating-whatsapp-btn:hover { transform: scale(1.08); }

@keyframes whatsapp-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  .floating-whatsapp-btn { bottom: 16px; left: 16px; width: 50px; height: 50px; }
  .floating-whatsapp-btn.pos-right { left: auto; right: 16px; }
  .floating-whatsapp-btn svg { width: 26px; height: 26px; }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container { position: fixed; bottom: var(--space-3); left: 50%; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--color-accent); color: #fff; padding: 12px 20px; border-radius: 6px;
  font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toast-in 240ms ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   ANIMATION UTILITY (Admin: fade / slide-up / zoom / bounce / none)
   ============================================================ */
[data-animate] { opacity: 0; }
[data-animate].in-view { opacity: 1; }
[data-animation="fade"] [data-animate] { transition: opacity 600ms ease; }
[data-animation="slide-up"] [data-animate] { transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
[data-animation="slide-up"] [data-animate].in-view { transform: translateY(0); }
[data-animation="zoom"] [data-animate] { transform: scale(0.94); transition: opacity 500ms ease, transform 500ms ease; }
[data-animation="zoom"] [data-animate].in-view { transform: scale(1); }
[data-animation="bounce"] [data-animate] { transition: opacity 500ms ease, transform 600ms cubic-bezier(.34,1.56,.64,1); transform: translateY(20px); }
[data-animation="bounce"] [data-animate].in-view { transform: translateY(0); }
[data-animation="none"] [data-animate] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   MOBILE POLISH — touch targets, narrow-screen stacking
   ============================================================ */
@media (max-width: 480px) {
  /* Keep Add to Cart / Buy Now from squeezing side-by-side on very
     narrow phones — stack them full-width instead. */
  .pdp-actions { flex-direction: column; }
  .pdp-actions .btn { min-width: 0; width: 100%; }

  /* Bigger tap targets for icon buttons (44px is the accessibility
     minimum for comfortable thumb taps). */
  .icon-btn { padding: 10px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .wishlist-btn { width: 38px; height: 38px; }
  .hamburger { padding: 10px; }

  .product-card__title { font-size: 13px; }
  .price-current { font-size: 13px; }
  .price-compare { font-size: 12px; }

  .pdp-countdown { flex-wrap: wrap; }
  .pdp-countdown .unit { min-width: 46px; padding: 6px 8px; }
}

/* ============================================================
   RESPONSIVE — HEADER / NAV
   ============================================================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}
