/* Monalisa Fashion - Clean Unified CSS */
/* Redesigned 2026-01-05 01:05:37 +05:30 */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --border: #e7ded6;
  --primary: #1b1b1b;
  --primaryText: #ffffff;
  --accent: #b08d57;
  --accentSoft: #efe3d2;
  --danger: #c43b3b;
  --success: #1f7a4a;
  --overlay: rgba(27, 27, 27, 0.35);

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --fs-h1: 40px;
  --lh-h1: 48px;
  --fs-h2: 32px;
  --lh-h2: 40px;
  --fs-h3: 24px;
  --lh-h3: 32px;
  --fs-body: 14px;
  --lh-body: 22px;
  --fs-small: 12px;
  --lh-small: 18px;
  --fs-xs: 11px;
  --lh-xs: 16px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.10);
  --container-max: 1240px;
  --gutter: 16px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 180ms;
  --dur-quick: 150ms;
  --focus-ring: 0 0 0 2px rgba(176, 141, 87, 0.45);
}

/* ========================================
   BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font: var(--fs-body)/var(--lh-body) var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  background: var(--primary);
  color: var(--primaryText);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  z-index: 100;
}

.skip-link:focus {
  top: var(--sp-4);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
.h1 {
  font: 600 var(--fs-h1)/var(--lh-h1) var(--font-heading);
  margin: 0 0 var(--sp-4);
}

h2,
.h2 {
  font: 600 var(--fs-h2)/var(--lh-h2) var(--font-heading);
  margin: 0 0 var(--sp-3);
}

h3,
.h3 {
  font: 600 var(--fs-h3)/var(--lh-h3) var(--font-heading);
  margin: 0 0 var(--sp-3);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: var(--sp-10);
  padding: 0 var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: 500 var(--fs-body)/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--dur) var(--ease);
}

.btn:hover {
  background: var(--bg);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--primary);
  color: var(--primaryText);
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(27, 27, 27, 0.15);
}

.btn--primary:hover {
  background: #101010;
  box-shadow: 0 4px 8px rgba(27, 27, 27, 0.2);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--bg);
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

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

.btn--danger:hover {
  background: #a32f2f;
  border-color: #a32f2f;
}

.btn--sm {
  height: var(--sp-8);
  padding: 0 var(--sp-3);
  font-size: var(--fs-small);
}

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

.btn__icon {
  width: var(--sp-4);
  height: var(--sp-4);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-input {
  width: 100%;
  height: var(--sp-10);
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font: var(--fs-body)/1 var(--font-body);
  color: var(--text);
  transition: all var(--dur) var(--ease);
}

.form-input:hover {
  border-color: #ccc;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}

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

textarea.form-input {
  height: auto;
  min-height: 100px;
  padding: var(--sp-3) var(--sp-4);
  resize: vertical;
  line-height: 1.6;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--danger);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form-row {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}

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

/* Checkbox */
.form-checkbox {
  display: grid;
  grid-template-columns: var(--sp-5) 1fr;
  gap: var(--sp-3);
  align-items: center;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease);
}

.form-checkbox:hover {
  background: var(--bg);
}

.form-checkbox__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-checkbox__box {
  width: var(--sp-5);
  height: var(--sp-5);
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.form-checkbox__box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--primaryText);
  border-bottom: 2px solid var(--primaryText);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.form-checkbox__input:checked+.form-checkbox__box {
  background: var(--primary);
  border-color: var(--primary);
}

.form-checkbox__input:checked+.form-checkbox__box::after {
  opacity: 1;
}

.form-checkbox__label {
  font-size: var(--fs-small);
  user-select: none;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
  display: inline-flex;
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.badge--primary {
  background: var(--accentSoft);
  border-color: var(--accentSoft);
  color: var(--accent);
}

.badge--success {
  background: rgba(31, 122, 74, 0.1);
  border-color: rgba(31, 122, 74, 0.2);
  color: var(--success);
}

.badge--warning {
  background: rgba(217, 153, 49, 0.12);
  border-color: rgba(217, 153, 49, 0.25);
  color: #b57e14;
}

.badge--danger {
  background: rgba(196, 59, 59, 0.1);
  border-color: rgba(196, 59, 59, 0.2);
  color: var(--danger);
}

/* ========================================
   CARDS & PANELS
   ======================================== */
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.panel--pad-4 {
  padding: var(--sp-4);
}

.panel--pad-6 {
  padding: var(--sp-6);
}

.panel--block {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.panel--block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
  font: 600 var(--fs-h3)/1.2 var(--font-heading);
  margin: 0 0 var(--sp-4);
  color: var(--text);
}

.section-title--sm {
  font-size: var(--fs-body);
  margin-bottom: var(--sp-3);
}

/* ========================================
   TABLES
   ======================================== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--muted);
}

.table--compact th,
.table--compact td {
  padding: var(--sp-2) var(--sp-3);
}

/* ========================================
   STOREFRONT HEADER - Redesigned 2026-01-05 22:08
   Premium design matching admin quality
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Announcement Bar */
.site-header__bar {
  background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
  color: var(--primaryText);
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}

.site-header__bar a {
  color: var(--accentSoft);
  margin-left: 12px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.site-header__bar a:hover {
  color: #fff;
}

/* Main Header */
.site-header__main {
  padding: 12px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.site-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.site-header__toggle:hover {
  background: var(--bg);
  border-color: var(--accent);
}

.site-header__toggle:active {
  transform: scale(0.95);
}

.site-header__toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

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

/* Brand */
.site-header__brand {
  font: 700 22px/1 var(--font-heading);
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-header__brand:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 768px) {
  .site-header__brand {
    font-size: 26px;
  }
}

/* Desktop Navigation */
.site-nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

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

.site-nav a {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.site-nav a:hover {
  background: var(--bg);
  color: var(--accent);
  text-decoration: none;
}

.site-nav a.active {
  background: var(--accentSoft);
  color: var(--text);
}

/* Desktop Search */
.site-header__search {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 1 280px;
  max-width: 320px;
}

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

.site-header__search input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.site-header__search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.12);
}

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

.site-header__search button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primaryText);
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.site-header__search button:hover {
  background: #101010;
}

.site-header__search button:active {
  transform: scale(0.95);
}

.site-header__search button svg {
  width: 18px;
  height: 18px;
}

/* Actions (icons) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-header__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.site-header__icon:hover {
  background: var(--bg);
  color: var(--accent);
  text-decoration: none;
}

.site-header__icon svg {
  width: 22px;
  height: 22px;
}

.site-header__icon--search {
  display: flex;
}

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

@media (max-width: 480px) {
  .site-header__icon {
    width: 36px;
    height: 36px;
  }

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

  .site-header__icon--wishlist {
    display: none;
  }
}

/* Dropdown panels */
.site-dropdown {
  position: relative;
}

.site-dropdown>summary {
  list-style: none;
}

.site-dropdown>summary::-webkit-details-marker {
  display: none;
}

.site-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  z-index: 60;
  animation: dropdown-fade 0.15s ease;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-dropdown__panel--search {
  min-width: 300px;
  padding: 12px;
}

.site-dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
}

.site-dropdown__link:hover {
  background: var(--bg);
  text-decoration: none;
}

.site-dropdown__link svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.site-dropdown__link--button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.site-dropdown__divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* Legacy classes for backwards compatibility - map to new selectors */
.header,
.header__announcement,
.header__main,
.header__inner,
.header__toggle,
.header__brand,
.header__actions,
.header__icon,
.dropdown,
.dropdown__panel,
.dropdown__link,
.dropdown__divider {
  display: revert;
  /* Deprecated: use site-* equivalents */
}

.header__nav {
  display: none;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form .form-input {
  flex: 1;
}

/* ========================================
   MOBILE DRAWER - Redesigned 2026-01-05 22:08
   Matches admin sidebar pattern with grouped navigation
   ======================================== */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: calc(100vw - 60px);
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 70;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1);
}

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

body.drawer-open {
  overflow: hidden;
}

/* Drawer Header */
.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.drawer__brand {
  font: 700 22px/1 var(--font-heading);
  color: var(--text);
}

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.drawer__close:hover {
  background: var(--bg);
  border-color: var(--accent);
}

.drawer__close:active {
  transform: scale(0.95);
}

.drawer__close svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}

/* Drawer Body */
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Drawer Search */
.drawer__search {
  display: flex;
  gap: 8px;
}

.drawer__search input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.drawer__search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.12);
}

.drawer__search input::placeholder {
  color: var(--muted);
}

/* Navigation Groups (mirrors admin sidebar) */
.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.drawer__nav .nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer__nav .nav-group__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 12px;
  margin-bottom: 4px;
}

.drawer__nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.drawer__nav .nav-item:hover {
  background: var(--bg);
  text-decoration: none;
}

.drawer__nav .nav-item--active {
  background: var(--accentSoft);
  font-weight: 600;
}

.drawer__nav .nav-item__icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.drawer__nav .nav-item:hover .nav-item__icon,
.drawer__nav .nav-item--active .nav-item__icon {
  color: var(--accent);
}

/* Legacy drawer styles (backwards compatibility) */
.drawer__section {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.drawer__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.drawer__link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Footer action in drawer */
.drawer__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.drawer__footer .btn {
  width: 100%;
}

/* Overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 65;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.25s ease;
}

body.drawer-open .drawer-overlay {
  display: block;
  animation: overlay-fade 0.25s ease;
}

@keyframes overlay-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ========================================
   SHELL LAYOUT (Admin & Account)
   ======================================== */
.shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .shell {
    grid-template-columns: 260px 1fr;
  }
}

.shell__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.shell__content {
  flex: 1;
  padding: var(--sp-4);
}

@media (min-width: 768px) {
  .shell__content {
    padding: var(--sp-6);
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
  z-index: 60;
  box-shadow: var(--shadow-md);
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: translateX(0);
    box-shadow: none;
  }
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

body.sidebar-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  body.sidebar-open {
    overflow: auto;
  }
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.sidebar__brand {
  font: 600 var(--fs-h3)/1 var(--font-heading);
}

.sidebar__brand:hover {
  text-decoration: none;
}

.sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-8);
  height: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}

.sidebar__close svg {
  width: var(--sp-5);
  height: var(--sp-5);
}

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

.sidebar__nav {
  flex: 1;
  padding: var(--sp-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 55;
  border: none;
  cursor: pointer;
}

body.sidebar-open .sidebar-overlay {
  display: block;
}

@media (min-width: 1024px) {
  .sidebar-overlay {
    display: none !important;
  }
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

@media (min-width: 1024px) {
  .topbar {
    padding: var(--sp-4) var(--sp-6);
  }
}

.topbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-10);
  height: var(--sp-10);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}

.topbar__toggle svg {
  width: var(--sp-5);
  height: var(--sp-5);
}

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

.topbar__title {
  flex: 1;
  font: 600 var(--fs-h3)/1 var(--font-heading);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .topbar__title {
    font-size: var(--fs-body);
  }
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.topbar__actions form {
  margin: 0;
}

/* Nav Groups */
.nav-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nav-group__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--sp-1) var(--sp-3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  font-weight: 500;
  transition: background var(--dur) var(--ease);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.nav-item:hover {
  background: var(--bg);
  text-decoration: none;
}

.nav-item--active {
  background: var(--accentSoft);
  font-weight: 600;
}

.nav-item__icon {
  width: var(--sp-5);
  height: var(--sp-5);
  flex-shrink: 0;
}

.nav-group--bottom {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.nav-item--logout {
  color: var(--danger);
}

.nav-logout {
  margin: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--primary);
  color: var(--primaryText);
  padding: var(--sp-12) 0 var(--sp-6);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1.5fr repeat(4, 1fr);
  margin-bottom: var(--sp-8);
}

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

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

.footer__brand {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer__brand {
    grid-column: span 1;
  }
}

.footer__logo {
  font: 700 var(--fs-h2)/1 var(--font-heading);
  color: var(--primaryText);
  display: block;
  margin-bottom: var(--sp-3);
}

.footer__logo:hover {
  text-decoration: none;
  color: var(--primaryText);
}

.footer__tagline {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--sp-4);
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: var(--sp-2);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-10);
  height: var(--sp-10);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--primaryText);
  transition: all var(--dur) var(--ease);
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer__social-link svg {
  width: var(--sp-5);
  height: var(--sp-5);
}

.footer__title {
  font: 600 var(--fs-body)/1 var(--font-heading);
  margin: 0 0 var(--sp-4);
  color: var(--primaryText);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__links a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--dur) var(--ease);
}

.footer__links a:hover {
  color: var(--primaryText);
  text-decoration: none;
}

.footer__text {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--sp-3);
  line-height: 1.5;
}

.footer__form {
  display: flex;
  gap: var(--sp-2);
}

.footer__form .form-input {
  flex: 1;
  height: var(--sp-10);
  font-size: var(--fs-small);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--primaryText);
}

.footer__form .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__form .form-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.footer__form .btn {
  background: var(--primaryText);
  color: var(--primary);
  border-color: var(--primaryText);
}

.footer__form .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-links {
  display: flex;
  gap: var(--sp-4);
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom-links a:hover {
  color: var(--primaryText);
  text-decoration: none;
}


/* ========================================
   PAGE COMPONENTS
   ======================================== */
.main {
  padding: var(--sp-6) 0;
}

.section {
  margin-bottom: var(--sp-8);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.section-title {
  font: 600 var(--fs-h3)/var(--lh-h3) var(--font-heading);
  margin: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  gap: var(--sp-3);
}

.empty-state__icon {
  width: var(--sp-16);
  height: var(--sp-16);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  margin-bottom: var(--sp-2);
}

.empty-state__icon svg {
  width: var(--sp-8);
  height: var(--sp-8);
  color: var(--muted);
}

.empty-state__title {
  font: 600 var(--fs-body)/1 var(--font-heading);
  margin: 0;
}

.empty-state__text {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

.alert {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-small);
}

.alert--error {
  background: rgba(196, 59, 59, 0.08);
  border: 1px solid rgba(196, 59, 59, 0.2);
  color: var(--danger);
}

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

/* ========================================
   PRODUCT GRID & CARDS - Complete Redesign 2026-01-05
   Mobile-first, premium aesthetic with smooth interactions
   ======================================== */

/* === Product Grid === */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px) {
  .grid-products {
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .grid-products {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .grid-products {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* === Product Card === */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease-out,
    border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 25px -5px rgba(0, 0, 0, 0.1),
    0 4px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(176, 141, 87, 0.3);
}

@media (min-width: 768px) {
  .product-card {
    border-radius: 12px;
  }
}

/* Card Link Wrapper */
.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f6f3 0%, #ece8e2 100%);
}

@media (min-width: 768px) {
  .product-card__media {
    aspect-ratio: 4/5;
  }
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.03) 0%, transparent 30%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.product-card:hover .product-card__media::after {
  opacity: 1;
}

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

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

/* Badge */
.product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, #1b1b1b 0%, #333 100%);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product-card__badge--sale {
  background: linear-gradient(135deg, #c43b3b 0%, #e05555 100%);
}

.product-card__badge--new {
  background: linear-gradient(135deg, #1f7a4a 0%, #2a9a5f 100%);
}

/* Placeholder */
.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f8f6f3 0%, #ece8e2 100%);
  color: var(--muted);
}

.product-card__placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.35;
}

/* Card Body */
.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}

@media (min-width: 768px) {
  .product-card__body {
    padding: 12px 14px;
    gap: 5px;
  }
}

/* Brand */
.product-card__brand {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 768px) {
  .product-card__brand {
    font-size: 10px;
  }
}

/* Title */
.product-card__title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-card__title:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 768px) {
  .product-card__title {
    font-size: 14px;
  }
}

/* Pricing */
.product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.product-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.product-card__price--sale {
  color: #c43b3b;
}

.product-card__price-original {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}

@media (min-width: 768px) {
  .product-card__price {
    font-size: 16px;
  }

  .product-card__price-original {
    font-size: 12px;
  }
}

/* Rating */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.product-card__rating .stars {
  display: inline-flex;
  gap: 1px;
}

.product-card__rating .star {
  width: 11px;
  height: 11px;
}

.product-card__rating span {
  font-size: 10px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .product-card__rating .star {
    width: 12px;
    height: 12px;
  }

  .product-card__rating span {
    font-size: 11px;
  }
}

/* Card Footer (View Details button) */
.product-card__footer {
  padding: 0 10px 10px;
}

@media (min-width: 768px) {
  .product-card__footer {
    padding: 0 14px 12px;
  }
}

.product-card__footer .btn {
  height: 32px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

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

@media (min-width: 768px) {
  .product-card__footer .btn {
    height: 36px;
    font-size: 12px;
  }
}

/* === Stars Component === */
.stars {
  display: inline-flex;
  gap: 1px;
}

.star {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #ddd;
  stroke-width: 1.5;
}

.star--filled {
  fill: #f5a623;
  stroke: #f5a623;
}

/* ========================================
   ACCOUNT PAGES
   ======================================== */
/* Timestamp: 2026-01-04 21:21:16 +05:30 */
.account-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.account-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.account-menu__link {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.account-menu__link:hover {
  background: var(--bg);
  text-decoration: none;
}

.account-menu__link--active {
  background: var(--accentSoft);
  color: var(--text);
}

.account-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--sp-16) * 3), 1fr));
}

.account-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.account-tile__title {
  font: 600 var(--fs-body)/1 var(--font-heading);
  margin: 0;
}

.account-tile__text {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.account-tile__cta {
  font-size: var(--fs-small);
  color: var(--muted);
}

.account-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.account-callout__title {
  font: 600 var(--fs-body)/1 var(--font-heading);
  margin: 0 0 var(--sp-1);
}

.account-callout__text {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ========================================
   ACCOUNT MOBILE ENHANCEMENTS (2026-01-05)
   ======================================== */
.account-section {
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-8);
}

@media (max-width: 768px) {
  .account-section .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
  }

  .account-section .section-header>div:first-child {
    margin-bottom: var(--sp-2);
  }

  .account-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .account-actions .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .account-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: var(--sp-2);
    gap: var(--sp-1);
  }

  .account-menu::-webkit-scrollbar {
    display: none;
  }

  .account-menu__link {
    white-space: nowrap;
    flex-shrink: 0;
    padding: var(--sp-2) var(--sp-3);
  }

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

  .account-tile {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4);
  }

  .account-tile__cta {
    align-self: flex-start;
    margin-top: var(--sp-1);
  }

  .account-callout {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
    text-align: center;
  }

  .account-callout .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .account-section {
    padding: 0 var(--sp-3);
  }

  .account-menu {
    margin: 0 calc(-1 * var(--sp-3));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .account-tile {
    padding: var(--sp-3);
  }

  .summary-item {
    padding: var(--sp-3);
  }

  .summary-item__row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .summary-item__aside {
    width: 100%;
    justify-content: space-between;
  }
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.summary-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.summary-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.summary-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.summary-item__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
  /* Prevent flex overflow */
}

.summary-item__title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 480px) {
  .summary-item__title {
    font-size: var(--fs-small);
    max-width: calc(100vw - 100px);
  }
}

.summary-item__meta {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-body);
}

.summary-item__aside {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.summary-item__badges {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.summary-item__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.summary-item__amount {
  font-weight: 600;
}

.summary-item__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.table-scroll {
  overflow-x: auto;
}

.table-number {
  text-align: right;
  white-space: nowrap;
}

.order-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.order-status__date {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ========================================
   SUMMARY ROWS
   ======================================== */
.summary-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

.summary-row__label {
  font-size: var(--fs-small);
  color: var(--muted);
}

.summary-row__value {
  font-weight: 500;
}

.summary-row--total .summary-row__label,
.summary-row--total .summary-row__value {
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text);
}

.summary-divider {
  height: 1px;
  background: var(--border);
}

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: var(--bg);
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  width: 100%;
  max-width: 900px;
}

@media (min-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr 320px;
  }
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .auth-card {
    padding: var(--sp-5);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.auth-brand {
  display: inline-block;
  font: 600 var(--fs-h2)/1 var(--font-heading);
  margin-bottom: var(--sp-4);
}

.auth-brand:hover {
  text-decoration: none;
}

.auth-title {
  font: 600 var(--fs-h3)/1 var(--font-heading);
  margin: 0 0 var(--sp-2);
}

.auth-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.auth-form {
  margin-bottom: var(--sp-6);
}

.auth-footer {
  text-align: center;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.auth-footer__text {
  margin: 0 0 var(--sp-2);
  color: var(--muted);
  font-size: var(--fs-small);
}

.auth-footer__link {
  font-weight: 600;
  color: var(--accent);
}

.auth-aside {
  display: none;
  background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  color: var(--primaryText);
}

@media (min-width: 768px) {
  .auth-aside {
    display: flex;
    align-items: center;
  }
}

.auth-aside__title {
  font: 600 var(--fs-h3)/1 var(--font-heading);
  margin: 0 0 var(--sp-4);
}

.auth-aside__text {
  margin: 0 0 var(--sp-5);
  opacity: 0.9;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.auth-aside__list {
  margin: 0 0 var(--sp-5);
  padding-left: var(--sp-5);
  font-size: var(--fs-small);
  line-height: 1.8;
  opacity: 0.9;
}

.auth-aside .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--primaryText);
}

.auth-aside .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Form layout for address edit */
.form-layout {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}

@media (max-width: 600px) {
  .form-card {
    padding: var(--sp-4);
  }
}

.form-section {
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.form-section__title {
  font: 600 var(--fs-body)/1 var(--font-heading);
  margin: 0 0 var(--sp-4);
}

.form-toggles {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}

@media (max-width: 600px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}

.info-card__title {
  font: 600 var(--fs-body)/1 var(--font-heading);
  margin: 0 0 var(--sp-3);
}

.info-card__list {
  margin: 0;
  padding-left: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.7;
}

/* ========================================
   PRODUCT LIST - Wishlist & Order Items (2026-01-06)
   Mobile-first horizontal list layout
   ======================================== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.product-list--compact {
  gap: var(--sp-2);
}

.product-list-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .product-list-item {
    grid-template-columns: 100px 1fr auto;
    padding: var(--sp-4);
  }
}

.product-list-item--sm {
  grid-template-columns: 56px 1fr;
  gap: var(--sp-2);
  padding: var(--sp-2);
}

@media (min-width: 640px) {
  .product-list-item--sm {
    grid-template-columns: 64px 1fr auto;
    gap: var(--sp-3);
    padding: var(--sp-3);
  }
}

.product-list-item__image {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.product-list-item__image--sm {
  width: 56px;
  height: 56px;
}

@media (min-width: 640px) {
  .product-list-item__image--sm {
    width: 64px;
    height: 64px;
  }
}

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

.product-list-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--muted);
}

.product-list-item__placeholder svg {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.product-list-item__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.product-list-item__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

@media (min-width: 640px) {
  .product-list-item__header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-2);
  }
}

.product-list-item__title {
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-list-item__title:hover {
  color: var(--accent);
  text-decoration: none;
}

.product-list-item__price {
  font-weight: 700;
  font-size: var(--fs-body);
  white-space: nowrap;
}

.product-list-item__variant {
  font-size: var(--fs-small);
  color: var(--muted);
}

.product-list-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--muted);
}

.product-list-item__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.product-list-item__rating .stars {
  display: inline-flex;
  gap: 1px;
}

.product-list-item__rating .star {
  width: 12px;
  height: 12px;
}

.product-list-item__reviews {
  font-size: var(--fs-small);
  color: var(--muted);
}

.product-list-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.product-list-item__total {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

@media (max-width: 639px) {
  .product-list-item__total {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: var(--sp-2);
    border-top: 1px solid var(--border);
    margin-top: var(--sp-1);
  }
}

/* ========================================
   ORDER LAYOUT - Order Details (2026-01-06)
   ======================================== */
.order-layout {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

/* ========================================
   DISCOUNT LIST - Order Discounts (2026-01-06)
   ======================================== */
.discount-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.discount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--border);
}

.discount-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.discount-item__amount {
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
}

/* ========================================
   ADDRESS DISPLAY - Shipping Address (2026-01-06)
   ======================================== */
.address-display {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.address-display strong {
  font-size: var(--fs-body);
  font-weight: 600;
}

.address-display__phone {
  margin-top: var(--sp-1);
  color: var(--muted);
}

/* ========================================
   FORM SIDEBAR - Address Edit Tips (2026-01-06)
   ======================================== */
.form-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (max-width: 899px) {
  .form-sidebar {
    order: -1;
  }
}

/* Extended form row for 3 columns */
.form-row--3 {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(3, 1fr);
}

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

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

/* Summary row value variants */
.summary-row__value--success {
  color: var(--success);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--sp-10);
    padding: var(--sp-10) 0;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.hero__tag {
  display: inline-block;
  align-self: flex-start;
  padding: var(--sp-1) var(--sp-3);
  background: var(--accentSoft);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__title {
  font: 700 clamp(32px, 6vw, 56px)/1.1 var(--font-heading);
  margin: 0;
}

.hero__text {
  font-size: var(--fs-body);
  color: var(--muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-top: var(--sp-2);
}

.hero__media {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
}

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

/* ========================================
   SECTION HEADERS
   ======================================== */
.section {
  padding: var(--sp-8) 0;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.section-title {
  font: 600 var(--fs-h2)/1.2 var(--font-heading);
  margin: 0;
  word-break: break-word;
}

@media (max-width: 480px) {
  .section-title {
    font-size: var(--fs-h3);
    line-height: 1.3;
  }

  .order-status {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-1);
  }

  .order-status__date {
    font-size: var(--fs-xs);
  }
}

.section-subtitle {
  margin: var(--sp-1) 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

/* ========================================
   CATEGORY CARDS
   ======================================== */
.category-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg);
}

.category-card__media {
  position: absolute;
  inset: 0;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.category-card:hover .category-card__media img {
  transform: scale(1.05);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-5);
  color: #fff;
  z-index: 1;
}

.category-card__title {
  font: 600 var(--fs-h3)/1 var(--font-heading);
  margin: 0 0 var(--sp-2);
}

.category-card__link {
  font-size: var(--fs-small);
  opacity: 0.9;
}

.category-card:hover {
  text-decoration: none;
}

.category-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--accentSoft) 100%);
  color: var(--muted);
}

/* ========================================
   TRUST BADGES
   ======================================== */
.trust-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

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

.trust-item {
  text-align: center;
  padding: var(--sp-4);
}

.trust-item__icon {
  width: var(--sp-10);
  height: var(--sp-10);
  margin: 0 auto var(--sp-3);
  color: var(--accent);
}

.trust-item__title {
  font: 600 var(--fs-body)/1 var(--font-heading);
  margin: 0 0 var(--sp-1);
}

.trust-item__text {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ========================================
   BUTTON VARIANTS
   ======================================== */
.btn--lg {
  height: var(--sp-12);
  padding: 0 var(--sp-6);
  font-size: var(--fs-body);
}

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

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

/* ========================================
   CATALOG + CATEGORY REDESIGN (2026-01-05 01:05:37 +05:30)
   ======================================== */
.catalog-shell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding: var(--sp-6) 0;
}

.catalog-hero {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface), var(--bg), var(--accentSoft));
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.catalog-hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.catalog-hero__eyebrow {
  margin: 0;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.catalog-hero__title {
  margin: 0;
  font: 600 var(--fs-h1)/var(--lh-h1) var(--font-heading);
}

.catalog-hero__lede {
  margin: 0;
  color: var(--muted);
  max-width: calc(var(--sp-16) * 8);
}

.catalog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

.catalog-hero__intro,
.catalog-hero__tiles {
  animation: hero-rise calc(var(--dur) * 2) var(--ease) both;
}

.catalog-hero__tiles {
  animation-delay: var(--dur);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(var(--sp-3));
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-tiles {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accentSoft);
  text-decoration: none;
}

.category-tile--all {
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--accentSoft), var(--surface));
}

.category-tile__icon svg {
  width: var(--sp-6);
  height: var(--sp-6);
}

.category-tile__media {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border: 1px solid var(--border);
}

.category-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-tile__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  background: var(--bg);
}

.category-tile__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.category-tile__title {
  font: 600 var(--fs-body)/var(--lh-body) var(--font-heading);
}

.category-tile__hint {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.catalog-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-8);
}

.catalog-rail {
  flex: 0 0 calc(var(--sp-16) * 4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.catalog-rail__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  box-shadow: var(--shadow-sm);
}

.catalog-feed {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.catalog-feed__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.catalog-feed__title {
  margin: 0;
  font: 600 var(--fs-h3)/var(--lh-h3) var(--font-heading);
}

.catalog-feed__count {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.filter-set {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.filter-panel {
  display: none;
  flex-direction: column;
  gap: var(--sp-4);
}

.filter-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

.filter-panel__title {
  margin: 0;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.filter-panel__hint {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.filter-panel__clear {
  font-size: var(--fs-xs);
  color: var(--accent);
  font-weight: 600;
}

.filter-panel__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.filter-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-2);
  align-items: center;
}

.filter-range__sep {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--text);
}

.filter-toggle input {
  width: var(--sp-4);
  height: var(--sp-4);
  accent-color: var(--primary);
  cursor: pointer;
}

.filter-toggle__text {
  font-weight: 500;
}

.filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}

.filter-drawer {
  display: block;
}

.filter-drawer>summary {
  list-style: none;
}

.filter-drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}

.filter-drawer__count {
  min-width: var(--sp-5);
  height: var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--accentSoft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.filter-drawer__chevron svg {
  width: var(--sp-4);
  height: var(--sp-4);
  transition: transform var(--dur) var(--ease);
}

.filter-drawer[open] .filter-drawer__chevron svg {
  transform: rotate(180deg);
}

.filter-drawer[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0.6;
  pointer-events: none;
  z-index: 60;
}

.filter-drawer__panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-height: calc(var(--sp-16) * 8);
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  animation: drawer-up calc(var(--dur) * 2) var(--ease);
}

@keyframes drawer-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  background: var(--surface);
  color: var(--text);
}

.filter-chip--clear {
  border-color: var(--accentSoft);
  background: var(--bg);
  color: var(--accent);
  font-weight: 600;
}

.filter-chip--clear:hover {
  text-decoration: none;
  background: var(--accentSoft);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb span:not(:last-child) {
  color: var(--border);
}

.category-hero {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.category-hero__media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.category-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   HOME HERO - TOP CATEGORIES
   ======================================== */
.home-hero {
  padding: var(--sp-8) 0;
}

.home-hero__header {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.home-hero__title {
  font: 700 clamp(28px, 5vw, 48px)/1.1 var(--font-heading);
  margin: 0 0 var(--sp-2);
}

.home-hero__subtitle {
  margin: 0;
  color: var(--muted);
}

/* Desktop: featured + secondary grid */
.home-hero__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.home-hero__grid--featured {
  grid-auto-flow: row;
}

.hero-category {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.hero-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.hero-category__media {
  aspect-ratio: 4/3;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-category__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.hero-category:hover .hero-category__media img {
  transform: scale(1.05);
}

.hero-category__initial {
  font: 700 clamp(48px, 8vw, 72px)/1 var(--font-heading);
  color: var(--accent);
  opacity: 0.3;
}

.hero-category__body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.hero-category__title {
  font: 600 var(--fs-h3)/1.2 var(--font-heading);
  margin: 0;
}

.hero-category__count {
  font-size: var(--fs-small);
  color: var(--muted);
}

.hero-category__cta {
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
}

.hero-category--featured {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.hero-category--featured .hero-category__media {
  aspect-ratio: 16 / 10;
}

.hero-category--featured .hero-category__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

.hero-category--secondary {
  grid-column: 2;
}

@media (min-width: 768px) {
  .hero-category--secondary {
    flex-direction: row;
  }

  .hero-category--secondary .hero-category__media {
    flex: 0 0 calc(var(--sp-16) * 2);
    aspect-ratio: 1;
  }

  .hero-category--secondary .hero-category__body {
    flex: 1;
    justify-content: center;
    padding: var(--sp-3);
  }
}

/* Mobile: swipeable category slider (2026-01-05 02:19:55 +05:30) */
@media (max-width: 767px) {
  .home-hero__grid {
    display: flex;
    gap: var(--sp-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--sp-3);
    padding-bottom: var(--sp-2);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .home-hero__grid::-webkit-scrollbar {
    display: none;
  }

  .hero-category {
    flex: 0 0 calc(var(--sp-16) * 4);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-direction: row;
  }

  .hero-category__media {
    flex: 0 0 120px;
    aspect-ratio: 1;
  }

  .hero-category__initial {
    font-size: 36px;
  }

  .hero-category__body {
    flex: 1;
    justify-content: center;
  }
}

.category-hero__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  background: var(--bg);
}

.category-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.category-hero__eyebrow {
  margin: 0;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.category-hero__title {
  margin: 0;
  font: 600 var(--fs-h1)/var(--lh-h1) var(--font-heading);
}

.category-hero__count {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.category-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.subcategory-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.subcategory-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.subcategory-section__title {
  margin: 0;
  font: 600 var(--fs-h3)/var(--lh-h3) var(--font-heading);
}

.subcategory-section__subtitle {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.subcategory-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subcategory-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.subcategory-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.subcategory-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.subcategory-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcategory-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  background: var(--bg);
}

.subcategory-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.subcategory-card__title {
  font: 600 var(--fs-body)/var(--lh-body) var(--font-heading);
}

.subcategory-card__hint {
  font-size: var(--fs-xs);
  color: var(--muted);
}

@media (min-width: 768px) {
  .category-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .catalog-rail {
    position: sticky;
    top: calc(var(--sp-10) + var(--sp-4));
    /* Constrain height and enable internal scroll when filter is tall */
    max-height: calc(100vh - var(--sp-10) - var(--sp-4) - var(--sp-4));
    overflow-y: auto;
    /* Smooth scroll and subtle scrollbar styling */
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  .catalog-rail::-webkit-scrollbar {
    width: 6px;
  }

  .catalog-rail::-webkit-scrollbar-track {
    background: transparent;
  }

  .catalog-rail::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--r-pill);
  }

  .category-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1200px) {
  .subcategory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-hero {
    padding: var(--sp-4);
  }

  .catalog-hero__title {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
  }

  .catalog-layout {
    flex-direction: column;
  }

  .catalog-rail {
    width: 100%;
    order: -1;
  }

  .category-hero {
    padding: var(--sp-4);
  }

  .category-hero__title {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
  }

  .breadcrumb {
    font-size: var(--fs-xs);
    gap: var(--sp-1);
  }

  .filter-actions {
    grid-template-columns: 1fr;
  }
}

/* Catalog category tiles slider refinements (2026-01-05 02:10:19 +05:30) */
@media (max-width: 768px) {
  .category-tiles {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--sp-3);
    padding-bottom: var(--sp-2);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .category-tiles::-webkit-scrollbar {
    display: none;
  }

  .category-tile {
    flex: 0 0 calc(var(--sp-16) * 4);
    min-width: calc(var(--sp-16) * 4);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (prefers-reduced-motion: reduce) {

  .catalog-hero__intro,
  .catalog-hero__tiles,
  .category-tile,
  .subcategory-card {
    animation: none;
    transition: none;
  }
}

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

  .filter-drawer {
    display: none;
  }
}

/* ========================================
   SEARCH PAGE
   ======================================== */
.search-page {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: 0;
}

.search-header {
  text-align: center;
  padding: var(--sp-4) 0;
}

.search-header__title {
  font: 600 var(--fs-h2)/var(--lh-h2) var(--font-heading);
  margin: 0;
}

.search-header__count {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.search-header__subtitle {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-body);
  color: var(--muted);
}

.search-suggestions {
  text-align: center;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.search-suggestions p {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-small);
  color: var(--muted);
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.suggestion-chip {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
  transition: all var(--dur) var(--ease);
}

.suggestion-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primaryText);
  text-decoration: none;
}

@media (max-width: 768px) {
  .search-header__title {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
  }
}


/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-6) 0;
}

.pagination__btn {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease);
}

.pagination__btn:hover {
  background: var(--bg);
  text-decoration: none;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-8);
  height: var(--sp-8);
  font-size: var(--fs-small);
  border-radius: var(--r-md);
  transition: background var(--dur) var(--ease);
}

.pagination__page:hover {
  background: var(--bg);
  text-decoration: none;
}

.pagination__page--active {
  background: var(--primary);
  color: var(--primaryText);
}

.pagination__page--active:hover {
  background: var(--primary);
}

/* ========================================
   EMPTY STATE ENHANCEMENTS
   ======================================== */
.empty-state__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}

/* ========================================
   PRODUCT DETAIL PAGE (PDP) - 2026-01-05
   ======================================== */
.pdp {
  padding: var(--sp-10) 0 var(--sp-12);
}

.pdp__shell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}

.pdp .breadcrumb {
  margin-bottom: 0;
}

.pdp .breadcrumb span:last-child {
  color: var(--text);
  font-weight: 600;
}

.pdp__main {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}

.pdp__main>* {
  min-width: 0;
}

@media (min-width: 900px) {
  .pdp__main {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.pdp__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 100%;
}

.pdp__gallery-main {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.pdp__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease);
}

@media (hover: hover) {
  .pdp__gallery-main:hover img {
    transform: scale(1.02);
  }
}

.pdp__gallery-placeholder {
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}

.pdp__gallery-placeholder svg {
  width: var(--sp-8);
  height: var(--sp-8);
  opacity: 0.5;
}

.pdp__gallery-placeholder span {
  font-size: var(--fs-small);
}

.pdp__gallery-thumbs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  scrollbar-width: none;
  max-width: 100%;
}

.pdp__gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.pdp__gallery-thumb {
  flex: 0 0 auto;
  width: var(--sp-10);
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--surface);
  transition: border-color var(--dur) var(--ease);
}

.pdp__gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__gallery-thumb--active,
.pdp__gallery-thumb:hover {
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .pdp__gallery-thumb {
    width: var(--sp-12);
  }
}

.pdp__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 100%;
}

.pdp__brand {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}

.pdp__title {
  font: 600 var(--fs-h3)/var(--lh-h3) var(--font-heading);
  margin: 0;
}

@media (min-width: 1024px) {
  .pdp__title {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
  }
}

.pdp__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--muted);
}

.pdp__pricing {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pdp__price {
  font: 600 var(--fs-h3)/1 var(--font-heading);
}

@media (min-width: 1024px) {
  .pdp__price {
    font-size: var(--fs-h2);
  }
}

.pdp__price--sale {
  color: var(--danger);
}

.pdp__price-original {
  font-size: var(--fs-small);
  color: var(--muted);
  text-decoration: line-through;
}

.pdp__desc {
  font-size: var(--fs-body);
  color: var(--muted);
  margin: 0;
}

.pdp__buy {
  display: grid;
  gap: var(--sp-4);
  max-width: 100%;
}

.pdp__buy>* {
  min-width: 0;
}

@media (min-width: 768px) {
  .pdp__buy {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.pdp__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.pdp__form .form-input {
  height: var(--sp-8);
  padding: 0 var(--sp-3);
  font-size: var(--fs-body);
  min-width: 0;
  max-width: 100%;
}

.pdp__form select.form-input {
  padding-right: var(--sp-10);
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .pdp__form .form-input {
    height: var(--sp-10);
    padding: 0 var(--sp-4);
  }
}

.pdp__quantity .pdp__qty-input {
  max-width: calc(var(--sp-12) + var(--sp-4));
}

.pdp__actions {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.pdp__wishlist-form {
  display: flex;
  align-self: stretch;
}

@media (min-width: 768px) {
  .pdp__wishlist-form {
    align-self: end;
  }
}

.pdp__wishlist-btn {
  width: var(--sp-10);
  height: var(--sp-10);
  padding: 0;
}

@media (min-width: 768px) {
  .pdp__wishlist-btn {
    width: var(--sp-12);
    height: var(--sp-12);
  }
}

.pdp__trust {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.pdp__trust::-webkit-scrollbar {
  display: none;
}

.pdp__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  white-space: nowrap;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}

.pdp__trust-item svg {
  width: var(--sp-4);
  height: var(--sp-4);
  color: var(--accent);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .pdp__trust {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.pdp__details {
  display: grid;
  gap: var(--sp-4);
  max-width: 100%;
}

@media (min-width: 768px) {
  .pdp__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pdp__details .card {
  padding: var(--sp-4);
}

.specs-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.specs-list__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
}

.specs-list__row:last-child {
  border-bottom: none;
}

.specs-list__row dt {
  color: var(--muted);
  font-size: var(--fs-small);
}

.specs-list__row dd {
  margin: 0;
  font-weight: 600;
}

.pdp__reviews {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 100%;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-small);
}

.review-card__header strong {
  font-weight: 600;
}

.review-card__header .text-muted {
  font-size: var(--fs-small);
}

.review-card__title {
  font-weight: 600;
  font-size: var(--fs-body);
  margin: 0;
  color: var(--text);
}

.review-card__text {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.pdp__review-form {
  margin-top: var(--sp-4);
}

.star-select {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: var(--sp-1);
  position: relative;
}

.star-select__input {
  position: absolute;
  opacity: 0;
  width: var(--sp-1);
  height: var(--sp-1);
}

.star-select__label {
  cursor: pointer;
  padding: var(--sp-1);
}

.star-select__label svg {
  width: var(--sp-6);
  height: var(--sp-6);
  fill: transparent;
  stroke: var(--accent);
  stroke-width: 1.5;
  transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease);
}

.star-select__input:checked~.star-select__label svg,
.star-select__label:hover svg,
.star-select__label:hover~.star-select__label svg {
  fill: var(--accent);
  stroke: var(--accent);
}


/* ========================================
   CART PAGE
   ======================================== */
.cart-page {
  padding: var(--sp-4) 0;
}

.cart-page__title {
  font: 600 var(--fs-h2)/1 var(--font-heading);
  margin: 0 0 var(--sp-5);
}

.cart-layout {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
  }
}

.cart-item__image {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}

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

.cart-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.cart-item__placeholder svg {
  width: var(--sp-6);
  height: var(--sp-6);
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.cart-item__name {
  font-weight: 600;
  margin: 0;
  font-size: var(--fs-body);
}

.cart-item__variant {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

.cart-item__price {
  font-size: var(--fs-small);
  margin: 0;
}

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

@media (max-width: 600px) {
  .cart-item__quantity {
    grid-column: 1 / -1;
  }
}

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

@media (max-width: 600px) {
  .cart-item__total {
    display: none;
  }
}

.cart-item__total-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  display: block;
}

.cart-item__total-value {
  font-weight: 600;
}

.cart-item__remove {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
}

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

.quantity-btn {
  width: var(--sp-8);
  height: var(--sp-8);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.quantity-btn:last-child {
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.quantity-btn:hover {
  background: var(--bg);
}

.quantity-input {
  width: 48px;
  height: var(--sp-8);
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: var(--fs-small);
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.remove-btn {
  width: var(--sp-6);
  height: var(--sp-6);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}

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

.remove-btn svg {
  width: 100%;
  height: 100%;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: sticky;
  top: var(--sp-4);
}

.cart-summary .card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.coupon-form {
  display: flex;
  gap: var(--sp-2);
}

.coupon-form .form-input {
  flex: 1;
}

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

/* ========================================
   CARD ENHANCEMENTS
   ======================================== */
.card__title {
  font: 600 var(--fs-body)/1 var(--font-heading);
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */
.checkout-shell {
  padding: var(--sp-6) 0 var(--sp-8);
}

.checkout-hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.checkout-hero__eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 var(--sp-2);
}

.checkout-hero__title {
  font: 600 var(--fs-h2)/var(--lh-h2) var(--font-heading);
  margin: 0 0 var(--sp-2);
}

.checkout-hero__subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.checkout-trust {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.checkout-trust-card {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.checkout-trust-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkout-trust-card__title {
  margin: 0 0 2px;
  font-weight: 600;
}

.checkout-trust-card__text {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.checkout-grid {
  display: grid;
  gap: var(--sp-6);
}

.checkout-column {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.checkout-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.checkout-panel__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.checkout-panel__title {
  font: 600 var(--fs-h3)/var(--lh-h3) var(--font-heading);
  margin: 0;
}

.checkout-panel__hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.checkout-panel__action {
  align-self: flex-start;
}

.checkout-addresses {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

.address-card {
  position: relative;
}

.address-card__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.address-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-6) var(--sp-4) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.address-card__input:checked+.address-card__body {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.address-card__input:focus-visible+.address-card__body {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.address-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.address-card__label {
  font-weight: 600;
}

.address-card__pill {
  font-size: var(--fs-xs);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accentSoft);
  color: var(--text);
}

.address-card__name {
  font-size: var(--fs-small);
}

.address-card__line {
  font-size: var(--fs-small);
  color: var(--muted);
}

.address-card__phone {
  font-size: var(--fs-small);
  color: var(--muted);
}

.address-card__check {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface);
  transition: all var(--dur) var(--ease);
}

.address-card__check svg {
  width: 14px;
  height: 14px;
}

.address-card__input:checked+.address-card__body .address-card__check {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primaryText);
}

.checkout-add-address {
  margin-top: var(--sp-3);
}

.checkout-summary {
  position: sticky;
  top: var(--sp-4);
}

.checkout-summary__card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.checkout-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: var(--sp-2);
}

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

@media (min-width: 900px) {
  .checkout-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .checkout-trust {
    align-items: flex-end;
  }
}

@media (min-width: 980px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

@media (min-width: 720px) {
  .checkout-panel__header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* Checkout Items & Summary */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.checkout-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-item__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.checkout-item__name {
  font-weight: 500;
  font-size: var(--fs-small);
}

.checkout-item__variant {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.checkout-item__price {
  font-weight: 600;
  font-size: var(--fs-small);
  white-space: nowrap;
}

/* Summary Rows (shared) */
.summary-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-small);
}

.summary-row__label {
  color: var(--muted);
}

.summary-row__value {
  font-weight: 500;
}

.summary-row--discount .summary-row__value {
  color: var(--success);
}

.summary-row--total {
  font-size: var(--fs-body);
  padding-top: var(--sp-2);
}

.summary-row--total .summary-row__label,
.summary-row--total .summary-row__value {
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-2) 0;
}

/* ========================================
   ORDER SUCCESS PAGE
   ======================================== */
.order-success {
  padding: var(--sp-8) 0;
  max-width: 720px;
  margin: 0 auto;
}

.order-success__header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.order-success__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
}

.order-success__icon svg {
  width: 40px;
  height: 40px;
}

.order-success__title {
  font: 600 var(--fs-h2)/1 var(--font-heading);
  margin: 0 0 var(--sp-3);
}

.order-success__number {
  font-size: var(--fs-body);
  color: var(--muted);
  margin: 0 0 var(--sp-2);
}

.order-success__message {
  max-width: 400px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}

.order-success__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.order-success__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.discount-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.discount-item {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--success);
}

/* Empty State Compact */
.empty-state--compact {
  padding: var(--sp-6) var(--sp-4);
}

/* ========================================
   CATEGORIES BROWSE PAGE
   ======================================== */
.categories-page {
  padding: var(--sp-4) 0;
}

.categories-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.categories-header__title {
  font: 600 var(--fs-h2)/1 var(--font-heading);
  margin: 0 0 var(--sp-2);
}

.categories-header__subtitle {
  color: var(--muted);
  margin: 0;
}

.categories-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

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

.category-browse-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.category-browse-card__image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.category-browse-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.category-browse-card__image:hover img {
  transform: scale(1.03);
}

.category-browse-card__content {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.category-browse-card__title {
  font: 600 var(--fs-h3)/1 var(--font-heading);
  color: var(--text);
}

.category-browse-card__title:hover {
  text-decoration: none;
  color: var(--accent);
}

.category-browse-card__children {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.category-browse-card__child {
  font-size: var(--fs-small);
  color: var(--muted);
}

.category-browse-card__child:hover {
  color: var(--accent);
}

.category-browse-card__more {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 500;
}

/* ========================================
   ADMIN PAGE LAYOUT
   ======================================== */
.admin-page {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.admin-header__title {
  font: 600 var(--fs-h2)/1 var(--font-heading);
  margin: 0;
}

.admin-header__subtitle {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: var(--sp-1) 0 0;
}

.admin-header__actions {
  display: flex;
  gap: var(--sp-2);
}

/* Admin Filters */
.admin-filters {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  flex-wrap: wrap;
}

.admin-filters__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 150px;
}

.admin-filters__field--grow {
  flex: 1;
  min-width: 200px;
}

.admin-filters__actions {
  display: flex;
  gap: var(--sp-2);
}

/* Admin Bulk Actions */
.admin-bulk {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* Admin Table */
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.admin-table th,
.admin-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: var(--bg);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table__check {
  width: 40px;
  text-align: center;
}

.admin-table__check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.admin-table__primary {
  font-weight: 600;
}

.admin-table__secondary {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.admin-table__actions {
  display: flex;
  gap: var(--sp-1);
  justify-content: flex-end;
}

.admin-check {
  color: var(--success);
  font-weight: 600;
}

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

/* Small form input */
.form-input--sm {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-small);
}

/* Review Moderation Cards */
.review-moderation-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.review-moderation-card {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.review-moderation-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
}

.review-moderation-card__product {
  font-weight: 600;
}

.review-moderation-card__date {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.review-moderation-card__reviewer {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0 0 var(--sp-2);
}

.review-moderation-card__title {
  font-weight: 600;
  margin: 0 0 var(--sp-1);
}

.review-moderation-card__text {
  margin: 0 0 var(--sp-4);
  line-height: 1.6;
}

.review-moderation-card__actions {
  display: flex;
  gap: var(--sp-2);
}

/* ========================================
   STATIC PAGES
   ======================================== */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
}

.static-page__header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.static-page__title {
  font: 600 var(--fs-h1)/1.1 var(--font-heading);
  margin: 0 0 var(--sp-2);
}

.static-page__subtitle {
  font-size: var(--fs-lg);
  color: var(--muted);
  margin: 0;
}

.static-page__meta {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

.static-page__content {
  padding: var(--sp-8);
}

.policy-section {
  margin-bottom: var(--sp-8);
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: var(--fs-h3);
  margin: 0 0 var(--sp-3);
}

.policy-section p,
.policy-section li {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

.policy-section ul,
.policy-section ol {
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.policy-section li {
  margin-bottom: var(--sp-1);
}

/* Shipping Grid */
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.shipping-card {
  padding: var(--sp-4);
  background: var(--bg);
  border-radius: var(--r-md);
  text-align: center;
}

.shipping-card__icon {
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

.shipping-card__icon svg {
  width: 32px;
  height: 32px;
}

.shipping-card h3 {
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-1);
}

.shipping-card p {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

/* Contact Page */
.contact-page {
  max-width: 1000px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

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

.contact-form-card {
  padding: var(--sp-6);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-info__card {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
}

.contact-info__icon {
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

.contact-info__icon svg {
  width: 24px;
  height: 24px;
}

.contact-info__title {
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--sp-1);
}

.contact-info__text {
  color: var(--text-light);
  margin: 0;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-muted {
  color: var(--muted);
}

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

.mt-4 {
  margin-top: var(--sp-4);
}

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

/* ========================================
   PRODUCT LIST ITEMS (Mobile-First 2026-01-05)
   ======================================== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.product-list--compact {
  gap: var(--sp-2);
}

.product-list-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.product-list-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.product-list-item--sm {
  padding: var(--sp-3);
  gap: var(--sp-3);
}

.product-list-item__image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  display: block;
}

.product-list-item__image--sm {
  width: 72px;
  height: 72px;
}

.product-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.product-list-item:hover .product-list-item__image img {
  transform: scale(1.05);
}

.product-list-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.product-list-item__placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--muted);
  opacity: 0.4;
}

.product-list-item__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.product-list-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}

.product-list-item__title {
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--text);
  line-height: 1.4;
}

.product-list-item__title:hover {
  color: var(--accent);
  text-decoration: none;
}

.product-list-item__price {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--text);
  white-space: nowrap;
}

.product-list-item__variant {
  font-size: var(--fs-small);
  color: var(--muted);
}

.product-list-item__meta {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--muted);
}

.product-list-item__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.product-list-item__reviews {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.product-list-item__actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.product-list-item__total {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Mobile adjustments for product list */
@media (max-width: 640px) {
  .product-list-item {
    flex-wrap: wrap;
    gap: var(--sp-3);
  }

  .product-list-item__image {
    width: 80px;
    height: 80px;
  }

  .product-list-item__image--sm {
    width: 64px;
    height: 64px;
  }

  .product-list-item__header {
    flex-direction: column;
    gap: var(--sp-1);
  }

  .product-list-item__actions {
    width: 100%;
  }

  .product-list-item__actions .btn {
    flex: 1;
    text-align: center;
  }

  .product-list-item__total {
    width: 100%;
    justify-content: flex-end;
    padding-top: var(--sp-2);
    border-top: 1px solid var(--border);
    margin-top: var(--sp-2);
  }
}

/* ========================================
   ORDER LAYOUT
   ======================================== */
.order-layout {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .order-layout {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

/* ========================================
   ADDRESS DISPLAY
   ======================================== */
.address-display {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  line-height: 1.6;
}

.address-display strong {
  font-weight: 600;
}

.address-display__phone {
  color: var(--muted);
  margin-top: var(--sp-2);
}

/* ========================================
   DISCOUNT LIST STYLING
   ======================================== */
.discount-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.discount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
  font-size: var(--fs-small);
}

.discount-item__amount {
  color: var(--success);
  font-weight: 600;
}

/* Summary row success color */
.summary-row__value--success {
  color: var(--success);
}

/* ========================================
   FOOTER - Added 2026-01-05 22:24
   ======================================== */
.footer {
  background: var(--primary);
  color: var(--primaryText);
  padding: 48px 0 0;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__brand {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .footer__brand {
    grid-column: auto;
  }
}

.footer__logo {
  font: 700 24px/1 var(--font-heading);
  color: var(--primaryText);
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-block;
}

.footer__logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
  max-width: 280px;
}

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

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--primaryText);
  transition: background 0.15s ease;
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__title {
  font: 600 14px/1 var(--font-body);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

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

.footer__links a {
  color: var(--primaryText);
  font-size: 14px;
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer__links a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer__text {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}

.footer__form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer__form .form-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--primaryText);
}

.footer__form .form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__form .form-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  opacity: 0.7;
}

.footer__bottom-links {
  display: flex;
  gap: 16px;
}

.footer__bottom-links a {
  color: var(--primaryText);
  text-decoration: none;
}

.footer__bottom-links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer {
    padding: 32px 0 0;
  }

  .footer__grid {
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
}

/* ========================================
   LINK UTILITIES (for admin hyperlinks)
   ======================================== */
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur-quick) var(--ease);
}

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

.link-muted {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease);
}

.link-muted:hover {
  color: var(--accent);
  text-decoration: underline;
}

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

/* ========================================
   STATS GRID (Admin User Details)
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-4);
  background: var(--bg);
  border-radius: var(--r-md);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.stat-card--link:hover {
  background: var(--accentSoft);
  transform: translateY(-2px);
  text-decoration: none;
}

.stat-value {
  font: 700 var(--fs-h3)/1 var(--font-heading);
  color: var(--text);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: var(--sp-1);
}

/* Card Header with Title + Action */
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.card__header .card__title {
  margin: 0;
}

/* ========================================
   ADMIN DASHBOARD
   ======================================== */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

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

@media (max-width: 600px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.metric-card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.metric-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--bg);
  border-radius: var(--r-md);
}

.metric-card__content {
  flex: 1;
  min-width: 0;
}

.metric-card__value {
  font: 700 var(--fs-h2)/1 var(--font-heading);
  color: var(--text);
}

.metric-card__label {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: var(--sp-1);
}

.metric-card__change {
  font-size: var(--fs-xs);
  margin-top: var(--sp-2);
}

.metric-card__change--up {
  color: var(--success);
}

.metric-card__change--down {
  color: var(--danger);
}

.metric-card__breakdown {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: var(--sp-2);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

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

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3);
  background: var(--bg);
  border-radius: var(--r-md);
  gap: var(--sp-3);
}

.activity-item__content {
  font-size: var(--fs-small);
}

.activity-item__amount {
  font-weight: 600;
  white-space: nowrap;
}

.text-danger {
  color: var(--danger);
  font-weight: 600;
}

.text-warning {
  color: #b57e14;
  font-weight: 600;
}

/* ========================================
   REPORTS PAGE
   ======================================== */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

@media (min-width: 900px) {
  .reports-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.report-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.report-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.report-card__icon {
  font-size: 48px;
  margin-bottom: var(--sp-3);
}

.report-card__title {
  font: 600 var(--fs-h4)/1.2 var(--font-heading);
  margin: 0 0 var(--sp-2);
}

.report-card__description {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

.admin-table__row--danger {
  background: rgba(var(--danger-rgb, 220, 53, 69), 0.05);
}