/* ==========================================================================
   Precision Tech — Premium Storefront
   A confident, geometric eCommerce aesthetic
   Space Grotesk + DM Sans | CSS Custom Properties | BEM
   ========================================================================== */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background-color: var(--color-primary);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--color-primary);
  color: #ffffff;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   2. CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container--sm {
  max-width: 640px;
}

@media (min-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Main content offset for fixed header (60px header + 35px categories bar) */
.main {
  padding-top: 95px;
}

/* ==========================================================================
   3. SITE HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header--scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border-light);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding: 0 40px;
  }
}

/* Search Bar */
.site-header__search {
  position: relative;
  flex: 1;
  max-width: 380px;
  display: none;
}

@media (min-width: 768px) {
  .site-header__search {
    display: block;
  }
}

.site-header__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.site-header__search-input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
}

.site-header__search-input::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.site-header__search-input:focus {
  background-color: #ffffff;
  border-color: var(--color-border);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* Categories Bar */
.site-header__categories {
  background-color: var(--color-surface-raised);
  border-top: 1px solid var(--color-border-light);
  overflow: hidden;
}

.site-header__categories-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-header__categories-inner::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .site-header__categories-inner {
    padding: 0 40px;
  }
}

.site-header__cat-link {
  flex-shrink: 0;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 0;
}

.site-header__cat-link:hover {
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.03);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-img {
  max-height: 36px;
  width: auto;
  display: block;
}

.site-header__logo-text {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__link {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: 8px 14px;
  position: relative;
  transition: color 0.25s ease;
  text-decoration: none;
}

.site-header__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  width: 0;
  height: 2px;
  background-color: var(--color-text);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.site-header__link:hover::after {
  width: calc(100% - 28px);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.site-header__cart:hover {
  background-color: var(--color-surface-raised);
}

.site-header__cart svg {
  width: 20px;
  height: 20px;
}

.site-header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-text);
  color: #ffffff;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Avatar & Dropdown */
.site-header__account {
  position: relative;
}

.site-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-text);
  color: #ffffff;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.site-header__avatar:hover {
  transform: scale(1.05);
}

.site-header__dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 220px;
  background-color: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
  z-index: 950;
}

.site-header__account.is-open .site-header__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header__dropdown a,
.site-header__dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background-color 0.15s ease;
  text-align: left;
}

.site-header__dropdown a:hover,
.site-header__dropdown button:hover {
  background-color: var(--color-surface-raised);
}

.site-header__dropdown svg {
  width: 16px;
  height: 16px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.site-header__account-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.site-header__dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.site-header__dropdown-header strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.site-header__dropdown-header span {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

.site-header__dropdown-links {
  padding: 6px 0;
}

.site-header__dropdown-footer {
  padding: 6px 0;
  border-top: 1px solid var(--color-border-light);
}

.site-header__dropdown-footer a {
  color: #c0392b;
}

/* Auth link & button */
.site-header__auth-link {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  padding: 8px 14px;
  transition: color 0.25s ease;
  text-decoration: none;
  display: none;
}

.site-header__auth-link:hover {
  color: var(--color-text);
}

@media (min-width: 1024px) {
  .site-header__auth-link {
    display: inline-flex;
  }
}

.site-header__auth-btn {
  background-color: var(--color-text);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 100px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: none;
}

.site-header__auth-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1024px) {
  .site-header__auth-btn {
    display: inline-flex;
  }
}

/* Burger */
.site-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
}

.site-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.site-header__burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .site-header__burger {
    display: none;
  }
}

body.nav-open {
  overflow: hidden;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background-color: #ffffff;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav__links a {
  display: flex;
  align-items: center;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-text);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: color 0.2s ease;
  min-height: 56px;
}

.mobile-nav__links a:hover {
  color: var(--color-primary);
}

.mobile-nav__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.mobile-nav__close:hover {
  background-color: var(--color-surface-raised);
}

.mobile-nav__cats {
  padding-top: 20px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-nav__cats-label {
  width: 100%;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.mobile-nav__cats a {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.mobile-nav__cats a:hover {
  background-color: var(--color-surface-raised);
}

.mobile-nav__search {
  padding-top: 16px;
}

.mobile-nav__search-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  outline: none;
  -webkit-appearance: none;
}

.mobile-nav__search-input:focus {
  border-color: var(--color-border);
  background-color: #ffffff;
}

.mobile-nav__actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0b0f1a 0%, #1a1f2e 100%);
  overflow: hidden;
  padding-top: 95px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: luminosity;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(160deg, rgba(11, 15, 26, 0.92) 0%, rgba(11, 15, 26, 0.6) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,0.12) 0px, transparent 1px),
    repeating-radial-gradient(circle at 62% 71%, rgba(255,255,255,0.1) 0px, transparent 1px),
    repeating-radial-gradient(circle at 83% 15%, rgba(255,255,255,0.08) 0px, transparent 1px);
  background-size: 3px 3px, 4px 4px, 5px 5px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 4;
  color: #ffffff;
  max-width: 680px;
  padding: 40px 0;
}

.hero__eyebrow {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__actions .btn--primary {
  background-color: #ffffff;
  color: #0b0f1a;
}

.hero__actions .btn--primary:hover {
  background-color: #f0f0f0;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.hero__actions .btn--ghost {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero__actions .btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.3);
  animation: bounce 2.5s ease-in-out infinite;
}

.hero__scroll-hint svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  background-color: var(--color-text, #1a1a1a);
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.92;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary */
.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary */
.btn--secondary {
  background-color: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

.btn--secondary:hover {
  border-color: var(--color-text);
}

/* Outline — alias for secondary */
.btn--outline {
  background-color: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  border-color: var(--color-text);
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: currentColor;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Accent */
.btn--accent {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Danger */
.btn--danger {
  background-color: #dc2626;
  color: #ffffff;
}

.btn--danger:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

/* Sizes */
.btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

/* Full width */
.btn--full {
  width: 100%;
}

/* ==========================================================================
   6. HOME SECTIONS
   ========================================================================== */

.home-section {
  padding: 96px 0;
}

.home-section--tinted {
  background-color: var(--color-surface-raised);
}

.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.home-section__header--center {
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.home-section__label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.home-section__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.15;
}

.home-section__more {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
  text-decoration: none;
  flex-shrink: 0;
}

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

.home-section__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.home-section__more:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .home-section {
    padding: 80px 0;
  }

  .home-section__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }
}

/* ==========================================================================
   7. PRODUCT GRID
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-grid--featured {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .product-grid,
  .product-grid--featured {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid,
  .product-grid--featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 400px) {
  .product-grid,
  .product-grid--featured {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   7b. PRODUCTS PAGE LAYOUT
   ========================================================================== */

.section--products {
  padding-top: 32px;
  padding-bottom: 80px;
}

.section--products .section__title {
  margin-bottom: 32px;
}

/* Sidebar + Main grid */
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* -- Sidebar -------------------------------------------------------------- */

.products-sidebar {
  position: sticky;
  top: 100px;
}

.products-sidebar__section {
  margin-bottom: 32px;
}

.products-sidebar__heading {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.products-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.products-sidebar__item {
  margin-bottom: 2px;
}

.products-sidebar__item a {
  display: block;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.products-sidebar__item a:hover {
  background-color: var(--color-surface-raised);
}

.products-sidebar__item--active > a {
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-surface-raised);
}

.products-sidebar__sublist {
  list-style: none;
  margin: 2px 0 4px;
  padding-left: 16px;
}

.products-sidebar__sublist .products-sidebar__item a {
  font-size: 13px;
  padding: 5px 12px;
  color: var(--color-muted);
}

.products-sidebar__sublist .products-sidebar__item a:hover {
  color: var(--color-text);
}

.products-sidebar__sublist .products-sidebar__item--active > a {
  color: var(--color-primary);
  font-weight: 600;
}

/* -- Toolbar -------------------------------------------------------------- */

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.products-toolbar__count {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  color: var(--color-muted);
}

.products-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-toolbar__sort-label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
}

.products-toolbar__sort-select {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  padding: 7px 32px 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8780' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

.products-toolbar__sort-select:focus {
  border-color: var(--color-primary, #1a1a1a);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* -- Products Main Area --------------------------------------------------- */

.products-main {
  min-width: 0;
}

/* Adjust product grid inside products page to 3 columns (sidebar takes space) */
.products-main .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 200px 1fr;
    gap: 28px;
  }

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

@media (max-width: 768px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .products-sidebar {
    position: static;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .products-sidebar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .products-sidebar__item {
    margin-bottom: 0;
  }

  .products-sidebar__item a {
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    white-space: nowrap;
  }

  .products-sidebar__item--active > a {
    background-color: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
  }

  .products-sidebar__sublist {
    display: none;
  }

  .products-sidebar__heading {
    display: none;
  }

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

@media (max-width: 480px) {
  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .products-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .products-main .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   8. PRODUCT CARD
   ========================================================================== */

.product-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
  border-color: var(--color-border);
}

.product-card__visual {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background-color: var(--color-surface-raised);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__img {
  transform: scale(1.06);
}

.product-card__badge-sale {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #dc2626;
  color: #ffffff;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  line-height: 1.2;
  z-index: 2;
}

.product-card__badge-stock {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  line-height: 1.2;
  z-index: 2;
}

.product-card__body {
  padding: 20px;
}

.product-card__cat {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.product-card__name {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  margin: 6px 0;
  color: var(--color-text);
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card__name a:hover {
  color: var(--color-primary);
}

.product-card__desc {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
}

.product-card__price-old {
  text-decoration: line-through;
  color: var(--color-muted);
  font-size: 13px;
  margin-right: 6px;
}

.product-card__price-now {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
}

.product-card__price-contact {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-muted);
}

.product-card__cta {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-surface-raised);
  color: var(--color-text);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.product-card__cta svg {
  width: 16px;
  height: 16px;
}

.product-card__cta:hover {
  background-color: var(--color-text);
  color: #ffffff;
}

/* ==========================================================================
   9. CATEGORY GRID
   ========================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.06);
}

.category-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-raised);
  flex-shrink: 0;
}

.category-card__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-card__name {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  flex: 1;
}

.category-card__arrow {
  color: var(--color-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.category-card__arrow svg {
  width: 16px;
  height: 16px;
}

.category-card:hover .category-card__arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* ==========================================================================
   10. BLOG GRID & CARD
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.blog-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.07);
}

.blog-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 24px;
}

.blog-card__date {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 12px;
  color: var(--color-muted);
}

.blog-card__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 17px;
  margin: 8px 0;
  line-height: 1.35;
  color: var(--color-text);
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card__title a:hover {
  color: var(--color-primary);
}

.blog-card__excerpt {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.25s ease;
}

.blog-card__link:hover {
  transform: translateX(4px);
}

.blog-card__link svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   11. TRUST STRIP
   ========================================================================== */

.trust-strip {
  padding: 64px 0;
  border-top: 1px solid var(--color-border-light);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-strip__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-strip__item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.trust-strip__item strong {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 14px;
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
}

.trust-strip__item span {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer__top {
  padding: 72px 0 48px;
  background-color: #0b0f1a;
  color: #ffffff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.site-footer__logo {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.site-footer__tagline {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.site-footer__contact-list {
  margin-top: 16px;
}

.site-footer__contact-list a {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  margin-top: 8px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.site-footer__contact-list a:hover {
  color: #ffffff;
}

.site-footer__heading {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.site-footer__links {
  list-style: none;
  padding: 0;
}

.site-footer__links li + li {
  margin-top: 12px;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #090c16;
}

.site-footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin: 0;
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.site-footer__bottom a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   13. PRODUCT DETAIL PAGE
   ========================================================================== */

.section--product-detail {
  padding-top: 32px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Gallery */
.product-detail__gallery {
  position: sticky;
  top: 96px;
}

.product-detail__main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface-raised);
  aspect-ratio: 1 / 1;
}

.product-detail__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product-detail__thumbnails button,
.product-detail__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  background: none;
}

.product-detail__thumbnails button:hover,
.product-detail__thumbnails button.is-active,
.product-detail__thumb:hover,
.product-detail__thumb.is-active {
  border-color: var(--color-text);
  opacity: 1;
}

.product-detail__thumbnails button img,
.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info */
.product-detail__category {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: inline-block;
}

.product-detail__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.15;
}

.product-detail__price {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-detail__price-current,
.product-detail__price-sale {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-text);
}

.product-detail__price-sale {
  color: #dc2626;
}

.product-detail__price-original {
  text-decoration: line-through;
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-right: 12px;
}

.product-detail__short-desc {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.product-detail__field {
  margin-bottom: 20px;
}

.product-detail__field label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
  color: var(--color-text);
}

.product-detail__select {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  color: var(--color-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8780' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.product-detail__select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  outline: none;
}

/* Quantity */
.product-detail__quantity {
  display: inline-flex;
  align-items: stretch;
}

.product-detail__quantity button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  font-size: 18px;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.product-detail__quantity button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.product-detail__quantity button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.product-detail__quantity button:hover {
  background-color: var(--color-border-light);
}

.product-detail__quantity input {
  width: 60px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  -moz-appearance: textfield;
}

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

.product-detail__add-to-cart {
  width: 100%;
  margin-top: 8px;
}

.product-detail__meta {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 20px;
  line-height: 1.7;
}

.product-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.product-detail__tag {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 12px;
  padding: 4px 12px;
  background-color: var(--color-surface-raised);
  border-radius: 100px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.product-detail__tag:hover {
  color: var(--color-text);
  background-color: var(--color-border-light);
}

/* ==========================================================================
   14. PRODUCT TABS
   ========================================================================== */

.product-tabs {
  margin-top: 64px;
  border-top: 1px solid var(--color-border-light);
  padding-top: 48px;
}

.product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-tabs__btn {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  margin-bottom: -1px;
}

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

.product-tabs__btn.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.product-tabs__pane {
  display: none;
  padding-top: 32px;
}

.product-tabs__pane.is-active {
  display: block;
}

/* Prose styles for tab content */
.product-tabs__body.prose,
.prose {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
}

.prose p {
  margin-bottom: 1.25em;
}

.prose h2 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h3 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h4 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1em;
  margin: 1.5em 0;
  color: var(--color-muted);
  font-style: italic;
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration: none;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose th,
.prose td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.prose th {
  font-weight: 600;
  font-size: 13px;
}

.prose code {
  background-color: var(--color-surface-raised);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.prose pre {
  background-color: var(--color-surface-raised);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  padding: 0;
}

/* ==========================================================================
   15. CART PAGE
   ========================================================================== */

.cart-table {
  width: 100%;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-item__image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-surface-raised);
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.cart-item__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item__name a:hover {
  color: var(--color-primary);
}

.cart-item__variant {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-muted);
}

.cart-item__price {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
}

.cart-item__quantity {
  display: inline-flex;
  align-items: stretch;
}

.cart-item__quantity button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  font-size: 16px;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cart-item__quantity button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.cart-item__quantity button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cart-item__quantity button:hover {
  background-color: var(--color-border-light);
}

.cart-item__quantity input {
  width: 48px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  -moz-appearance: textfield;
}

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

.cart-item__total {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
}

.cart-item__remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cart-item__remove:hover {
  color: #dc2626;
  background-color: #fef2f2;
}

.cart-item__remove svg {
  width: 16px;
  height: 16px;
}

/* Cart Summary */
.cart-summary {
  background-color: var(--color-surface-raised);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 96px;
}

.cart-summary__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
}

.cart-summary__row:last-child {
  border-bottom: none;
}

.cart-summary__total {
  font-weight: 700;
  font-size: 1.25rem;
}

.cart-summary__total span:last-child {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}

.cart-summary .btn {
  margin-top: 20px;
}

/* Mobile cart */
@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .cart-item__price,
  .cart-item__total {
    grid-column: 2;
  }

  .cart-item__quantity {
    grid-column: 2;
  }

  .cart-item__remove {
    position: absolute;
    top: 24px;
    right: 0;
  }

  .cart-item {
    position: relative;
    padding-right: 40px;
  }
}

/* ==========================================================================
   16. CHECKOUT PAGE
   ========================================================================== */

.checkout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

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

.checkout__form .card + .card {
  margin-top: 24px;
}

.checkout__summary {
  position: sticky;
  top: 96px;
}

.payment-method {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.payment-method:last-child {
  margin-bottom: 0;
}

.payment-method:hover {
  border-color: var(--color-muted);
}

.payment-method.is-selected,
.payment-method input[type="radio"]:checked + .payment-method__content {
  border-color: var(--color-primary);
  background-color: rgba(0, 0, 0, 0.015);
}

.payment-method input[type="radio"] {
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.payment-method__label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 14px;
}

.payment-method__desc {
  font-size: 13px;
  color: var(--color-muted);
}

/* ==========================================================================
   17. ACCOUNT PAGES
   ========================================================================== */

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.account-nav a:hover {
  color: var(--color-text);
  background-color: var(--color-surface-raised);
}

.account-nav a.is-active {
  background-color: var(--color-surface-raised);
  color: var(--color-text);
  font-weight: 600;
}

.account-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .account-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .account-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Stat Cards */
.stat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.stat-card__value {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-text);
  line-height: 1.2;
}

.stat-card__label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Orders Table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-border);
}

.orders-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
  vertical-align: middle;
}

.orders-table tr:hover td {
  background-color: var(--color-surface-raised);
}

@media (max-width: 768px) {
  .orders-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   18. BLOG POST
   ========================================================================== */

.blog-post {
  max-width: 720px;
  margin: 0 auto;
}

.blog-post__header {
  margin-bottom: 48px;
  text-align: center;
}

.blog-post__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.blog-post__meta {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-post__featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.blog-post__featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post__content {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
}

.blog-post__content p {
  margin-bottom: 1.5em;
}

.blog-post__content h2 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
}

.blog-post__content h3 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.blog-post__content ul,
.blog-post__content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.blog-post__content ul {
  list-style-type: disc;
}

.blog-post__content ol {
  list-style-type: decimal;
}

.blog-post__content li {
  margin-bottom: 0.5em;
}

.blog-post__content img {
  border-radius: var(--radius-md);
  margin: 2em 0;
}

.blog-post__content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25em;
  margin: 2em 0;
  color: var(--color-muted);
  font-style: italic;
  font-size: 1.1em;
}

.blog-post__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   19. FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 6px;
  display: block;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8780' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.form-check label {
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
}

.form-hint {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ==========================================================================
   20. CARDS
   ========================================================================== */

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.card__header {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
}

@media (max-width: 480px) {
  .card {
    padding: 24px;
  }
}

/* ==========================================================================
   21. BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--success {
  background-color: #dcfce7;
  color: #15803d;
}

.badge--warning {
  background-color: #fef3c7;
  color: #b45309;
}

.badge--danger {
  background-color: #fee2e2;
  color: #dc2626;
}

.badge--info {
  background-color: #dbeafe;
  color: #2563eb;
}

.badge--neutral {
  background-color: var(--color-surface-raised);
  color: var(--color-muted);
}

/* ==========================================================================
   22. ALERTS
   ========================================================================== */

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  line-height: 1.5;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert--success {
  background-color: #f0fdf4;
  border-left: 3px solid #22c55e;
  color: #15803d;
}

.alert--error {
  background-color: #fef2f2;
  border-left: 3px solid #ef4444;
  color: #dc2626;
}

.alert--warning {
  background-color: #fffbeb;
  border-left: 3px solid #f59e0b;
  color: #b45309;
}

.alert--info {
  background-color: #eff6ff;
  border-left: 3px solid #3b82f6;
  color: #1d4ed8;
}

.alert__dismiss {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  line-height: 1;
}

.alert__dismiss:hover {
  opacity: 1;
}

/* ==========================================================================
   23. BREADCRUMBS
   ========================================================================== */

.breadcrumbs-bar {
  background-color: #111111;
  padding: 50px 0;
}

.breadcrumbs {
  padding: 0;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0;
}

.breadcrumbs__link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
  color: #ffffff;
}

.breadcrumbs__separator {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
  font-size: 12px;
}

.breadcrumbs__text {
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   24. PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover {
  border-color: var(--color-text);
}

.pagination__active,
.pagination .is-active {
  background-color: var(--color-text);
  color: #ffffff;
  border-color: var(--color-text);
}

.pagination__disabled,
.pagination .is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.pagination svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   25. SECTION
   ========================================================================== */

.section {
  padding: 64px 0;
}

.section__header {
  margin-bottom: 32px;
}

.section__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   26. TABLES
   ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-border);
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 14px;
}

.table tbody tr:hover td {
  background-color: var(--color-surface-raised);
}

/* ==========================================================================
   27. AUTH PAGES
   ========================================================================== */

/* -- Body & Layout -------------------------------------------------------- */

.body--auth {
  background-color: #f4f3f0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 0, 0, 0.03), transparent),
    linear-gradient(180deg, #f4f3f0 0%, #eae8e3 100%);
  min-height: 100vh;
}

.auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}

.auth-layout__logo {
  margin-bottom: 32px;
}

.auth-layout__logo a {
  display: inline-block;
  text-decoration: none;
}

.auth-layout__logo-image {
  max-height: 40px;
  width: auto;
}

.auth-layout__logo-text {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

/* -- Card ----------------------------------------------------------------- */

.auth-layout__card {
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px 40px 40px;
  border: 1px solid var(--color-border-light);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.06);
}

/* -- Auth Form Title & Subtitle ------------------------------------------- */

.auth-form__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.auth-form__subtitle {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.5;
}

/* -- Form Elements -------------------------------------------------------- */

.auth-form {
  display: flex;
  flex-direction: column;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form__input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.form__input::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.form__input:focus {
  border-color: var(--color-primary, #1a1a1a);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form__input:hover:not(:focus) {
  border-color: #ccc9c2;
}

/* Select */
select.form__input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8780' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Textarea */
textarea.form__input {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* -- Form Row (side-by-side fields) --------------------------------------- */

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__row--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* -- Checkbox ------------------------------------------------------------- */

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
}

.form__checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--color-primary, #1a1a1a);
  cursor: pointer;
}

.form__checkbox span {
  user-select: none;
}

/* -- Error ---------------------------------------------------------------- */

.form__error {
  display: block;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: #c0392b;
  margin-top: 6px;
  padding-left: 2px;
}

/* -- Link ----------------------------------------------------------------- */

.form__link {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary, #1a1a1a);
  text-decoration: none;
  transition: color 0.2s ease;
}

.form__link:hover {
  text-decoration: underline;
  color: var(--color-text);
}

/* -- Auth Form Footer ----------------------------------------------------- */

.auth-form__footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  color: var(--color-muted);
}

.auth-form__footer a {
  color: var(--color-primary, #1a1a1a);
  font-weight: 600;
}

.auth-form__footer a:hover {
  text-decoration: underline;
}

/* -- Auth Button Override ------------------------------------------------- */

.auth-form .btn {
  margin-top: 4px;
}

.auth-form .btn--full {
  width: 100%;
  justify-content: center;
}

/* -- Auth Layout Footer --------------------------------------------------- */

.auth-layout__footer {
  margin-top: 28px;
  text-align: center;
}

.auth-layout__footer p {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 12px;
  color: var(--color-muted);
}

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 480px) {
  .auth-layout {
    padding: 24px 16px;
  }

  .auth-layout__card {
    padding: 32px 24px 28px;
    border-radius: var(--radius-lg);
  }

  .auth-form__title {
    font-size: 1.4rem;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   28. 404 / ERROR PAGE
   ========================================================================== */

.error-page {
  text-align: center;
  padding: 120px 0;
}

.error-page h1 {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 8rem;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 12px;
}

.error-page__text {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 480px) {
  .error-page {
    padding: 80px 0;
  }

  .error-page h1 {
    font-size: 5rem;
  }
}

/* ==========================================================================
   29. TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}

.toast {
  padding: 14px 20px;
  background-color: #0b0f1a;
  color: #ffffff;
  border-radius: var(--radius-md);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.toast--success {
  border-left: 3px solid #22c55e;
}

.toast--error {
  border-left: 3px solid #ef4444;
}

.toast--warning {
  border-left: 3px solid #f59e0b;
}

.toast__dismiss {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  flex-shrink: 0;
}

.toast__dismiss:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .toast-container {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* ==========================================================================
   30. UTILITY CLASSES
   ========================================================================== */

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Text */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

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

/* Spacing */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Visibility */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-muted);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--color-border);
}

.empty-state__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.empty-state__text {
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Loading spinner */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--color-border-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-spinner--lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.loading-spinner--center {
  margin: 48px auto;
}

/* ==========================================================================
   31. ANIMATIONS
   ========================================================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll-triggered animations */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-animate="fade-up"].is-visible:nth-child(2) {
  transition-delay: 0.1s;
}

[data-animate="fade-up"].is-visible:nth-child(3) {
  transition-delay: 0.2s;
}

[data-animate="fade-up"].is-visible:nth-child(4) {
  transition-delay: 0.3s;
}

[data-animate="fade-up"].is-visible:nth-child(5) {
  transition-delay: 0.4s;
}

[data-animate="fade-up"].is-visible:nth-child(6) {
  transition-delay: 0.5s;
}

[data-animate="fade-up"].is-visible:nth-child(7) {
  transition-delay: 0.6s;
}

[data-animate="fade-up"].is-visible:nth-child(8) {
  transition-delay: 0.7s;
}

/* ==========================================================================
   32. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .hero__content {
    max-width: 560px;
  }

  .hero__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }

  .product-detail {
    gap: 40px;
  }

  .account-layout {
    gap: 32px;
  }
}

/* Small tablet: 768px */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }

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

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .product-detail__gallery {
    position: static;
  }

  .checkout {
    gap: 32px;
  }

  .checkout__summary {
    position: static;
  }

  .section {
    padding: 48px 0;
  }

  .cart-summary {
    position: static;
  }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .site-header {
    height: 64px;
  }

  .hero {
    min-height: 75vh;
    padding-top: 64px;
  }

  .hero__eyebrow {
    font-size: 11px;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .home-section {
    padding: 56px 0;
  }

  .home-section__header {
    margin-bottom: 24px;
  }

  .product-card__body {
    padding: 16px;
  }

  .product-card__footer {
    margin-top: 12px;
    padding-top: 12px;
  }

  .blog-card__body {
    padding: 16px;
  }

  .product-detail__thumbnails button,
  .product-detail__thumb {
    width: 56px;
    height: 56px;
  }

  .cart-summary {
    padding: 24px;
  }

  .site-footer__top {
    padding: 48px 0 32px;
  }

  .trust-strip {
    padding: 40px 0;
  }

  .error-page {
    padding: 64px 0;
  }

  .error-page h1 {
    font-size: 4rem;
  }
}

/* ==========================================================================
   33. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .site-header,
  .site-footer,
  .mobile-nav,
  .toast-container,
  .hero__scroll-hint,
  .btn,
  .pagination,
  .site-header__burger {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    text-decoration: underline;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  .product-detail {
    display: block;
  }

  .product-detail__gallery {
    position: static;
    margin-bottom: 24px;
  }

  .cart-summary {
    position: static;
  }

  .checkout {
    display: block;
  }
}

/* ==========================================================================
   34. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate="fade-up"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-hint {
    animation: none;
  }

  .product-card:hover {
    transform: none;
  }

  .product-card__img {
    transition: none;
  }

  .product-card:hover .product-card__img {
    transform: none;
  }

  .blog-card:hover {
    transform: none;
  }

  .blog-card__image img {
    transition: none;
  }

  .blog-card:hover .blog-card__image img {
    transform: none;
  }

  .category-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   35. FOCUS VISIBLE — GLOBAL ACCESSIBILITY
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   36. SCROLLBAR STYLING
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-raised);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-surface-raised);
}

/* ==========================================================================
   ACCOUNT PAGE
   ========================================================================== */

.section--account {
  padding-top: 48px;
  padding-bottom: 80px;
}

.section--account .section__title {
  margin-bottom: 32px;
}

/* Address list */
.address-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.address-card {
  background-color: var(--color-surface-raised, #fff);
  border: 1px solid var(--color-border-light, #eee);
  border-radius: var(--radius-md, 12px);
  padding: 24px;
  position: relative;
}

.address-card__label {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--color-text);
}

.address-card p {
  margin: 0 0 4px;
  font-size: 0.875rem;
  color: var(--color-muted, #6b7280);
  line-height: 1.5;
}

.address-card__actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light, #f0f0f0);
}

@media (max-width: 480px) {
  .address-list {
    grid-template-columns: 1fr;
  }
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dashboard-card {
  background-color: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border-light, #eee);
  border-radius: var(--radius-md, 12px);
  padding: 24px;
  text-align: center;
}

.dashboard-card__title {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.dashboard-card__value {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
}

.account-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--color-border-light, #eee);
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-right: 8px;
  margin-bottom: 8px;
}

.account-nav__link:hover {
  background-color: var(--color-text);
  color: #ffffff;
  border-color: var(--color-text);
}

.account-section {
  margin-top: 48px;
}

.account-section__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge--pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge--payment_received,
.status-badge--processing {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-badge--fulfilled,
.status-badge--delivered {
  background-color: #dcfce7;
  color: #166534;
}

.status-badge--cancelled,
.status-badge--refunded {
  background-color: #fee2e2;
  color: #991b1b;
}

@media (max-width: 767px) {
  .dashboard-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dashboard-card {
    padding: 16px;
  }

  .dashboard-card__value {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   PROFILE / ACCOUNT FORMS
   ========================================================================== */

.section__subtitle {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border-light, #eee);
  margin: 40px 0;
}

.form__input--readonly {
  background-color: var(--color-surface-raised, #f5f5f4);
  color: var(--color-muted);
  cursor: not-allowed;
}

/* ==========================================================================
   ORDER DETAIL (CUSTOMER)
   ========================================================================== */

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.order-info {
  background-color: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border-light, #eee);
  border-radius: var(--radius-md, 12px);
  padding: 24px;
  margin-bottom: 32px;
}

.order-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light, #eee);
  font-size: 14px;
}

.order-info__row:last-child {
  border-bottom: none;
}

.order-info__label {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cart-summary__row--total {
  border-top: 2px solid var(--color-border, #ddd);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 4px;
  padding-top: 16px;
}

.cart-summary__row--total span:last-child {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}

.status-badge--unpaid {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-badge--paid {
  background-color: #dcfce7;
  color: #166534;
}

.status-badge--failed {
  background-color: #fee2e2;
  color: #991b1b;
}

@media (max-width: 767px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   CHECKOUT LAYOUT
   ========================================================================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.checkout-layout__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-layout__summary {
  position: sticky;
  top: 96px;
}

.checkout-section {
  background-color: var(--color-surface-raised, #fff);
  border-radius: var(--radius-lg, 12px);
  padding: 28px;
  border: 1px solid var(--color-border-light, #f0f0f0);
}

.checkout-section__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.checkout-section__note {
  font-size: 0.875rem;
  color: var(--color-muted, #6b7280);
}

.checkout-section__note a {
  color: var(--color-primary, #6366f1);
  text-decoration: underline;
}

/* Checkout addresses */
.checkout-addresses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-address:hover {
  border-color: var(--color-muted, #9ca3af);
}

.checkout-address input[type="radio"]:checked ~ .checkout-address__body {
  color: var(--color-text);
}

.checkout-address:has(input[type="radio"]:checked) {
  border-color: var(--color-primary, #6366f1);
  box-shadow: 0 0 0 1px var(--color-primary, #6366f1);
}

.checkout-address input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.checkout-address__body {
  font-size: 0.875rem;
  line-height: 1.5;
}

.checkout-address__body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}

.checkout-address__body p {
  margin: 0;
  color: var(--color-muted, #6b7280);
}

/* Checkout payment methods */
.checkout-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-payment {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-payment:hover {
  border-color: var(--color-muted, #9ca3af);
}

.checkout-payment:has(input[type="radio"]:checked) {
  border-color: var(--color-primary, #6366f1);
  box-shadow: 0 0 0 1px var(--color-primary, #6366f1);
}

.checkout-payment input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.checkout-payment__body {
  font-size: 0.875rem;
  line-height: 1.5;
}

.checkout-payment__body strong {
  display: block;
  margin-bottom: 2px;
}

.checkout-payment__body p {
  margin: 0;
  color: var(--color-muted, #6b7280);
}

/* Cart summary items */
.cart-summary__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 0.875rem;
  gap: 12px;
}

.cart-summary__item-name {
  flex: 1;
  min-width: 0;
}

.cart-summary__item-name small {
  display: inline;
  color: var(--color-muted, #6b7280);
  font-size: 0.8125rem;
}

.cart-summary__divider {
  height: 1px;
  background-color: var(--color-border-light, #f0f0f0);
  margin: 8px 0;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .checkout-layout__summary {
    position: static;
  }
}

@media (max-width: 480px) {
  .checkout-section {
    padding: 20px;
  }
}
