/**
 * Preeco Storefront Design System
 * Presentation-only modernization layer (Nykaa-inspired spacing / hierarchy).
 * Brand colour: #88013e — loaded after legacy CSS, before a11y.css.
 */

:root {
  --preeco-brand: #88013e;
  --preeco-brand-dark: #6d0132;
  --preeco-brand-mid: #a31252;
  --preeco-brand-soft: rgba(136, 1, 62, 0.07);
  --preeco-brand-softer: rgba(136, 1, 62, 0.04);
  --preeco-ink: #1a1a1a;
  --preeco-ink-2: #3d3d3d;
  --preeco-muted: #6b6b6b;
  --preeco-line: rgba(26, 26, 26, 0.08);
  --preeco-line-strong: rgba(136, 1, 62, 0.16);
  --preeco-surface: #ffffff;
  --preeco-surface-soft: #faf7f8;
  --preeco-radius-xs: 6px;
  --preeco-radius-sm: 10px;
  --preeco-radius-md: 14px;
  --preeco-radius-lg: 18px;
  --preeco-radius-pill: 999px;
  --preeco-shadow-xs: 0 1px 2px rgba(26, 26, 26, 0.04);
  --preeco-shadow-sm: 0 4px 14px rgba(26, 26, 26, 0.06);
  --preeco-shadow-md: 0 12px 36px rgba(26, 26, 26, 0.1);
  --preeco-shadow-lg: 0 20px 48px rgba(136, 1, 62, 0.12);
  --preeco-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --preeco-duration: 0.22s;
  --preeco-container: 1200px;
  --preeco-touch: 44px;
  --preeco-font: "Mulish", system-ui, -apple-system, sans-serif;
  --preeco-display: "Playfair Display", Georgia, serif;
}

/* -------------------------------------------------
   Base / shared controls
------------------------------------------------- */
body.theme-color-5 {
  font-family: var(--preeco-font);
  color: var(--preeco-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.preeco-btn,
.shop-section .preeco-btn,
.brand-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--preeco-touch);
  padding: 10px 20px;
  border-radius: var(--preeco-radius-pill);
  font-family: var(--preeco-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--preeco-duration) var(--preeco-ease),
    color var(--preeco-duration) var(--preeco-ease),
    border-color var(--preeco-duration) var(--preeco-ease),
    box-shadow var(--preeco-duration) var(--preeco-ease),
    transform var(--preeco-duration) var(--preeco-ease);
}

.preeco-btn:focus-visible,
.brand-filter-btn:focus-visible {
  outline: 2px solid var(--preeco-brand);
  outline-offset: 2px;
}

.preeco-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.preeco-btn--primary,
.brand-filter-btn,
.shop-section .filter-button.preeco-btn--primary,
.shop-section .btn_apply.preeco-btn--primary {
  background: var(--preeco-brand) !important;
  color: #fff !important;
  border-color: var(--preeco-brand) !important;
  box-shadow: 0 6px 16px rgba(136, 1, 62, 0.22);
}

.preeco-btn--primary:hover:not(:disabled),
.brand-filter-btn:hover,
.shop-section .btn_apply.preeco-btn--primary:hover:not(:disabled) {
  background: var(--preeco-brand-dark) !important;
  border-color: var(--preeco-brand-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.preeco-btn--ghost,
.shop-section .btn_reset.preeco-btn--ghost {
  background: #fff !important;
  color: var(--preeco-ink-2) !important;
  border-color: var(--preeco-line) !important;
  box-shadow: none;
}

.preeco-btn--ghost:hover:not(:disabled),
.shop-section .btn_reset.preeco-btn--ghost:hover:not(:disabled) {
  background: var(--preeco-surface-soft) !important;
  border-color: var(--preeco-line-strong) !important;
  color: var(--preeco-brand) !important;
}

.preeco-btn--soft {
  background: var(--preeco-brand-soft);
  color: var(--preeco-brand);
  border-color: transparent;
}

.preeco-btn--soft:hover:not(:disabled) {
  background: rgba(136, 1, 62, 0.12);
}

/* Form controls */
.preeco-input,
.preeco-price-input,
header .middle-box .search .form-control,
.fresh-vegetable-section .search .form-control,
.brand-search {
  height: var(--preeco-touch);
  border-radius: var(--preeco-radius-pill) !important;
  border: 1px solid var(--preeco-line) !important;
  background: #fff !important;
  box-shadow: var(--preeco-shadow-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--preeco-ink);
  transition:
    border-color var(--preeco-duration) var(--preeco-ease),
    box-shadow var(--preeco-duration) var(--preeco-ease);
}

.preeco-input:focus,
.preeco-price-input:focus,
header .middle-box .search .form-control:focus,
.fresh-vegetable-section .search .form-control:focus,
.brand-search:focus {
  outline: none !important;
  border-color: rgba(136, 1, 62, 0.4) !important;
  box-shadow: 0 0 0 4px rgba(136, 1, 62, 0.1) !important;
}

/* Custom checkbox look */
.preeco-filter-sidebar .checkbox_animated,
.shop-left-sidebar .checkbox_animated {
  appearance: none;
  -webkit-appearance: none;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  border: 1.5px solid rgba(26, 26, 26, 0.22);
  border-radius: 5px;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  transition:
    background-color var(--preeco-duration) var(--preeco-ease),
    border-color var(--preeco-duration) var(--preeco-ease);
}

.preeco-filter-sidebar .checkbox_animated:checked,
.shop-left-sidebar .checkbox_animated:checked {
  background: var(--preeco-brand);
  border-color: var(--preeco-brand);
}

.preeco-filter-sidebar .checkbox_animated:checked::after,
.shop-left-sidebar .checkbox_animated:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.preeco-filter-sidebar .checkbox_animated:focus-visible,
.shop-left-sidebar .checkbox_animated:focus-visible {
  outline: 2px solid var(--preeco-brand);
  outline-offset: 2px;
}

/* -------------------------------------------------
   Header
------------------------------------------------- */
header .header-top {
  background: linear-gradient(90deg, #6d0132 0%, #88013e 55%, #a31252 100%);
  font-size: 12px;
  letter-spacing: 0.02em;
}

header .sticky-header,
header .top-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--preeco-line);
  z-index: 1040;
}

header .navbar-top {
  max-width: var(--preeco-container);
  margin: 0 auto;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

header .web-logo img,
header .nav-logo img {
  display: block;
  max-height: 46px;
  width: auto;
}

header .middle-box {
  flex: 1 1 auto;
  max-width: 770px;
}

header .middle-box .search {
  border-radius: var(--preeco-radius-pill);
  overflow: hidden;
  border: 1px solid var(--preeco-line);
  background: var(--preeco-surface-soft);
  box-shadow: none;
  transition:
    border-color var(--preeco-duration) var(--preeco-ease),
    box-shadow var(--preeco-duration) var(--preeco-ease),
    background-color var(--preeco-duration) var(--preeco-ease);
}

header .middle-box .search:focus-within {
  background: #fff;
  border-color: rgba(136, 1, 62, 0.35);
  box-shadow: 0 0 0 4px rgba(136, 1, 62, 0.08);
}

header .middle-box .search .form-control {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  height: 46px;
  padding-left: 18px;
}

header .middle-box .search .search-button {
  width: 48px;
  height: 46px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

header .middle-box .search .search-button:hover .preeco-header-icon {
  color: var(--preeco-brand-dark);
}

.preeco-header-action {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition:
    background-color var(--preeco-duration) var(--preeco-ease),
    transform var(--preeco-duration) var(--preeco-ease);
}

.preeco-header-action:hover {
  background: var(--preeco-brand-soft);
  transform: translateY(-1px);
}

/* Main nav row */
header .main-nav.navbar,
header .header-nav {
  background: #fff;
}

header .navbar-nav {
  gap: 2px;
  align-items: center;
}

header .navbar-nav > .nav-item > .nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--preeco-ink-2) !important;
  padding: 12px 14px !important;
  border-radius: var(--preeco-radius-sm);
  transition:
    color var(--preeco-duration) var(--preeco-ease),
    background-color var(--preeco-duration) var(--preeco-ease);
}

header .navbar-nav > .nav-item > .nav-link:hover,
header .navbar-nav > .nav-item:hover > .nav-link,
header .navbar-nav > .nav-item > .nav-link:focus-visible {
  color: var(--preeco-brand) !important;
  background: var(--preeco-brand-soft);
  outline: none;
}

header .navbar-nav > .nav-item > .nav-link.dropdown-toggle::after,
header .navbar-nav > .nav-item > .nav-link.dropdown-toggle::before {
  display: none !important;
}

/* -------------------------------------------------
   Mega menu — full-bleed panel, content-aligned
------------------------------------------------- */
@media (min-width: 1200px) {
  header .nav-item.dropdown.dropdown-mega {
    position: static;
  }

  header .nav-item.dropdown.dropdown-mega > .dropdown-menu,
  header .nav-item.dropdown.dropdown-mega > .dropdown-menu-2,
  header .dropdown-mega .preeco-mega-panel {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--preeco-line) !important;
    background: #fff !important;
    box-shadow: var(--preeco-shadow-md) !important;
    transform-origin: top center;
    animation: preeco-mega-in 0.2s var(--preeco-ease);
    z-index: 1050;
  }

  header .dropdown-mega .preeco-mega-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 18px 16px 14px;
    box-sizing: border-box;
  }

  header .dropdown-mega .preeco-mega-grid {
    display: block;
    width: 100%;
    column-count: var(--mega-cols, 5);
    column-gap: 28px;
    column-fill: balance;
  }

  header .dropdown-mega .preeco-mega-col {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }

  header .dropdown-mega .preeco-mega-heading,
  header .dropdown-mega .mhead,
  header .dropdown-mega .text-pink {
    display: block;
    color: var(--preeco-brand) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 10px;
    padding: 0 !important;
    text-decoration: none;
  }

  header .dropdown-mega .preeco-mega-link,
  header .dropdown-mega .dropdown-item.mcol,
  header .dropdown-mega .dropdown-item {
    display: block;
    padding: 7px 8px !important;
    margin: 0 0 2px;
    border-radius: 8px;
    font-size: 13.5px !important;
    font-weight: 500;
    color: var(--preeco-ink-2) !important;
    white-space: normal;
    line-height: 1.35;
    background: transparent;
    transition:
      background-color var(--preeco-duration) var(--preeco-ease),
      color var(--preeco-duration) var(--preeco-ease),
      padding-left var(--preeco-duration) var(--preeco-ease);
  }

  header .dropdown-mega .preeco-mega-link:hover,
  header .dropdown-mega .dropdown-item.mcol:hover,
  header .dropdown-mega .dropdown-item:hover {
    background: var(--preeco-brand-soft) !important;
    color: var(--preeco-brand) !important;
    padding-left: 12px !important;
  }

  /* Simple (non-mega) dropdowns */
  header .navbar-nav > .nav-item.dropdown:not(.dropdown-mega) > .dropdown-menu {
    min-width: 240px;
    max-height: min(70vh, 440px);
    overflow-y: auto;
    padding: 10px !important;
    margin-top: 8px !important;
    border: 1px solid var(--preeco-line) !important;
    border-radius: var(--preeco-radius-md) !important;
    box-shadow: var(--preeco-shadow-md) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(136, 1, 62, 0.35) transparent;
  }

  header .navbar-nav > .nav-item.dropdown:not(.dropdown-mega) .dropdown-item {
    border-radius: 8px;
    padding: 10px 12px !important;
    font-size: 13.5px;
    font-weight: 500;
  }

  header .navbar-nav > .nav-item.dropdown:not(.dropdown-mega) .dropdown-item:hover {
    background: var(--preeco-brand-soft);
    color: var(--preeco-brand);
  }
}

@keyframes preeco-mega-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile offcanvas drawer */
#primaryMenu.offcanvas {
  max-width: min(100vw, 360px);
  border: 0;
  box-shadow: var(--preeco-shadow-lg);
}

#primaryMenu .nav-tabs {
  border-bottom: 1px solid var(--preeco-line);
  background: var(--preeco-surface-soft);
}

#primaryMenu .nav-tabs .nav-link {
  border: 0 !important;
  border-radius: 0 !important;
  font-weight: 700;
  color: var(--preeco-muted) !important;
  background: transparent !important;
}

#primaryMenu .nav-tabs .nav-link.active {
  color: var(--preeco-brand) !important;
  box-shadow: inset 0 -2px 0 var(--preeco-brand);
}

#primaryMenu .navbar-nav > .nav-item > .nav-link {
  text-transform: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--preeco-line);
  border-radius: 0;
}

#primaryMenu .dropdown-header {
  color: var(--preeco-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 18px 6px;
}

#primaryMenu .dropdown-item {
  padding: 10px 18px 10px 28px;
  font-size: 14px;
}

#primaryMenu .brand-list h5 {
  color: var(--preeco-brand);
  font-weight: 800;
}

/* -------------------------------------------------
   PLP filter sidebar — desktop sticky card
------------------------------------------------- */
.preeco-filter-sidebar {
  background: var(--preeco-surface) !important;
  border: 1px solid var(--preeco-line) !important;
  border-radius: var(--preeco-radius-md) !important;
  padding: 18px 16px 22px !important;
  box-shadow: var(--preeco-shadow-sm);
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 1, 62, 0.3) transparent;
}

.preeco-filter-sidebar::-webkit-scrollbar { width: 5px; }
.preeco-filter-sidebar::-webkit-scrollbar-thumb {
  background: rgba(136, 1, 62, 0.25);
  border-radius: 999px;
}

.preeco-filter-sidebar .filter-title h2 {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--preeco-ink) !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid var(--preeco-line);
}

.preeco-filter-sidebar .filter_list {
  padding: 10px 0 6px;
}

.preeco-filter-sidebar .category-list.custom-height {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 1, 62, 0.3) transparent;
}

.preeco-filter-sidebar .category-list-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px;
  margin: 0 0 2px;
  border-radius: 10px;
  transition: background-color var(--preeco-duration) var(--preeco-ease);
}

.preeco-filter-sidebar .category-list-box:hover {
  background: var(--preeco-brand-softer);
}

.preeco-filter-sidebar .form-check-label .name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--preeco-ink-2);
}

/* -------------------------------------------------
   Price filter block (PLP only)
------------------------------------------------- */
.preeco-plp-price-filter.preeco-price-block {
  padding: 4px 0 4px;
}

/* Row: Min — Sep — Max */
.preeco-plp-price-filter .preeco-price-inputs {
  display: flex !important;
  align-items: flex-end;
  gap: 10px;
}

.preeco-plp-price-filter .preeco-price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.preeco-plp-price-filter .preeco-price-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--preeco-muted);
  margin: 0;
}

.preeco-plp-price-filter .preeco-price-input {
  width: 100%;
  height: 44px !important;
  border-radius: var(--preeco-radius-sm) !important;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}

.preeco-plp-price-filter .preeco-price-input::-webkit-outer-spin-button,
.preeco-plp-price-filter .preeco-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.preeco-plp-price-filter .preeco-price-sep {
  padding-bottom: 12px;
  color: var(--preeco-muted);
  font-weight: 700;
}

/* Reset + Apply buttons side by side */
.preeco-plp-price-filter .preeco-price-actions {
  display: flex !important;
  gap: 8px;
  margin-top: 14px;
}

.preeco-plp-price-filter .preeco-price-actions .preeco-btn {
  flex: 1;
  min-width: 0;
  text-transform: none;
}

/* Ensure overlay covers the shop section and sits under the drawer */
.shop-section ~ .bg-overlay,
.shop-section .bg-overlay,
.bg-overlay {
  z-index: 1050 !important;
}

/* -------------------------------------------------
   Mobile: left-side drawer (slide in from left)
------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Drawer wrapper — sits off-screen left, slides in on .show */
  .left-box {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 300px !important;
    max-width: 88vw !important;
    height: 100dvh !important;
    background: #fff !important;
    z-index: 1060 !important;
    overflow-y: auto !important;
    transition: left 260ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    box-shadow: none !important;
  }

  .left-box.show {
    left: 0 !important;
    box-shadow: 4px 0 32px rgba(20, 16, 18, 0.2) !important;
  }

  .left-box .preeco-filter-sidebar {
    position: static !important;
    max-height: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 16px 32px !important;
  }

  /* Back / close header inside drawer */
  .left-box .back-button {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--preeco-line);
    margin: 0 -16px 0;
  }

  .left-box .back-button h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--preeco-brand);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .preeco-plp-price-filter .preeco-price-actions {
    flex-direction: row !important;
  }

  .preeco-plp-price-filter .preeco-btn {
    width: auto !important;
  }

  /* Collapse the sidebar column so products take full width */
  .col-custome-3 {
    width: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .col-custome-9 {
    width: 100% !important;
  }
}

/* Desktop: undo mobile overrides */
@media (min-width: 992px) {
  .left-box {
    position: static !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
    z-index: auto !important;
    transition: none !important;
    box-shadow: none !important;
  }

  .col-custome-3 {
    width: 22% !important;
    padding: revert !important;
    overflow: visible !important;
  }

  .col-custome-9 {
    width: 78% !important;
  }
}

@media (max-width: 991.98px) {
  .preeco-plp-title-row {
    position: relative;
    padding-right: 46px; /* space for the mobile filter icon */
  }

  .preeco-plp-filter-icon-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 12px;
  }

  .preeco-plp-filter-icon-btn i {
    font-size: 16px;
    line-height: 1;
  }
}

/* Load more */
.listing-load-more .load-more-btn,
.brand-load-more .load-more-btn,
.load-more .load-more-btn {
  min-height: var(--preeco-touch);
  padding: 10px 28px;
  border-radius: var(--preeco-radius-pill);
  border: 1px solid var(--preeco-line-strong);
  background: #fff;
  color: var(--preeco-brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  box-shadow: var(--preeco-shadow-xs);
  transition:
    background-color var(--preeco-duration) var(--preeco-ease),
    border-color var(--preeco-duration) var(--preeco-ease),
    box-shadow var(--preeco-duration) var(--preeco-ease),
    transform var(--preeco-duration) var(--preeco-ease);
}

.listing-load-more .load-more-btn:hover,
.brand-load-more .load-more-btn:hover,
.load-more .load-more-btn:hover {
  background: var(--preeco-brand-soft);
  border-color: var(--preeco-brand);
  transform: translateY(-1px);
  box-shadow: var(--preeco-shadow-sm);
}

.shop-section .title-row h2,
.shop-section .search-view h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--preeco-ink);
}

/* -------------------------------------------------
   Brand listing gallery
------------------------------------------------- */
.preeco-brand-list-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--preeco-line);
  padding: 14px 0;
}

.preeco-brand-list-header h2 {
  font-family: var(--preeco-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--preeco-ink);
  margin: 0;
  letter-spacing: -0.02em;
}

.preeco-brand-search {
  border-radius: var(--preeco-radius-pill);
  overflow: hidden;
  border: 1px solid var(--preeco-line);
  background: var(--preeco-surface-soft);
  display: flex;
  align-items: stretch;
}

.preeco-brand-search .form-control {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  height: 46px;
  padding-left: 16px;
}

.preeco-brand-search .search-button {
  border: 0;
  background: transparent;
  width: 48px;
  color: var(--preeco-brand);
}

.preeco-brand-grid {
  padding: 28px 0 48px;
}

.preeco-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  height: 100%;
  padding: 18px 14px 16px;
  border-radius: var(--preeco-radius-md);
  border: 1px solid var(--preeco-line);
  background: #fff;
  box-shadow: var(--preeco-shadow-xs);
  transition:
    transform var(--preeco-duration) var(--preeco-ease),
    box-shadow var(--preeco-duration) var(--preeco-ease),
    border-color var(--preeco-duration) var(--preeco-ease);
}

.preeco-brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--preeco-shadow-md);
  border-color: var(--preeco-line-strong);
}

.preeco-brand-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--preeco-radius-sm);
  overflow: hidden;
  background: var(--preeco-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preeco-brand-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s var(--preeco-ease);
}

.preeco-brand-card:hover .preeco-brand-card__media img {
  transform: scale(1.04);
}

.preeco-brand-card__name {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--preeco-brand);
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.bcontainer {
  margin-bottom: 16px !important;
}

/* -------------------------------------------------
   Brand detail chip navigation
------------------------------------------------- */
#fixed-header.sub-header,
.brand-details-page #fixed-header,
.container-fluid.sub-header#fixed-header {
  position: sticky;
  z-index: 25;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--preeco-line) !important;
  box-shadow: var(--preeco-shadow-xs) !important;
}

#fixed-header .navbar-collapse ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 !important;
}

#fixed-header .nav-link,
#fixed-header .sub-nav-drop,
#fixed-header a.single-link {
  display: inline-flex !important;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px !important;
  border-radius: var(--preeco-radius-pill) !important;
  border: 1px solid transparent;
  background: var(--preeco-surface-soft);
  color: var(--preeco-ink-2) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  text-decoration: none !important;
  transition:
    background-color var(--preeco-duration) var(--preeco-ease),
    color var(--preeco-duration) var(--preeco-ease),
    border-color var(--preeco-duration) var(--preeco-ease),
    box-shadow var(--preeco-duration) var(--preeco-ease);
}

#fixed-header .nav-link:hover,
#fixed-header .sub-nav-drop:hover,
#fixed-header a.single-link:hover,
#fixed-header .nav-link:focus-visible,
#fixed-header .sub-nav-drop:focus-visible {
  background: var(--preeco-brand-soft);
  color: var(--preeco-brand) !important;
  border-color: var(--preeco-line-strong);
  outline: none;
}

#fixed-header .nav-link.active,
#fixed-header .sub-nav-drop.active,
#fixed-header a.single-link.active,
#fixed-header .dropdown-toggle.active {
  background: var(--preeco-brand) !important;
  color: #fff !important;
  border-color: var(--preeco-brand);
  box-shadow: 0 6px 14px rgba(136, 1, 62, 0.2);
}

#fixed-header .dropdown-menu {
  top: calc(100% + 8px) !important;
  min-width: 240px;
  max-height: min(65vh, 380px);
  overflow-y: auto;
  padding: 8px !important;
  border: 1px solid var(--preeco-line) !important;
  border-radius: var(--preeco-radius-md) !important;
  box-shadow: var(--preeco-shadow-md) !important;
  animation: preeco-mega-in 0.16s var(--preeco-ease);
}

#fixed-header .dropdown-item {
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--preeco-ink-2) !important;
}

#fixed-header .dropdown-item:hover,
#fixed-header .dropdown-item:focus-visible {
  background: var(--preeco-brand-soft) !important;
  color: var(--preeco-brand) !important;
}

#fixed-header .dropdown-item.active {
  background: rgba(136, 1, 62, 0.1) !important;
  color: var(--preeco-brand) !important;
  border: 1px solid var(--preeco-line-strong) !important;
  font-weight: 700;
}

.brand-search {
  border-radius: var(--preeco-radius-pill) !important;
  height: 40px;
  padding-left: 14px !important;
}

/* -------------------------------------------------
   Product cards soft elevation
------------------------------------------------- */
.product-sectionz .product-box,
.product-sectionz .product-box-3,
.brand-product-col .product-box,
.wbox .product-box {
  border-radius: var(--preeco-radius-sm);
  transition:
    transform var(--preeco-duration) var(--preeco-ease),
    box-shadow var(--preeco-duration) var(--preeco-ease);
}

.product-sectionz .product-box:hover,
.brand-product-col .product-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--preeco-shadow-sm);
}

/* -------------------------------------------------
   Mobile refinements
------------------------------------------------- */
@media (max-width: 1199.98px) {
  header .navbar-nav > .nav-item > .nav-link {
    text-transform: none;
  }
}

@media (max-width: 991.98px) {
  header .web-logo img,
  header .nav-logo img {
    max-height: 38px;
  }

  .preeco-brand-list-header h2 {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 575.98px) {

  #fixed-header .navbar-collapse ul {
    gap: 6px;
  }

  .preeco-brand-card {
    padding: 12px 10px 12px;
  }
}

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