

/* ─────────────────────────────────────────────────────────
   1. Design Tokens
   Single source of truth for every visual value.
   ───────────────────────────────────────────────────────── */
   
:root {
  /* Brand */
  --color-brand:            #0b5fff;
  --color-brand-hover:      #094dd4;
  --color-brand-light:      #337aff;
  --color-brand-soft:       #e7f1ff;
  --color-brand-ring:       rgba(11, 95, 255, 0.25);

  /* Neutrals */
  --color-surface:          #ffffff;
  --color-surface-alt:      #f8f9fa;
  --color-border:           #dee2e6;
  --color-border-light:     #e9ecef;
  --color-text:             #212529;
  --color-text-muted:       #6c757d;
  --color-text-inverse:     #ffffff;

  /* Dashboard chrome (dark) */
  --color-chrome-header:    #0f172a;
  --color-chrome-sidebar:   #111827;
  --color-chrome-footer:    #ffffff;
  --color-chrome-text:      #f9fafb;
  --color-chrome-muted:     #94a3b8;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
}

/* ─────────────────────────────────────────────────────────
   2. Base
   ───────────────────────────────────────────────────────── */
body {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

/* ─────────────────────────────────────────────────────────
   3. Dashboard Shell
   Migrated from framework-styles.php inline style block.
   ───────────────────────────────────────────────────────── */
.dashboard-layout {
  height: 100vh;
  overflow: hidden;
}

.dashboard-layout .dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  color: #212529;
}

.dashboard-layout .dashboard-shell {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 48px;
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: grid-template-columns 0.2s ease;
}

.dashboard-layout .dashboard-sidebar {
  background: #ffffff;
  border-right: 1px solid #e9ecef;
  color: #212529;
  padding: 1rem;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dashboard-layout .dashboard-content {
  padding: var(--space-lg);
  background: var(--color-surface-alt);
  overflow-y: auto;
  transition: opacity 0.18s ease;
}

.dashboard-layout .dashboard-content.is-loading {
  opacity: 0.75;
}

.dashboard-layout .dashboard-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-top: 1px solid #e9ecef;
  background: #ffffff;
  color: #6c757d;
  padding: 0 1rem;
}

/* Sidebar brand (top) */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.sidebar-brand-text strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #212529;
}

/* Sidebar nav (light) */
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.15rem;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #495057;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sidebar-nav__link:hover {
  background: #f0f4ff;
  color: var(--color-brand);
}

.sidebar-nav__link.active {
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-weight: 600;
}

.sidebar-nav__link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar bottom (profile + settings) */
.sidebar-bottom {
  border-top: 1px solid #e9ecef;
  padding-top: 0.75rem;
  margin-top: auto;
  display: grid;
  gap: 0.15rem;
}

.sidebar-bottom .sidebar-nav__link {
  color: #6c757d;
}

.sidebar-bottom .sidebar-nav__link:hover {
  background: #f0f4ff;
  color: var(--color-brand);
}

.sidebar-bottom .dropdown .sidebar-nav__link {
  cursor: pointer;
}

.sidebar-bottom .dropdown-menu {
  min-width: 180px;
}

/* Collapse toggle button (desktop header) */
.sidebar-collapse-toggle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #6c757d;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sidebar-collapse-toggle:hover {
  background: #f0f4ff;
  color: var(--color-brand);
}

.sidebar-collapse-toggle i {
  transition: transform 0.25s ease;
}

/* Collapsed sidebar state */
.dashboard-layout.sidebar-collapsed .dashboard-shell {
  grid-template-columns: 56px 1fr;
}

.dashboard-layout.sidebar-collapsed .dashboard-sidebar {
  padding: 0.75rem 0.5rem;
  align-items: center;
}

.dashboard-layout.sidebar-collapsed .sidebar-brand {
  border-bottom: none;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.dashboard-layout.sidebar-collapsed .sidebar-brand-icon {
  margin: 0;
}

.dashboard-layout.sidebar-collapsed .sidebar-brand-text,
.dashboard-layout.sidebar-collapsed .sidebar-nav__link span,
.dashboard-layout.sidebar-collapsed .sidebar-bottom-text {
  display: none;
}

.dashboard-layout.sidebar-collapsed .sidebar-nav__link {
  justify-content: center;
  padding: 0.5rem;
}

.dashboard-layout.sidebar-collapsed .sidebar-nav__link i {
  margin: 0;
  width: auto;
}

.dashboard-layout.sidebar-collapsed .sidebar-bottom {
  border-top: none;
  padding-top: 0.5rem;
}

.dashboard-layout.sidebar-collapsed .sidebar-collapse-toggle i {
  transform: rotate(180deg);
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
  .dashboard-layout .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-layout .dashboard-sidebar {
    position: fixed;
    top: 48px;
    left: 0;
    bottom: 48px;
    width: 260px;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
  }

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

  .dashboard-layout.sidebar-collapsed .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-layout.sidebar-collapsed .dashboard-sidebar {
    width: 260px;
    transform: translateX(-100%);
    padding: 1rem;
    align-items: stretch;
  }

  .dashboard-layout.sidebar-collapsed.sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-layout.sidebar-collapsed .sidebar-brand-text,
  .dashboard-layout.sidebar-collapsed .sidebar-nav__link span,
  .dashboard-layout.sidebar-collapsed .sidebar-bottom-text {
    display: inline;
  }

  .dashboard-layout.sidebar-collapsed .sidebar-nav__link {
    justify-content: flex-start;
    padding: 0.5rem 0.75rem;
  }

  .dashboard-layout.sidebar-collapsed .sidebar-nav__link i {
    width: 20px;
  }

  .sidebar-collapse-toggle {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────────────────
   4. Public Navbar
   Desktop: brand (left) | search (center) | nav (right).
   Mobile:  brand + toggler — search below — collapse links.
   Search is always visible, never hidden inside collapse.
   ───────────────────────────────────────────────────────── */
.navbar-main {
  background: var(--color-surface);
  min-height: 110px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--color-border-light);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

/* Brand */
.navbar-brand-icon {
  flex-shrink: 0;
}

.navbar-brand-text {
  font-size: var(--text-2xl);
  color: var(--color-text);
  white-space: nowrap;
}

/* Nav links */
.navbar-main .nav-link {
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

/* Cart icon + badge */
.nav-cart-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-cart-link:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.nav-cart-icon {
  font-size: 1.55rem;
  vertical-align: middle;
}

.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #dc3545;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-surface);
  pointer-events: none;
}

.nav-cart-badge[hidden] {
  display: none !important;
}

/* Search — always visible, never inside collapse */
.navbar-search-wrapper {
  width: 100%;
}

.nav-search-input-group {
  width: 100%;
}

.nav-search-input-group .input-group-text {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border-right: 0;
}

.nav-search-input-group .form-control {
  border-left: 0;
  border-right: 0;
  font-size: var(--text-base);
  padding-left: 0.25rem;
}

.nav-search-input-group .form-control:focus {
  border-color: var(--color-border);
  box-shadow: none;
}

.nav-search-input-group .btn {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* Desktop: flex row, search centered between brand and nav */
@media (min-width: 992px) {
  .navbar-main .container-fluid {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
  }

  .navbar-search-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    max-width: 540px;
    margin: 0 auto;
    padding: 0 var(--space-md);
  }

  .navbar-main .navbar-collapse {
    display: flex !important;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .navbar-main .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .btn-sm-brand {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .nav-cart-link {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* Mobile: search sits between brand row and collapse, always visible */
@media (max-width: 991.98px) {
  .navbar-main .container-fluid {
    flex-wrap: wrap;
  }

  .navbar-main .navbar-brand {
    order: 1;
  }

  .navbar-main .navbar-toggler {
    order: 2;
  }

  .navbar-search-wrapper {
    order: 3;
    width: 100%;
    padding: var(--space-sm) 0 0;
  }

  .nav-search-input-group .btn {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .navbar-main .navbar-collapse {
    order: 4;
    width: 100%;
  }

  .navbar-main .navbar-nav {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border-light);
  }

  .nav-cart-badge {
    top: -2px;
    right: -2px;
  }

  .nav-item .btn-brand {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-xs);
  }
}

/* ─────────────────────────────────────────────────────────
   5. Buttons
   ───────────────────────────────────────────────────────── */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  border: none;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast),
              background-color var(--transition-fast);
}

.btn-brand:hover {
  background: var(--color-brand-hover);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--color-brand);
  border: 1px solid transparent;
  padding: 0.45rem 0.8rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast),
              background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.btn-ghost:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
  border-color: var(--color-brand-ring);
  transform: translateY(-1px);
}

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
  padding: 0.5rem 0.75rem;
  font-size: var(--text-base);
  font-weight: 400;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast),
              background-color var(--transition-fast),
              color var(--transition-fast);
}

.btn-outline-brand:hover {
  background: var(--color-brand-soft);
  color: var(--color-brand);
  transform: translateY(-1px);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  line-height: 2;
  font-weight: 700;
  stroke-width: 1.5;
}

/* ─────────────────────────────────────────────────────────
   6. Page Header
   Standardized: icon circle + title + subtitle + actions.
   ───────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.page-header__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-brand);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.page-header__icon i {
  font-size: 1.5rem;
}

.page-header__body {
  flex: 1;
  min-width: 0;
}

.page-header__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-xs);
  line-height: 1.2;
}

.page-header__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.page-header__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-left: auto;
}

@media (max-width: 991.98px) {
  .page-header__actions {
    margin-left: 0;
    width: 100%;
  }
}

/* ─────────────────────────────────────────────────────────
   7. Cards
   ───────────────────────────────────────────────────────── */
.card-app {
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
  overflow: hidden;
}

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

.card-app__body {
  padding: var(--space-lg);
}

.card-app--hover {
  transition: box-shadow var(--transition-base),
              transform var(--transition-base);
}

.card-app--hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────
   8. Data Tables
   ───────────────────────────────────────────────────────── */
.table-app {
  margin: 0;
}

.table-app thead th {
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-brand-light);
  padding: var(--space-sm) var(--space-md);
  vertical-align: middle;
}

.table-app tbody td {
  padding: var(--space-sm) var(--space-md);
  vertical-align: middle;
  font-size: var(--text-sm);
}

.table-app tbody tr:hover {
  background: var(--color-brand-soft);
}

/* ─────────────────────────────────────────────────────────
   9. Status Badges
   ───────────────────────────────────────────────────────── */
.badge-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25em 0.65em;
  border-radius: var(--radius-full);
}

.badge-status--success { background: #d1fae5; color: #065f46; }
.badge-status--warning { background: #fef3c7; color: #92400e; }
.badge-status--danger  { background: #fee2e2; color: #991b1b; }
.badge-status--info    { background: #dbeafe; color: #1e40af; }
.badge-status--neutral { background: #f3f4f6; color: #374151; }

/* ─────────────────────────────────────────────────────────
   10. Empty State
   ───────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--color-text-muted);
  text-align: center;
}

.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.empty-state__message {
  font-size: var(--text-sm);
  max-width: 320px;
}

/* ─────────────────────────────────────────────────────────
   11. Hero Section
   ───────────────────────────────────────────────────────── */
.hero-section {
  min-height: 500px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.hero-section .hero-content {
  width: 100%;
  padding: var(--space-2xl) var(--space-md);
}

.hero-section.parallax {
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
}

@media (max-width: 767.98px) {
  .hero-section.parallax {
    background-attachment: scroll;
  }
}

/* ─────────────────────────────────────────────────────────
   12. Footer
   ───────────────────────────────────────────────────────── */
.footer-main {
  min-height: 30vh;
  max-height: 50vh;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
}

.footer-links {
  justify-content: flex-end !important;
  text-align: right !important;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer-links ul {
    justify-content: flex-end;
  }
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--color-brand);
}

@media (max-width: 767.98px) {
  .footer-main {
    min-height: auto !important;
    max-height: auto !important;
  }

  .footer-links h3,
  .footer-links li {
    text-align: center !important;
  }
}

/* ─────────────────────────────────────────────────────────
   13. Home page
   ───────────────────────────────────────────────────────── */

/* Hero card (left-aligned white container over parallax) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 95, 255, 0.45);
}

.hero-card {
  background: var(--color-surface);
  max-width: 560px;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-card__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.hero-card__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.btn-lg-brand {
  padding: 0.7rem 1.4rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

@media (max-width: 767.98px) {
  .hero-card {
    max-width: 100%;
    padding: var(--space-xl) var(--space-lg);
  }

  .hero-card__title {
    font-size: 1.5rem;
  }

  .hero-card__text {
    font-size: var(--text-base);
  }
}

/* About section */
.about-section {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}

/* Section headers */
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.section-lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.4rem;
  }
}

/* Featured products section */
.featured-section {
  padding: var(--space-2xl) 0;
  background: var(--color-surface-alt);
}

/* Product cards grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

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

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

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

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  color: var(--color-text);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--color-text);
}

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-alt);
}

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

.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-surface);
  color: var(--color-brand);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.product-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__org {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

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

.product-card__price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-brand);
}

.product-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
}

.product-card__cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--color-brand);
  color: var(--color-text-inverse);
  border: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card__cart-btn:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.product-card__cart-btn:disabled {
  background: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-card__cart-btn.btn-success {
  background: #198754;
}

/* Utility */
.text-brand {
  color: var(--color-brand) !important;
}

/* Categories section */
.categories-section {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

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

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

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--color-text);
}

.category-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.category-card__body {
  padding: var(--space-md);
  text-align: center;
}

.category-card__name {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}

.category-pill:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-soft);
}

.category-pill--active {
  background: var(--color-brand);
  color: var(--color-text-inverse);
  border-color: var(--color-brand);
}

.category-pill--active:hover {
  background: var(--color-brand-hover);
  color: var(--color-text-inverse);
  border-color: var(--color-brand-hover);
}