/* store.css — public storefront, auth, cart and account. */

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.logo small {
  display: block;
  color: var(--text-dim);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.site-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.35rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 550;
}

.icon-link:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-account .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0.75rem 0 1rem;
  border-top: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0.25rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav .mobile-actions {
  display: flex;
  gap: 0.6rem;
  padding-top: 0.8rem;
}

/* ------------------------------------------------------------------ */
/* Hero and home sections                                              */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 80% at 82% 12%, rgba(56, 189, 248, 0.13), transparent 65%),
    radial-gradient(45% 60% at 12% 90%, rgba(52, 211, 153, 0.06), transparent 70%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero h1 {
  max-width: 14ch;
  margin-top: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 54ch;
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-note span::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  max-width: 460px;
  margin-left: auto;
}

.hero-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.hero-tile:nth-child(1) {
  transform: translateY(-16px);
}

.hero-tile:nth-child(2) {
  transform: translateY(10px);
}

.hero-tile:nth-child(3) {
  transform: translateY(-4px);
}

.hero-tile:nth-child(4) {
  transform: translateY(20px);
}

.hero-tile img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}

.hero-tile span {
  display: block;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.hero-tile strong {
  display: block;
  font-size: 0.9rem;
}

.feature-strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.feature-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.feature-strip-item {
  padding: 1.3rem 1.5rem;
  background: var(--bg-soft);
}

.feature-strip-item strong {
  display: block;
  font-size: 0.92rem;
}

.feature-strip-item span {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
  min-height: 150px;
  justify-content: space-between;
  background: linear-gradient(155deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  color: var(--text);
}

.category-card .category-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.category-card p {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.45;
}

.category-card .count-link {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card .step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.9rem;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
}

.info-card p {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 85% 20%, rgba(56, 189, 248, 0.14), transparent 70%),
    var(--surface);
}

/* ------------------------------------------------------------------ */
/* Catalogue                                                           */
/* ------------------------------------------------------------------ */
.page-head {
  padding-block: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.filters h2 {
  font-size: 1rem;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filter-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: left;
}

.filter-list button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.filter-list button.is-active {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-weight: 650;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.catalog-toolbar .search-field {
  flex: 1 1 260px;
}

.catalog-toolbar select {
  width: auto;
  min-width: 180px;
}

.result-count {
  color: var(--text-dim);
  font-size: 0.85rem;
  white-space: nowrap;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

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

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.1), transparent 65%),
    var(--bg-soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.2rem;
  transition: transform 240ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-media .product-flag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
}

.product-category {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-name {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
}

.product-name:hover {
  color: var(--accent);
}

.product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.price {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.price small {
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 500;
}

.quick-add {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

.quick-add:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.quick-add:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stock-note {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.stock-note.low {
  color: var(--warning);
}

.stock-note.out {
  color: var(--danger);
}

/* ------------------------------------------------------------------ */
/* Product detail                                                      */
/* ------------------------------------------------------------------ */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: 2.5rem 4rem;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.12), transparent 62%),
    var(--bg-soft);
}

.product-gallery img {
  max-height: 400px;
  object-fit: contain;
}

.product-info h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 0.5rem;
}

.product-price {
  margin-top: 1.1rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-description {
  margin-top: 1.2rem;
  color: var(--text-muted);
  white-space: pre-line;
}

.buy-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.qty-stepper button {
  width: 40px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.qty-stepper button:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}

.qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-stepper input {
  width: 52px;
  min-height: 42px;
  border: 0;
  border-inline: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.product-meta dt {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.product-meta dd {
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ */
/* Cart                                                                */
/* ------------------------------------------------------------------ */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
  padding-block: 1.5rem 4rem;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cart-line-media {
  display: grid;
  place-items: center;
  width: 96px;
  height: 82px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.cart-line-info .name {
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.cart-line-info .unit {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.5rem;
}

.cart-line-total {
  font-weight: 750;
}

.cart-line-remove {
  border: 0;
  background: none;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-decoration: underline;
}

.cart-line-remove:hover {
  color: var(--danger);
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary-row.total {
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 750;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

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

.checkout-auth {
  padding: 0.9rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(52, 211, 153, 0.06);
}

.confirmation .big-check {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  color: var(--success);
  font-size: 1.8rem;
}

/* ------------------------------------------------------------------ */
/* Auth                                                                */
/* ------------------------------------------------------------------ */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height) - 200px);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.auth-aside {
  max-width: 46ch;
}

.auth-aside h2 {
  margin-top: 1rem;
}

.auth-aside ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
  list-style: none;
}

.auth-aside li {
  display: flex;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-aside li::before {
  content: "→";
  color: var(--accent);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.65rem;
}

.auth-card .muted {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
}

.auth-switch {
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: inherit;
  font-weight: 600;
}

.text-button:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.config-warning {
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ */
/* Account                                                             */
/* ------------------------------------------------------------------ */
.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-block: 2.5rem 2rem;
}

.account-head .avatar {
  width: 58px;
  height: 58px;
  font-size: 1.2rem;
}

.account-identity h1 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.account-actions {
  margin-left: auto;
}

.panel ul.stack {
  list-style: none;
}

.account-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1rem 4rem;
  align-items: start;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-nav a,
.account-nav button {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: left;
}

.account-nav a:hover,
.account-nav button:hover,
.account-nav a[aria-current="page"] {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.panel {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.panel-head h2,
.panel-head h3 {
  font-size: 1.08rem;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}

.order-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}

.order-card-head .order-id {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.order-card-head .spacer {
  flex: 1;
}

.order-card-body {
  padding: 0 1rem 1rem;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.order-item-row strong {
  color: var(--text);
  font-weight: 600;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 0.8rem;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.footer-col h3 {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.8rem;
  list-style: none;
}

.footer-col a,
.footer-col span {
  color: var(--text-dim);
  font-size: 0.86rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
}

.footer-bottom .badge {
  font-size: 0.68rem;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1000px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .header-actions .icon-link span.label {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-inline: auto;
    width: 100%;
  }

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

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

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-list button {
    border: 1px solid var(--border);
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .account-nav a,
  .account-nav button {
    white-space: nowrap;
    width: auto;
  }

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

@media (max-width: 700px) {
  .hero-inner {
    padding-block: 2.5rem 3.5rem;
  }

  .hero-visual {
    grid-template-columns: repeat(2, 1fr);
    max-width: 380px;
  }

  .feature-strip-inner {
    grid-template-columns: 1fr;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-gallery {
    position: static;
    min-height: 300px;
  }

  .product-gallery img {
    max-height: 260px;
  }

  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-line-media {
    width: 72px;
    height: 68px;
  }

  .cart-line-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

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

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .header-inner {
    gap: 0.75rem;
  }

  .header-actions {
    gap: 0.15rem;
  }

  .icon-link {
    padding-inline: 0.45rem;
  }

  .hero-tile {
    min-height: 120px;
    padding: 0.7rem;
  }

  .hero-tile img {
    height: 68px;
  }

  .btn-lg {
    width: 100%;
  }
}
