:root {
  color-scheme: dark light;
  --bg: #0d0b08;
  --surface: #15110c;
  --surface-2: #201a12;
  --text: #fffaf0;
  --muted: #bfb39c;
  --primary: #d4af37;
  --primary-2: #b98b2d;
  --border: rgba(212, 175, 55, .26);
  --shadow: 0 22px 70px rgba(0,0,0,.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --logo-max-h: 58px;
  --header-h: 82px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf5e9;
  --surface: #fffaf2;
  --surface-2: #f5ead9;
  --text: #211a12;
  --muted: #6d6254;
  --border: rgba(180, 133, 39, .22);
  --shadow: 0 22px 70px rgba(76, 54, 20, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 34%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--primary); color: #111; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 8px; }
.loading-screen { min-height: 100vh; display: grid; place-items: center; gap: 14px; text-align: center; }
.brand-loader { width: 72px; height: 72px; border: 1px solid var(--border); border-radius: 22px; display: grid; place-items: center; font-family: var(--font-heading); font-size: 28px; color: var(--primary); box-shadow: var(--shadow); background: var(--surface); }

.notice-bar { background: rgba(0,0,0,.24); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; padding: 8px 18px; text-align: center; }
[data-theme="light"] .notice-bar { background: rgba(255,255,255,.45); }
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px); background: color-mix(in srgb, var(--surface) 84%, transparent); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1240px; margin: 0 auto; min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 12px clamp(16px, 4vw, 32px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-frame { width: auto; max-width: 220px; height: var(--logo-max-h); display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
.logo-frame img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.logo-fallback { display: inline-grid; place-items: center; min-width: 52px; height: 52px; border: 1px solid var(--border); color: var(--primary); font-family: var(--font-heading); font-weight: 700; border-radius: 16px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-heading); letter-spacing: .08em; font-weight: 700; color: var(--primary); font-size: clamp(19px, 2vw, 27px); white-space: nowrap; }
.brand-subtitle { font-size: 10px; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 7px; }
.nav a, .nav button { border: 0; background: transparent; color: var(--text); opacity: .86; padding: 10px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.nav a:hover, .nav button:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 88%, transparent); color: var(--text); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 65%, transparent); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #17110a; border-color: color-mix(in srgb, var(--primary) 74%, transparent); font-weight: 750; }
.btn-ghost { background: transparent; }
.btn-danger { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.icon-btn { width: 44px; padding: 0; border-radius: 14px; }
.mobile-menu-btn { display: none; }
.mobile-drawer { display: none; }

.hero { position: relative; overflow: hidden; }
.hero-inner { max-width: 1240px; margin: 0 auto; padding: clamp(38px, 8vw, 94px) clamp(16px, 4vw, 32px) 28px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(280px, .82fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }
.kicker::before { content: ''; width: 38px; height: 1px; background: var(--primary); }
h1 { font-family: var(--font-heading); font-size: clamp(42px, 7vw, 86px); line-height: .95; margin: 18px 0 16px; letter-spacing: .03em; }
.hero-copy p { color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.68; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual { min-height: 460px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 14%, transparent), transparent), var(--surface); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; opacity: .94; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent 55%); pointer-events: none; }
[data-theme="light"] .hero-visual::after { background: linear-gradient(90deg, rgba(255,255,255,.2), transparent 55%); }

.section { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 32px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { font-family: var(--font-heading); color: var(--primary); letter-spacing: .06em; font-size: clamp(27px, 3vw, 43px); margin: 0; }
.section-heading p { margin: 0; color: var(--muted); max-width: 620px; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.category-card { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 12px; text-align: center; cursor: pointer; min-height: 112px; display: grid; place-items: center; gap: 8px; }
.category-card:hover, .category-card.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, var(--surface)); }
.category-icon { color: var(--primary); font-size: 27px; }
.category-name { font-weight: 780; font-size: 13px; }
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.search { flex: 1 1 280px; min-height: 48px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); padding: 0 18px; outline: none; }
.search:focus { border-color: var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.product-card { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 14px 38px rgba(0,0,0,.16); display: flex; flex-direction: column; min-height: 100%; }
.product-media { aspect-ratio: 4/5; background: color-mix(in srgb, var(--surface-2) 88%, transparent); overflow: hidden; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.badge { background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); color: var(--primary); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 6px 9px; }
.product-body { padding: 16px; display: grid; gap: 10px; flex: 1; }
.product-title { font-size: 18px; font-weight: 800; margin: 0; }
.product-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; min-height: 42px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { color: var(--primary); font-size: 20px; font-weight: 900; }
.mini-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chip { border: 1px solid var(--border); padding: 5px 8px; border-radius: 999px; font-size: 11px; color: var(--muted); }
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.info-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.info-card { border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 91%, transparent); border-radius: var(--radius-lg); padding: 18px; min-height: 132px; }
.info-card strong { color: var(--primary); display: block; margin-bottom: 8px; }
.info-card p { color: var(--muted); margin: 0; line-height: 1.55; }
.qr-box { display: flex; align-items: center; gap: 14px; }
.qr-img { width: 82px; height: 82px; background: #fff; border-radius: 12px; padding: 6px; flex: 0 0 auto; }
.links-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.link-pill { border: 1px solid var(--border); border-radius: 999px; padding: 9px 12px; display: inline-flex; gap: 8px; align-items: center; color: var(--text); background: color-mix(in srgb, var(--surface-2) 68%, transparent); }
.link-pill:hover { border-color: var(--primary); color: var(--primary); }
.site-footer { border-top: 1px solid var(--border); margin-top: 34px; background: color-mix(in srgb, var(--surface) 90%, transparent); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a:hover { color: var(--primary); }

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.modal-panel { position: relative; max-width: 1120px; max-height: calc(100vh - 36px); overflow: auto; margin: 18px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.modal-close { position: sticky; top: 12px; margin-left: auto; right: 12px; z-index: 1; }
.product-detail { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr); gap: 28px; padding: clamp(16px, 4vw, 32px); }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/5; background: var(--surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { width: 72px; height: 88px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; background: var(--surface-2); flex: 0 0 auto; }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h3 { font-family: var(--font-heading); font-size: clamp(34px, 5vw, 56px); margin: 0 0 8px; }
.detail-desc { color: var(--muted); line-height: 1.75; }
.detail-list { color: var(--muted); line-height: 1.72; padding-left: 18px; }
.option-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.size-pill, .color-pill { min-width: 42px; min-height: 38px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 78%, transparent); color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; }
.color-pill::before { content: ''; width: 16px; height: 16px; border-radius: 99px; background: var(--swatch, #ddd); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; margin-right: 8px; }
.stock-ok { color: #34d399; font-weight: 800; }
.empty-state { padding: 44px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.cookie-note { display: none; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 90; max-width: 760px; margin: 0 auto; background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); gap: 12px; align-items: center; justify-content: space-between; }
.cookie-note.show { display: flex; }
.cookie-note p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .info-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .nav, .header-actions .desktop-only { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-drawer.open { display: grid; gap: 8px; padding: 0 16px 16px; }
  .mobile-drawer a, .mobile-drawer button { width: 100%; justify-content: flex-start; }
  .header-inner { min-height: 70px; }
  :root { --logo-max-h: 48px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-visual { min-height: 320px; }
  .hero-visual img { min-height: 320px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .modal-panel { margin: 0; min-height: 100vh; max-height: 100vh; border-radius: 0; border-left: 0; border-right: 0; }
}
@media (max-width: 540px) {
  .brand-name { font-size: 17px; }
  .brand-subtitle { display: none; }
  .logo-frame { max-width: 170px; }
  .hero-actions { display: grid; }
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .product-card { border-radius: 16px; }
  h1 { font-size: clamp(38px, 13vw, 62px); }
  .section { padding: 30px 14px; }
  .cookie-note { display: none; flex-direction: column; align-items: flex-start; }
  .cookie-note.show { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
