/* ══════════════════════ TOKENS ══════════════════════ */
:root {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --surface2: #edf2f4;
  --border: #d8e0e4;
  --border2: #bac8cf;
  --ink: #1b2328;
  --ink2: #4d5d66;
  --muted: #83929a;
  --teal: #08b27f;
  --teal-d: #0e9072;
  --teal-l: #cffafe;
  --topbar-h: 68px;
  --sidebar-w: 270px;
}

/* ══════════════════════ RESET ══════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  padding-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  transition: padding-left 0.32s;
}

@media(max-width:900px) {
  body {
    padding-left: 0;
  }
}

/* ══════════════════════ TYPOGRAPHY ══════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin-bottom: 1rem;
  color: var(--ink2);
}

/* ══════════════════════ TOPBAR ══════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  box-shadow: 0 1px 12px rgba(24, 18, 14, .05);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1;
}

.logo span {
  color: var(--teal);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--ink2);
  cursor: pointer;
  transition: all .18s;
  position: relative;
  flex-shrink: 0;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-l);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--teal);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
}

@media(max-width:900px) {
  .hamburger {
    display: flex;
  }
}

/* ══════════════════════ SIDEBAR ══════════════════════ */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  background: var(--surface);
  border-right: 1.5px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 300;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}

@media(max-width:900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 8px 0 40px rgba(24, 18, 14, .14);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

.sb-inner {
  padding: 1.5rem 1rem 2rem;
}

.sb-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .5rem .5rem .6rem;
}

.nav-group {
  margin-bottom: 2px;
}

.nav-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .7rem .65rem;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: none;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink2);
  text-align: left;
  transition: all .15s;
  user-select: none;
}

.nav-trigger:hover {
  background: var(--teal-l);
  color: var(--teal);
  border-color: var(--border);
}

.nav-trigger.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.trig-left {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.trig-left svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .25s;
}

.nav-trigger.active .chevron {
  transform: rotate(180deg);
}

.nav-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
  padding-left: .75rem;
}

.nav-sub.open {
  max-height: 600px;
}

.sub-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .65rem;
  border-radius: 7px;
  margin-bottom: 1px;
  font-size: .9rem;
  color: var(--ink2);
  cursor: pointer;
  transition: all .13s;
  border: 1.5px solid transparent;
  text-decoration: none;
}

.sub-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
  transition: background .13s;
}

.sub-item:hover {
  background: var(--teal-l);
  color: var(--teal);
}

.sub-item:hover::before {
  background: var(--teal);
}

.sub-item.active {
  background: var(--teal-l);
  color: var(--teal);
  font-weight: 700;
}

.sub-item.active::before {
  background: var(--teal);
}

.sb-divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 1.5rem .5rem;
}

.nav-util {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .6rem .65rem;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: none;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink2);
  text-align: left;
  transition: all .15s;
  margin-bottom: 2px;
  text-decoration: none;
}

.nav-util svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-util:hover {
  background: var(--teal-l);
  color: var(--teal);
  border-color: var(--border);
}

/* ══════════════════════ MOBILE OVERLAY ══════════════════════ */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(24, 18, 14, .45);
}

@media(max-width:900px) {
  .mob-overlay {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: .22s;
  }
  .mob-overlay.open {
    visibility: visible;
    opacity: 1;
  }
}

/* ══════════════════════ MAIN CONTENT ══════════════════════ */
.main {
  min-height: calc(100vh - var(--topbar-h));
  padding: 2.5rem 2.5rem 5rem;
}

@media(max-width:900px) {
  .main {
    padding: 1.5rem 1rem 5rem;
  }
}

/* ══════════════════════ SECTIONS LAYOUT ══════════════════════ */
.section-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.section-title span {
  color: var(--teal);
}

.section-desc {
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

/* Hero Specific */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 3rem 3rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-l) 0%, transparent 68%);
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8rem;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-title em {
  color: var(--teal);
  font-style: italic;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.2rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--teal-l);
  color: var(--teal);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  padding: .4rem 1rem;
  border-radius: 20px;
  border: 1.5px solid rgba(31, 122, 110, .2);
}

.hero-pill.dark {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 14px;
  border: 1.5px solid var(--border);
}

.hstat {
  text-align: center;
}

.hstat-n {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--teal);
  line-height: 1;
}

.hstat-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.hstat+.hstat {
  border-top: 1.5px solid var(--border);
  padding-top: 1.5rem;
}

@media(max-width:680px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem;
  }
  .hero-stats {
    flex-direction: row;
    gap: 0;
    width: 100%;
  }
  .hstat {
    flex: 1;
  }
  .hstat+.hstat {
    border-top: none;
    border-left: 1.5px solid var(--border);
    padding-top: 0;
    padding-left: 1rem;
  }
}

/* Category Bar */
.cat-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cat-bar-title {
  font-size: 1.5rem;
}

.cat-bar-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 4px;
}

.cat-count {
  background: var(--teal-l);
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .35rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media(max-width:640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }
}

@media(max-width:360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all .22s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 28px rgba(31, 122, 110, .14);
  transform: translateY(-3px);
}

.card-img-wrap {
  height: 400px;
  overflow: hidden;
  background: var(--surface2);
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.card:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.card-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: .8rem;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.card-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal);
}

.add-btn {
  background: var(--teal);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  border: none;
  padding: .45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--teal-d);
}

@media(max-width:640px) {
  .card-img-wrap {
    height: 160px;
  }
}

/* Features Grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media(max-width:768px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}

.feat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.feat-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-l);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feat-icon svg {
  width: 24px;
  height: 24px;
}

.feat-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feat-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Reviews */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media(max-width:768px) {
  .rev-grid {
    grid-template-columns: 1fr;
  }
}

.rev-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.rev-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink2);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.rev-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 2rem;
  color: var(--teal);
  font-family: 'Syne', sans-serif;
}

.rev-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.rev-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* FAQ Section */
.faq-item {
  border-bottom: 1.5px solid var(--border);
  padding: 1.2rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  transition: transform 0.3s;
}

.faq-a {
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-a {
  max-height: 200px;
}

.faq-item.active .faq-q svg {
  transform: rotate(180deg);
}

/* Forms */
.fg {
  margin-bottom: 1rem;
}

.fl {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}

.fi, .ft {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--ink);
  padding: .8rem 1rem;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: border-color .15s;
}

.fi:focus, .ft:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 122, 110, .1);
}

.ft {
  min-height: 120px;
  resize: vertical;
}

.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media(max-width:480px) {
  .g2 {
    grid-template-columns: 1fr;
  }
}

.cb-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .8rem 0;
}

.cb-row input {
  margin-top: 4px;
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cb-row label {
  font-size: 0.95rem;
  color: var(--ink2);
  line-height: 1.4;
  cursor: pointer;
}

.btn-teal {
  width: 100%;
  background: var(--teal);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  border: none;
  border-radius: 9px;
  padding: .9rem 1.5rem;
  cursor: pointer;
  transition: all .15s;
}

.btn-teal:hover {
  background: var(--teal-d);
}

.btn-ghost {
  width: 100%;
  background: none;
  color: var(--ink2);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: .9rem 1.5rem;
  cursor: pointer;
  transition: all .15s;
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-l);
}

/* ══════════════════════ FOOTER ══════════════════════ */
.site-footer {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1.5px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .logo {
  font-size: 1.3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: .6rem;
  max-width: 550px;
  line-height: 1.6;
}

.footer-links-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--ink2);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}

.footer-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-l);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-copy p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .1em;
}

.footer-sub-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  margin-left: 1rem;
}

.footer-sub-link:hover {
  color: var(--teal);
}

/* ══════════════════════ CART DRAWER ══════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(24, 18, 14, .5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: .22s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 95vw;
  height: 100%;
  background: var(--surface);
  border-left: 1.5px solid var(--border);
  box-shadow: -8px 0 40px rgba(24, 18, 14, .12);
  z-index: 600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.4, 0, .2, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  padding: 1.5rem 1.7rem;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
}

.drawer-eye {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.x-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--ink2);
  cursor: pointer;
  font-size: 1rem;
  transition: all .15s;
}

.x-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.7rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--muted);
}

.cart-empty .ei {
  font-size: 2.8rem;
  margin-bottom: .8rem;
  opacity: .3;
}

.cart-empty p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
}

.c-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1.5px solid var(--border);
}

.c-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.c-info {
  flex: 1;
  min-width: 0;
}

.c-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: .3rem;
}

.c-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 700;
}

.c-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .5rem;
}

.qty-inp {
  width: 45px;
  text-align: center;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  padding: .3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.rm-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .05em;
  cursor: pointer;
  transition: color .15s;
}

.rm-btn:hover {
  color: #c0392b;
}

.drawer-foot {
  padding: 1.2rem 1.7rem;
  background: var(--surface2);
  border-top: 1.5px solid var(--border);
  flex-shrink: 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.total-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

.total-amt {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--teal);
}

/* ══════════════════════ PRODUCT DETAIL ══════════════════════ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media(max-width:768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.product-gallery {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-name {
  font-size: 2rem;
  line-height: 1.2;
}

.product-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
}

.product-description {
  color: var(--ink2);
  line-height: 1.8;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-actions button {
  flex: 1;
  min-width: 150px;
}

/* ══════════════════════ TOAST ══════════════════════ */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--teal);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  padding: .85rem 1.8rem;
  border-radius: 40px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all .28s;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(31, 122, 110, .35);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════ CHECKOUT ══════════════════════ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media(max-width:768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-summary {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
}

.checkout-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1.5px solid var(--border);
}

.checkout-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 9px;
  border: 1.5px solid var(--border);
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-name {
  font-weight: 700;
  margin-bottom: .3rem;
}

.checkout-item-qty {
  font-size: 0.9rem;
  color: var(--muted);
}

.checkout-item-price {
  font-family: 'JetBrains Mono', monospace;
  color: var(--teal);
  font-weight: 700;
}

.checkout-totals {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--border);
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
}

.checkout-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  border-top: 1.5px solid var(--border);
  padding-top: 1rem;
  margin-top: .5rem;
}

.checkout-row span:last-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--teal);
}

/* ══════════════════════ WISHLIST ══════════════════════ */
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.wishlist-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.wishlist-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* ══════════════════════ LEGAL PAGES ══════════════════════ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  color: var(--teal);
}

.legal-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ══════════════════════ SEARCH RESULTS ══════════════════════ */
.search-result-item {
  cursor: pointer;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--teal-l);
}

.search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.search-result-price {
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}