/*
Theme Name: Jewly Luxury
Theme URI: https://example.com
Description: Luxury e-commerce theme — Open Design system.
Version: 5.8
Requires at least: 6.0
Text Domain: luxury-jewelry
*/

/* ============================================================
   TOKENS — map to brand (Open Design 6-var system)
   ============================================================ */
:root {
  --bg:        #fafaf8;     /* page background */
  --bg-alt:    #f5f2ed;     /* alternate section background */
  --surface:   #ffffff;
  --fg:        #1a1a1a;     /* primary text */
  --muted:     #8a8a8a;     /* secondary text */
  --border:    #e5e0da;     /* hairlines */
  --accent:    #b89b7a;     /* gold — used ≤2× per screen */
  --accent-soft: rgba(184,155,122,0.14);
  --fg-soft:    rgba(26,26,26,0.06);

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Montserrat', -apple-system, system-ui, sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --fs-h1:   clamp(44px, 6vw, 76px);
  --fs-h2:   clamp(32px, 4vw, 48px);
  --fs-h3:   22px;
  --fs-lead: 19px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs:  8px;
  --gap-sm:  12px;
  --gap-md:  20px;
  --gap-lg:  32px;
  --gap-xl:  56px;
  --gap-2xl: 96px;
  --container: 1120px;
  --gutter: 32px;

  --radius:    10px;
  --radius-lg: 16px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ============================================================
   LAYOUT PRIMITIVES (from OD seed)
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(48px, 8vw, var(--gap-2xl));
}
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   TYPE
   ============================================================ */
.h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
.h3, h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
.lead   { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-md);
}
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   TOP NAV — semi-transparent
   ============================================================ */
.topnav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.topnav .logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topnav nav { display: flex; gap: var(--gap-lg); }
.topnav nav a { font-size: 14px; color: var(--muted); }
.topnav nav a:hover { color: var(--fg); }

/* nav-list from WP menu */
.desktop-nav .nav-list { display: flex; gap: var(--gap-lg); list-style: none; margin: 0; padding: 0; }
.desktop-nav .nav-list > li { position: relative; }
.desktop-nav .nav-list > li > a { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; padding: 24px 0; display: block; }
.desktop-nav .nav-list > li > a:hover { color: var(--fg); }
.desktop-nav .nav-list .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 0; list-style: none; z-index: 20; }
.desktop-nav .nav-list > li:hover > .sub-menu { display: block; }
.desktop-nav .nav-list .sub-menu li a { display: block; padding: 8px 20px; font-size: 13px; color: var(--fg); }
.desktop-nav .nav-list .sub-menu li a:hover { background: var(--fg-soft); color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.search-overlay { position: fixed; inset: 0; background: rgba(250,250,248,0.97); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.2s ease; }
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-content { width: 90%; max-width: 560px; position: relative; }
.search-close { position: absolute; top: -48px; right: 0; font-size: 22px; color: var(--muted); background: none; border: 0; cursor: pointer; }

.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 10001; }
.mobile-overlay.active { display: block; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; background: var(--bg); z-index: 10002; transition: right 0.3s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 70px 6vw 100px; }
.mobile-menu.active { right: 0; }
.mobile-menu-close { position: absolute; top: 18px; right: 18px; font-size: 20px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.mobile-nav-list { list-style: none !important; padding: 0 !important; margin: 0 !important; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 20px !important; padding-bottom: 20px !important; }
.mobile-nav-list > li { border-bottom: 1px solid var(--border); padding: 0; }
.mobile-nav-list > li:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 10px; }
.mobile-nav-list > li:nth-child(even) { padding-left: 10px; }
.mobile-nav-list > li > a { display: block; padding: 13px 0; font-size: 13px; color: var(--fg); font-weight: 400; text-transform: none; letter-spacing: 0.01em; white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; }
.mobile-nav-list .sub-menu { display: none; list-style: none; padding: 0 0 12px 16px; margin: 0; }
.mobile-nav-list .sub-menu.open { display: block; }
.mobile-nav-list .sub-menu li a { display: block; padding: 6px 0; font-size: 13px; color: var(--muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 85%, black); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent); }
.btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
.btn-arrow:hover::after { transform: translateX(2px); }

/* ============================================================
   CARD / SURFACE
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-flat { background: transparent; border: 0; padding: 0; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--fg); padding: 24px 0 0; border-radius: 0; }

/* ============================================================
   FEATURE CELL (icon + h3 + p)
   ============================================================ */
.feature .feature-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: var(--gap-md);
}
.feature .feature-mark svg { width: 18px; height: 18px; }
.feature h3 { font-weight: 500; font-size: 14px; margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.feature p  { margin: 0; color: var(--muted); font-size: 13px; }

/* ============================================================
   PH IMG placeholder
   ============================================================ */
.ph-img {
  background:
    linear-gradient(135deg, var(--accent-soft), var(--fg-soft)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.ph-img.square    { aspect-ratio: 1 / 1; }
.ph-img.portrait  { aspect-ratio: 3 / 4; }
.ph-img.wide      { aspect-ratio: 16 / 9; }

/* ============================================================
   PILL / BADGE / TAG
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
}

/* ============================================================
   RULE / DIVIDER
   ============================================================ */
.rule  { border: 0; border-top: 1px solid var(--border); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--fg); margin: 0; }

/* ============================================================
   FOOTER — newsletter, contact, main, bottom
   ============================================================ */
.site-footer { background: var(--bg); }

.footer-newsletter {
  padding: 56px 48px;
  background: var(--fg);
  color: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  flex-wrap: wrap;
}
.footer-newsletter h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 300; margin: 0 0 6px;
}
.footer-newsletter p { margin: 0; opacity: 0.6; font-size: 13px; }

.newsletter-form { display: flex; flex: 1; max-width: 440px; }
.newsletter-form input[type="email"] {
  flex: 1; padding: 14px 18px;
  background: transparent; border: 1px solid rgba(255,255,255,0.3); border-right: 0;
  color: var(--surface); font-size: 14px; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 14px 24px;
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: var(--surface);
  font-size: 12px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: background 0.2s ease;
}
.newsletter-form button:hover { background: rgba(255,255,255,0.1); }

.pagefoot { padding-block: var(--gap-xl); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.pagefoot .row-between { flex-wrap: wrap; gap: var(--gap-md); }

.footer-contact { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.footer-contact-item { display: flex; align-items: center; gap: 20px; padding: 32px; border-right: 1px solid var(--border); }
.footer-contact-item:last-child { border-right: none; }
.footer-contact-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--accent); transition: all 0.3s ease; }
.footer-contact-icon img { width: 100%; height: 100%; object-fit: cover; transition: all 0.3s ease; }
.footer-contact-item:hover .footer-contact-icon {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: visible;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.footer-contact-item:hover .footer-contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-contact-text h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 2px; }
.footer-contact-text p { margin: 0; font-size: 12px; color: var(--muted); }

.footer-main { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); padding: 56px 48px; max-width: var(--container); margin-inline: auto; }
.footer-col h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col li a { font-size: 13px; color: var(--muted); }
.footer-col li a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 16px; margin-top: 16px; }
.footer-social a { font-size: 16px; color: var(--muted); }
.footer-social a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 48px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  max-width: var(--container); margin-inline: auto;
}
.footer-bottom p { margin: 0; font-size: 12px; color: var(--muted); }
.footer-legal { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.footer-legal li a { font-size: 12px; color: var(--muted); }
.footer-legal li a:hover { color: var(--fg); }

/* mobile bottom nav */
.mobile-bottom-nav {
  display: none !important;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0; font-size: 10px; color: var(--muted);
}
.bottom-nav-item i { font-size: 16px; }
.bottom-nav-count { font-size: 9px; background: var(--accent); color: #fff; padding: 1px 5px; border-radius: 999px; }
/* ============================================================
   HERO v2 — full-screen video + centered glass panel
   ============================================================ */
.hero-v2 {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: hidden;
  background: #1a1a1a;
  padding-block: 0;
}
.hero-v2-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-v2-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.5) 100%);
}
.hero-center-v2 {
  position: relative; z-index: 2;
  text-align: center;
  margin-top: calc(72px + 0px);
  padding: 36px 48px 32px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.hero-center-v2 h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.hero-center-v2 .lead { max-width: 48ch; margin-inline: auto; margin-bottom: 24px; }
.hero-center-v2 .hero-cta {
  display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; justify-content: center;
}
.hero-center-v2 .hero-cta .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   CATEGORY GRID — masonry
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 320px;
  gap: 3px;
  padding: 0 var(--gutter);
}
.cat-card-v2 {
  position: relative; overflow: hidden;
}
.cat-card-v2--lg { grid-column: span 2; grid-row: span 2; }
.cat-card-v2--md { grid-column: span 1; grid-row: span 2; }
.cat-card-v2--sm { grid-column: span 2; grid-row: span 1; }
.cat-card-v2 img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.cat-card-v2:hover img { transform: scale(1.04); }
.cat-card-v2::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 50%, transparent 80%);
  pointer-events: none; z-index: 1;
}
.cat-card-v2-body {
  position: absolute; bottom: 24px; left: 24px; z-index: 2;
}
.cat-card-v2-body h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 300;
  color: #fff; margin: 4px 0 10px;
}
.cat-card-v2--sm .cat-card-v2-body {
  display: flex; align-items: baseline; gap: 16px; bottom: 18px;
}
.cat-card-v2--sm .cat-card-v2-body h3 { font-size: 20px; margin: 0; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card-v2 { position: relative; }
.product-img-wrap { display: block; position: relative; overflow: hidden; aspect-ratio: 3/4; border-radius: var(--radius); background: var(--bg-alt); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.product-img-wrap:hover .product-img { transform: scale(1.04); }
.product-rank {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500;
  color: #fff; background: var(--accent);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============================================================
   HORIZONTAL SCROLL — Featured Pieces
   ============================================================ */
.scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--gutter) 8px;
}
.scroll-wrap::-webkit-scrollbar { display: none; }
.scroll-track { display: flex; gap: 24px; width: max-content; }
.scroll-card-v2 { width: 320px; flex-shrink: 0; }
.scroll-img-wrap {
  display: block; position: relative;
  aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.scroll-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.5s ease, transform 0.7s ease;
}
.scroll-img--first  { opacity: 1; position: relative; z-index: 2; }
.scroll-img--second { position: absolute; inset: 0; opacity: 0; z-index: 1; }
.scroll-img-wrap:hover .scroll-img--first  { opacity: 0; }
.scroll-img-wrap:hover .scroll-img--second { opacity: 1; transform: scale(1.04); }

/* ============================================================
   EDITORIAL SPLIT
   ============================================================ */
.hero-split-v2 { display: grid; grid-template-columns: 1fr 1fr; }
.editorial-media-v2 { overflow: hidden; background: #1a1a1a; }
.editorial-video-v2 { width: 100%; height: 100%; object-fit: cover; }
.editorial-text-v2 {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px;
  background: var(--bg-alt);
}
.editorial-text-v2 h2 { margin-bottom: var(--gap-md); }
.editorial-text-v2 .lead { margin-bottom: var(--gap-md); }

/* ============================================================
   INSTAGRAM SHOWCASE
   ============================================================ */
.ig-showcase { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.ig-showcase img { width: 100%; max-height: 480px; object-fit: cover; transition: transform 0.7s ease; }
.ig-showcase:hover img { transform: scale(1.03); }
.ig-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity 0.3s ease;
}
.ig-showcase:hover .ig-overlay { opacity: 1; }

/* ============================================================
   ANIMATION
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .cat-card-v2--lg, .cat-card-v2--md, .cat-card-v2--sm { grid-column: span 1; grid-row: span 1; }
  .hero-split-v2 { grid-template-columns: 1fr; }
  .editorial-media-v2 { aspect-ratio: 16/9; }
  .editorial-text-v2 { padding: 48px 32px; }
  .footer-contact-item { padding: 24px 20px; gap: 16px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); padding-inline: 24px; }
  .footer-bottom { padding-inline: 24px; }
  .footer-newsletter { padding: 48px 24px; flex-direction: column; text-align: center; }
  .newsletter-form { max-width: 100%; }
  .archive-products-wrap { padding-inline: 24px; }
  .archive-toolbar { padding-inline: 24px; }
  .topnav .logo { font-size: 17px; }
  .topnav-inner { gap: 12px; }
}
@media (max-width: 1100px) {
  .desktop-nav { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; }
  .desktop-nav::-webkit-scrollbar { display: none; }
  .desktop-nav .nav-list { display: flex; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
  .desktop-nav .nav-list > li { flex-shrink: 0; }
  .desktop-nav .nav-list > li > a { font-size: 12px; padding: 6px 10px; text-transform: none; letter-spacing: 0.01em; color: var(--muted); }
  .desktop-nav .nav-list > li > a:hover { color: var(--fg); }
  .desktop-nav .nav-list .sub-menu { display: none !important; }
  .topnav-inner { gap: 8px; }
  .topnav .logo { font-size: 15px; flex-shrink: 0; }
  .nav-actions { flex-shrink: 0; gap: 10px; }
.scroll-hint { display: none; }
  .mobile-menu-toggle { display: none !important; }
  .scroll-hint { display: flex; align-items: center; flex-shrink: 0; color: var(--muted); font-size: 11px; animation: hint-bounce 2s ease-in-out infinite; }
}
@keyframes hint-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

@media (max-width: 920px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-contact-item { border-bottom: 1px solid var(--border); }
  .footer-contact-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .footer-contact-item:nth-child(even) { border-right: none; }
  .footer-contact-item:last-child { border-bottom: none; }
  .footer-contact-item:last-child:nth-child(odd) { grid-column: span 2; }
  .hero-center-v2 { margin: 60px 16px 0; padding: 28px 20px 24px; }
  .hero-center-v2 h1 { font-size: clamp(28px, 8vw, 40px); }
  .cat-grid { padding: 0; grid-auto-rows: 220px; }
  .scroll-card-v2 { width: 260px; }
  .scroll-wrap { padding-inline: 16px; }
}


/* ============================================================
   WOOCOMMERCE ARCHIVE / SHOP
   ============================================================ */
.woocommerce-archive { min-height: 60vh; }

.archive-hero {
  position: relative; width: 100%; height: 380px;
  overflow: hidden; background: var(--fg);
  display: flex; align-items: flex-end;
}
.archive-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.archive-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}
.archive-hero-content {
  position: relative; z-index: 2;
  padding: 0 48px 32px;
  color: #fff;
}
.archive-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300; margin: 0 0 8px;
}
.archive-hero-content p { font-size: 14px; opacity: 0.8; max-width: 440px; margin: 0; }

.archive-toolbar { border-bottom: 1px solid var(--border); padding: 0 48px; }
.archive-toolbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px;
}
.archive-results-count { font-size: 12px; color: var(--muted); }
.archive-ordering select {
  font-size: 13px; font-family: var(--font-body);
  color: var(--fg); border: none; background: transparent;
  padding: 4px 8px; cursor: pointer;
}

.archive-products-wrap { padding: 48px 48px 80px; }
.archive-products-wrap ul.products,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce-page ul.products.columns-3,
.woocommerce-page ul.products.columns-4,
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  list-style: none !important; margin: 0 !important; padding: 0 !important;
  clear: both;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
}
.archive-products-wrap ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0 !important; padding: 0 !important;
  width: auto !important; float: none !important; clear: none !important;
}

/* === product cards (archive) === */
.woocommerce-loop-product__link {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 3/4; border-radius: var(--radius);
  background: var(--bg-alt);
  margin-bottom: 12px;
}
.woocommerce-loop-product__link img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.woocommerce-loop-product__link:hover img { transform: scale(1.04); }

.product-category {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 4px;
}
.product-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400; margin: 0 0 4px;
}
.product-title a:hover { color: var(--accent); }
.product-price { font-size: 14px; font-weight: 300; color: var(--muted); margin: 0; }

.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px;
}
.product-badge--new  { background: var(--fg); color: var(--surface); }
.product-badge--sale { background: #c45c5c; color: #fff; }

/* === pagination === */
.woocommerce-pagination { margin-top: 56px; display: flex; justify-content: center; }
.woocommerce-pagination ul,
.woocommerce-pagination .page-numbers {
  display: flex !important;
  list-style: none !important; gap: 4px !important;
  margin: 0 !important; padding: 0 !important;
  border: none !important;
}
.woocommerce-pagination ul li,
.woocommerce-pagination .page-numbers li {
  margin: 0 !important; padding: 0 !important; border: none !important;
  float: none !important;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 4px 12px !important;
  font-size: 14px; font-family: var(--font-body);
  color: var(--fg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  transition: background 0.15s ease;
  background: transparent !important;
}
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination .page-numbers li a:hover {
  background: var(--fg-soft) !important;
}
.woocommerce-pagination ul li span.current,
.woocommerce-pagination .page-numbers li span.current {
  background: var(--fg) !important;
  color: var(--surface) !important;
  border-color: var(--fg) !important;
}
.woocommerce-pagination .next,
.woocommerce-pagination .prev {
  font-weight: 500;
}

/* archive product badge override */
.product-card .onsale {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px;
  background: #c45c5c; color: #fff;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px;
  min-height: auto; line-height: 1.4;
}

@media (max-width: 768px) {
  .mobile-menu { width: 100vw; padding: 60px 5vw 100px; }
  .mobile-nav-list > li > a { font-size: 13px; padding: 14px 0; }
  body { padding-bottom: 0; }
  .hero-v2 { height: 85vh; min-height: 480px; }
  .editorial-text-v2 { padding: 40px 24px; }
  .editorial-text-v2 h2 { font-size: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-inline: 20px; }
  .footer-bottom { flex-direction: row; flex-wrap: wrap; gap: 12px; padding-inline: 20px; }
  .footer-legal { justify-content: flex-start; }
  .footer-newsletter { padding: 40px 20px; }
  .footer-contact-item { padding: 20px 16px; gap: 14px; }
  .ig-showcase img { max-height: 320px; }
  .archive-hero { height: 240px; }
  .archive-hero-content { padding-inline: 20px; padding-bottom: 24px; }
  .archive-hero-content h1 { font-size: 28px; }
  .archive-toolbar { padding-inline: 20px; }
  .archive-products-wrap { padding: 32px 20px 60px; }
  .archive-products-wrap ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
