:root {
  --ink: #101010;
  --muted: #666a73;
  --line: #e7e2d8;
  --paper: #ffffff;
  --soft: #f7f3ec;
  --gold: #c99016;
  --gold-2: #e5b54a;
  --green: #138a65;
  --blue: #3567a8;
  --danger: #b42318;
  --shadow: 0 18px 42px rgba(16, 16, 16, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

.lucide {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 0 7vw;
  align-items: center;
  background: #070707;
  color: #fff;
  font-size: 14px;
}

.topbar span,
.ghost-btn,
.category-link,
.section-title h2,
.footer p,
.primary-btn,
.secondary-btn,
.link-btn,
.socials,
.pay-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.topbar span {
  min-width: 0;
  white-space: nowrap;
}

.topbar .lucide,
.category-link .lucide,
.section-title .lucide,
.trust-strip .lucide {
  color: var(--gold);
}

.site-header {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) 330px;
  gap: 28px;
  align-items: center;
  padding: 22px 7vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 0.9;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search {
  display: grid;
  grid-template-columns: 1fr 48px;
  height: 58px;
  border: 1px solid #d9d6cf;
  border-radius: 32px;
  padding: 6px;
  background: white;
}

.search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  border-radius: 28px;
}

.search button,
.primary-btn {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--gold), #b67b08);
  box-shadow: 0 7px 16px rgba(201, 144, 22, 0.25);
}

.search button {
  display: grid;
  place-items: center;
  border-radius: 24px;
}

.search button .lucide {
  width: 22px;
  height: 22px;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.ghost-btn,
.secondary-btn,
.link-btn,
.category-link {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.ghost-btn {
  position: relative;
  min-height: 50px;
  padding: 8px 6px;
  text-align: left;
}

.ghost-btn .lucide {
  width: 30px;
  height: 30px;
  color: #111;
}

.ghost-btn small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.cart-trigger b {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 12px;
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 8px 7vw;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
  overflow-x: auto;
  scrollbar-width: thin;
}

#categoryNav {
  display: flex;
  gap: 18px;
}

.category-link {
  min-width: max-content;
  min-height: 42px;
  padding: 0 2px;
  font-weight: 700;
  line-height: 1;
}

.category-link .lucide {
  width: 19px;
  height: 19px;
}

.category-link.active {
  color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr minmax(280px, 44vw) 56px;
  align-items: center;
  min-height: 330px;
  padding: 28px 4vw;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 242, 0.88) 48%, rgba(244, 230, 204, 0.78)),
    url("https://images.unsplash.com/photo-1556911220-bff31c812dba?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-copy {
  max-width: 580px;
  padding-left: 6vw;
  z-index: 1;
}

.hero-copy p {
  margin: 0;
  color: var(--gold);
  font-size: clamp(24px, 4vw, 36px);
}

.hero-copy h1 {
  margin: 0 0 12px;
  max-width: 640px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 0.96;
}

.hero-copy span {
  display: block;
  max-width: 430px;
  color: #262626;
  font-size: 18px;
  line-height: 1.5;
}

.primary-btn,
.secondary-btn {
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.primary-btn {
  margin-top: 22px;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: end;
  min-height: 260px;
}

.hero-media img {
  max-width: min(420px, 88%);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.24));
}

.hero-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  z-index: 1;
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.hero-dots button.active {
  background: var(--gold);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 0;
  width: min(86vw, 1500px);
  margin: 18px auto 10px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.trust-strip article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: center;
  min-height: 78px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}

.trust-strip article:last-child {
  border-right: 0;
}

.trust-strip article strong {
  align-self: end;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
}

.trust-strip article span {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.trust-strip .lucide {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  align-self: center;
  justify-self: center;
}

.toolbar,
.catalog-shell,
.footer {
  width: min(86vw, 1500px);
  margin: 0 auto;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 22px 0 12px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.toolbar h2,
.section-title h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.toolbar-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

select,
.filters input,
.coupon-row input,
.zip-row input,
.stack-form input,
.checkout-grid input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9d6cf;
  border-radius: 8px;
  padding: 0 12px;
  background: white;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  padding-bottom: 34px;
}

.filters {
  position: sticky;
  top: 126px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filters h3 {
  margin-top: 0;
}

.filters label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.filters .check {
  justify-content: flex-start;
  align-items: center;
}

.filters .check input {
  width: auto;
  min-height: auto;
}

.link-btn {
  padding: 0;
  color: var(--ink);
  font-weight: 900;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 12px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 14px;
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card .image-btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 116px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f7;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 116px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-info h3 {
  min-height: 42px;
  margin: 4px 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

.price {
  margin-top: auto;
  font-size: 21px;
  font-weight: 900;
}

.installments,
.rating,
.stock {
  color: var(--muted);
  font-size: 12px;
}

.rating {
  color: var(--gold);
  margin-top: 5px;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--gold);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.card-actions button {
  min-width: 38px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.card-actions .buy {
  flex: 1;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.footer p,
.footer a {
  display: block;
  margin: 8px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.45;
}

.brand.compact img {
  width: 48px;
  height: 48px;
}

.brand.compact strong {
  font-size: 32px;
}

.socials {
  margin-top: 12px;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-logos span {
  min-width: 58px;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
  text-align: center;
  color: var(--blue);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
}

.drawer.open {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.38);
}

.drawer-panel {
  width: min(420px, 100vw);
  height: 100%;
  margin-left: auto;
  padding: 22px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  overflow-y: auto;
}

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

.drawer-panel header,
.cart-line,
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.icon-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-line {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f7f7f7;
  border-radius: 8px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.coupon-row,
.zip-row {
  display: grid;
  grid-template-columns: 1fr 98px;
  gap: 8px;
  margin-top: 12px;
}

.totals {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.full {
  width: 100%;
}

.modal {
  width: min(900px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.42);
}

.modal > form[method="dialog"] {
  display: flex;
  justify-content: flex-end;
  margin: -10px -10px 0 0;
}

.product-detail {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 26px;
}

.product-detail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f7;
}

.product-detail h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

.product-detail ul {
  padding-left: 18px;
  color: #333;
  line-height: 1.7;
}

.account-grid,
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stack-form,
.checkout-grid section,
.admin-form {
  display: grid;
  gap: 12px;
}

.orders-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
}

.order-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pay-option {
  justify-content: flex-start;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-summary {
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

.admin-modal {
  width: min(1180px, calc(100vw - 24px));
}

.admin-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 600px;
  gap: 20px;
}

.admin-layout aside {
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.admin-tab {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  padding: 0 12px;
  font-weight: 800;
}

.admin-tab.active {
  background: #111;
  color: white;
}

.admin-form {
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  margin-bottom: 18px;
}

.admin-form textarea,
.admin-form .wide-field {
  grid-column: span 2;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 390px;
  overflow: auto;
}

.admin-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f7f7f7;
  border-radius: 8px;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
}

.admin-row-actions button,
.danger-btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.danger-btn {
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.24s ease;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

@media (max-width: 1180px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    min-height: auto;
    padding: 8px 24px;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }

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

  .trust-strip article:nth-child(2) {
    border-right: 0;
  }

  .trust-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    padding: 8px 18px;
  }

  .topbar span {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .site-header,
  .category-bar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 34px 18px 58px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-media {
    min-height: 220px;
  }

  .trust-strip,
  .catalog-shell,
  .footer,
  .toolbar {
    width: calc(100vw - 36px);
  }

  .trust-strip,
  .catalog-shell,
  .footer,
  .account-grid,
  .checkout-grid,
  .product-detail,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .trust-strip article,
  .trust-strip article:nth-child(2) {
    border-right: 0;
  }

  .trust-strip article:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .filters {
    position: static;
  }

  .footer {
    gap: 16px;
  }

  .admin-layout aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-form textarea,
  .admin-form .wide-field {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 34px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-controls {
    width: 100%;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 40% 1fr;
    padding: 12px;
  }

  .coupon-row,
  .zip-row {
    grid-template-columns: 1fr;
  }
}
