/* ============================================================
   Nikkami Aulaad — app.css
   Mobile-first. 10px body margin. CSS-variable driven.
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-secondary, 'Open Sans', sans-serif);
  background: var(--color-bg, #fff);
  color: var(--color-text, #1a1a1a);
  font-size: var(--font-base, 16px);
  line-height: 1.65;
  overflow-x: hidden;
  /* 10px body margin on all sides */
  padding: 0 10px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
h1,h2,h3,h4,h5 {
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  font-weight: 700; line-height: 1.2;
}
ul, ol { list-style: none; }

/* ── Layout wrappers ────────────────────────────────────────── */
.container { max-width: 1260px; margin: 0 auto; padding: 0 10px; }
.section    { padding: 52px 0; }
.section-sm { padding: 28px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { margin-bottom: 10px; font-size: clamp(22px,4vw,32px); }
.section-header p  { color: #888; font-size: 15px; max-width: 460px; margin: 0 auto; }

/* ── Announcement bar ───────────────────────────────────────── */
.announcement-bar {
  padding: 9px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  /* extend to body edges - cancel 10px body padding */
  margin: 0 -10px;
}
.announcement-inner {
  display: inline-block;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0%   { transform: translateX(80vw); }
  100% { transform: translateX(-100%); }
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--color-header-bg, #fff);
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
  /* extend to body edges */
  margin: 0 -10px;
}
.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }
.text-logo {
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  font-size: 19px; font-weight: 800;
  color: var(--color-primary, #E30613);
  letter-spacing: .3px; white-space: nowrap;
}

/* Main nav desktop */
.main-nav {
  display: flex; align-items: center; gap: 2px; flex: 1;
}
.main-nav > a,
.main-nav > .nav-dropdown > a {
  display: block; padding: 8px 11px;
  font-size: 13px; font-weight: 600;
  color: var(--color-text, #1a1a1a);
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > .nav-dropdown:hover > a { color: var(--color-primary, #E30613); background: rgba(0,0,0,.04); }
.main-nav > a.active { color: var(--color-primary, #E30613); }
.nav-arrow { font-size: 8px; margin-left: 2px; opacity: .55; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute;
  top: calc(100% + 6px); left: 0;
  min-width: 200px; background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
  z-index: 300; padding: 6px 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 9px 18px;
  font-size: 13px; font-weight: 500; color: #333;
  transition: background .1s;
}
.dropdown-menu a:hover { background: #f9f9f9; color: var(--color-primary, #E30613); }

/* Header icons */
.header-icons { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
.header-icon-btn {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  color: var(--color-text, #1a1a1a);
  transition: background .15s;
}
.header-icon-btn:hover { background: rgba(0,0,0,.05); }
.icon-badge {
  position: absolute; top: 3px; right: 3px;
  background: var(--color-primary, #E30613);
  color: #fff; font-size: 9px; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 8px; border-radius: 6px;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--color-text, #1a1a1a);
  border-radius: 2px; transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 198;
}
.mobile-overlay.open { display: block; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  letter-spacing: .3px; border: 2px solid transparent;
  cursor: pointer; transition: all .18s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--color-btn-bg, #E30613);
  color: var(--color-btn-text, #fff);
  border-color: var(--color-btn-bg, #E30613);
}
.btn-primary:hover { filter: brightness(.92); transform: translateY(-1px); }
.btn-primary:active { transform: scale(.97); }
.btn-outline {
  background: transparent;
  border-color: var(--color-btn-bg, #E30613);
  color: var(--color-btn-bg, #E30613);
}
.btn-outline:hover {
  background: var(--color-btn-bg, #E30613);
  color: var(--color-btn-text, #fff);
}
.btn-dark { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-sm  { padding: 7px 14px; font-size: 12px; border-radius: 6px; }
.btn-full { width: 100%; }

/* ── Product Grid & Card ────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: #fff;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.product-card-link  { display: block; }
.product-card-img {
  position: relative; overflow: hidden;
  background: #f7f7f7; aspect-ratio: 3/4;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.no-img {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 48px; color: #ddd; background: #f7f7f7;
}
.card-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.card-badge {
  display: inline-block; padding: 3px 7px;
  border-radius: 4px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
.badge-sale     { background: var(--color-primary, #E30613); color: #fff; }
.badge-new      { background: #111; color: #fff; }
.badge-glow     { background: #7c3aed; color: #fff; }
.badge-handmade { background: #b45309; color: #fff; }
.card-wishlist {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.92);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 15px; backdrop-filter: blur(4px);
  z-index: 2; transition: transform .15s;
}
.card-wishlist:hover { transform: scale(1.15); }
.card-wishlist.active { background: #fee2e2; }
.product-card-info {
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 4px; flex: 1;
}
.card-artist { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.card-artist a { color: var(--color-primary, #E30613); }
.card-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.card-name a { color: inherit; }
.card-name a:hover { color: var(--color-primary, #E30613); }
.card-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.price-current  { font-size: 16px; font-weight: 700; color: var(--color-primary, #E30613); }
.price-original { font-size: 12px; color: #aaa; text-decoration: line-through; }
.price-off      { font-size: 11px; font-weight: 700; color: #16a34a; background: #f0fdf4; padding: 1px 5px; border-radius: 3px; }
.card-add-btn {
  margin-top: 10px; display: block; width: 100%;
  padding: 8px 12px;
  background: var(--color-btn-bg, #E30613);
  color: var(--color-btn-text, #fff);
  border-radius: 6px; font-size: 12px; font-weight: 700;
  text-align: center;
  font-family: var(--font-primary, 'Montserrat', sans-serif);
  transition: opacity .2s, transform .2s;
  opacity: 0; transform: translateY(4px);
}
.product-card:hover .card-add-btn { opacity: 1; transform: translateY(0); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero-section {
  position: relative; overflow: hidden; background: #111;
  min-height: 480px; display: flex; align-items: center;
  margin: 0 -10px; /* bleed to body edges */
  border-radius: 0 0 16px 16px;
}
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(0,0,0,.72) 0%,rgba(227,6,19,.22) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 560px; padding: 60px 30px; }
.hero-content h1 { color: #fff; margin-bottom: 14px; font-size: clamp(24px,5vw,46px); }
.hero-content p  { color: rgba(255,255,255,.85); font-size: 16px; margin-bottom: 26px; line-height: 1.7; }

/* ── Category tiles ─────────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; }
.category-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #f0f0f0; display: block; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-tile:hover img { transform: scale(1.07); }
.category-tile-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 12px 12px; background: linear-gradient(transparent,rgba(0,0,0,.72)); color: #fff; font-size: 13px; font-weight: 700; font-family: var(--font-primary,'Montserrat',sans-serif); }
.category-tile-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; background: linear-gradient(135deg,rgba(227,6,19,.1),rgba(245,196,0,.1)); }

/* ── Artist cards ────────────────────────────────────────────── */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); gap: 16px; }
.artist-card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 14px; padding: 24px 16px; text-align: center; transition: all .2s; display: block; color: inherit; }
.artist-card:hover { border-color: var(--color-primary,#E30613); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.artist-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--color-primary,#E30613); }
.artist-avatar-ph { width: 72px; height: 72px; border-radius: 50%; background: var(--color-primary,#E30613); color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.artist-card h3 { font-size: 15px; margin-bottom: 6px; }
.artist-card p  { font-size: 12px; color: #888; line-height: 1.5; }
.artist-link-text { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--color-primary,#E30613); }

/* ── Cart Drawer ─────────────────────────────────────────────── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 400; opacity: 0; pointer-events: none; transition: opacity .25s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: -440px; width: min(440px,100vw); height: 100vh; background: #fff; z-index: 401; display: flex; flex-direction: column; transition: right .3s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 32px rgba(0,0,0,.15); }
.cart-drawer.open { right: 0; }
.cart-drawer-head { padding: 18px 20px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-head h3 { font-size: 17px; }
.cart-close { font-size: 20px; color: #999; padding: 4px; transition: color .15s; }
.cart-close:hover { color: #333; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-item  { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.cart-item-img { width: 68px; height: 84px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f5f5f5; border: 1px solid #eee; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 3px; line-height: 1.4; }
.cart-item-info .variant { font-size: 11px; color: #999; margin-bottom: 8px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--color-primary,#E30613); }
.qty-control { display: inline-flex; align-items: center; border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; background: #f9f9f9; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .1s; }
.qty-btn:hover { background: #eee; }
.qty-val { width: 32px; text-align: center; font-size: 13px; font-weight: 600; line-height: 28px; }
.cart-remove { color: #ccc; font-size: 16px; margin-left: auto; align-self: flex-start; padding-top: 4px; }
.cart-remove:hover { color: #c00; }
.cart-footer { padding: 16px 20px; border-top: 1px solid #f0f0f0; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.cart-empty-msg { text-align: center; padding: 60px 20px; color: #aaa; }
.cart-empty-msg .ico { font-size: 48px; margin-bottom: 12px; }

/* ── Toast ───────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #1a1a1a; color: #fff; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 20px rgba(0,0,0,.25); display: flex; align-items: center; gap: 8px; white-space: nowrap; animation: toastIn .3s ease, toastOut .3s ease 2.5s forwards; }
.toast-success { background: #16a34a; }
.toast-error   { background: #dc2626; }
@keyframes toastIn  { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes toastOut { to { opacity:0; } }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { font-size: 12px; color: #aaa; margin-bottom: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: #888; transition: color .15s; }
.breadcrumb a:hover { color: var(--color-primary,#E30613); }
.breadcrumb .sep { color: #ddd; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE — Complete styles
   ═══════════════════════════════════════════════════════════ */

.pdp-wrap { padding: 16px 0 60px; }

/* Two-column grid on desktop */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Images column ───────────────────────────────────────────── */
.pdp-images { position: sticky; top: 72px; }

/* Main image */
.pdp-main-img-wrap {
  border-radius: 14px; overflow: hidden;
  background: #f7f7f7; position: relative;
  aspect-ratio: 3/4;
  cursor: zoom-in;
}
.pdp-main-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s ease;
}
.pdp-main-img-wrap:hover img { transform: scale(1.04); }

/* Zoom badge */
.pdp-zoom-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; padding: 4px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Thumbnail strip */
.pdp-thumbs {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  width: 66px; height: 80px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  background: #f5f5f5; scroll-snap-align: start;
  transition: border-color .15s;
}
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--color-primary,#E30613); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Info column ─────────────────────────────────────────────── */
.pdp-info { display: flex; flex-direction: column; gap: 0; }

.pdp-artist-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--color-primary,#E30613);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  margin-bottom: 10px;
}
.pdp-artist-link:hover { opacity: .8; }

.pdp-title {
  font-size: clamp(20px,3vw,26px);
  margin-bottom: 12px; line-height: 1.25;
}

/* Rating row */
.pdp-rating-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.pdp-stars { color: #f59e0b; font-size: 14px; letter-spacing: -1px; }
.pdp-rating-count { font-size: 13px; color: #888; }

/* Price block */
.pdp-price-block {
  display: flex; align-items: baseline;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.pdp-price-current  { font-size: 28px; font-weight: 800; color: var(--color-primary,#E30613); }
.pdp-price-original { font-size: 15px; color: #bbb; text-decoration: line-through; font-weight: 400; }
.pdp-price-off {
  font-size: 12px; font-weight: 700; color: #16a34a;
  background: #f0fdf4; padding: 3px 8px; border-radius: 4px;
}

/* Availability tag */
.pdp-availability {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; margin-bottom: 20px;
}
.pdp-availability.in-stock   { color: #16a34a; }
.pdp-availability.low-stock  { color: #d97706; }
.pdp-availability.out-stock  { color: #dc2626; }

/* Divider */
.pdp-divider { border: none; border-top: 1px solid #f0f0f0; margin: 18px 0; }

/* Short description */
.pdp-short-desc { font-size: 14px; color: #666; line-height: 1.75; margin-bottom: 18px; }

/* ── Attribute selectors ─────────────────────────────────────── */
.pdp-attr-group { margin-bottom: 18px; }
.pdp-attr-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: #555; margin-bottom: 10px;
}
.pdp-attr-label .selected-val {
  font-weight: 500; color: var(--color-primary,#E30613);
  text-transform: none; letter-spacing: 0; font-size: 13px;
}
.pdp-attr-options { display: flex; flex-wrap: wrap; gap: 8px; }

/* Button style (Size, Fit) */
.pdp-attr-btn {
  min-width: 44px; padding: 8px 14px;
  border: 1.5px solid #ddd; border-radius: 7px;
  font-size: 13px; font-weight: 600;
  background: #fff; color: #333;
  transition: all .15s; text-align: center;
}
.pdp-attr-btn:hover:not(.oos) { border-color: var(--color-primary,#E30613); color: var(--color-primary,#E30613); }
.pdp-attr-btn.selected { background: var(--color-primary,#E30613); color: #fff; border-color: var(--color-primary,#E30613); }
.pdp-attr-btn.oos { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

/* Color swatch style */
.pdp-color-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid transparent; cursor: pointer;
  position: relative; transition: transform .15s;
  outline-offset: 3px;
}
.pdp-color-btn:hover { transform: scale(1.12); }
.pdp-color-btn.selected { outline: 2.5px solid var(--color-primary,#E30613); }
.pdp-color-btn .color-name {
  position: absolute; bottom: calc(100% + 6px);
  left: 50%; transform: translateX(-50%);
  background: #333; color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.pdp-color-btn:hover .color-name { opacity: 1; }

/* ── Quantity selector ───────────────────────────────────────── */
.pdp-qty-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.pdp-qty-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #555; }
.pdp-qty-control {
  display: inline-flex; align-items: center;
  border: 1.5px solid #ddd; border-radius: 8px; overflow: hidden;
}
.pdp-qty-control button {
  width: 38px; height: 38px; background: #f9f9f9;
  font-size: 18px; color: #333; transition: background .1s;
  display: flex; align-items: center; justify-content: center;
}
.pdp-qty-control button:hover { background: #eee; }
.pdp-qty-control span {
  width: 42px; text-align: center;
  font-size: 15px; font-weight: 700; line-height: 38px;
}

/* ── Add to cart area ────────────────────────────────────────── */
.pdp-actions { display: flex; gap: 10px; margin-bottom: 18px; }
.pdp-add-btn {
  flex: 1; padding: 15px 20px;
  font-size: 15px; font-weight: 700; letter-spacing: .3px;
  border-radius: 10px; transition: all .2s;
  font-family: var(--font-primary,'Montserrat',sans-serif);
}
.pdp-wishlist-btn {
  width: 52px; height: 52px;
  border: 1.5px solid #e0e0e0; border-radius: 10px;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: all .15s; background: #fff;
  flex-shrink: 0; align-self: center; margin-top: 0;
}
.pdp-wishlist-btn:hover { border-color: #e00; background: #fee2e2; }
.pdp-wishlist-btn.active { background: #fee2e2; border-color: #fca5a5; }

/* Sticky add to cart on mobile */
.pdp-sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #eee;
  padding: 12px 16px; z-index: 150;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  gap: 10px; align-items: center;
}
.pdp-sticky-cta .sticky-price { font-size: 17px; font-weight: 800; color: var(--color-primary,#E30613); white-space: nowrap; }
.pdp-sticky-cta .btn { flex: 1; padding: 13px; font-size: 14px; }

/* ── Trust badges ────────────────────────────────────────────── */
.pdp-trust {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 0; margin: 4px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.pdp-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #666;
}
.pdp-trust-item .icon { font-size: 14px; }

/* ── Share buttons ───────────────────────────────────────────── */
.pdp-share { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pdp-share-label { font-size: 12px; color: #aaa; }
.pdp-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  border: 1px solid #e5e5e5; background: #fff; color: #555;
  transition: all .15s;
}
.pdp-share-btn:hover { background: #f5f5f5; border-color: #ccc; }
.pdp-share-btn.wa { color: #16a34a; border-color: #bbf7d0; background: #f0fdf4; }
.pdp-share-btn.fb { color: #1877f2; border-color: #bfdbfe; background: #eff6ff; }

/* ── Product tabs ────────────────────────────────────────────── */
.pdp-tabs { margin-top: 28px; }
.pdp-tab-bar {
  display: flex; border-bottom: 2px solid #f0f0f0;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory;
  gap: 0;
}
.pdp-tab-bar::-webkit-scrollbar { display: none; }
.pdp-tab-btn {
  padding: 11px 16px; font-size: 13px; font-weight: 600;
  color: #888; background: none; border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px; white-space: nowrap;
  transition: all .15s; flex-shrink: 0;
}
.pdp-tab-btn:hover { color: #555; }
.pdp-tab-btn.active { color: var(--color-primary,#E30613); border-bottom-color: var(--color-primary,#E30613); }
.pdp-tab-content { display: none; padding: 20px 0; font-size: 14px; line-height: 1.8; color: #555; }
.pdp-tab-content.active { display: block; }
.pdp-tab-content p { margin-bottom: 12px; }
.pdp-tab-content ul { padding-left: 18px; list-style: disc; }
.pdp-tab-content li { margin-bottom: 6px; }

/* Size guide table */
.pdp-size-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.pdp-size-table th { background: #f9f9f9; font-weight: 700; padding: 10px 12px; border: 1px solid #eee; text-align: center; }
.pdp-size-table td { padding: 9px 12px; border: 1px solid #eee; text-align: center; }
.pdp-size-table tr:nth-child(even) td { background: #fafafa; }

/* ── Reviews ─────────────────────────────────────────────────── */
.pdp-rating-summary {
  display: flex; align-items: center;
  gap: 24px; padding: 16px 0;
  border-bottom: 1px solid #f0f0f0; margin-bottom: 16px;
  flex-wrap: wrap;
}
.pdp-big-rating {
  text-align: center; flex-shrink: 0;
}
.pdp-big-rating .num { font-size: 44px; font-weight: 800; line-height: 1; }
.pdp-big-rating .stars { color: #f59e0b; font-size: 16px; margin: 4px 0; }
.pdp-big-rating .count { font-size: 11px; color: #aaa; }
.pdp-rating-bars { flex: 1; min-width: 160px; }
.pdp-rating-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12px; color: #888; }
.pdp-rating-bar-row .bar-track { flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.pdp-rating-bar-row .bar-fill  { height: 100%; background: #f59e0b; border-radius: 3px; }
.pdp-review-item { padding: 16px 0; border-bottom: 1px solid #f5f5f5; }
.pdp-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pdp-review-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary,#E30613); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.pdp-review-stars { color: #f59e0b; font-size: 13px; margin-left: auto; }
.pdp-review-reply { background: #f9f9f9; border-radius: 8px; padding: 10px 14px; margin-top: 10px; font-size: 12px; color: #666; }

/* ── Related products ────────────────────────────────────────── */
.pdp-related { margin-top: 56px; }
.pdp-related h2 { font-size: 22px; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════
   SHOP PAGE
   ═══════════════════════════════════════════════════════════ */

.shop-wrap { padding: 20px 0 60px; }

/* Filter toggle button (mobile only, hidden on desktop) */
.filter-toggle-btn {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1.5px solid #e5e5e5; background: #fff;
  color: #333; cursor: pointer;
  margin-bottom: 14px; width: 100%;
  justify-content: center;
  transition: all .15s;
}
.filter-toggle-btn:hover { border-color: var(--color-primary,#E30613); color: var(--color-primary,#E30613); }
.filter-toggle-btn .filter-count {
  background: var(--color-primary,#E30613); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }

/* Sidebar */
.shop-sidebar {
  background: #fff; border: 1px solid rgba(0,0,0,.07);
  border-radius: 12px; padding: 18px; position: sticky; top: 72px;
}
.shop-sidebar h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.filter-section { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #888; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: #444; cursor: pointer; transition: color .1s; }
.filter-option:hover { color: var(--color-primary,#E30613); }
.filter-option input { width: 15px; height: 15px; accent-color: var(--color-primary,#E30613); cursor: pointer; }
.filter-option .count { color: #bbb; font-size: 11px; margin-left: auto; }

/* Shop toolbar */
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.shop-result-count { font-size: 14px; color: #888; }
.shop-sort select { padding: 8px 12px; border: 1px solid #e5e5e5; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fff; cursor: pointer; }

/* ── Order summary & Cart page ───────────────────────────────── */
.cart-page-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.cart-img { width: 80px; height: 98px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #f5f5f5; border: 1px solid #eee; }
.order-summary-box { background: #f9f9f9; border-radius: 12px; padding: 22px; border: 1px solid #eee; position: sticky; top: 72px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; }
.summary-divider { border: none; border-top: 1px solid #e5e5e5; margin: 10px 0; }
.summary-total { font-size: 18px; font-weight: 700; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--color-footer-bg,#1a1a1a); color: var(--color-footer-text,#fff); margin-top: 72px; margin: 72px -10px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 30px 36px; max-width: 1260px; margin: 0 auto; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .6; margin-bottom: 14px; }
.footer-col p  { font-size: 13px; line-height: 1.8; opacity: .6; margin-bottom: 14px; }
.footer-col a  { display: block; font-size: 13px; opacity: .65; margin-bottom: 9px; transition: opacity .15s; }
.footer-col a:hover { opacity: 1; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 15px; opacity: 1 !important; margin: 0; transition: background .15s; }
.footer-social a:hover { background: var(--color-primary,#E30613); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 30px; max-width: 1260px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; opacity: .5; flex-wrap: wrap; gap: 8px; }

/* ── Misc utilities ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.empty-state { text-align: center; padding: 64px 20px; color: #aaa; }
.empty-state .ico { font-size: 48px; margin-bottom: 14px; }
.tag-pill { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: #f3f4f6; color: #555; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile first
   ═══════════════════════════════════════════════════════════ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .product-grid  { grid-template-columns: repeat(3,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .pdp-grid { gap: 32px; }
}

/* Mobile: 768px */
@media (max-width: 768px) {

  /* Body padding stays 10px but header/footer bleed correctly */
  .site-header { margin: 0 -10px; }
  .announcement-bar { margin: 0 -10px; }
  .hero-section { margin: 0 -10px; border-radius: 0 0 12px 12px; }
  .site-footer  { margin: 60px -10px 0; }

  /* Navigation */
  .main-nav {
    display: none; position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 12px 20px;
    flex-direction: column; gap: 0;
    z-index: 199; overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav > a,
  .main-nav > .nav-dropdown > a {
    padding: 13px 0; border-bottom: 1px solid #f5f5f5;
    border-radius: 0; font-size: 15px;
  }
  .dropdown-menu {
    display: block; position: static;
    box-shadow: none; border: none;
    background: #f9f9f9; border-radius: 8px;
    margin: 4px 0 8px; padding: 4px 0;
  }
  .hamburger { display: flex; }

  /* Product grid */
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .card-add-btn { opacity: 1; transform: none; font-size: 11px; padding: 7px 8px; }

  /* Hero */
  .hero-section { min-height: 300px; }
  .hero-content { padding: 40px 20px; }

  /* Product Detail Page — stack vertically */
  .pdp-grid { grid-template-columns: 1fr; gap: 0; }
  .pdp-images { position: static; }

  /* On mobile: images first, full width */
  .pdp-main-img-wrap { border-radius: 12px; margin: 0 -10px; border-radius: 0; }
  .pdp-thumbs { margin-top: 8px; padding: 0; }
  .pdp-info { padding-top: 20px; }

  /* Sticky CTA bar on mobile */
  .pdp-sticky-cta { display: flex; }
  /* Hide the normal add-to-cart on mobile (replaced by sticky bar) */
  .pdp-actions-desktop { display: none; }

  /* Tabs scroll on mobile */
  .pdp-tab-bar { gap: 0; }

  /* Shop layout: sidebar hidden by default on mobile */
  .shop-layout { grid-template-columns: 1fr; }
  .filter-toggle-btn { display: flex; }
  .shop-sidebar {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 300; border-radius: 0;
    overflow-y: auto; padding-top: 60px;
  }
  .shop-sidebar.open { display: block; }
  .shop-sidebar-close {
    display: flex; position: fixed;
    top: 0; left: 0; right: 0; height: 56px;
    background: #fff; align-items: center;
    justify-content: space-between;
    padding: 0 20px; border-bottom: 1px solid #eee;
    font-size: 15px; font-weight: 700; z-index: 301;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px 20px 24px; }

  /* Cart */
  .cart-page-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
  body { padding: 0 8px; }
  .product-grid { gap: 8px; }
  .product-card-info { padding: 9px 10px 12px; }
  .price-current { font-size: 14px; }
  .pdp-price-current { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 22px; }
  .pdp-attr-btn { padding: 7px 10px; font-size: 12px; }
}

/* Desktop: show sidebar, hide filter toggle */
@media (min-width: 769px) {
  .filter-toggle-btn { display: none; }
  .shop-sidebar { display: block !important; position: sticky; }
  .shop-sidebar-close { display: none !important; }
  .pdp-actions-desktop { display: flex !important; }
  .pdp-sticky-cta { display: none !important; }
}
