/* ==========================================================================
   ADETAŞ YAPI | DESIGN SYSTEM v4.0
   ui-ux-pro-max: DESIGN_VARIANCE=6, MOTION_INTENSITY=5, VISUAL_DENSITY=5
   Style: Clean Industrial · Light · Professional
   Font: Outfit (Display) + Inter (Body)
   Palette: White/Light Gray surfaces + Sika Yellow accent (sparse)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;450;500;600;700&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Brand Accent — Sika Yellow (used sparingly) */
  --yellow: #F6C301;
  --yellow-deep: #D4A900;
  --yellow-light: #FFF8DB;
  --yellow-glow: rgba(246, 195, 1, 0.15);
  --yellow-border: rgba(246, 195, 1, 0.35);

  /* Neutral Surfaces — Light Scale */
  --bg: #F5F5F0;
  /* Warm off-white page */
  --surface-0: #FFFFFF;
  /* Pure white cards */
  --surface-1: #FAFAF8;
  /* Slight tint panels */
  --surface-2: #F2F1EC;
  /* Inset, hover bg */
  --surface-3: #E8E7E0;
  /* Subtle dividers, chips */

  /* Text */
  --text-primary: #111110;
  --text-secondary: #44433E;
  --text-muted: #787770;
  --text-light: #B0AFA8;

  /* Borders */
  --border-subtle: rgba(17, 17, 16, 0.07);
  --border-default: rgba(17, 17, 16, 0.12);
  --border-strong: rgba(17, 17, 16, 0.22);

  /* State Colors */
  --danger: #C0392B;
  --danger-bg: #FEF2F2;
  --success: #1A7A4A;
  --success-bg: #F0FDF4;
  --info: #1D4ED8;
  --info-bg: #EFF6FF;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Border Radius — consistent scale */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 22px;
  --r-pill: 9999px;

  /* Spacing — 8pt rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;

  /* Shadows — warm tinted */
  --shadow-xs: 0 1px 2px rgba(17, 17, 16, 0.06);
  --shadow-sm: 0 2px 6px rgba(17, 17, 16, 0.07), 0 1px 2px rgba(17, 17, 16, 0.04);
  --shadow-md: 0 6px 20px rgba(17, 17, 16, 0.08), 0 2px 6px rgba(17, 17, 16, 0.05);
  --shadow-lg: 0 16px 40px rgba(17, 17, 16, 0.10), 0 4px 10px rgba(17, 17, 16, 0.06);
  --shadow-xl: 0 30px 60px rgba(17, 17, 16, 0.12), 0 8px 20px rgba(17, 17, 16, 0.07);
  --shadow-yellow: 0 8px 24px rgba(246, 195, 1, 0.22);

  /* Motion — Emil Kowalski custom curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Z-Index */
  --z-sticky: 40;
  --z-overlay: 100;
  --z-modal: 200;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

ul {
  list-style: none;
}

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

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

::selection {
  background: var(--yellow);
  color: #000;
}

/* ─── CONTAINER ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ─── SCROLL REVEAL ANIMATION ───────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] {
  transition-delay: 80ms;
}

[data-reveal-delay="2"] {
  transition-delay: 160ms;
}

[data-reveal-delay="3"] {
  transition-delay: 240ms;
}

[data-reveal-delay="4"] {
  transition-delay: 320ms;
}

[data-reveal-delay="5"] {
  transition-delay: 400ms;
}

[data-reveal-delay="6"] {
  transition-delay: 480ms;
}

/* ─── HEADER ────────────────────────────────────────────────────────────── */
header {
  background-color: var(--surface-0);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* Announcement bar */
.header-top {
  background-color: var(--text-primary);
  color: rgba(255, 255, 255, 0.80);
  font-size: 11.5px;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 7px 0;
  letter-spacing: 0.1px;
}

.header-top a {
  color: var(--yellow);
}

.header-top a:hover {
  text-decoration: underline;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}

/* Main header */
.header-main-wrapper {
  background-color: var(--yellow);
}

.header-main {
  display: flex;
  align-items: center;
  padding: var(--s-5) 0;
  gap: var(--s-8);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
  text-decoration: none;
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  line-height: 1;
}

/* Search */
.search-box {
  flex: 1;
  max-width: 480px;
  margin-left: auto;
}

.search-box form {
  display: flex;
  align-items: center;
  background: var(--surface-1);
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 18px;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
}

.search-box form:focus-within {
  border-color: var(--yellow-deep);
  background: var(--surface-0);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box button {
  flex-shrink: 0;
  background: var(--text-primary);
  border: none;
  padding: 0 18px;
  height: 38px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.search-box button:hover {
  background: #2a2a28;
}

.search-box button:active {
  transform: scale(0.97);
}

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
  margin-left: auto;
}

.cart-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1.5px solid var(--border-default);
  font-size: 17px;
  color: var(--text-secondary);
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.cart-icon:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface-0);
  padding: 0 3px;
}

/* ─── NAVIGATION BAR ────────────────────────────────────────────────────── */
.nav-bar {
  background: var(--surface-0);
  border-top: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 13px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}

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

.nav-link.active {
  background: var(--text-primary);
  color: #fff;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out),
    transform 120ms var(--ease-out), box-shadow 150ms var(--ease-out);
  text-decoration: none;
}

/* Primary CTA — dark, not yellow (yellow is too light for text-heavy contexts) */
.btn-primary {
  background: var(--text-primary);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #2a2a28;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

.btn-primary:active {
  transform: scale(0.97);
}

/* Yellow accent button — use for hero CTA or single page CTA */
.btn-accent {
  background: var(--yellow);
  color: #000;
}

@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover {
    background: var(--yellow-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-yellow);
  }
}

.btn-accent:active {
  transform: scale(0.97);
}

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

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--surface-2);
    transform: translateY(-1px);
  }
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

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

.btn-danger:hover {
  background: #a93226;
}

/* Old .btn used in forms — map to .btn-primary behavior */
.btn:not(.btn-primary):not(.btn-accent):not(.btn-secondary):not(.btn-danger):not(.btn-sm) {
  background: var(--yellow);
  color: #000;
}

.btn:not(.btn-primary):not(.btn-accent):not(.btn-secondary):not(.btn-danger):not(.btn-sm):hover {
  background: var(--yellow-deep);
}

.btn:not(.btn-primary):not(.btn-accent):not(.btn-secondary):not(.btn-danger):not(.btn-sm):active {
  transform: scale(0.97);
}

/* btn-secondary used in product cards — override */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

/* ─── EYEBROW LABELS ──────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}

.eyebrow-accent {
  color: #92690a;
  background: var(--yellow-light);
  border: 1px solid var(--yellow-border);
}

/* ─── SECTION HEADERS ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-title .accent-bar {
  display: block;
  width: 36px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  margin-top: 8px;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 150ms var(--ease-out);
  display: flex;
  align-items: center;
  gap: 5px;
}

.section-link:hover {
  color: var(--text-primary);
}

/* ─── HOME SECTION WRAPPER ────────────────────────────────────────────────── */
.home-section-container {
  background: var(--surface-0);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-subtle);
  padding: var(--s-10) var(--s-10);
  /* margin: var(--s-6) 0 BUG — shorthand '0' overrides .container's 'margin:0 auto'
     Kullanım: margin-top/bottom ayrı tanımla, yatay margin container'a bırak */
  margin-top: var(--s-6);
  margin-bottom: var(--s-6);
  box-shadow: var(--shadow-xs);
  position: relative;
}

.home-section-container .section-title {
  font-size: 22px;
  margin-bottom: var(--s-6);
}

/* ─── PURFORM / BANNER GRID ───────────────────────────────────────────────── */
.purform-section {
  padding: var(--s-6) 0;
}

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

.purform-card:first-child {
  grid-column: auto;
  grid-row: auto;
}

.purform-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.purform-card img {
  width: 100%;
  height: 216px;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-out);
}

.purform-card:first-child img {
  height: 216px;
  min-height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .purform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-default);
  }

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

/* ─── CATEGORY GRID ───────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.category-card {
  background: var(--surface-0);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-3);
  text-align: center;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out), background 200ms var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #000;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
  flex-shrink: 0;
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  transition: color 150ms var(--ease-out);
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .category-card:hover {
    border-color: var(--yellow-deep);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--surface-1);
  }

  .category-card:hover .category-icon {
    background: var(--yellow);
    color: #000;
    transform: scale(1.08);
  }

  .category-card:hover h3 {
    color: var(--text-primary);
  }
}

.category-card:active {
  transform: scale(0.97);
}

/* ─── PRODUCT GRID ────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 0;
}

.product-card {
  background: var(--surface-0);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 220ms var(--ease-out), transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-default);
    box-shadow: var(--shadow-lg);
  }

  .product-card:hover .product-image-container img {
    transform: scale(1.06);
  }
}

.product-card:active {
  transform: scale(0.98);
}

.product-image-container {
  background: #ffffff;
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-8);
  border-bottom: 1px solid var(--border-default);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.product-image-container::before {
  display: none;
}

.product-image-container img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(17, 17, 16, 0.16));
  transition: transform 320ms var(--ease-out), filter 320ms var(--ease-out);
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.product-info {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--s-2);
}

.product-cat {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.product-title-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  transition: color 140ms var(--ease-out);
}

.product-title-link:hover {
  color: var(--yellow-deep);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-3);
}

.product-price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.product-old-price {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* Product card CTA button */
.product-card .btn-secondary {
  width: 100%;
  padding: 11px;
  font-size: 12.5px;
  border-radius: var(--r-pill);
  margin-top: var(--s-3);
  border: 1.5px solid var(--yellow);
  background: var(--yellow);
  color: #000;
  text-align: center;
  font-weight: 600;
  transition: all 180ms var(--ease-out);
}

.product-card .btn-secondary:hover {
  background: var(--yellow-deep);
  border-color: var(--yellow-deep);
  color: #000;
  border-color: var(--yellow-deep);
  box-shadow: var(--shadow-yellow);
  transform: translateY(-1px);
}

/* ─── PRODUCT DETAIL ──────────────────────────────────────────────────────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  margin: var(--s-6) 0 var(--s-16);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.main-image-wrap {
  background: #ffffff;
  border-radius: var(--r-2xl);
  border: 1.5px solid var(--border-default);
  padding: var(--s-10);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.1;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

.main-image-wrap::before {
  display: none;
}

.main-image-wrap img {
  max-width: 78%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(17, 17, 16, 0.14));
  transition: transform 0.1s ease-out;
  transform-origin: center;
}

.thumbnail-list {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.thumbnail-list::-webkit-scrollbar {
  display: none;
}

.thumbnail-item {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-subtle);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 150ms var(--ease-out);
}

.thumbnail-item.active,
.thumbnail-item:hover {
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 2px var(--yellow-glow);
}

.thumbnail-item img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.product-meta-panel {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.product-meta-panel h1 {
  font-size: 28px;
  font-weight: 800;
}

.product-meta-panel .price-box {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.product-meta-panel .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.product-meta-panel .old-price {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.product-short-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.product-purchase-row {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  flex-wrap: wrap;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-pill);
  background: var(--surface-1);
  overflow: hidden;
}

.quantity-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 120ms var(--ease-out), color 120ms var(--ease-out), transform 120ms var(--ease-out);
}

.quantity-btn:hover {
  background: var(--surface-3);
  color: var(--text-primary);
}

.quantity-btn:active {
  transform: scale(0.85);
}

.quantity-input {
  width: 48px;
  height: 44px;
  border: none;
  background: none;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  font-variant-numeric: tabular-nums;
}

/* PDF downloads */
.pdf-downloads {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  border: 1.5px solid var(--border-subtle);
  margin-top: var(--s-4);
}

.pdf-downloads h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--surface-0);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), color 140ms var(--ease-out);
}

.pdf-item a:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-border);
  color: #92690a;
}

/* ─── PRODUCT TABS ────────────────────────────────────────────────────────── */
.product-tabs-container {
  margin: var(--s-12) 0 var(--s-16);
}

.tab-headers {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 6px 14px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-headers::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-1);
  cursor: pointer;
  position: relative;
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: var(--r-lg);
  transition: all 180ms var(--ease-out);
  touch-action: manipulation;
}

.tab-btn.active {
  color: #fff;
  background: var(--text-primary);
  border-color: var(--text-primary);
}

.tab-btn.active::after {
  display: none;
}

.tab-btn:hover:not(.active) {
  color: var(--text-secondary);
}

.tab-btn:active {
  transform: scale(0.95);
}

.tab-panels {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  margin-top: 12px;
  padding: var(--s-10);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
}

.tab-panel td {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}

.tab-panel tr:nth-child(even) td {
  background: var(--surface-1);
}

/* ─── SHOP PAGE ───────────────────────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-8);
  margin-top: var(--s-6);
}

.shop-sidebar {
  background: var(--surface-0);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  border: 1.5px solid var(--border-subtle);
  position: sticky;
  top: 88px;
  height: fit-content;
  box-shadow: var(--shadow-xs);
}

.shop-sidebar h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.shop-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-sidebar ul a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--r-md);
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
}

.shop-sidebar ul a:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.shop-sidebar ul a.active-cat {
  font-weight: 700;
  color: var(--yellow-deep);
}

/* Shop header area */
.shop-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border-subtle);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-6);
  gap: var(--s-4);
  flex-wrap: wrap;
}

.shop-page-header h1 {
  font-size: 24px;
  font-weight: 800;
}

.shop-page-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.sort-select {
  appearance: none;
  background: var(--surface-1);
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 9px 36px 9px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23787770' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: border-color 140ms var(--ease-out);
}

.sort-select:focus {
  border-color: var(--yellow-deep);
  outline: none;
}

/* ─── CART PAGE ───────────────────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: var(--s-8);
  margin: var(--s-6) 0 var(--s-16);
}

.cart-table-container {
  background: var(--surface-0);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

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

.cart-table th {
  text-align: left;
  padding-bottom: var(--s-5);
  border-bottom: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-display);
}

.cart-table td {
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.cart-product img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 6px;
  border: 1px solid var(--border-subtle);
}

.cart-product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.cart-product-cat {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-summary {
  background: var(--surface-0);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  border: 1.5px solid var(--border-subtle);
  height: fit-content;
  box-shadow: var(--shadow-xs);
}

.cart-summary h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1.5px solid var(--border-subtle);
}

/* ─── CHECKOUT PAGE ───────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-8);
  margin: var(--s-6) 0 var(--s-16);
}

/* ─── FORMS ───────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--s-5);
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface-0);
  outline: none;
  min-height: 44px;
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 3px var(--yellow-glow);
  background: var(--surface-0);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23787770' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* ─── BREADCRUMB ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: var(--s-5) 0;
  flex-wrap: wrap;
}

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

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

.breadcrumb .sep {
  color: var(--border-strong);
}

.breadcrumb .current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── ALERTS ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 13px 18px;
  border-radius: var(--r-lg);
  margin-bottom: var(--s-6);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(26, 122, 74, 0.2);
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.55);
  padding: 72px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-10);
  margin-bottom: var(--s-12);
}

.footer-col h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--s-5);
  letter-spacing: -0.01em;
}

.footer-col p {
  font-size: 13.5px;
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 140ms var(--ease-out), padding-left 140ms var(--ease-out);
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-col .footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 12px;
}

.footer-col .footer-contact-row i {
  color: var(--yellow);
  width: 16px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--s-6);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── PAGE HEADER ─────────────────────────────────────────────────────────── */
.page-header {
  padding: var(--s-8) 0 var(--s-6);
  border-bottom: 1.5px solid var(--border-subtle);
  margin-bottom: var(--s-8);
}

.page-header h1 {
  font-size: 26px;
  font-weight: 800;
}

.page-header p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ─── BADGE / PILL ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-yellow {
  background: var(--yellow-light);
  color: #92690a;
}

/* ─── ADMIN PANEL ─────────────────────────────────────────────────────────── */
.admin-login-body {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.admin-login-card {
  background: var(--surface-0);
  border-radius: var(--r-2xl);
  padding: var(--s-10) var(--s-8);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--border-subtle);
}

.admin-login-card h2 {
  color: var(--text-primary);
  margin-bottom: var(--s-6);
}

.admin-login-card label {
  color: var(--text-muted);
}

.admin-login-card input {
  background: var(--surface-1);
  color: var(--text-primary);
  border: 1.5px solid var(--border-default);
}

.admin-login-card input:focus {
  border-color: var(--yellow-deep) !important;
  box-shadow: 0 0 0 3px var(--yellow-glow) !important;
  background: var(--surface-0) !important;
}

.admin-login-card input:-webkit-autofill,
.admin-login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--surface-1) inset !important;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100dvh;
}

.admin-sidebar {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--s-8) var(--s-5);
}

.admin-sidebar-logo {
  font-family: var(--font-display);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: var(--s-10);
  letter-spacing: -0.3px;
}

.admin-sidebar-logo span {
  color: var(--yellow);
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3px;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out);
}

.admin-nav-item.active a,
.admin-nav-item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-item.active a {
  color: var(--yellow);
}

.admin-content {
  background: var(--bg);
  padding: var(--s-10);
}

.admin-header {
  background: var(--surface-0);
  padding: var(--s-5) var(--s-8);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border-subtle);
  margin-bottom: var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.admin-card {
  background: var(--surface-0);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

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

.admin-table th {
  background: var(--surface-1);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 10.5px;
  text-align: left;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: var(--font-display);
}

.admin-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.admin-table tr:hover td {
  background: var(--surface-1);
}

.stat-card {
  background: var(--surface-0);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.stat-card .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ─── LIGHTBOX ────────────────────────────────────────────────────────────── */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  inset: 0;
  background: rgba(17, 17, 16, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content {
  display: block;
  max-width: 100%;
  max-height: 80dvh;
  object-fit: contain;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  transition: transform 250ms var(--ease-out);
  cursor: zoom-in;
}

.lightbox-content.zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  z-index: 100;
  transition: color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.lightbox-close:hover {
  color: var(--yellow);
  transform: scale(1.1);
}

.lightbox-caption {
  margin-top: var(--s-4);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ─── EMPTY STATE ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px var(--s-6);
  background: var(--surface-0);
  border-radius: var(--r-2xl);
  border: 1.5px solid var(--border-subtle);
}

.empty-state i {
  font-size: 44px;
  color: var(--text-light);
  margin-bottom: var(--s-4);
  display: block;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

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

.footer-col h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  transition: color 150ms;
}

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

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ─── DIVIDER ─────────────────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--s-5) 0;
}

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

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

.text-yellow {
  color: var(--yellow-deep);
}

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

.w-full {
  width: 100%;
}

.mt-auto {
  margin-top: auto;
}

.flex-1 {
  flex: 1 1 0%;
}

.mb-4 {
  margin-bottom: var(--s-4);
}

.mb-6 {
  margin-bottom: var(--s-6);
}

/* ─── AUTH PAGES ──────────────────────────────────────────────────────────── */
.auth-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-2xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.auth-card--wide {
  max-width: 560px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--yellow-deep);
}

.auth-header h1 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--yellow-deep);
  font-weight: 700;
}

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

/* ─── FORM HELPERS ────────────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.radio-group {
  display: flex;
  gap: 10px;
}

.radio-card {
  flex: 1;
  cursor: pointer;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 150ms var(--ease-out);
  background: var(--surface-0);
}

.radio-card-content i {
  font-size: 16px;
}

.radio-card input:checked+.radio-card-content {
  border-color: var(--yellow);
  background: var(--yellow-light);
  color: #92690a;
  box-shadow: 0 0 0 3px var(--yellow-glow);
}

/* ─── ACCOUNT DASHBOARD ──────────────────────────────────────────────────── */
.account-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.account-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0;
}

.account-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 150ms;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-tab:hover {
  color: var(--text-primary);
}

.account-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--yellow);
}

.account-content {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.order-id {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.order-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.order-items-count {
  font-size: 13px;
  color: var(--text-muted);
}

.order-total {
  font-weight: 700;
  font-size: 15px;
  margin-left: 12px;
}

.order-status {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Alert Success */
.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  font-size: 14px;
  margin-bottom: 16px;
}


/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .purform-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .purform-card:first-child img {
    min-height: auto;
  }

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

  .product-detail-layout {
    gap: var(--s-8);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {

  /* ── Top bar ── */
  .header-top {
    font-size: 10.5px;
    padding: 6px 0;
  }

  .header-top-inner {
    flex-direction: column;
    gap: 3px;
    text-align: center;
    font-size: 10.5px;
  }

  /* ── Main Header ── */
  .header-main {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: var(--s-3);
    padding: var(--s-3) 0;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .logo img {
    height: 34px;
  }

  .logo-text {
    font-size: 16px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .cart-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .search-box {
    grid-column: 1/span 2;
    grid-row: 2;
    max-width: 100%;
    margin-left: 0;
  }

  /* ── Nav ── */
  .nav-inner {
    gap: 6px;
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    padding: 7px 13px;
    background: var(--surface-2);
    border-radius: var(--r-pill);
    font-size: 11.5px;
    border: 1.5px solid var(--border-subtle);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-link:hover {
    background: var(--surface-3);
  }

  .nav-link.active {
    background: var(--text-primary);
    color: #fff;
    border-color: transparent;
  }

  /* ── Hero Section ── */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ── Category & Purform ── */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .category-card h3 {
    font-size: 11px;
  }

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

  .purform-card:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .purform-card img,
  .purform-card:first-child img {
    height: 116px;
    min-height: auto;
  }

  /* ── Home Sections ── */
  .home-section-container {
    padding: var(--s-6) var(--s-5);
    border-radius: var(--r-xl);
  }

  /* ── Product Grid ── */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ── Product Detail ── */
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  /* ── Cart ── */
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-table-container {
    overflow-x: auto;
  }

  .cart-table {
    min-width: 580px;
  }

  /* ── Shop ── */
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  footer {
    padding: 32px 0 0;
  }

  .footer-col h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 11px;
    padding: 16px 0;
    margin-top: 24px;
  }

  /* ── Admin ── */
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--s-5);
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .admin-content {
    padding: var(--s-5);
  }

  /* ── Breadcrumb (product page) ── */
  nav[style*="background:#ffffff"] {
    font-size: 12px !important;
    padding: 10px 16px !important;
  }

  /* ── Auth & Account ── */
  .auth-card {
    padding: 28px 24px;
    margin: 0 auto;
  }

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

  .account-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .account-tab {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .account-content {
    padding: 20px;
  }

  .order-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {

  /* ── Top bar ── */
  .header-top-inner {
    flex-direction: column;
    gap: 3px;
    text-align: center;
    font-size: 10px;
  }

  /* ── Hero ── */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* ── Category ── */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-card {
    padding: var(--s-4) var(--s-2);
    gap: var(--s-2);
  }

  .category-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .category-card h3 {
    font-size: 10.5px;
  }

  /* ── Purform ── */
  .purform-grid {
    grid-template-columns: 1fr;
  }

  .purform-card img,
  .purform-card:first-child img {
    height: 180px;
  }

  /* ── Product Grid ── */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    max-width: 360px;
    margin: 0 auto;
  }

  /* ── Product Detail ── */
  .main-image-wrap {
    padding: var(--s-5);
  }

  .main-image-wrap img {
    max-height: 200px;
  }

  .tab-panels {
    padding: var(--s-5);
  }

  /* ── Cart ── */
  .cart-layout {
    gap: var(--s-5);
  }

  /* ── Sections ── */
  .section-title {
    font-size: 20px;
  }

  .home-section-container {
    padding: var(--s-5) var(--s-4);
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    font-size: 10.5px;
  }
}

/* ─── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}