:root {
  --blue: #06162f;
  --blue2: #0b2b55;
  --gold: #d9a441;
  --gold2: #f5d98c;
  --bg: #f7f1e8;
  --text: #21160f;
  --muted: #6f6256;
  --red: #c93a2e;
  --line: #eadfce;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 22, 47, .97);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
  padding: 14px 6%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { color: var(--gold); font-size: 34px; font-weight: 900; }
.logo small { display: block; color: #fff; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.nav a { color: #fff; font-weight: 800; font-size: 14px; }
.nav a:hover { color: var(--gold); }

/* Hero */
.hero {
  min-height: 78vh;
  background: radial-gradient(circle at 85% 5%, #17416f 0, #06162f 45%, #020711 100%);
  color: #fff;
  padding: 70px 6%;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
}
.badge {
  display: inline-block;
  border: 1px solid rgba(217, 164, 65, .5);
  background: rgba(217, 164, 65, .12);
  color: var(--gold2);
  padding: 9px 16px; border-radius: 999px; font-weight: 900; margin-bottom: 18px;
}
.hero h1 { font-size: 78px; line-height: 1; margin: 0 0 14px; color: var(--gold); text-shadow: 0 12px 30px #000; }
.hero p { font-size: 20px; line-height: 1.7; color: #e8edf6; max-width: 700px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 900; margin: 6px 8px 6px 0; }
.gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--blue); }
.outline { border: 2px solid var(--gold); color: var(--gold); }
.cardbrand {
  border: 1px solid rgba(217, 164, 65, .45); border-radius: 34px;
  background: rgba(255, 255, 255, .06); padding: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.brandinside {
  min-height: 390px; border-radius: 28px;
  background: linear-gradient(145deg, #020814, #0b2b55);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 38px; position: relative; overflow: hidden;
}
.brandinside::after {
  content: ""; position: absolute; width: 260px; height: 260px;
  border: 32px solid rgba(217, 164, 65, .25); border-radius: 50%;
  right: -100px; bottom: -100px;
}
.brandinside h2 { font-size: 64px; margin: 0 0 8px; color: var(--gold); }
.brandinside p { font-size: 22px; color: #fff; margin: 0 0 18px; }
.brandinside div { line-height: 2; color: #edf3fb; font-size: 17px; }
.brandinside a:hover { color: var(--gold); }

/* Sections */
section { padding: 62px 6%; }
.title { text-align: center; font-size: 42px; margin: 0 0 10px; }
.sub { text-align: center; color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 900px; margin: 0 auto 36px; }

/* Categories */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  background: #fff; border-radius: 26px; padding: 24px; min-height: 185px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 15px 40px rgba(64, 37, 14, .09);
  transition: .25s; border: 1px solid var(--line);
}
.cat:hover { transform: translateY(-7px); border-color: var(--gold); }
.cat b { font-size: 23px; }
.cat p { color: var(--muted); line-height: 1.5; }
.cat span { color: var(--gold); font-weight: 900; }
.cat .count { color: var(--muted); font-weight: 400; font-size: 14px; }

/* Catalog */
.toolbar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  border: 1px solid #decdaf; background: #fff; color: var(--text);
  padding: 10px 15px; border-radius: 999px; font: inherit; font-weight: 900; cursor: pointer;
}
.pill.active, .pill:hover { background: var(--blue); color: var(--gold); border-color: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: #fff; border-radius: 26px; overflow: hidden;
  box-shadow: 0 15px 40px rgba(64, 37, 14, .11);
  border: 1px solid var(--line); transition: .25s;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-7px); }
.product .photo { position: relative; padding: 0; border: 0; background: #ddd; cursor: zoom-in; }
.product img { width: 100%; height: 315px; object-fit: cover; }
.discount {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: #fff; font-weight: 900; font-size: 14px;
  padding: 6px 10px; border-radius: 999px;
}
.info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start;
  background: #f2e3c7; color: #70460d;
  padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; margin-bottom: 10px;
}
.info h3 { margin: 0 0 8px; font-size: 21px; }
.info p { color: var(--muted); line-height: 1.45; margin: 0 0 13px; }
.prices { display: flex; align-items: center; gap: 12px; margin: auto 0 14px; }
.old { color: var(--blue); text-decoration: line-through; font-weight: 900; }
.sale { font-size: 25px; color: var(--red); font-weight: 900; }
.wh { display: block; text-align: center; background: #25d366; color: #fff; padding: 12px; border-radius: 999px; font-weight: 900; }
.wh:hover { background: #1fb959; }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; }
.more { text-align: center; margin-top: 32px; }
.loadmore {
  border: 2px solid var(--blue); background: transparent; color: var(--blue);
  padding: 14px 32px; border-radius: 999px; font: inherit; font-weight: 900; cursor: pointer;
}
.loadmore:hover { background: var(--blue); color: var(--gold); }

a.tag:hover { background: var(--gold2); }

/* Category page */
.pagehead {
  background: radial-gradient(circle at 85% 5%, #17416f 0, #06162f 45%, #020711 100%);
  color: #fff; padding: 46px 6% 52px;
}
.crumbs { font-size: 14px; color: #b9c4d6; margin-bottom: 18px; }
.crumbs a { color: #e8edf6; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-current] { color: var(--gold2); font-weight: 700; }
.pagehead h1 { font-size: 52px; line-height: 1.1; margin: 0 0 12px; color: var(--gold); }
.pagehead .lead { font-size: 19px; line-height: 1.6; color: #e8edf6; max-width: 760px; margin: 0 0 20px; }
.listing { padding-top: 32px; }
.catbar { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; scrollbar-width: thin; }
.catbar .pill { white-space: nowrap; flex: none; }
.pill .count { font-weight: 400; opacity: .7; }
.listbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; color: var(--muted); font-weight: 700; }
.listbar select { margin-left: 6px; padding: 9px 12px; border: 1px solid #decdaf; border-radius: 999px; background: #fff; font: inherit; color: var(--text); }

/* Contact / footer */
.contact { background: linear-gradient(135deg, #020711, #0b2b55); color: #fff; text-align: center; }
.contact .title { color: #fff; }
.contact .sub { color: #e8edf6; }
.footer { background: #020711; color: var(--gold); text-align: center; padding: 24px; }

/* Lightbox */
.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .82);
  display: none; align-items: center; justify-content: center; z-index: 99; padding: 20px;
}
.modal.show { display: flex; }
.modal img { max-width: 96vw; max-height: 86vh; border-radius: 18px; }
.close {
  position: absolute; right: 24px; top: 18px;
  background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer;
}

/* Responsive */
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero h1 { font-size: 54px; }
  .brandinside h2 { font-size: 54px; }
}
@media (max-width: 1199px) and (min-width: 769px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 58px; }
}
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .top { flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero h1, .hero h2 { font-size: 36px; }
}
@media (max-width: 650px) {
  .top { display: block; text-align: center; }
  .nav { margin-top: 12px; }
  .brandinside h2 { font-size: 46px; }
  .pagehead h1 { font-size: 36px; }
  .catgrid { grid-template-columns: 1fr; }
  .product img { height: 260px; }
  section { padding: 48px 5%; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .product img { height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat, .product { transition: none; }
}
