/* ============================================================
   SHANIEL BESPOKE TAILOR — ULTRA HDR SHOP CSS v3.0
   Luxury Product / Cart / Checkout Experience
   ============================================================ */

/* ── SHOP PAGE ───────────────────────────────────────────── */
.shop-page {
  padding: 52px 0 104px;
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--bg-color) 100%);
}
.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.shop-sidebar { position: sticky; top: 92px; align-self: start; }
.sidebar-widget {
  margin-bottom: 22px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.sidebar-widget:hover { box-shadow: var(--shadow-md), 0 0 0 1px rgba(201,169,110,0.1); }
.sidebar-title {
  font-family: var(--font-sans);
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-dark);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-100);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-title::before {
  content: '';
  display: inline-block; width: 3px; height: 14px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-700));
  border-radius: 2px; flex-shrink: 0;
}
.filter-list li { margin-bottom: 10px; }
.filter-list label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.84rem; color: var(--text-light);
  transition: var(--transition); padding: 4px 0;
}
.filter-list label:hover { color: var(--primary); }
.filter-list input[type="radio"] {
  accent-color: var(--primary); width: 15px; height: 15px;
  flex-shrink: 0; cursor: pointer;
}

/* ── TOOLBAR ─────────────────────────────────────────────── */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding: 14px 22px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); flex-wrap: wrap; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.results-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* ── PRODUCTS GRID ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── PRODUCT CARD ────────────────────────────────────────── */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-sm);
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.product-card:hover {
  box-shadow: 0 20px 56px rgba(0,0,0,0.12), 0 8px 20px rgba(201,169,110,0.12), 0 0 0 1px rgba(201,169,110,0.2);
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(201,169,110,0.25);
}
.product-card:hover::after { opacity: 1; }

.product-img {
  overflow: hidden;
  height: 380px;
  background: linear-gradient(145deg, #f8f5f0 0%, #ede8e0 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.product-img img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img img {
  transform: scale(1.07);
  filter: brightness(1.04) contrast(1.03) saturate(1.06);
}

.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
  color: #fff;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(201,169,110,0.45);
}
.product-badge[data-badge="Premium"] {
  background: linear-gradient(135deg, #1a2e52, #0d1a2e);
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--gold-300);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.product-badge[data-badge="Best Seller"],
.product-badge[data-badge="Signature"] {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-800));
}
.product-badge[data-badge="Luxury"] {
  background: linear-gradient(135deg, #1a0a05, #2a1005);
  color: var(--gold-300);
  border: 1px solid rgba(201,169,110,0.3);
}

/* Quick view overlay */
.product-img::after {
  content: '⚡ Quick View';
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(0,0,0,0.8);
  color: rgba(255,255,255,0.9);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px; border-radius: var(--radius-full);
  opacity: 0; transition: all 0.35s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,169,110,0.3);
}
.product-card:hover .product-img::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-info { padding: 22px 24px 26px; position: relative; z-index: 1; }
.product-info h3 {
  font-size: 1.06rem; margin-bottom: 10px;
  font-weight: 500; color: var(--text-dark);
  font-family: var(--font-serif); line-height: 1.35;
}
.product-info h3 a { color: inherit; text-decoration: none; }
.product-info h3 a:hover { color: var(--primary); }
.product-price { margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; }
.price-from { font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; }
.price-current {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  color: var(--gold-700); letter-spacing: -0.01em;
}

.product-actions { display: flex; gap: 10px; }
.product-actions .btn-primary,
.product-actions .btn-outline {
  flex: 1; text-align: center; padding: 11px 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  border-radius: var(--radius);
}

/* Category section headings */
.cat-section-heading {
  grid-column: 1 / -1;
  padding: 14px 0 10px; margin-top: 36px;
  font-family: var(--font-serif); font-size: 1.65rem; color: var(--text-dark);
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cat-section-heading::before {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: var(--radius-full);
}
.cat-section-heading span {
  font-family: var(--font-sans); font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-700); background: var(--gold-100);
  padding: 6px 16px; border-radius: var(--radius-full);
  border: 1px solid rgba(201,169,110,0.25);
}

/* ── PRODUCT DETAIL PAGE ─────────────────────────────────── */
.product-detail {
  padding: 0 0 104px;
  background: linear-gradient(180deg, var(--cream-50) 0%, var(--bg-color) 100%);
}
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start; padding-top: 52px;
}

/* Gallery */
.product-gallery { position: sticky; top: 92px; }
.gallery-main {
  overflow: hidden;
  background: linear-gradient(145deg, #f8f5f0 0%, #ede8e0 100%);
  position: relative; border-radius: var(--radius-2xl);
  height: 580px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.gallery-main::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, transparent 50%);
  z-index: 1; pointer-events: none; border-radius: inherit;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: zoom-in; display: block;
}
.gallery-main:hover img { transform: scale(1.04); filter: brightness(1.03) contrast(1.02); }

.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.gallery-thumb {
  aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(145deg, #f8f5f0, #ede8e0);
  cursor: pointer; border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.gallery-thumb.active {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201,169,110,0.2), var(--shadow-sm);
}
.gallery-thumb:hover { transform: scale(1.06); box-shadow: var(--shadow-md); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.gallery-zoom {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.gallery-zoom:hover {
  background: var(--gold-500); color: #fff;
  transform: scale(1.08); box-shadow: var(--shadow-gold);
}

/* Product Info Panel */
.product-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; font-weight: 400; line-height: 1.2; }
.product-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.product-rating .stars { font-size: 0.95rem; }
.product-rating span { font-size: 0.78rem; color: var(--text-muted); }
.product-price-detail {
  font-family: var(--font-serif); font-size: 2.3rem;
  color: var(--gold-700); margin-bottom: 6px; font-weight: 400;
}
.product-price-note { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 22px; }
.product-divider { border: none; border-top: 1px solid var(--border-light); margin: 18px 0; }

/* Option Groups */
.option-group { margin-bottom: 20px; }
.option-label {
  display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dark); margin-bottom: 10px;
}
.option-label span { color: var(--primary); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; font-size: 0.84rem; }

/* Fabric Swatches */
.fabric-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.fabric-swatch {
  width: 44px; height: 44px; cursor: pointer;
  border: 2px solid transparent;
  background-size: cover; background-position: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.fabric-swatch:hover, .fabric-swatch.active { border-color: var(--gold-500); transform: scale(1.12); box-shadow: 0 0 0 4px rgba(201,169,110,0.2); }
.fabric-swatch-name {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #0f0c08, #1a1208); color: #fff;
  font-size: 0.6rem; padding: 4px 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  border-radius: var(--radius); z-index: 10;
  border: 1px solid rgba(201,169,110,0.2);
}
.fabric-swatch:hover .fabric-swatch-name { opacity: 1; }

/* Style Buttons */
.style-options { display: flex; flex-wrap: wrap; gap: 8px; }
.style-btn {
  padding: 9px 16px; border: 1.5px solid var(--border);
  background: var(--bg-white); font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); color: var(--text-muted);
  border-radius: var(--radius); font-family: var(--font-sans);
}
.style-btn:hover { border-color: var(--gold-500); color: var(--gold-700); background: var(--gold-100); }
.style-btn.active { border-color: var(--gold-500); color: var(--gold-700); background: var(--gold-100); font-weight: 700; box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }

/* Measurement Toggle */
.measurement-toggle { display: flex; margin-bottom: 14px; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.measurement-toggle button { padding: 10px 18px; border: none; background: none; cursor: pointer; font-size: 0.75rem; font-weight: 700; transition: var(--transition); font-family: var(--font-sans); color: var(--text-muted); flex: 1; }
.measurement-toggle button.active { background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); color: #fff; }
.measurements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.measurement-field label { font-size: 0.63rem; }
.measurement-field input { padding: 9px 10px; font-size: 0.84rem; }

/* Add to Cart Row */
.add-to-cart-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 42px; height: 48px; background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--text-dark); transition: var(--transition); font-family: var(--font-sans); }
.qty-btn:hover { color: var(--gold-600); background: var(--gold-100); }
.qty-input { width: 52px; height: 48px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); font-size: 1rem; outline: none; font-family: var(--font-sans); }
.add-to-cart-row .btn-primary { flex: 1; text-align: center; padding: 15px; font-size: 0.78rem; }
.wishlist-btn { width: 48px; height: 48px; border: 1.5px solid var(--border); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); border-radius: var(--radius); font-size: 1.1rem; }
.wishlist-btn:hover { border-color: var(--gold-500); color: var(--gold-500); background: var(--gold-100); box-shadow: 0 0 0 4px rgba(201,169,110,0.1); }
.buy-now-btn { width: 100%; margin-top: 10px; text-align: center; padding: 15px; display: block; font-size: 0.78rem; }

/* Trust Badges */
.trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.trust-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--gold-100);
  border: 1px solid rgba(201,169,110,0.2);
  font-size: 0.72rem; color: var(--text-body);
  border-radius: var(--radius-lg);
}
.trust-badge-icon { font-size: 1.1rem; flex-shrink: 0; }

/* Product Meta */
.product-meta { margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); padding-top: 16px; border-top: 1px solid var(--border-light); }
.product-meta span { color: var(--text-dark); font-weight: 600; }
.product-meta p { margin-bottom: 5px; }
.product-share { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.74rem; color: var(--text-muted); flex-wrap: wrap; }
.share-btn { padding: 5px 12px; border: 1px solid var(--border); font-size: 0.68rem; color: var(--text-muted); transition: var(--transition); border-radius: var(--radius); cursor: pointer; background: none; font-family: var(--font-sans); }
.share-btn:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* Product Tabs */
.product-tabs { margin-top: 56px; border-top: 1px solid var(--border-light); }
.product-tabs .tab-content { padding: 30px 0; max-width: 880px; }

/* Related Products */
.related-products { padding: 64px 0; background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%); }
.related-products .products-grid { grid-template-columns: repeat(4, 1fr); }

/* ── CART PAGE ───────────────────────────────────────────── */
.cart-page { padding: 52px 0 88px; background: linear-gradient(180deg, var(--cream-50), var(--bg-color)); }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cart-table-wrap {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  font-family: var(--font-sans); font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  padding: 14px 18px; border-bottom: 1.5px solid var(--border); text-align: left;
  background: linear-gradient(135deg, var(--gold-100), #fdfcfa);
}
.cart-table td { padding: 18px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-item-img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius-lg); }
.cart-item-name { font-family: var(--font-serif); font-size: 1rem; margin-bottom: 4px; }
.cart-item-meta { font-size: 0.74rem; color: var(--text-muted); }
.cart-item-remove { font-size: 0.7rem; color: var(--text-muted); cursor: pointer; margin-top: 8px; display: inline-block; transition: var(--transition); }
.cart-item-remove:hover { color: #dc2626; }
.cart-summary-box {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px; position: sticky; top: 92px;
  box-shadow: var(--shadow-md);
}
.cart-summary-title { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.88rem; align-items: center; }
.cart-summary-row.total { border-top: 2px solid var(--border); padding-top: 14px; font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.cart-summary-row.total span:last-child { color: var(--gold-700); font-family: var(--font-serif); font-size: 1.4rem; }
.coupon-row { display: flex; margin: 14px 0; }
.coupon-row input { flex: 1; padding: 10px 12px; border: 1.5px solid var(--border); border-right: none; font-size: 0.84rem; font-family: var(--font-body); border-radius: var(--radius) 0 0 var(--radius); outline: none; }
.coupon-row input:focus { border-color: var(--gold-500); }
.coupon-row button { padding: 10px 16px; background: linear-gradient(135deg, #0f0c08, #1a1208); color: var(--gold-400); border: none; font-size: 0.7rem; font-weight: 700; cursor: pointer; font-family: var(--font-sans); letter-spacing: 0.08em; border-radius: 0 var(--radius) var(--radius) 0; transition: var(--transition); }
.coupon-row button:hover { background: linear-gradient(135deg, var(--gold-600), var(--gold-800)); color: #fff; }
.checkout-btn { width: 100%; margin-top: 14px; padding: 16px; font-size: 0.78rem; display: block; }
.trust-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.trust-list li { font-size: 0.75rem; color: var(--text-muted); padding: 4px 0; display: flex; align-items: center; gap: 7px; }
.trust-list li::before { content: '✓'; color: var(--gold-600); font-weight: 800; flex-shrink: 0; }
.empty-cart { text-align: center; padding: 64px 24px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-xl); }

/* ── CHECKOUT PAGE ───────────────────────────────────────── */
.checkout-page { padding: 52px 0 88px; background: linear-gradient(180deg, var(--cream-50), var(--bg-color)); }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.checkout-box {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.checkout-box-title {
  font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px;
}
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method {
  border: 1.5px solid var(--border); padding: 14px 18px;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: flex-start; gap: 13px;
  border-radius: var(--radius-lg); background: var(--bg-white);
}
.payment-method:hover { border-color: var(--gold-400); background: var(--gold-100); }
.payment-method.selected { border-color: var(--gold-500); background: var(--gold-100); box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }
.payment-method input[type="radio"] { accent-color: var(--gold-500); margin-top: 2px; flex-shrink: 0; }
.payment-method-name { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.payment-method-desc { font-size: 0.73rem; color: var(--text-muted); }
.order-summary-sidebar { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; position: sticky; top: 92px; box-shadow: var(--shadow-md); }
.order-item-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); align-items: center; }
.order-item-img { width: 58px; height: 72px; object-fit: cover; border-radius: var(--radius-lg); background: var(--cream-100); flex-shrink: 0; }
.order-item-name { font-size: 0.85rem; font-weight: 600; }
.order-item-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; }
.order-item-price { font-family: var(--font-serif); color: var(--gold-700); margin-left: auto; flex-shrink: 0; font-size: 1.05rem; font-weight: 600; }
.secure-badge { background: var(--gold-100); border: 1px solid rgba(201,169,110,0.2); padding: 12px; margin-top: 14px; font-size: 0.74rem; color: var(--text-muted); border-radius: var(--radius-lg); text-align: center; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .product-img { height: 300px; }
}
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .product-img { height: 280px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .related-products .products-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-badges { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-img { height: 260px; }
  .related-products .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-img { height: 220px; }
  .product-info { padding: 12px 14px 16px; }
  .product-info h3 { font-size: 0.92rem; }
  .product-actions { gap: 8px; }
  .product-actions .btn-primary,
  .product-actions .btn-outline { padding: 9px 8px; font-size: 0.68rem; }
  .gallery-main { height: auto; aspect-ratio: 1; }
  .measurements-grid { grid-template-columns: repeat(2, 1fr); }
  .add-to-cart-row { flex-wrap: wrap; }
  .add-to-cart-row .btn-primary { flex: 1; min-width: 100px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-page { padding: 20px 0 56px; }
  .product-img::after { display: none; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-img { height: 320px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
