:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --accent: #3b82f6;
  --accent-dim: #2563eb;
  --text: #f4f4f5;
  --muted: #8b8b95;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.9), transparent);
  transition: background 0.4s var(--ease-out);
}

.header.scrolled {
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 12px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.menu-btn:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.15em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  white-space: nowrap;
}

.auth-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.auth-btn-accent:hover {
  filter: brightness(1.08);
  color: var(--bg);
}

.user-greeting {
  font-size: 0.7rem;
  color: var(--muted);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-points {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-only:not(.hidden) {
  border-color: var(--accent);
  color: var(--accent);
}

.active-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}

.cart-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.cart-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 4rem;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s var(--ease-out);
  position: relative;
  min-width: 320px;
}

.menu-overlay.open .menu-panel {
  transform: scale(1) translateY(0);
}

.menu-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.menu-close:hover {
  color: var(--text);
}

.menu-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.menu-links {
  list-style: none;
}

.menu-link {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 0.08em;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 0.25rem 0;
  transition: color 0.3s, transform 0.3s var(--ease-out);
}

.menu-link:hover,
.menu-link.active {
  color: var(--accent);
}

.menu-link:hover {
  transform: translateX(8px);
}

.menu-extra {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.menu-extra-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

.menu-extra-link:hover {
  color: var(--accent);
}

.menu-hint {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(10, 10, 12, 0.4) 40%,
    rgba(10, 10, 12, 0.2) 100%
  );
}

.hero-caption {
  position: absolute;
  bottom: 18%;
  left: 2rem;
  z-index: 2;
  max-width: 600px;
}

.hero-caption h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  animation: fadeUp 1s var(--ease-out) 0.3s both;
}

.hero-caption p {
  font-size: 1.1rem;
  color: var(--muted);
  animation: fadeUp 1s var(--ease-out) 0.5s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(20, 20, 24, 0.8);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.hero-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.hero-dot.active {
  background: var(--accent);
  width: 48px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* Main sections */
.main {
  padding: 4rem 2rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

.category-section {
  display: none;
  animation: sectionIn 0.6s var(--ease-out);
}

.category-section.active {
  display: block;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
}

/* Featured slideshow per category */
.featured-slideshow {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--border);
}

.featured-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.featured-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.featured-slide.active {
  opacity: 1;
  z-index: 1;
}

.featured-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.featured-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.featured-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.3);
}

.product-slideshow {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}

.product-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-slide.active {
  opacity: 1;
}

.product-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-slide-nav {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-slide-nav {
  opacity: 1;
}

.product-slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.product-slide-dot.active {
  background: var(--accent);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  z-index: 2;
}

.product-info {
  padding: 1.25rem;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-info .price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
}

.product-info .tag {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.product-info-click {
  cursor: pointer;
}

.view-detail {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .view-detail {
  opacity: 1;
}

.quick-add {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.quick-add:hover {
  filter: brightness(1.1);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s, border-color 0.3s;
  border: none;
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  width: 100%;
  transform: scale(0.96) translateY(16px);
  transition: transform 0.4s var(--ease-out);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.3s;
}

.modal-close:hover {
  border-color: var(--accent);
}

/* Product detail modal */
.product-modal {
  max-width: 1100px;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pd-main-image {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-thumbs {
  display: flex;
  gap: 0.5rem;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
  opacity: 0.6;
  transition: opacity 0.3s, border-color 0.3s;
}

.pd-thumb.active,
.pd-thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.pd-details h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pd-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pd-desc {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.pd-block {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pd-block h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pd-block ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text);
}

.pd-block li {
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}

.pd-block li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.pd-block p {
  font-size: 0.85rem;
  color: var(--muted);
}

.pd-options {
  margin: 1.25rem 0;
}

.pd-option-group {
  margin-bottom: 1rem;
}

.pd-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.size-btns,
.color-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-btn {
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color 0.3s, background 0.3s;
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
}

.color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--swatch);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s;
}

.color-btn.active {
  border-color: var(--accent);
  transform: scale(1.1);
}

.qty-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem;
}

.qty-picker button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 6px;
}

.qty-picker button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.pd-tag {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Bag drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  z-index: 260;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
}

.bag-drawer.open {
  transform: translateX(0);
}

.bag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.bag-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
}

.bag-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.bag-empty {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  gap: 1rem;
}

.bag-empty.visible {
  display: flex;
}

.bag-footer {
  display: none;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 0.75rem;
}

.bag-footer.visible {
  display: flex;
}

.bag-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.bag-row.muted span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.bag-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.bag-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.bag-item-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  padding-right: 1.5rem;
}

.bag-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.bag-item-price {
  color: var(--accent);
  font-weight: 600;
  margin: 0.35rem 0;
}

.bag-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bag-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
}

.bag-remove {
  position: absolute;
  top: 1rem;
  right: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.bag-remove:hover {
  color: var(--text);
}

/* Checkout */
.checkout-overlay .checkout-modal {
  max-width: 1100px;
  max-height: 95vh;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  min-height: 500px;
}

.checkout-form-wrap {
  padding: 2rem;
  border-right: 1px solid var(--border);
}

.checkout-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.checkout-steps .step {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.checkout-steps .step.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.checkout-panel {
  display: none;
}

.checkout-panel.active {
  display: block;
  animation: sectionIn 0.4s var(--ease-out);
}

.checkout-panel h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.checkout-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.form-grid input {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
}

.form-grid input:focus {
  outline: none;
  border-color: var(--accent);
}

.checkout-nav {
  display: flex;
  gap: 0.75rem;
}

.checkout-nav .btn-primary,
.checkout-nav .btn-secondary {
  flex: 1;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.checkout-review-items {
  margin-bottom: 1.25rem;
  max-height: 200px;
  overflow-y: auto;
}

.checkout-summary {
  padding: 2rem;
  background: var(--bg);
}

.checkout-summary h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.summary-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.summary-item img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.summary-item div {
  flex: 1;
}

.summary-item p {
  color: var(--muted);
  font-size: 0.75rem;
}

.summary-totals {
  margin-top: 1.5rem;
}

.summary-totals .total {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.summary-totals .total span:last-child {
  color: var(--accent);
}

.checkout-success {
  text-align: center;
  padding: 3rem 1rem;
}

.checkout-success.hidden {
  display: none;
}

#checkoutForm.hidden {
  display: none;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-weight: 700;
}

.checkout-success h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.checkout-success .muted {
  color: var(--muted);
  margin: 0.5rem 0 1.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: var(--bg);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 500;
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cart-btn.has-items {
  border-color: var(--accent);
  color: var(--accent);
}

/* About */
.about-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 520px;
}

.about-values {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-values li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.about-values strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.about-values span {
  font-size: 0.85rem;
  color: var(--muted);
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
}

.about-stats {
  position: absolute;
  bottom: -1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Reviews */
.reviews-section {
  padding: 5rem 2rem 6rem;
  border-top: 1px solid var(--border);
}

.reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.reviews-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.reviews-summary {
  color: var(--muted);
  font-size: 0.95rem;
}

.reviews-avg {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.reviews-write-btn {
  width: auto;
  min-width: 180px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.show-more-reviews {
  display: block;
  width: auto;
  min-width: 220px;
  margin: 2rem auto 0;
}

.show-more-reviews[hidden] {
  display: none;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  height: 132px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s;
  position: relative;
}

.review-delete-admin {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: none;
}

body.is-admin .review-delete-admin {
  display: block;
}

.review-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.review-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  height: auto;
  min-height: 80px;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.review-author {
  font-weight: 600;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-date {
  font-size: 0.6rem;
  color: var(--muted);
  flex-shrink: 0;
}

.review-stars {
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.review-stars .empty {
  color: var(--border);
}

.review-product {
  font-size: 0.55rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-text {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.review-text-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.review-card.is-expanded .review-text-body {
  -webkit-line-clamp: unset;
  display: block;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
  align-self: flex-start;
}

.text-link:hover {
  color: var(--text);
}

.review-form-panel {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  animation: sectionIn 0.5s var(--ease-out);
}

.review-form-panel[hidden] {
  display: none;
}

.review-form-panel h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.review-form-panel select,
.review-form-panel textarea {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  text-transform: none;
  letter-spacing: normal;
}

.review-form-panel textarea {
  resize: vertical;
  min-height: 100px;
}

.review-form-panel select:focus,
.review-form-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.rating-label {
  margin-bottom: 0.5rem;
}

.star-rating {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.star-rating .star {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--border);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
  color: var(--accent);
  transform: scale(1.1);
}

.review-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.review-form-actions .btn-primary,
.review-form-actions .btn-secondary {
  flex: 1;
  max-width: 200px;
}

/* Auth */
.auth-modal {
  max-width: 440px;
  padding: 2rem;
  max-height: 92vh;
  overflow-y: auto;
}

.signup-hero {
  text-align: center;
  padding: 1rem 0.5rem 1.25rem;
  margin: -0.5rem -0.5rem 0;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.2) 0%, transparent 55%);
  border-radius: 12px;
}

.signup-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.signup-hero h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.signup-tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

.signup-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.signup-perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.signup-perks strong {
  color: var(--text);
}

.perk-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
}

.signup-cta {
  font-size: 1rem;
  padding: 1rem;
}

.signup-fine {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
}

.signup-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-fields label,
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.signup-fields input,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="date"],
.auth-form input[type="password"] {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
}

.signup-fields input:focus,
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.signup-fields input[type="date"] {
  color-scheme: dark;
}

.checkout-rewards-box {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.rewards-guest-cta {
  text-align: center;
  font-size: 0.85rem;
}

.rewards-guest-cta p {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.rewards-guest-cta .highlight {
  color: var(--accent);
  font-weight: 700;
}

.rewards-guest-cta .btn-sm {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem;
  font-size: 0.85rem;
}

.rewards-member {
  font-size: 0.8rem;
}

.rewards-balance {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.rewards-star {
  color: var(--accent);
}

.rewards-applied {
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.rewards-redeem-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--text);
}

.rewards-redeem-label input {
  margin-top: 0.15rem;
  accent-color: var(--accent);
}

.rewards-progress,
.rewards-earn-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.rewards-earn-hint.muted {
  opacity: 0.85;
}

.discount-row span:last-child {
  color: var(--accent);
}

.points-earn-row span:last-child {
  color: var(--accent);
  font-weight: 600;
}

.order-rewards-msg {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
}

.coupon-checkout {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.coupon-checkout-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.coupon-input-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-input-row input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.coupon-input-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.coupon-applied-msg {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

.coupon-applied-msg .text-link {
  margin-left: 0.35rem;
  font-size: 0.75rem;
}

.admin-list-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 1.25rem 0 0.75rem;
}

.admin-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.admin-coupon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
}

.coupon-code-tag {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-right: 0.5rem;
}

.admin-empty {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.auth-tab.active {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.auth-form.active {
  display: flex;
}

.auth-form h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.auth-hint {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.auth-hint code {
  color: var(--accent);
  font-size: 0.7rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.auth-form input {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Admin */
.admin-modal {
  max-width: 560px;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.admin-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-tab {
  flex: 1;
  padding: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  cursor: pointer;
}

.admin-tab.active {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.admin-panel.active {
  display: flex;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-panel select,
.admin-panel input[type="url"],
.admin-panel input[type="file"] {
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
}

.admin-image-preview {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  max-height: 200px;
  background: var(--bg);
}

.admin-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
}

.admin-review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
}

.admin-review-item p {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.footer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .header-nav {
    display: none;
  }

  .header-auth .auth-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
  }

  .active-cat {
    display: none;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-stats {
    position: static;
    margin-top: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reviews-write-btn {
    width: 100%;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .show-more-reviews {
    width: 100%;
  }

  .review-form-actions .btn-primary,
  .review-form-actions .btn-secondary {
    max-width: none;
  }

  .hero-caption {
    left: 1rem;
    right: 1rem;
  }

  .main {
    padding: 3rem 1rem 4rem;
  }

  .featured-slideshow {
    aspect-ratio: 4 / 3;
  }

  .menu-panel {
    padding: 2.5rem 2rem;
    margin: 1rem;
  }

  .product-modal-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    padding-top: 3rem;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-form-wrap {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .pd-actions .btn-primary,
  .pd-actions .btn-outline {
    width: 100%;
  }
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -0.35rem 0 0.75rem;
  line-height: 1.4;
}

.field-hint.full {
  grid-column: 1 / -1;
}

.account-modal h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.account-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.account-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.account-row dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.account-row dd {
  font-size: 0.95rem;
  word-break: break-word;
}

.account-format-note {
  margin-top: 0.5rem;
}

.checkout-member-details {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
}

.checkout-member-details p {
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

.checkout-member-details .muted {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkout-member-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
