:root {
  --navy: #14102a;
  --navy-2: #1d1640;
  --ink: #1b1633;
  --muted: #6b6780;
  --gold: #c9922a;
  --gold-2: #e0a93a;
  --line: #eceaf3;
  --paper: #ffffff;
  --bg: #f7f6fb;
  --danger: #c2410c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.header-inner,
.nav-inner,
.hero-inner,
.band-inner,
.page,
.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.cart-note {
  color: var(--muted);
  font-size: 14px;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  font-weight: 700;
}

.wa-btn:hover {
  background: #0e7a6e;
  color: #fff;
}

.wa-btn.ghost {
  width: auto;
  padding: 0 18px;
  background: #128c7e;
}

.wa-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.wa-header:hover {
  background: #1ebe5d;
  color: #fff;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
}

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
}

.logo img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e1ee;
  border-radius: 999px;
  padding: 0 16px;
  background: #fbfbfe;
  min-height: 44px;
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
}

.search svg {
  color: #8b87a0;
  flex: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn,
.icon-link,
.cart-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.cart-btn {
  font-weight: 700;
}

.cart-btn strong {
  color: var(--gold);
}

.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  flex-wrap: wrap;
}

.drop {
  position: relative;
}

.drop > button,
.drop > a,
.nav-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--ink);
}

.drop > button,
.drop > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link.active {
  color: var(--gold);
}

.products-btn {
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 999px;
}

.products-btn.current {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.spec-value a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.listing-actions .wish {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 14px;
}

.menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 240px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(20, 16, 42, 0.12);
  z-index: 20;
  max-height: 70vh;
  overflow: auto;
}

.drop:hover .menu,
.drop:focus-within .menu,
.drop.open .menu {
  display: grid;
}

.menu button,
.menu a {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.menu button:hover,
.menu a:hover {
  background: #f4f2fb;
}

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 55% 80% at 88% 45%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(118deg, #fffdf9 0%, #f8ead3 38%, #e9c48c 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  min-height: 560px;
  padding: 64px 0 56px;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b08948;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0 0 20px;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.6;
  color: #4a3f55;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #ead9b8;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-cta.ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.hero-cta:hover {
  background: var(--navy-2);
  color: #fff;
}

.hero-cta.ghost:hover {
  background: var(--navy);
  color: #fff;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 440px;
}

.hero-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-card img {
  width: 100%;
  flex: 1;
  height: 160px;
  object-fit: contain;
}

.hero-card figcaption,
.hero-card > span {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.hero-card-main {
  grid-column: 2;
  grid-row: 1 / 3;
}

.hero-card-main img {
  height: 100%;
  min-height: 280px;
}

.band {
  padding: 72px 0;
}

.band h2 {
  margin: 0 0 40px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
}

.band-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.band-head h2 {
  margin: 0;
}

.band-more {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.band-more:hover {
  color: var(--gold);
}

.band-hot {
  background: #fbfaf7;
}

.band-hot h2 {
  color: #c9922a;
}

.rail-wrap {
  position: relative;
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 48px 16px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.rail-btn.prev {
  left: 0;
}

.rail-btn.next {
  right: 0;
}

.hot-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  padding: 16px 16px 18px;
  text-align: center;
  cursor: pointer;
}

.hot-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  cursor: pointer;
}

.hot-card h3 {
  margin: 12px 0 8px;
  font-size: 15px;
  min-height: 40px;
  cursor: pointer;
}

.hot-card .price {
  color: var(--gold);
  margin-bottom: 12px;
}

.hot-card .add {
  font-size: 13px;
  min-height: 40px;
}

.badge {
  background: #f97316;
  color: #fff;
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 4px;
}

.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  padding: 56px 0 80px;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.crumb b {
  color: var(--ink);
}

.sidebar h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.cat-list,
.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.cat-list a,
.brand-list a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #3c3854;
}

.cat-list a:hover,
.brand-list a:hover,
.cat-list a.active,
.brand-list a.active {
  background: #f3f0fb;
  color: var(--navy);
  font-weight: 700;
}

.cat-list a.active {
  box-shadow: inset 3px 0 0 var(--navy);
}

.crumb a:hover {
  color: var(--gold);
}

.sidebar h3 {
  margin: 22px 0 10px;
  font-size: 14px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.toolbar h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}

.sort select {
  border: 1px solid #ddd8ec;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 150px;
  background: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid #efeef5;
  border-radius: 18px;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 8px 20px rgba(24, 18, 52, 0.04);
  cursor: pointer;
}

.thumb {
  height: 190px;
  display: grid;
  place-items: center;
  margin: 4px 0 12px;
  cursor: pointer;
  background: #f6f5fb;
  border-radius: 12px;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card > .wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 16, 42, 0.12);
}

.card h3 {
  margin: 0 0 auto;
  color: var(--gold);
  font-size: 14px;
  min-height: 40px;
  cursor: pointer;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #d9d5e6;
  background: #fff;
  cursor: pointer;
}

.qty span {
  min-width: 12px;
  text-align: center;
}

.price {
  font-weight: 800;
}

.add {
  width: 100%;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  min-height: 42px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add:hover {
  background: var(--navy-2);
}

.empty {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 16px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.pager a,
.pager button {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e4e0ee;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.pager a.active,
.pager button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 24, 0.45);
  display: none;
  z-index: 80;
}

.drawer.open,
.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .wa-float {
  visibility: hidden;
  pointer-events: none;
}

.drawer-panel,
.modal-panel {
  background: #fff;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 100%);
  padding: 22px;
  overflow: auto;
}

.modal-panel {
  left: auto;
  top: auto;
  right: auto;
  height: auto;
  max-height: 92vh;
  width: min(980px, 94vw);
  transform: none;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  overflow: auto;
  position: relative;
}

.modal-panel img {
  width: 100%;
  border-radius: 14px;
  background: #f6f4fb;
  object-fit: contain;
  aspect-ratio: 1;
}

.listing-photo {
  background: #f7f7f8;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-photo img {
  max-height: 420px;
  object-fit: contain;
}

.listing-info {
  min-width: 0;
}

.listing-info .close,
.modal-panel > .close {
  float: none;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 8;
}

.spec-row {
  font-size: 15px;
  line-height: 1.55;
  margin: 2px 0;
}

.spec-label {
  color: #111;
  font-weight: 700;
}

.spec-value.cat {
  color: #2563eb;
}

.spec-value.brand {
  color: #1d4ed8;
  font-weight: 700;
}

.spec-value.stock {
  color: #16a34a;
  font-weight: 700;
}

.listing-title {
  margin: 8px 0 10px;
  color: #c9922a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.listing-price {
  margin: 12px 0 16px;
  color: #ea580c;
  font-size: 22px;
  font-weight: 800;
}

.listing-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.product-wrap {
  padding: 36px 0 80px;
}

.product-page {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.share-row .wa-btn {
  width: auto;
  margin-top: 0;
  padding: 0 18px;
}

.share-btn {
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--navy);
  color: #fff;
}

.product-url {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.card h3 a,
.hot-card h3 a {
  color: inherit;
}

.close {
  float: right;
  border: 0;
  background: #f1eef8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 8;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.footer {
  background: #faf7f2;
  color: #8a7348;
  padding: 48px 0 36px;
  border-top: 1px solid #e8dfd0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-logo img {
  height: 92px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #b08948;
}

.footer-mark span {
  display: block;
  width: 48px;
  height: 1px;
  background: #c4a36a;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d5a3a;
}

.footer a:hover {
  color: var(--gold);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  display: none;
  z-index: 90;
}

.toast.show {
  display: block;
}

.wish.active {
  color: #e11d48;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .logo img {
    height: 48px;
    max-width: 180px;
  }

  .wa-header {
    padding: 0 12px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 36px 0 28px;
  }

  .hero-visual {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .hero-card-main {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-card img,
  .hero-card-main img {
    height: 120px;
    min-height: 0;
  }

  .header-inner,
  .layout {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-panel,
  .product-page {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
