:root {
  --orange: #f47b20;
  --gold: #ffb22e;
  --yellow: #ffd43b;
  --purple: #64206f;
  --purple-dark: #3b1248;
  --ink: #151217;
  --muted: #69636d;
  --line: #e7e0dd;
  --paper: #fffaf4;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 15, 10, .16);
}

:root[data-theme="dark"] {
  --ink: #f8f3f8;
  --muted: #c9bdc9;
  --line: #3d3042;
  --paper: #151217;
  --white: #211927;
  --shadow: 0 18px 45px rgba(0, 0, 0, .36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 244, .93);
  border-bottom: 1px solid rgba(100, 32, 111, .16);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-logo {
  display: block;
  width: clamp(132px, 15vw, 190px);
  height: 54px;
  object-fit: contain;
}

.brand strong,
h1,
h2,
h3 {
  font-family: Barlow, Arial, sans-serif;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 30px);
  color: #302631;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 2px;
}

.main-nav a:hover {
  color: var(--purple);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.login-link,
.theme-toggle,
.install-button,
.cart-button,
.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 800;
}

.icon-btn {
  width: 42px;
  height: 42px;
  color: var(--purple);
  background: #f4eaf5;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--purple);
  background: #f4eaf5;
}

.theme-toggle,
.install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  color: var(--purple);
  background: #f4eaf5;
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .install-button,
:root[data-theme="dark"] .login-link,
:root[data-theme="dark"] .icon-btn {
  color: var(--yellow);
  background: #2b2030;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 13px 0 16px;
  color: var(--white);
  background: var(--purple);
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 15, 24, .85), rgba(23, 15, 24, .28) 48%, rgba(23, 15, 24, .15));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  max-width: 690px;
  padding: 112px clamp(20px, 5vw, 70px) 58px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 8rem);
  line-height: .82;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), #ff4f1f);
  box-shadow: 0 12px 30px rgba(244, 123, 32, .3);
}

.ghost-btn {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .08);
}

.ghost-btn.dark {
  color: var(--purple);
  border-color: rgba(100, 32, 111, .24);
  background: transparent;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.quick-strip article {
  min-height: 92px;
  padding: 22px clamp(18px, 4vw, 50px);
  border-right: 1px solid var(--line);
}

.quick-strip strong {
  display: block;
  color: var(--purple);
  font-family: Barlow, Arial, sans-serif;
  font-size: 1.35rem;
}

.quick-strip span {
  color: var(--muted);
}

.section,
.shop-section,
.business-band,
.contact-section {
  padding: 76px clamp(18px, 5vw, 70px);
}

.section-heading,
.shop-toolbar,
.contact-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: .98;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.category-card {
  min-height: 108px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.category-card span {
  color: var(--purple);
  font-family: Barlow, Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.category-card.active,
.category-card:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-color: transparent;
}

.category-card.active span,
.category-card:hover span,
.category-card.active strong,
.category-card:hover strong {
  color: var(--white);
}

.shop-section {
  background: var(--white);
}

.shop-summary {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.search-box {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline-color: var(--orange);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-art {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--white);
  background: radial-gradient(circle at 25% 20%, var(--gold), var(--orange) 38%, var(--purple) 100%);
}

.product-art span {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  font-family: Barlow, Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: rgba(20, 15, 21, .72);
  border: 6px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-body h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-meta {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.price {
  color: var(--purple);
  font-family: Barlow, Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.add-btn,
.detail-btn,
.consult-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 900;
}

.add-btn {
  color: var(--white);
  background: var(--ink);
}

.detail-btn {
  color: var(--purple);
  background: #f4eaf5;
}

.consult-btn {
  color: var(--white);
  background: var(--orange);
}

.business-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
}

.business-band .eyebrow {
  color: var(--yellow);
}

.business-band p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.6;
}

.about-panel {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
}

.about-panel strong {
  color: var(--yellow);
  font-family: Barlow, Arial, sans-serif;
  font-size: 1.35rem;
}

.about-panel span {
  color: rgba(255, 255, 255, .82);
  line-height: 1.5;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-section {
  align-items: center;
  background: var(--paper);
}

.contact-section p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-location {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden],
.install-button[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  transform: translateX(104%);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .24s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-head,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  font-size: 2rem;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 12px 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item span {
  color: var(--muted);
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.full {
  width: 100%;
  margin-top: 14px;
}

.tiny-note {
  color: var(--muted);
  font-size: .86rem;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 70px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .login-link,
  .install-button,
  .cart-button span {
    display: none;
  }

  .theme-toggle {
    min-width: 42px;
    padding: 0 10px;
    font-size: .82rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 110px;
  }

  .quick-strip,
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .shop-toolbar,
  .contact-section {
    display: grid;
    align-items: start;
  }

  .cookie-banner {
    display: grid;
  }
}
