/* ==========================================================================
   YEO - Storefront redesign
   Production-ready layout for a 10M+ product affiliate aggregator.
   Brand: #bb0000 / #FFFFFF on a dark, futuristic canvas.
   ========================================================================== */

/* ------------------------------ Design tokens ----------------------------- */
/* Light theme = default. Dark theme via [data-theme="dark"]. */
:root {
  --yeo-bg:          #f7f7fb;
  --yeo-bg-elev:     #ffffff;
  --yeo-bg-elev-2:   #fbfbfd;
  --yeo-surface:     rgba(255, 255, 255, 0.7);
  --yeo-surface-2:   #ffffff;
  --yeo-surface-3:   rgba(255, 255, 255, 0.92);
  --yeo-line:        rgba(16, 16, 30, 0.08);
  --yeo-line-2:      rgba(16, 16, 30, 0.14);
  --yeo-ink:         #0e0e18;
  --yeo-ink-soft:    rgba(14, 14, 24, 0.82);
  --yeo-muted:       rgba(14, 14, 24, 0.6);
  --yeo-dim:         rgba(14, 14, 24, 0.42);

  --yeo-brand:       #bb0000;
  --yeo-brand-2:     #e11818;
  --yeo-brand-ink:   #7a0000;
  --yeo-brand-soft:  rgba(187, 0, 0, 0.1);
  --yeo-brand-glow:  rgba(187, 0, 0, 0.28);
  --yeo-success:     #16a36a;

  --yeo-header-bg:   rgba(255, 255, 255, 0.82);
  --yeo-header-border: rgba(16, 16, 30, 0.08);
  --yeo-input-bg:    #ffffff;
  --yeo-input-bg-2:  #f4f4f8;

  --yeo-body-bg:
    radial-gradient(1200px 800px at 100% -10%, rgba(187, 0, 0, 0.10), transparent 60%),
    radial-gradient(900px 700px at -10% 15%, rgba(40, 40, 100, 0.05), transparent 70%),
    radial-gradient(1000px 900px at 50% 120%, rgba(187, 0, 0, 0.06), transparent 70%),
    var(--yeo-bg);

  --yeo-grid-line:   rgba(16, 16, 30, 0.035);
  --yeo-grid-opacity: 0.8;

  --yeo-scroll-thumb: rgba(16, 16, 30, 0.18);
  --yeo-scroll-thumb-hover: rgba(16, 16, 30, 0.32);

  --yeo-shadow-sm:   0 6px 18px rgba(16, 16, 30, 0.06);
  --yeo-shadow-md:   0 18px 44px rgba(16, 16, 30, 0.10);
  --yeo-shadow-brand: 0 14px 40px -14px var(--yeo-brand-glow);

  --yeo-overlay:     rgba(12, 12, 20, 0.35);

  --yeo-r-xs: 6px;
  --yeo-r-sm: 10px;
  --yeo-r-md: 14px;
  --yeo-r-lg: 20px;
  --yeo-r-xl: 28px;
  --yeo-r-pill: 999px;

  --yeo-font-sans:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --yeo-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --yeo-font-mono:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --yeo-header-h-mobile:  168px;
  --yeo-header-h-tablet:  160px;
  --yeo-header-h-desktop: 160px;
  --yeo-tabbar-h: 68px;
  --yeo-rail-w:  320px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --yeo-bg:          #07070c;
  --yeo-bg-elev:     #0d0d16;
  --yeo-bg-elev-2:   #11111c;
  --yeo-surface:     rgba(255, 255, 255, 0.035);
  --yeo-surface-2:   rgba(255, 255, 255, 0.06);
  --yeo-surface-3:   rgba(255, 255, 255, 0.09);
  --yeo-line:        rgba(255, 255, 255, 0.08);
  --yeo-line-2:      rgba(255, 255, 255, 0.14);
  --yeo-ink:         #f6f6f8;
  --yeo-ink-soft:    rgba(246, 246, 248, 0.82);
  --yeo-muted:       rgba(246, 246, 248, 0.62);
  --yeo-dim:         rgba(246, 246, 248, 0.42);

  --yeo-brand:       #bb0000;
  --yeo-brand-2:     #ff2b2b;
  --yeo-brand-ink:   #ff5a5a;
  --yeo-brand-soft:  rgba(187, 0, 0, 0.18);
  --yeo-brand-glow:  rgba(187, 0, 0, 0.45);
  --yeo-success:     #19c37d;

  --yeo-header-bg:   rgba(7, 7, 12, 0.85);
  --yeo-header-border: rgba(255, 255, 255, 0.08);
  --yeo-input-bg:    rgba(255, 255, 255, 0.06);
  --yeo-input-bg-2:  rgba(255, 255, 255, 0.04);

  --yeo-body-bg:
    radial-gradient(1200px 800px at 100% -10%, rgba(187, 0, 0, 0.22), transparent 60%),
    radial-gradient(900px 700px at -10% 15%, rgba(80, 0, 140, 0.16), transparent 70%),
    radial-gradient(1000px 900px at 50% 120%, rgba(187, 0, 0, 0.12), transparent 70%),
    var(--yeo-bg);

  --yeo-grid-line:   rgba(255, 255, 255, 0.04);
  --yeo-grid-opacity: 0.5;

  --yeo-scroll-thumb: rgba(255, 255, 255, 0.14);
  --yeo-scroll-thumb-hover: rgba(255, 255, 255, 0.28);

  --yeo-shadow-sm:   0 4px 14px rgba(0, 0, 0, 0.35);
  --yeo-shadow-md:   0 14px 40px rgba(0, 0, 0, 0.45);
  --yeo-shadow-brand: 0 18px 60px -20px var(--yeo-brand-glow);

  --yeo-overlay:     rgba(4, 4, 10, 0.7);

  color-scheme: dark;
}

/* --------------------------- Global resets / base ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--yeo-bg);
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

/* overflow-x: clip keeps horizontal scroll away without breaking position: sticky */
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--yeo-body-bg);
  background-attachment: fixed;
  color: var(--yeo-ink);
  font-family: var(--yeo-font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: var(--yeo-header-h-mobile);
}

@media (min-width: 992px) {
  body { padding-top: var(--yeo-header-h-desktop); }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(transparent 95%, var(--yeo-grid-line) 95%) 0 0 / 100% 32px,
    linear-gradient(90deg, transparent 95%, var(--yeo-grid-line) 95%) 0 0 / 32px 100%;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.55), transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.55), transparent 70%);
  opacity: var(--yeo-grid-opacity);
}

body.yeo-no-scroll {
  overflow: hidden;
  touch-action: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--yeo-font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--yeo-ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.85rem); line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 1.4vw + 1rem, 2.15rem); line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.55rem); }

p  { color: var(--yeo-ink-soft); }

a {
  color: var(--yeo-ink);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

a:hover {
  color: var(--yeo-brand-2);
}

.eyebrow {
  font-family: var(--yeo-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yeo-brand-2);
}

::selection {
  background: var(--yeo-brand);
  color: #fff;
}

/* Scrollbars */
* {
  scrollbar-color: var(--yeo-scroll-thumb) transparent;
  scrollbar-width: thin;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--yeo-scroll-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--yeo-scroll-thumb-hover); background-clip: padding-box; }

.yeo-skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  background: var(--yeo-brand);
  color: #fff;
  border-radius: var(--yeo-r-sm);
  font-weight: 600;
  z-index: 1200;
  transition: top 200ms ease;
}
.yeo-skip-link:focus { top: 16px; color: #fff; }

/* ============================ Admin template reset ======================== */
/* We keep the admin DOM (layout-wrapper/layout-container/layout-page/layout-menu)
   for compatibility with filters.php, but we strip the admin visuals. */
html.layout-menu-fixed,
html.layout-navbar-fixed {
  background: transparent;
}

.layout-wrapper.yeo-shell,
.layout-wrapper.yeo-shell .layout-container {
  display: block;
  height: auto;
  min-height: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.layout-wrapper.yeo-shell .layout-page {
  display: block;
  flex: unset;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  min-height: calc(100vh - var(--yeo-header-h-mobile) - var(--yeo-tabbar-h));
}

.layout-wrapper.yeo-shell .content-wrapper {
  background: transparent;
  padding: 0;
}

.layout-wrapper.yeo-shell .content-wrapper > .container-xxl,
.layout-wrapper.yeo-shell .content-wrapper > .flex-grow-1,
.layout-wrapper.yeo-shell .content-wrapper .container-xxl {
  max-width: min(1440px, 100%);
  padding-inline: clamp(16px, 4vw, 40px);
  padding-block: clamp(24px, 4vw, 56px);
}

/* Kill the admin overlay — we own overlays now. */
.layout-wrapper.yeo-shell .layout-overlay { display: none !important; }

/* ============================== Sticky header ============================= */
.yeo-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.yeo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--yeo-header-bg);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid var(--yeo-header-border);
  box-shadow: var(--yeo-shadow-sm);
  transition: box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.yeo-header.is-scrolled {
  box-shadow: var(--yeo-shadow-md);
  border-bottom-color: var(--yeo-line-2);
}

.yeo-promo-strip {
  background: linear-gradient(90deg, var(--yeo-brand) 0%, #7a0000 60%, var(--yeo-brand) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.yeo-promo-strip .yeo-container {
  padding-block: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.yeo-promo-strip i {
  font-size: 18px;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

/* ----- Main header row (logo + search + actions) ----- */
.yeo-header-main {
  border-bottom: 1px solid var(--yeo-line);
}

.yeo-header-row {
  display: grid;
  align-items: center;
  gap: 12px 16px;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    'menu  brand   actions'
    'search search search';
  padding-block: 12px;
}

@media (min-width: 992px) {
  .yeo-header-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: 'brand search actions';
    padding-block: 16px;
    gap: 24px;
  }
}

.yeo-menu-btn { grid-area: menu; }
.yeo-brand-lockup { grid-area: brand; }
.yeo-search { grid-area: search; }
.yeo-header-actions { grid-area: actions; }

@media (min-width: 992px) {
  .yeo-menu-btn { display: none !important; }
}

.yeo-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--yeo-r-pill);
  background: var(--yeo-surface-2);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  padding: 0;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease, color 180ms ease;
  font-size: 20px;
}

.yeo-icon-btn:hover {
  background: var(--yeo-surface-3);
  border-color: var(--yeo-line-2);
  color: var(--yeo-brand-2);
}

.yeo-icon-btn:active { transform: scale(0.96); }

.yeo-menu-btn i { font-size: 26px; }

/* Brand lockup */
.yeo-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--yeo-ink);
  flex-shrink: 0;
}

.yeo-brand-lockup:hover { color: var(--yeo-ink); }

.yeo-brand-lockup img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 600px) {
  .yeo-brand-lockup img { width: 56px; height: 56px; }
}

.yeo-brand-copy { display: none !important; }

.yeo-brand-title {
  font-family: var(--yeo-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff 30%, var(--yeo-brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.yeo-brand-subtitle {
  font-family: var(--yeo-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yeo-dim);
  margin-top: 4px;
}

/* ----- Search ----- */
.yeo-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yeo-surface-2);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-pill);
  padding: 6px 8px 6px 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  min-height: 48px;
  width: 100%;
}

.yeo-search:focus-within {
  background: var(--yeo-surface-3);
  border-color: rgba(187, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(187, 0, 0, 0.12), 0 10px 30px -15px var(--yeo-brand-glow);
}

.yeo-search-icon {
  color: var(--yeo-muted);
  font-size: 20px;
  flex-shrink: 0;
}

.yeo-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--yeo-ink);
  font-size: 15px;
  padding: 6px 4px;
  outline: none;
  font-family: inherit;
}

.yeo-search-input::placeholder {
  color: var(--yeo-dim);
}

.yeo-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--yeo-muted);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.3 5.71L12 12.01l-6.3-6.3-1.41 1.42L10.59 13.4l-6.3 6.3 1.41 1.41L12 14.82l6.3 6.29 1.41-1.41-6.3-6.3 6.3-6.29z"/></svg>') center/contain no-repeat;
  cursor: pointer;
}

.yeo-search-scope {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-pill);
  font-size: 12px;
  color: var(--yeo-muted);
  white-space: nowrap;
  cursor: pointer;
}

@media (min-width: 1100px) {
  .yeo-search-scope { display: inline-flex; }
}

.yeo-search-scope input {
  accent-color: var(--yeo-brand);
}

.yeo-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--yeo-r-pill);
  background: linear-gradient(135deg, var(--yeo-brand) 0%, var(--yeo-brand-2) 100%);
  color: #fff;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -8px var(--yeo-brand-glow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.yeo-search-submit:hover {
  transform: translateX(2px);
  box-shadow: 0 12px 36px -10px var(--yeo-brand-glow);
}

/* ----- Header right-side actions ----- */
.yeo-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yeo-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--yeo-r-pill);
  background: var(--yeo-surface-2);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  font-size: 14px;
  font-weight: 500;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.yeo-header-action:hover {
  background: var(--yeo-surface-3);
  border-color: var(--yeo-line-2);
  color: var(--yeo-brand-2);
}

.yeo-header-action i { font-size: 20px; }

.yeo-header-action-label { display: none; }

@media (min-width: 1200px) {
  .yeo-header-action-label { display: inline; }
}

@media (max-width: 600px) {
  .yeo-header-action {
    padding: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
    gap: 0;
  }
  .yeo-header-action .yeo-header-action-label { display: none; }
  .yeo-header-action .yeo-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    transform: none;
  }
}

.yeo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--yeo-brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--yeo-header-bg, var(--yeo-bg-elev)), 0 4px 12px -4px var(--yeo-brand-glow);
}

/* ----- Theme toggle button ----- */
.yeo-theme-toggle {
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  justify-content: center;
}

.yeo-theme-toggle .yeo-theme-icon-sun,
.yeo-theme-toggle .yeo-theme-icon-moon {
  position: absolute;
  transition: opacity 220ms ease, transform 300ms ease;
  font-size: 20px;
}

:root[data-theme="dark"] .yeo-theme-toggle .yeo-theme-icon-moon,
:root:not([data-theme="dark"]) .yeo-theme-toggle .yeo-theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

:root[data-theme="dark"] .yeo-theme-toggle .yeo-theme-icon-sun,
:root:not([data-theme="dark"]) .yeo-theme-toggle .yeo-theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

@media (max-width: 420px) {
  .yeo-theme-toggle { display: none; }
}

/* Account dropdown */
.yeo-account .dropdown-toggle::after { display: none; }

.yeo-avatar-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--yeo-r-pill);
  background: linear-gradient(135deg, rgba(187, 0, 0, 0.25), rgba(255, 43, 43, 0.35));
  border: 1px solid rgba(255, 43, 43, 0.35);
}

.yeo-avatar-btn:hover { background: linear-gradient(135deg, rgba(187, 0, 0, 0.4), rgba(255, 43, 43, 0.55)); color: #fff; }

.yeo-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.yeo-avatar i { font-size: 22px; }

.yeo-account-menu {
  background: var(--yeo-bg-elev);
  border: 1px solid var(--yeo-line-2);
  border-radius: var(--yeo-r-md);
  box-shadow: var(--yeo-shadow-md);
  padding: 6px;
  min-width: 260px;
  color: var(--yeo-ink);
}

.yeo-account-menu .dropdown-item {
  color: var(--yeo-ink-soft);
  border-radius: var(--yeo-r-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
}

.yeo-account-menu .dropdown-item:hover,
.yeo-account-menu .dropdown-item:focus {
  background: var(--yeo-surface-2);
  color: var(--yeo-ink);
}

.yeo-account-menu .dropdown-divider {
  border-color: var(--yeo-line);
  margin: 6px 0;
}

.yeo-account-menu .form-control {
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  border-radius: var(--yeo-r-sm);
  padding: 10px 12px;
}

.yeo-account-menu .form-control:focus {
  background: var(--yeo-surface-2);
  border-color: var(--yeo-brand);
  box-shadow: 0 0 0 3px var(--yeo-brand-soft);
  color: var(--yeo-ink);
}

.yeo-account-menu .form-label { color: var(--yeo-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.yeo-account-menu .form-check-label { color: var(--yeo-ink-soft); }

/* =============================== Category bar ============================= */
.yeo-category-bar {
  display: none;
  border-bottom: 1px solid var(--yeo-line);
}

@media (min-width: 992px) {
  .yeo-category-bar { display: block; }
}

.yeo-category-list {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
  overflow: visible;
}

.yeo-category-list > li > a,
.yeo-category-list .yeo-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  color: var(--yeo-ink-soft);
  font-weight: 500;
  font-size: 14.5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 180ms ease;
}

.yeo-category-list > li > a::after,
.yeo-category-list .yeo-mega-trigger::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--yeo-brand), var(--yeo-brand-2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.yeo-category-list > li > a:hover,
.yeo-category-list > li > a.active,
.yeo-category-list .yeo-mega-trigger:hover {
  color: var(--yeo-ink);
}

.yeo-category-list > li > a:hover::after,
.yeo-category-list > li > a.active::after,
.yeo-category-list .yeo-mega-trigger:hover::after,
.yeo-mega.is-open .yeo-mega-trigger::after {
  transform: scaleX(1);
}

/* Mega menu panel */
.yeo-mega {
  position: relative;
}

.yeo-mega-trigger {
  background: var(--yeo-surface-2);
  border: 1px solid var(--yeo-line) !important;
  border-radius: var(--yeo-r-pill) !important;
  padding: 10px 16px !important;
  margin: 8px 8px 8px 0;
  color: var(--yeo-ink) !important;
}

.yeo-mega-trigger i { font-size: 18px; color: var(--yeo-brand-2); }

.yeo-mega-chevron {
  transition: transform 220ms ease;
  color: var(--yeo-muted) !important;
}

.yeo-mega.is-open .yeo-mega-chevron { transform: rotate(180deg); }

.yeo-mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(1100px, 92vw);
  max-height: calc(100vh - var(--yeo-header-h-actual, var(--yeo-header-h-desktop)) - 24px);
  padding: 28px;
  background: var(--yeo-bg-elev);
  border: 1px solid var(--yeo-line-2);
  border-radius: var(--yeo-r-lg);
  box-shadow: var(--yeo-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 55;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.yeo-mega-panel::-webkit-scrollbar { width: 10px; }
.yeo-mega-panel::-webkit-scrollbar-thumb {
  background: var(--yeo-scroll-thumb);
  border-radius: 10px;
}
.yeo-mega-panel::-webkit-scrollbar-thumb:hover { background: var(--yeo-scroll-thumb-hover); }

.yeo-mega.is-open .yeo-mega-panel,
.yeo-mega:hover .yeo-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.yeo-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
}

@media (max-width: 1200px) {
  .yeo-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.yeo-mega-col > .yeo-mega-dept {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--yeo-ink);
  font-size: 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--yeo-line);
  width: 100%;
}

.yeo-mega-col > .yeo-mega-dept img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(255, 43, 43, 0.3));
}

.yeo-mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.yeo-mega-col li a {
  color: var(--yeo-muted);
  font-size: 13.5px;
  padding: 4px 0;
  display: inline-block;
}

.yeo-mega-col li a:hover { color: var(--yeo-brand-2); }

.yeo-mega-more {
  color: var(--yeo-brand-2) !important;
  font-weight: 600;
  font-size: 13px !important;
}

/* ================================= Drawer ================================= */
.yeo-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: linear-gradient(180deg, var(--yeo-bg-elev) 0%, var(--yeo-bg) 100%);
  border-right: 1px solid var(--yeo-line-2);
  transform: translateX(-105%);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
}

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

.yeo-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.yeo-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--yeo-line);
  flex-shrink: 0;
}

.yeo-drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yeo-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yeo-drawer-section .eyebrow {
  padding: 0 10px 8px;
}

.yeo-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--yeo-r-sm);
  color: var(--yeo-ink-soft);
  font-weight: 500;
  font-size: 15px;
}

.yeo-drawer-link i { font-size: 20px; color: var(--yeo-muted); flex-shrink: 0; }

.yeo-drawer-link:hover,
.yeo-drawer-link.active {
  background: var(--yeo-surface-2);
  color: var(--yeo-ink);
}

.yeo-drawer-link.active i,
.yeo-drawer-link:hover i { color: var(--yeo-brand-2); }

.yeo-drawer-accordion {
  border-radius: var(--yeo-r-sm);
  overflow: hidden;
}

.yeo-drawer-accordion summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--yeo-ink-soft);
  border-radius: var(--yeo-r-sm);
}

.yeo-drawer-accordion summary::-webkit-details-marker { display: none; }

.yeo-drawer-accordion summary:hover {
  background: var(--yeo-surface-2);
  color: var(--yeo-ink);
}

.yeo-drawer-accordion summary img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.yeo-drawer-accordion summary > span { flex: 1; }

.yeo-drawer-accordion summary i {
  color: var(--yeo-muted);
  transition: transform 200ms ease;
}

.yeo-drawer-accordion[open] summary i { transform: rotate(180deg); }

.yeo-drawer-accordion ul {
  list-style: none;
  padding: 4px 14px 10px 46px;
  margin: 0;
  display: grid;
  gap: 4px;
}

.yeo-drawer-accordion ul li a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--yeo-r-xs);
  color: var(--yeo-muted);
  font-size: 13.5px;
}

.yeo-drawer-accordion ul li a:hover {
  background: var(--yeo-surface);
  color: var(--yeo-brand-2);
}

/* ================================= Overlay ================================ */
.yeo-overlay {
  position: fixed;
  inset: 0;
  background: var(--yeo-overlay);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
  z-index: 150;
}

body.has-overlay .yeo-overlay {
  opacity: 1;
  visibility: visible;
}

/* ============================= Mobile tab bar ============================= */
.yeo-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--yeo-header-bg);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--yeo-line-2);
  box-shadow: 0 -8px 24px -12px var(--yeo-overlay);
  z-index: 140;
}

@media (min-width: 992px) {
  .yeo-tabbar { display: none; }
}

body {
  padding-bottom: var(--yeo-tabbar-h);
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

.yeo-tabbar-item {
  position: relative;
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--yeo-muted);
  font-size: 10.5px;
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.yeo-tabbar-item i { font-size: 22px; }

.yeo-tabbar-item.active,
.yeo-tabbar-item:hover { color: var(--yeo-brand-2); }

.yeo-tabbar-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--yeo-brand), var(--yeo-brand-2));
  border-radius: 0 0 4px 4px;
}

.yeo-tabbar-search-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yeo-brand), var(--yeo-brand-2));
  color: #fff;
  box-shadow: 0 12px 26px -8px var(--yeo-brand-glow);
}

.yeo-tabbar-search-bubble i { font-size: 24px !important; color: #fff; }

.yeo-tabbar-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  transform: translateX(50%);
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  padding: 0 5px;
}

/* ============================ Filter rail / sheet ========================= */
.layout-wrapper.yeo-shell .layout-menu {
  position: static;
  width: var(--yeo-rail-w);
  max-width: 100%;
  height: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  transform: none;
  overflow: visible;
}

.layout-wrapper.yeo-shell .layout-menu.no-filters {
  display: none;
}

@media (min-width: 1200px) {
  .layout-wrapper.yeo-shell.has-filter-rail .layout-container {
    display: grid;
    grid-template-columns: var(--yeo-rail-w) minmax(0, 1fr);
    gap: 28px;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
    padding-block: clamp(24px, 4vw, 48px);
  }
  .layout-wrapper.yeo-shell.has-filter-rail .layout-menu.has-filters {
    position: sticky;
    top: calc(var(--yeo-header-h-actual, var(--yeo-header-h-desktop)) + 16px);
    max-height: calc(100vh - var(--yeo-header-h-actual, var(--yeo-header-h-desktop)) - 32px);
    overflow-y: auto;
    padding: 20px;
    background: var(--yeo-surface);
    border: 1px solid var(--yeo-line);
    border-radius: var(--yeo-r-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .layout-wrapper.yeo-shell.has-filter-rail .layout-page {
    padding: 0;
  }
  .layout-wrapper.yeo-shell.has-filter-rail .content-wrapper > .container-xxl,
  .layout-wrapper.yeo-shell.has-filter-rail .content-wrapper .container-xxl {
    padding: 0;
    max-width: unset;
  }
}

/* Mobile: filter rail becomes slide-in sheet */
@media (max-width: 1199.98px) {
  .layout-wrapper.yeo-shell .layout-menu.has-filters {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(380px, 92vw);
    background-color: var(--yeo-bg-elev);
    background-image: linear-gradient(180deg, var(--yeo-bg-elev), var(--yeo-bg));
    border-right: 1px solid var(--yeo-line-2);
    padding: 16px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 210;
    box-shadow: 24px 0 60px rgba(16, 16, 30, 0.18);
  }
  .layout-wrapper.yeo-shell .layout-menu.has-filters.is-open {
    transform: translateX(0);
  }
}

.yeo-filter-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--yeo-line);
  margin-bottom: 12px;
}

.yeo-filter-rail-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--yeo-ink);
}

.yeo-filter-close { display: inline-flex; }
@media (min-width: 1200px) {
  .yeo-filter-close { display: none; }
}

/* Filter FAB (mobile only) */
.yeo-filter-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--yeo-tabbar-h) + 16px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--yeo-r-pill);
  background: linear-gradient(135deg, var(--yeo-brand), var(--yeo-brand-2));
  color: #fff;
  font-weight: 600;
  border: 0;
  z-index: 120;
  box-shadow: 0 18px 36px -10px var(--yeo-brand-glow), 0 6px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.yeo-filter-fab:hover { color: #fff; transform: translateY(-2px); }
.yeo-filter-fab i { font-size: 20px; }

@media (min-width: 1200px) {
  .yeo-filter-fab { display: none; }
}

/* ---- Filter rail content (ul.menu-inner > li.menu-item > menu-link + menu-sub) ---- */
.layout-wrapper.yeo-shell .menu-inner,
.layout-wrapper.yeo-shell .menu-inner-shadow {
  background: transparent;
}

.layout-wrapper.yeo-shell .menu-inner {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layout-wrapper.yeo-shell .menu-inner > .menu-item {
  padding: 0;
  margin: 0;
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-md);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.layout-wrapper.yeo-shell .menu-inner > .menu-item.open,
.layout-wrapper.yeo-shell .menu-inner > .menu-item:hover {
  border-color: var(--yeo-line-2);
  box-shadow: var(--yeo-shadow-sm);
}

.layout-wrapper.yeo-shell .menu-inner .menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--yeo-ink);
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  justify-content: space-between;
  text-decoration: none;
  line-height: 1.2;
}

.layout-wrapper.yeo-shell .menu-inner .menu-link::before,
.layout-wrapper.yeo-shell .menu-inner .menu-link::after {
  content: none !important;
  display: none !important;
}

.layout-wrapper.yeo-shell .menu-inner .menu-link:hover,
.layout-wrapper.yeo-shell .menu-inner .menu-link:focus-visible {
  color: var(--yeo-brand-2);
  background: transparent;
}

.yeo-filter-group-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.yeo-filter-group-label > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layout-wrapper.yeo-shell .menu-inner .menu-link .yeo-mega-chevron {
  color: var(--yeo-muted);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 220ms ease, color 220ms ease;
}

.layout-wrapper.yeo-shell .menu-inner .menu-item.open > .menu-link .yeo-mega-chevron,
.layout-wrapper.yeo-shell .menu-inner .menu-item.active > .menu-link .yeo-mega-chevron {
  transform: rotate(180deg);
  color: var(--yeo-brand-2);
}

.layout-wrapper.yeo-shell .menu-sub {
  padding: 0 14px 14px;
  list-style: none;
  display: none;
  margin: 0;
  border-top: 1px dashed var(--yeo-line);
}

.layout-wrapper.yeo-shell .menu-item.open > .menu-sub,
.layout-wrapper.yeo-shell .menu-item.active > .menu-sub {
  display: block;
}

.layout-wrapper.yeo-shell .menu-link i.menu-icon {
  color: var(--yeo-brand-2);
  font-size: 18px;
  flex-shrink: 0;
}

/* Filter card (search + options) */
.yeo-filter-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.yeo-filter-search {
  position: relative;
}

.yeo-filter-search > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--yeo-muted);
  pointer-events: none;
}

.yeo-filter-search .form-control {
  background: var(--yeo-bg-elev-2);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  border-radius: var(--yeo-r-sm);
  padding: 9px 12px 9px 34px;
  font-size: 13.5px;
  width: 100%;
  line-height: 1.3;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.yeo-filter-search .form-control::placeholder { color: var(--yeo-muted); }

.yeo-filter-search .form-control:focus {
  border-color: var(--yeo-brand);
  box-shadow: 0 0 0 3px var(--yeo-brand-soft);
  outline: 0;
}

.yeo-filter-options {
  padding: 0 !important;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.yeo-filter-options .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  margin: 0;
  border-radius: var(--yeo-r-xs);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  color: var(--yeo-ink-soft);
  font-size: 13.5px;
  min-height: 0;
}

.yeo-filter-options .form-check:hover {
  background: var(--yeo-surface-2);
  color: var(--yeo-ink);
}

.yeo-filter-options .form-check-input {
  width: 16px;
  height: 16px;
  margin: 0;
  background: var(--yeo-surface);
  border: 1.5px solid var(--yeo-line-2);
  accent-color: var(--yeo-brand);
  flex-shrink: 0;
  cursor: pointer;
}

.yeo-filter-options .form-check-input:checked {
  background: var(--yeo-brand);
  border-color: var(--yeo-brand);
}

.yeo-filter-options .form-check-input:focus-visible {
  box-shadow: 0 0 0 3px var(--yeo-brand-soft);
  outline: 0;
}

.yeo-filter-options .form-check-label {
  cursor: pointer;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Price group */
.yeo-filter-price {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 4px;
}

.yeo-filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.yeo-filter-price-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.yeo-filter-price-hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yeo-muted);
}

.yeo-filter-price .form-control {
  background: var(--yeo-bg-elev-2);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  border-radius: var(--yeo-r-sm);
  padding: 9px 12px;
  font-size: 14px;
  width: 100%;
  line-height: 1.3;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.yeo-filter-price .form-control::placeholder { color: var(--yeo-muted); }

.yeo-filter-price .form-control:focus {
  border-color: var(--yeo-brand);
  box-shadow: 0 0 0 3px var(--yeo-brand-soft);
  outline: 0;
}

.yeo-filter-price .btn { width: 100%; }

.vertical-scroll-filter {
  max-height: 260px;
  overflow-y: auto;
}

.vertical-scroll-filter::-webkit-scrollbar { width: 8px; }
.vertical-scroll-filter::-webkit-scrollbar-thumb {
  background: var(--yeo-scroll-thumb);
  border-radius: 8px;
}

/* ================================ Buttons ================================= */
.btn {
  --bs-btn-border-radius: var(--yeo-r-pill);
  font-family: var(--yeo-font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 10px 20px;
  border-radius: var(--yeo-r-pill);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  border: 1px solid transparent;
}

.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-danger {
  background: linear-gradient(135deg, var(--yeo-brand), var(--yeo-brand-2));
  border-color: var(--yeo-brand);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--yeo-brand-glow);
}

.btn-primary:hover,
.btn-danger:hover {
  background: linear-gradient(135deg, var(--yeo-brand-2), var(--yeo-brand));
  border-color: var(--yeo-brand-2);
  color: #fff;
  box-shadow: 0 14px 40px -12px var(--yeo-brand-glow);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--yeo-brand);
  color: var(--yeo-brand-2);
}

.btn-outline-primary:hover {
  background: var(--yeo-brand);
  color: #fff;
}

.btn-secondary,
.btn-light {
  background: var(--yeo-surface-2);
  border-color: var(--yeo-line-2);
  color: var(--yeo-ink);
}

.btn-secondary:hover,
.btn-light:hover {
  background: var(--yeo-surface-3);
  border-color: var(--yeo-line-2);
  color: var(--yeo-ink);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--yeo-line-2);
  color: var(--yeo-ink);
}

.btn-outline-light:hover {
  background: var(--yeo-surface-2);
  color: var(--yeo-ink);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ============================ Forms in content ============================ */
.form-control,
.form-select {
  background: var(--yeo-surface-2);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  border-radius: var(--yeo-r-sm);
  padding: 10px 14px;
  font-family: inherit;
}

.form-control::placeholder { color: var(--yeo-dim); }

.form-control:focus,
.form-select:focus {
  background: var(--yeo-surface-3);
  color: var(--yeo-ink);
  border-color: var(--yeo-brand);
  box-shadow: 0 0 0 3px var(--yeo-brand-soft);
}

.form-label { color: var(--yeo-muted); font-size: 13px; font-weight: 600; }

/* =============================== Cards =================================== */
.card {
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-lg);
  color: var(--yeo-ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--yeo-shadow-sm);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yeo-line-2), transparent);
}

.card-body { padding: clamp(16px, 2vw, 24px); }

.card-header,
.card-footer {
  background: transparent;
  border-color: var(--yeo-line);
  color: var(--yeo-ink);
}

.card-title { color: var(--yeo-ink); }

/* ========================== Product cards (grid items) ==================== */
.product-card {
  padding: 10px;
  display: flex;
}

.product-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-lg);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.product-card-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 var(--yeo-brand-glow);
  transition: box-shadow 280ms ease;
}

.product-card-shell:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 43, 43, 0.3);
  box-shadow: var(--yeo-shadow-md);
}

.product-card-shell:hover::after {
  box-shadow: 0 0 0 1px rgba(255, 43, 43, 0.35), 0 0 40px 0 rgba(255, 43, 43, 0.22);
}

.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-media img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 320ms ease;
}

.product-card-shell:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.product-card-title {
  font-family: var(--yeo-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--yeo-ink);
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.product-card-title a {
  color: inherit;
}

.product-card-title a:hover { color: var(--yeo-brand-2); }

.product-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--yeo-r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--yeo-surface-2);
  border: 1px solid var(--yeo-line-2);
  color: var(--yeo-ink);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.product-card-shell:hover .product-card-cta {
  background: linear-gradient(135deg, var(--yeo-brand), var(--yeo-brand-2));
  border-color: var(--yeo-brand);
  color: #fff;
}

.star-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yeo-surface-3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yeo-muted);
  font-size: 18px !important;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
  border: 1px solid var(--yeo-line-2);
}

.star-icon:hover,
.star-icon.bxs-star {
  color: #ffc107;
  background: rgba(255, 193, 7, 0.14);
  border-color: rgba(255, 193, 7, 0.4);
  transform: scale(1.05);
}

/* =========================== Category tile cards ========================= */
.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  gap: 16px;
  width: 100%;
  min-height: 180px;
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-lg);
  color: var(--yeo-ink);
  position: relative;
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.category-tile::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--yeo-brand-glow), transparent 60%);
  opacity: 0.5;
  transition: transform 320ms ease, opacity 320ms ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 43, 43, 0.35);
  background: var(--yeo-surface-2);
  color: var(--yeo-ink);
}

.category-tile:hover::before {
  transform: scale(1.3);
  opacity: 0.9;
}

.category-tile .eyebrow { position: relative; }

.category-tile-title {
  font-family: var(--yeo-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--yeo-ink);
  margin: 0;
  position: relative;
}

.category-tile-meta {
  font-size: 13px;
  color: var(--yeo-muted);
  position: relative;
}

.category-tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--yeo-brand-2);
  font-weight: 600;
  font-size: 13px;
  position: relative;
}

.category-tile-arrow::after {
  content: '\2192';
  transition: transform 260ms ease;
}

.category-tile:hover .category-tile-arrow::after {
  transform: translateX(4px);
}

/* ============================== Home hero ================================ */
.yeo-hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px);
  border-radius: var(--yeo-r-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(187, 0, 0, 0.45), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(255, 43, 43, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(15, 15, 25, 0.9), rgba(7, 7, 12, 0.9));
  border: 1px solid var(--yeo-line-2);
  margin-bottom: 32px;
}

.yeo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.06) 95%) 0 0 / 100% 40px,
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.06) 95%) 0 0 / 40px 100%;
  mask-image: radial-gradient(circle at 30% 50%, rgba(0, 0, 0, 0.7), transparent 75%);
  pointer-events: none;
}

.yeo-hero-inner {
  position: relative;
  max-width: 760px;
}

.yeo-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(187, 0, 0, 0.18);
  border: 1px solid rgba(255, 43, 43, 0.35);
  border-radius: var(--yeo-r-pill);
  color: var(--yeo-brand-2);
  font-family: var(--yeo-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.yeo-hero h1 {
  font-size: clamp(2rem, 3.5vw + 1rem, 4rem);
  line-height: 1.02;
  margin: 0 0 16px;
  color: #fff;
}

.yeo-hero h1 .gradient-text {
  background: linear-gradient(90deg, #fff 30%, var(--yeo-brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.yeo-hero p {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.2rem);
  color: var(--yeo-ink-soft);
  margin: 0 0 28px;
  max-width: 60ch;
}

.yeo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.yeo-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  position: relative;
}

@media (max-width: 640px) {
  .yeo-hero-stats { grid-template-columns: 1fr; }
}

.yeo-stat {
  padding: 18px;
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-lg);
  backdrop-filter: blur(10px);
}

.yeo-stat-value {
  font-family: var(--yeo-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, var(--yeo-brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.yeo-stat-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-family: var(--yeo-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero scope overrides - heroes are always dark red, text must stay light ---- */
.yeo-hero p,
.yeo-hero .hero-copy { color: rgba(255, 255, 255, 0.82); }

.yeo-stat {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.home-hero .hero-copy,
.home-hero p { color: rgba(255, 255, 255, 0.82); }

.home-hero .hero-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-hero .hero-stat-label { color: rgba(255, 255, 255, 0.62); }

/* ============================== Sections ================================= */
.yeo-section {
  margin-block: clamp(40px, 6vw, 72px);
}

.yeo-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.yeo-section-header h2 { margin: 6px 0 0; color: var(--yeo-ink); }

.yeo-section-header p { color: var(--yeo-muted); margin: 0; font-size: 15px; }

.yeo-section-link {
  color: var(--yeo-brand-2);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yeo-section-link::after {
  content: '\2192';
  transition: transform 220ms ease;
}

.yeo-section-link:hover::after {
  transform: translateX(4px);
}

/* Quick department rail */
.yeo-dept-rail {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.yeo-dept-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--yeo-r-md);
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.yeo-dept-chip:hover {
  background: var(--yeo-surface-2);
  border-color: rgba(255, 43, 43, 0.3);
  color: var(--yeo-brand-2);
  transform: translateY(-2px);
}

.yeo-dept-chip img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.yeo-marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.yeo-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: yeoMarquee 30s linear infinite;
}

.yeo-marquee img {
  height: 32px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1) brightness(1.4);
  transition: opacity 200ms ease, filter 200ms ease;
}

.yeo-marquee img:hover { opacity: 1; filter: none; }

@keyframes yeoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Department showcase (home/categorii) */
.department-showcase {
  scroll-margin-top: calc(var(--yeo-header-h-desktop) + 24px);
}

.department-showcase .card-body {
  padding: clamp(20px, 3vw, 32px);
}

.department-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.department-header img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(255, 43, 43, 0.35));
}

.department-header h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
  margin: 0;
  color: var(--yeo-ink);
}

.department-header .eyebrow { display: block; }

/* ============================== Empty state ============================== */
.yeo-empty-state {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 24px;
  background: var(--yeo-surface);
  border: 1px dashed var(--yeo-line-2);
  border-radius: var(--yeo-r-lg);
  color: var(--yeo-ink-soft);
}

.yeo-empty-state i {
  font-size: 52px;
  color: var(--yeo-brand-2);
  display: inline-block;
  margin-bottom: 16px;
  padding: 18px;
  background: var(--yeo-brand-soft);
  border-radius: 50%;
  border: 1px solid rgba(255, 43, 43, 0.35);
}

.yeo-empty-state h2 {
  font-size: 1.4rem;
  color: var(--yeo-ink);
  margin: 0 0 8px;
}

.yeo-empty-state p {
  color: var(--yeo-muted);
  max-width: 48ch;
  margin: 0 auto 20px;
}

.yeo-empty-suggestions {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--yeo-line);
}

.yeo-suggestion-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--yeo-surface-2);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-pill);
  color: var(--yeo-ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.yeo-suggestion-chip:hover {
  background: var(--yeo-brand-soft);
  border-color: var(--yeo-brand);
  color: var(--yeo-brand-2);
  transform: translateY(-2px);
}

/* ============================== Pagination ============================== */
.pagination {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.pagination .page-item { margin: 0; }

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink-soft);
  border-radius: var(--yeo-r-pill);
  font-weight: 500;
  transition: all 180ms ease;
}

.pagination .page-link:hover {
  background: var(--yeo-surface-3);
  color: var(--yeo-ink);
  border-color: var(--yeo-line-2);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--yeo-brand), var(--yeo-brand-2));
  border-color: var(--yeo-brand);
  color: #fff;
  box-shadow: var(--yeo-shadow-brand);
}

.pagination .page-item.disabled .page-link {
  opacity: 0.35;
  pointer-events: none;
}

.placement-dropdown {
  background: var(--yeo-surface) !important;
  border: 1px solid var(--yeo-line) !important;
  color: var(--yeo-ink) !important;
  border-radius: var(--yeo-r-pill) !important;
  min-height: 40px;
  padding: 0 16px !important;
}

/* ============================== Footer ================================== */
footer, .content-footer {
  background: transparent !important;
  color: var(--yeo-muted) !important;
  padding: 32px 0 40px !important;
  margin-top: 32px !important;
  border-top: 1px solid var(--yeo-line);
}

footer a, .content-footer a {
  color: var(--yeo-ink-soft);
}

footer a:hover, .content-footer a:hover {
  color: var(--yeo-brand-2);
}

/* ============================== Utilities ================================ */
/* Neutralize legacy admin menu background without using !important,
   so our filter rail can still apply its own opaque surface. */
.bg-menu-theme { background: transparent; }

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

.alert {
  background: var(--yeo-surface-2);
  border: 1px solid var(--yeo-line-2);
  color: var(--yeo-ink);
  border-radius: var(--yeo-r-md);
}

.alert-success { background: rgba(25, 195, 125, 0.1); border-color: rgba(25, 195, 125, 0.3); color: var(--yeo-success); }
.alert-danger { background: var(--yeo-brand-soft); border-color: rgba(255, 43, 43, 0.35); color: #ffb5b5; }

/* Keep the theme layout-navbar hidden (we replaced it). */
.layout-wrapper.yeo-shell .layout-navbar { display: none !important; }

/* Kill the legacy menu toggle arrow inside filters on mobile */
.layout-wrapper.yeo-shell .layout-menu-toggle { display: none !important; }

/* ======================= Product card inner content ====================== */
.card-body-product {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

@media (max-width: 575px) {
  .card-body-product {
    padding: 12px 12px 14px;
    gap: 8px;
  }
}

.product-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}

.product-meta-row .card-text { display: flex; flex-direction: column; gap: 2px; }

.product-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yeo-ink-soft) !important;
  font-weight: 500;
  font-size: 12.5px;
}

.product-shop-link:hover { color: var(--yeo-brand-2) !important; }

.product-shop-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 1px;
}

.product-price {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--yeo-line);
}

.product-price-amount {
  font-family: var(--yeo-font-display);
  font-size: 1.2rem;
  color: var(--yeo-brand);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-price-amount b {
  color: var(--yeo-brand);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-weight: 800;
}

[data-theme="dark"] .product-price-amount,
[data-theme="dark"] .product-price-amount b {
  color: var(--yeo-brand-2);
}

.product-cta {
  padding: 8px 14px !important;
  font-size: 12.5px !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-cta i { font-size: 16px; }

@media (max-width: 575px) {
  .product-cta span,
  .product-cta {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
  .product-price-amount { font-size: 1rem; }
  .product-card-title { font-size: 13px; min-height: 2.6em; }
}

/* =================== Legacy class adapters (home.php, etc) ================ */
/* Home hero --------------------------------------------------------------- */
.home-hero {
  position: relative;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 56px);
  border-radius: var(--yeo-r-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(187, 0, 0, 0.55), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(255, 43, 43, 0.28), transparent 60%),
    linear-gradient(180deg, rgba(15, 15, 25, 0.92), rgba(7, 7, 12, 0.92));
  border: 1px solid var(--yeo-line-2);
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.06) 95%) 0 0 / 100% 40px,
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.06) 95%) 0 0 / 40px 100%;
  mask-image: radial-gradient(circle at 30% 50%, rgba(0, 0, 0, 0.7), transparent 75%);
  pointer-events: none;
}

.home-hero > * { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(187, 0, 0, 0.18);
  border: 1px solid rgba(255, 43, 43, 0.35);
  border-radius: var(--yeo-r-pill);
  color: var(--yeo-brand-2);
  font-family: var(--yeo-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge i { font-size: 16px; }

.hero-title {
  font-family: var(--yeo-font-display);
  font-size: clamp(2rem, 3vw + 1rem, 3.6rem);
  line-height: 1.04;
  margin: 0 0 18px;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--yeo-brand), var(--yeo-brand-2));
  border-radius: 3px;
}

.hero-copy {
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.15rem);
  color: var(--yeo-ink-soft);
  margin: 0 0 26px;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

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

@media (max-width: 640px) {
  .hero-stat-grid { grid-template-columns: 1fr; gap: 10px; }
}

.hero-stat-card {
  padding: 18px 20px;
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-lg);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stat-value {
  font-family: var(--yeo-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, var(--yeo-brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.hero-stat-label {
  color: var(--yeo-muted);
  font-size: 12px;
  font-family: var(--yeo-font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Section headings --------------------------------------------------------- */
.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.home-section-heading h2,
.home-section-heading h3 { margin: 4px 0 6px; color: var(--yeo-ink); }

.home-section-heading p { margin: 0; color: var(--yeo-muted); font-size: 14.5px; }

.section-copy { color: var(--yeo-ink-soft); font-size: 1.02rem; max-width: 70ch; }

/* Brand marquee ------------------------------------------------------------ */
.brand-marquee {
  overflow: hidden;
  padding: 18px 0 !important;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: yeoMarquee 38s linear infinite;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  flex-shrink: 0;
}

.brand-mark img {
  max-height: 34px;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 220ms ease, filter 220ms ease;
}

.brand-mark:hover img { opacity: 1; filter: none; }

/* Quick link grid ---------------------------------------------------------- */
.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: var(--yeo-r-lg);
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.quick-link-card::after {
  content: '\2192';
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--yeo-brand-2);
  transition: transform 220ms ease;
}

.quick-link-card:hover {
  transform: translateY(-3px);
  background: var(--yeo-surface-2);
  border-color: rgba(255, 43, 43, 0.35);
  color: var(--yeo-ink);
}

.quick-link-card:hover::after { transform: translateX(4px); }

.quick-link-card h3 { font-size: 1.05rem; margin: 6px 0 4px; color: var(--yeo-ink); }

/* Trust grid --------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.trust-card {
  padding: 26px;
  border-radius: var(--yeo-r-lg);
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--yeo-brand-glow), transparent 60%);
  opacity: 0.35;
}

.trust-card > * { position: relative; }

.trust-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--yeo-brand-soft);
  border: 1px solid rgba(255, 43, 43, 0.35);
  color: var(--yeo-brand-2);
  font-size: 24px;
  margin-bottom: 14px;
}

.trust-card h3 { color: var(--yeo-ink); margin: 0 0 6px; font-size: 1.1rem; }

/* Department sections ------------------------------------------------------ */
.department-section {
  scroll-margin-top: calc(var(--yeo-header-h-desktop) + 24px);
  margin-block: clamp(28px, 4vw, 48px);
}

.department-showcase {
  position: relative;
  background: var(--yeo-surface);
  border: 1px solid var(--yeo-line);
  border-radius: var(--yeo-r-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.department-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--yeo-brand-glow), transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

.department-showcase > .card-body { position: relative; }

.department-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.department-heading img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(255, 43, 43, 0.4));
}

.department-heading h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
  color: var(--yeo-ink);
  margin: 0;
}

.department-copy,
.department-description {
  color: var(--yeo-ink-soft);
  font-size: 14.5px;
  max-width: 70ch;
}

.category-grid { margin-inline: -6px; }
.category-grid > [class*='col-'] { padding: 6px; }

/* Category search input within department sections ------------------------- */
.department-showcase input.form-control {
  background: var(--yeo-bg-elev-2);
  border: 1px solid var(--yeo-line);
  color: var(--yeo-ink);
  border-radius: var(--yeo-r-pill);
  padding: 12px 18px;
  font-size: 14px;
}

.department-showcase input.form-control:focus {
  border-color: var(--yeo-brand);
  box-shadow: 0 0 0 3px var(--yeo-brand-soft);
  background: var(--yeo-bg-elev-2);
  color: var(--yeo-ink);
}

/* Responsive spacing fixes ------------------------------------------------- */
@media (max-width: 575px) {
  .department-showcase > .card-body { padding: 18px !important; }
  .home-hero { padding: 28px 20px; }
  .yeo-hero-stats,
  .hero-stat-grid { gap: 10px; }
  .product-card { padding: 6px; }
  .yeo-section-header,
  .home-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Make sure filter-ancestor Bootstrap containers don't conflict on mobile -- */
@media (max-width: 1199.98px) {
  .layout-wrapper.yeo-shell .content-wrapper > .container-xxl,
  .layout-wrapper.yeo-shell .content-wrapper .container-xxl {
    padding-inline: clamp(12px, 4vw, 24px);
    padding-block: clamp(18px, 4vw, 32px);
  }
}

/* ---- Row / column normalisation so Bootstrap grid plays nicely --- */
.row {
  --bs-gutter-x: 18px;
  --bs-gutter-y: 18px;
}

@media (max-width: 575px) {
  .row { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
}

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