/* ==========================================================================
   Olosota - Customer Web Design System
   Matches docs/design.md (Utsaho Flat Material 3 Architecture)
   ========================================================================== */

@font-face {
  font-family: 'LiAdorNoirrit';
  src: url('../fonts/LiAdorNoirrit-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'LiAdorNoirrit';
  src: url('../fonts/LiAdorNoirrit-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'LiAdorNoirrit';
  src: url('../fonts/LiAdorNoirrit-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'LiAdorNoirrit';
  src: url('../fonts/LiAdorNoirrit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
  color-scheme: light;
  /* Core Brand Colors */
  --primary: #4196FF;
  --primary-hover: #2F7EE6;
  --primary-light: #EBF5FF;
  --accent: #FFAC31;
  --accent-light: #FFFBEB;
  --success: #00C896;
  --success-light: #E6FAF5;
  --danger: #FF4757;
  --danger-light: #FEF2F2;
  --violet: #8B5CF6;
  --violet-light: #F3E8FF;

  /* Theme Colors (Light default) */
  --bg: #FFFBF5;
  --surface: #FFFFFF;
  --surface-secondary: #F7F1E7;
  --border: #EAE3D5;
  --text-primary: #1A1A2E;
  --text-secondary: #5A6080;
  --text-tertiary: #6E7698;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-card: 18px;
  --radius-modal: 20px;
  --radius-pill: 9999px;

  /* Typography */
  --font-family: 'LiAdorNoirrit', 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-drawer: -4px 0 30px rgba(0, 0, 0, 0.08);

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D0F14;
  --surface: #161A24;
  --surface-secondary: #1E2433;
  --border: #2A3045;
  --text-primary: #FFFFFF;
  --text-secondary: #B0BAD0;
  --text-tertiary: #6B7694;
  --primary-light: #1A3A6B;
  --accent-light: #5C3E00;
  --danger-light: #3D1418;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hide ugly browser scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  padding-top: 88px;
  /* space for floating island header */
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  /* space for floating capsule mobile bottom bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

:where(
  button,
  [role="button"],
  [onclick],
  input[type="button"],
  input[type="submit"],
  a:has(svg, i),
  .capsule-btn,
  .nav-account-btn,
  .mobile-nav-item,
  .btn-view-back,
  .btn-card-add,
  .btn-card-add-weight,
  .btn-add-bundle,
  .btn-wishlist-toggle,
  .pdp-wishlist-btn,
  .modal-close-btn,
  .dept-scroll-nav-btn,
  .dept-cat-chip,
  .category-pill
) {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

:where(a, button, summary, [role="button"], input[type="button"], input[type="submit"], [tabindex]):focus:not(:focus-visible) {
  outline: none;
}

:where(a, button, summary, [role="button"], input[type="button"], input[type="submit"], [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  :where(
    button,
    [role="button"],
    .capsule-btn,
    .nav-account-btn,
    .btn-view-back,
    .btn-card-add,
    .btn-card-add-weight,
    .btn-add-bundle,
    .btn-wishlist-toggle,
    .pdp-wishlist-btn,
    .modal-close-btn,
    .dept-scroll-nav-btn
  ) {
    transition: box-shadow 150ms ease-out, background-color 180ms ease, color 180ms ease, border-color 180ms ease, scale 150ms ease-out, transform 150ms ease-out;
  }

  :where(
    button,
    [role="button"],
    .capsule-btn,
    .nav-account-btn,
    .btn-view-back,
    .btn-card-add,
    .btn-card-add-weight,
    .btn-add-bundle,
    .btn-wishlist-toggle,
    .pdp-wishlist-btn,
    .modal-close-btn,
    .dept-scroll-nav-btn
  ):active {
    scale: 0.96;
  }
}

.container {
  inline-size: 100%;
  width: 100%;
  max-width: 1240px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. Top Announcement Bar (Container-Constrained Floating Ribbon)
   ========================================================================== */
.top-bar-wrapper {
  margin-top: 10px;
  margin-bottom: 4px;
}

.top-bar {
  background-color: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 6px 18px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.top-bar-promo-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.top-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 12px;
}

.top-promo-pill i.fa-gift {
  color: var(--primary);
  font-size: 12.5px;
}

.top-promo-pill i.fa-bolt {
  font-size: 12px;
}

.top-code-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(65, 150, 255, 0.28);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.top-code-badge code {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.top-code-badge i {
  font-size: 10px;
  opacity: 0.85;
}

.top-code-badge:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.top-code-badge.badge-accent {
  background: #fff8e6;
  color: #b78103;
  border-color: rgba(255, 172, 49, 0.35);
}

.top-code-badge.badge-accent:hover {
  background: #ffac31;
  color: #fff;
  border-color: #ffac31;
}

.top-promo-separator {
  color: var(--border);
  font-size: 12px;
}

.top-bar-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.top-track-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.top-track-link:hover {
  color: var(--primary);
  background: var(--surface);
}

/* ==========================================================================
   2. Floating Glass Appbar (Matches https://upoharshop.com/)
   ========================================================================== */
.floating-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 16px;
  pointer-events: none;
  /* allows background scrolling & clicking outside */
}

.floating-nav {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(250, 248, 244, 0.56) 100%);
  backdrop-filter: blur(20px) saturate(175%);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 8px 16px;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .floating-nav {
  background: linear-gradient(180deg, rgba(22, 31, 43, 0.74) 0%, rgba(16, 23, 33, 0.66) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.floating-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo-badge {
  width: 38px;
  height: 38px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(65, 150, 255, 0.25);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-text span {
  color: var(--primary);
}

/* Right: Action Buttons Group (Capsule + Account Pill) */
.floating-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Frosted Glass Capsule holding Menu, Search, Theme (and Cart on Desktop) */
.nav-control-capsule {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(250, 248, 244, 0.72) 100%);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 4px;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.045),
    0 1px 2px rgba(15, 23, 42, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .nav-control-capsule {
  background: linear-gradient(180deg, rgba(31, 44, 58, 0.84) 0%, rgba(22, 33, 45, 0.80) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.capsule-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 16px;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) {
  .capsule-btn:hover {
    background: var(--primary);
    color: #fff;
  }
}

.capsule-btn:active {
  background: rgba(65, 150, 255, 0.14);
  color: var(--primary);
}

.capsule-svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.theme-stroke-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.theme-svg-sun {
  display: none;
}

[data-theme="dark"] .theme-svg-moon {
  display: none;
}

[data-theme="dark"] .theme-svg-sun {
  display: block;
}

.capsule-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(65, 150, 255, 0.4);
}

.capsule-btn:hover .capsule-cart-badge {
  background: #fff;
  color: var(--primary);
}

/* Account Pill Button (Desktop & Mobile) - Frosted Glass Capsule */
.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(250, 248, 244, 0.72) 100%);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  padding: 6px 14px;
  height: 48px;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.045),
    0 1px 2px rgba(15, 23, 42, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .nav-account-btn {
  background: linear-gradient(180deg, rgba(31, 44, 58, 0.84) 0%, rgba(22, 33, 45, 0.80) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

@media (hover: hover) {
  .nav-account-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
  }

  .nav-account-btn:hover .account-icon-wrap {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .nav-account-btn:hover .account-status-tag,
  .nav-account-btn:hover .account-sub-tag {
    color: #fff;
  }
}

.nav-account-btn:active {
  background: rgba(65, 150, 255, 0.14);
  border-color: rgba(65, 150, 255, 0.28);
}

.account-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(65, 150, 255, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

[data-theme="dark"] .account-icon-wrap {
  background: rgba(96, 165, 250, 0.18);
  color: #60A5FA;
}

.account-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.account-status-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.account-sub-tag {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Left-Side Navigation Drawer (Menu Explorer - Matches upoharshop.com)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  max-width: 85vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.12);
  z-index: 1060;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-menu-drawer.open {
  transform: translateX(0);
}

.side-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.side-menu-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.side-menu-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-menu-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.side-menu-title-wrap h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.side-menu-title-wrap p {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.side-menu-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.side-menu-close-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.side-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  transition: all 0.22s ease;
}

.side-nav-card:hover {
  background: var(--surface);
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(65, 150, 255, 0.1);
}

.side-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.side-nav-card:hover .side-card-icon {
  background: var(--primary);
  color: #fff;
}

.side-card-info {
  flex: 1;
  min-width: 0;
}

.side-card-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.side-card-info p {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-card-arrow {
  color: var(--text-tertiary);
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.side-nav-card:hover .side-card-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

.side-menu-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.btn-whatsapp-chat {
  width: 100%;
  height: 48px;
  background: #25D366;
  color: #fff;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-chat:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.side-menu-support-text {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ==========================================================================
   Top Search Popup Modal (Matches upoharshop.com)
   ========================================================================== */
.search-modal-overlay {
  align-items: flex-start;
  padding-top: 8vh;
  z-index: 1200;
}

.search-modal-box {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-overlay.active .search-modal-box {
  transform: translateY(0) scale(1);
}

.search-modal-form {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.search-form-icon {
  font-size: 17px;
  color: var(--text-tertiary);
}

.search-modal-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
}

.search-modal-form input::placeholder {
  color: var(--text-tertiary);
}

.search-modal-submit {
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.search-modal-submit:hover {
  background: var(--primary-dark, #2563eb);
}

.search-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-modal-close:hover {
  background: var(--danger);
  color: #fff;
}

.search-modal-body {
  max-height: 55vh;
  overflow-y: auto;
  padding: 18px 20px;
}

.search-cat-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.search-cat-divider::before,
.search-cat-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.search-cat-divider span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.search-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.modal-cat-chip {
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.modal-cat-chip:hover,
.modal-cat-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.modal-search-result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-search-result-row:hover {
  background: var(--surface-secondary);
}

.modal-search-result-row img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-secondary);
}

.modal-search-row-info {
  flex: 1;
  min-width: 0;
}

.modal-search-row-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-search-row-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.modal-search-row-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}

.btn-modal-view-all-results {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  text-align: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--primary-light);
  transition: all 0.2s ease;
}

.btn-modal-view-all-results:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   Right-Side User / Account Profile Drawer (Matches upoharshop.com)
   ========================================================================== */
.user-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 85vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
  z-index: 1060;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-drawer.open {
  transform: translateX(0);
}

.user-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.user-drawer-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  transition: all 0.3s ease;
}

.user-drawer-close-btn:hover {
  background: var(--danger);
  transform: rotate(90deg);
}

.user-drawer-banner {
  position: relative;
  background: #1A1A2E;
  color: #fff;
  padding: 28px 20px 24px 20px;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

[data-theme="dark"] .user-drawer-banner {
  background: #0B0E17;
  border-bottom: 1px solid var(--border);
}

.decor-circle-1 {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.decor-circle-2 {
  position: absolute;
  bottom: -30px;
  right: 40px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.user-banner-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.user-avatar-circle {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(65, 150, 255, 0.3);
}

.user-banner-info {
  flex: 1;
  min-width: 0;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.user-name-row h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-transform: uppercase;
}

.user-banner-info p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.user-drawer-links {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-links-heading {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  padding-left: 4px;
}

.user-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.user-nav-item:hover {
  background: var(--surface-secondary);
  border-color: var(--primary);
  transform: translateX(3px);
}

.user-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.user-nav-item:hover .user-item-icon {
  background: var(--primary);
  color: #fff;
}

.user-item-info {
  flex: 1;
  min-width: 0;
}

.user-item-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.user-item-info span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.user-item-arr {
  color: var(--text-tertiary);
  font-size: 12px;
}

.user-admin-shortcut-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.user-admin-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--primary-light);
  border: 1px solid rgba(65, 150, 255, 0.3);
  color: var(--primary);
  transition: all 0.2s ease;
}

.user-admin-card:hover {
  background: var(--primary);
  color: #fff;
}

.user-admin-card:hover strong,
.user-admin-card:hover .master-access-tag {
  color: #fff;
}

.user-item-icon.admin {
  background: var(--primary);
  color: #fff;
}

.user-admin-card:hover .user-item-icon.admin {
  background: #fff;
  color: var(--primary);
}

.master-access-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.user-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.btn-user-logout {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-user-logout:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: rgba(255, 71, 87, 0.3);
}

/* ==========================================================================
   Category Strip Section
   ========================================================================== */
.category-strip-section {
  margin-top: 22px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.category-strip-header {
  display: none;
}

.nav-category-container {
  display: flex;
  align-items: center;
  gap: 8px;
  inline-size: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 2px 0;
}

.nav-category-container::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: none;
}

.category-pill.active i {
  color: white;
}

.cat-pill-count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: all 0.2s ease;
}

.category-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.28);
  color: white;
}

/* ==========================================================================
   2B. Home Visual Categories Showcase Grid (4x2 Mobile / 8x1 Desktop)
   ========================================================================== */
.section.home-categories-showcase {
  margin-block: 18px 26px;
}

.home-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.home-cat-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.home-cat-see-all {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .home-cat-see-all:hover {
    background: var(--primary-light);
  }
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px 14px;
  inline-size: 100%;
}

.home-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  text-decoration: none;
  inline-size: 100%;
  min-inline-size: 0;
  padding: 2px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-cat-squircle {
  aspect-ratio: 1 / 1;
  inline-size: 100%;
  max-inline-size: 92px;
  padding: 2.5px;
  border-radius: 22px;
  background: var(--cat-ring-gradient, linear-gradient(135deg, #4F6DF5, #7C9BFF));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-cat-thumb-inner {
  inline-size: 100%;
  block-size: 100%;
  border-radius: 19.5px;
  background: #FFFFFF;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .home-cat-thumb-inner {
  background: #1E293B;
}

.home-cat-img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16.5px;
}

.home-cat-fallback-icon {
  display: none;
  inline-size: 100%;
  block-size: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 16.5px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 24px;
}

.home-cat-fallback-icon.is-visible {
  display: flex;
}

.home-cat-name {
  margin-top: 7px;
  inline-size: 100%;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: clip;
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  .home-cat-tile:hover .home-cat-squircle {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-cat-tile:active {
    transform: scale(0.95);
  }
}

@media (max-width: 1024px) {
  .home-categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
  }
}

@media (max-width: 480px) {
  .section.home-categories-showcase {
    margin-block: 14px 18px;
  }

  .home-cat-header {
    margin-bottom: 12px;
  }

  .home-categories-grid {
    gap: 14px 10px;
  }

  .home-cat-squircle {
    border-radius: 20px;
    padding: 2.5px;
  }

  .home-cat-thumb-inner {
    border-radius: 17.5px;
    padding: 2.5px;
  }

  .home-cat-img,
  .home-cat-fallback-icon {
    border-radius: 15px;
  }

  .home-cat-name {
    margin-top: 6px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .home-categories-grid {
    gap: 12px 8px;
  }

  .home-cat-name {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   3. Hero Section
   ========================================================================== */
/* ==========================================================================
   3. Hero Section (Image 1 Style Banner & Pill Search Architecture)
   ========================================================================== */
.hero {
  margin: 18px auto 32px;
}

/* --- Quick Pill Search Bar (Matching Image 1) --- */
.hero-search-wrapper {
  margin-bottom: 16px;
  width: 100%;
}

.hero-search-pill {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  height: 52px;
}

.hero-search-pill:hover {
  border-color: rgba(140, 198, 63, 0.7);
  box-shadow: 0 6px 22px rgba(140, 198, 63, 0.15);
}

.hero-search-icon {
  color: var(--text-tertiary);
  font-size: 16px;
  margin-right: 14px;
  transition: color 0.2s;
}

.hero-search-pill:hover .hero-search-icon {
  color: var(--primary);
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.hero-search-input::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

.hero-search-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 12px;
}

.hero-search-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.hero-search-filter-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* --- Hero Banner Card (Dynamic Per-Slide Colors & Contour Architecture) --- */
.hero-banner-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--hero-bg, linear-gradient(135deg, #a4cf54 0%, #8bc34a 45%, #7cb342 100%));
  box-shadow: var(--hero-shadow, 0 12px 32px -8px rgba(124, 179, 66, 0.35));
  min-height: 195px;
  transition: background 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner-card {
    transition: none;
  }
}

@media (forced-colors: active) {
  .hero-banner-card {
    border: 2px solid CanvasText;
  }

  .hero-carousel-dot.active {
    outline: 2px solid Highlight;
  }
}

.hero-banner-contour-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(ellipse at 85% 45%, rgba(255, 255, 255, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 75%, rgba(255, 255, 255, 0.5) 0%, transparent 45%),
    repeating-radial-gradient(circle at 100% 50%, transparent 0, transparent 40px, rgba(255, 255, 255, 0.2) 41px, transparent 42px);
  z-index: 1;
}

.hero-slides-track {
  position: relative;
  display: grid;
  grid-template-columns: 100%;
  width: 100%;
  min-height: 195px;
  overflow: hidden;
}

.hero-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 26px 32px;
  width: 100%;
  min-height: 195px;
  position: relative;
  z-index: 2;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(100%, 0, 0);
}

.hero-slide.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  z-index: 3;
}

.hero-slide.is-leaving-rtl,
.hero-slide.is-leaving-ltr {
  visibility: visible;
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-entering-rtl {
    animation: heroSlideInRtl 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
  }

  .hero-slide.is-leaving-rtl {
    animation: heroSlideOutRtl 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
  }

  .hero-slide.is-entering-ltr {
    animation: heroSlideInLtr 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
  }

  .hero-slide.is-leaving-ltr {
    animation: heroSlideOutLtr 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
  }
}

@keyframes heroSlideInRtl {
  from {
    opacity: 0.85;
    transform: translate3d(100%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroSlideOutRtl {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0.85;
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes heroSlideInLtr {
  from {
    opacity: 0.85;
    transform: translate3d(-100%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroSlideOutLtr {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0.85;
    transform: translate3d(100%, 0, 0);
  }
}

.hero-slide-left {
  flex: 1;
  max-width: 56%;
  z-index: 3;
}

.hero-limited-badge {
  display: inline-flex;
  align-items: center;
  background: #111111;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slide-title {
  font-size: 26px;
  font-weight: 800;
  color: #111111;
  line-height: 1.22;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
}

.hero-slide-sub {
  font-size: 13.5px;
  color: rgba(17, 17, 17, 0.82);
  line-height: 1.45;
  margin: 0 0 14px 0;
  font-weight: 500;
  max-width: 460px;
}

.hero-shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111111;
  color: #ffffff;
  padding: 6px 7px 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
  cursor: pointer;
  width: fit-content;
}

.hero-shop-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.shop-now-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.hero-shop-now-btn:hover .shop-now-arrow {
  transform: rotate(45deg);
}

.hero-slide-right {
  flex: 1;
  max-width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.hero-shopper-img {
  max-height: 175px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  transform: translateY(4px);
  transition: transform 0.3s ease;
}

.hero-slide:hover .hero-shopper-img {
  transform: translateY(0) scale(1.02);
}

/* --- Bottom Center Curved Notch Tab with Indicators (Matching Image 1) --- */
.hero-notch-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  justify-content: center;
}

.hero-notch-pill {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 6px 16px 5px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.05);
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-dot.active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: var(--hero-dot-active, #8bc34a);
}

/* Trust Badges Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--primary);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.trust-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  margin: 44px auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   4. Special Collections Grid
   ========================================================================== */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.collection-card:hover {
  transform: translateY(-4px);
  border-color: var(--col-hover-color, var(--primary));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.col-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.col-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
}

.collection-card:hover .col-card-icon {
  transform: scale(1.08);
}

.col-card-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
}

.col-card-body {
  flex: 1;
  margin-bottom: 14px;
}

.col-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}

.col-card-desc {
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.col-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.col-count-pill {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.col-card-link-btn {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-secondary);
  transition: all 0.2s ease;
}

.collection-card:hover .col-card-link-btn {
  background: var(--primary);
  color: #fff;
}

.collection-card:hover .col-card-link-btn i {
  transform: translateX(3px);
}

/* ==========================================================================
   5. Flash Sales Deals
   ========================================================================== */
.flash-sale-banner {
  background: linear-gradient(135deg, rgba(255, 172, 49, 0.12) 0%, rgba(255, 71, 87, 0.08) 100%), var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(255, 172, 49, 0.12);
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: nowrap;
  gap: 12px;
}

.flash-sale-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.flash-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #1A1A2E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(255, 172, 49, 0.3);
}

.flash-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.flash-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Countdown Timer */
.flash-timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.flash-timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.timer-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.1;
}

.timer-digits {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-unit {
  background: #1A1A2E;
  color: #FFF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 42px;
}

[data-theme="dark"] .timer-unit {
  background: var(--primary);
}

.timer-unit span {
  font-size: 15px;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.timer-unit small {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.timer-colon {
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
}

.flash-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flash-product-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

[data-theme="dark"] .flash-product-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.flash-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(65, 150, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.flash-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  z-index: 2;
  letter-spacing: -0.2px;
}

.flash-img-wrap {
  width: 100%;
  height: 165px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--surface-secondary);
  position: relative;
}

.flash-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.flash-product-card:hover .flash-img-wrap img {
  transform: scale(1.05);
}

.flash-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.flash-brand-pill {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 227, 213, 0.9);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 6px;
  max-width: calc(100% - 14px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

[data-theme="dark"] .flash-brand-pill {
  background: rgba(26, 31, 46, 0.88);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.14);
}

.flash-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 3px 0;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  height: auto;
  min-height: 0;
  transition: color 0.2s ease;
}

.flash-card-title:hover {
  color: var(--primary);
}

.flash-card-unit {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 4px;
}

.flash-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 10px 0;
}

.flash-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.flash-current-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.flash-old-price {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

/* 10-Segment Donut Progress Ring */
.flash-ring-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
}

.flash-stock-ring-svg {
  display: block;
  overflow: visible;
  transition: transform 0.2s ease;
}

.flash-ring-container:hover .flash-stock-ring-svg {
  transform: scale(1.08);
}

.flash-stock-ring-svg .ring-center-text {
  font-size: 8.5px;
  font-weight: 800;
  fill: var(--text-primary);
  font-family: inherit;
  letter-spacing: -0.2px;
}

[data-theme="dark"] .flash-stock-ring-svg .ring-seg-empty {
  stroke: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .flash-stock-ring-svg .ring-center-text {
  fill: #F1F5F9;
}

/* Smart Compact Stock Urgency Chip */
.flash-stock-chip {
  background: #FFF5F5;
  border: 1px solid #FFE3E3;
  border-radius: 8px;
  padding: 6px 8px;
  margin: 6px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

[data-theme="dark"] .flash-stock-chip {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.stock-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

.stock-chip-title {
  font-size: 11px;
  font-weight: 700;
  color: #DC2626;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

[data-theme="dark"] .stock-chip-title {
  color: #F87171;
}

.stock-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: pulseDot 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.stock-chip-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #991B1B;
}

[data-theme="dark"] .stock-chip-count {
  color: #FCA5A5;
}

.stock-chip-progress {
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="dark"] .stock-chip-progress {
  background: rgba(255, 255, 255, 0.1);
}

.stock-chip-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #F59E0B 0%, #EF4444 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2 Action Buttons (Buy Now & Add to Cart) - No Icons */
.flash-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-flash-buy {
  height: 34px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #1A1A2E;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  white-space: nowrap;
}

.btn-flash-buy:hover {
  background: #F59E0B;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-flash-cart {
  height: 34px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  white-space: nowrap;
}

.btn-flash-cart:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: none;
}

[data-theme="dark"] .btn-flash-cart {
  background: rgba(65, 150, 255, 0.16);
  color: #60A5FA;
  border-color: #60A5FA;
}

[data-theme="dark"] .btn-flash-cart:hover {
  background: #3B82F6;
  color: #ffffff;
}

/* Backward compatibility for any remaining .btn-flash-add */
.btn-flash-add {
  margin-top: auto;
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-flash-add:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   6. Bundle Deals & Super Savers
   ========================================================================== */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bundle-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  gap: 20px;
  position: relative;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

[data-theme="dark"] .bundle-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.bundle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(65, 150, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.bundle-card:hover .bundle-title {
  color: var(--primary);
}

.bundle-image-box {
  width: 170px;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-secondary);
  position: relative;
}

.bundle-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bundle-card:hover .bundle-image-box img {
  transform: scale(1.05);
}

.bundle-savings-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  z-index: 2;
  letter-spacing: -0.2px;
}

.bundle-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bundle-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.bundle-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.bundle-items-list {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  background: var(--surface-secondary);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.bundle-items-list strong {
  color: var(--text-primary);
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.bundle-items-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}

.bundle-items-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.bundle-items-list li i {
  color: #10B981;
  font-size: 11px;
}

.bundle-price-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.bundle-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bundle-current-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.bundle-old-price {
  font-size: 13.5px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.bundle-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-view-bundle-outline {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-bundle-outline:hover {
  background: var(--surface-secondary);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-add-bundle {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(65, 150, 255, 0.28);
  white-space: nowrap;
}

.btn-add-bundle:hover {
  background: var(--primary-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(65, 150, 255, 0.35);
}

[data-theme="dark"] .btn-add-bundle {
  background: #3B82F6;
}

[data-theme="dark"] .btn-add-bundle:hover {
  background: #2563EB;
}

/* ==========================================================================
   7. Popular Brands Bar
   ========================================================================== */
.brands-chips-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 6px 4px;
  scrollbar-width: none;
}

.brands-chips-bar::-webkit-scrollbar {
  display: none;
}

.brand-chip {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-chip:hover,
.brand-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(65, 150, 255, 0.25);
}

/* ==========================================================================
   8. Main Catalog & Products Grid
   ========================================================================== */
.catalog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 4px;
  position: relative;
}

.catalog-header-bar .section-title {
  margin-bottom: 0;
  min-width: 0;
}

.catalog-filter-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
}

.btn-catalog-filter-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-catalog-filter-icon:hover,
.btn-catalog-filter-icon.open,
.btn-catalog-filter-icon.has-active-filter {
  border-color: var(--primary);
  background: var(--surface-secondary);
}

.filter-active-dot {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  border: 1.5px solid var(--surface);
}

.btn-catalog-filter-icon.has-active-filter .filter-active-dot {
  display: block;
}

.catalog-filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 248px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-filter-popover[hidden] {
  display: none;
}

.catalog-popover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-popover-divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

.catalog-popover-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-popover-sort .form-select-sm,
.catalog-popover-sort .compact-sort-dropdown {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

[data-theme="dark"] .catalog-filter-popover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.catalog-sort-box label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-filter-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Switch Toggle for Stock */
.stock-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.stock-filter-toggle input {
  display: none;
}

.stock-toggle-slider {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: var(--radius-pill);
  position: relative;
  transition: var(--transition);
}

.stock-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #FFF;
  border-radius: 50%;
  transition: var(--transition);
}

.stock-filter-toggle input:checked+.stock-toggle-slider {
  background: var(--success);
}

.stock-filter-toggle input:checked+.stock-toggle-slider::after {
  transform: translateX(18px);
}

.stock-toggle-lbl {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.catalog-sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.form-select-sm {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}

.sort-icon-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compact-sort-dropdown {
  position: relative;
  display: inline-block;
}

.compact-sort-dropdown.is-fullwidth {
  display: block;
  width: 100%;
}

.compact-sort-dropdown.is-fullwidth .compact-select-wrap {
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 10px;
}

.compact-sort-dropdown.is-fullwidth .compact-select-display {
  font-size: 13.5px;
  font-weight: 500;
  white-space: normal;
  text-align: left;
}

.compact-sort-dropdown.is-fullwidth .compact-sort-menu {
  left: 0;
  right: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  z-index: 2500;
}

.compact-sort-dropdown.is-fullwidth .compact-sort-option {
  white-space: normal;
  line-height: 1.4;
}

.ds-select-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

.compact-sort-dropdown.is-fullwidth > .ds-select-native-hidden {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  clip: auto !important;
  opacity: 0 !important;
  z-index: 0 !important;
}

.compact-sort-dropdown.is-fullwidth > .compact-sort-trigger {
  position: relative;
  z-index: 1;
}

.compact-sort-dropdown.is-fullwidth:has(> .ds-select-native-hidden:focus:invalid) > .compact-sort-trigger {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.compact-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 11px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.compact-select-wrap:hover,
.compact-select-wrap:focus-visible,
.compact-sort-trigger[aria-expanded="true"] {
  border-color: var(--primary);
  outline: none;
}

.compact-select-display {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1.25;
}

.compact-select-chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s ease;
}

.compact-sort-trigger[aria-expanded="true"] .compact-select-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.compact-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 1200;
  min-width: 196px;
  max-width: calc(100vw - 32px);
  max-height: min(260px, calc(100vh - 32px));
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-family);
}

.compact-sort-menu[hidden] {
  display: none;
}

.compact-sort-menu.open-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.compact-sort-menu.align-left {
  left: 0;
  right: auto;
}

.compact-sort-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.compact-sort-option:hover,
.compact-sort-option:focus-visible {
  background: var(--surface-secondary);
  outline: none;
}

.compact-sort-option.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.compact-sort-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0;
  color: var(--primary);
}

.compact-sort-option.active .compact-sort-check {
  opacity: 1;
}

[data-theme="dark"] .compact-sort-menu {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  inline-size: 100%;
  width: 100%;
  min-width: 0;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  border-color: rgba(65, 150, 255, 0.4);
}

.product-card-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
}

.product-card-top>* {
  pointer-events: auto;
}

.badges-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: calc(100% - 36px);
}

.badge-discount {
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.35);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.badge-custom-weight {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(65, 150, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  line-height: 1.2;
}

.btn-wishlist-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: var(--transition);
}

.btn-wishlist-toggle.wished {
  background: white;
  color: var(--danger);
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.25);
  transform: scale(1.08);
}

@media (hover: hover) {
  .btn-wishlist-toggle:hover {
    background: white;
    color: var(--danger);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.25);
    transform: scale(1.08);
  }
}

.product-card-img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface-secondary);
  position: relative;
  cursor: pointer;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.quick-view-overlay-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card:hover .quick-view-overlay-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-card-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand-tag {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0 2px 0;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  height: 42px;
}

.product-unit-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 14px;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.product-price {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.product-original-price {
  font-size: 11.5px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  white-space: nowrap;
}

.product-card .stock-status-pill {
  font-size: 10px;
  padding: 3px 8px;
}

.stock-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.stock-status-pill.in {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}

[data-theme="dark"] .stock-status-pill.in {
  background: linear-gradient(135deg, #10B981, #047857);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.stock-status-pill.out {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.28);
}

[data-theme="dark"] .stock-status-pill.out {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.product-card-actions {
  margin-top: auto;
}

.btn-card-add {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 9px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

@media (hover: hover) {
  .btn-card-add:hover {
    background: var(--primary-hover);
  }
}

.btn-card-add:active {
  background: var(--primary-hover);
}

.btn-card-add-weight {
  width: 100%;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

@media (hover: hover) {
  .btn-card-add-weight:hover {
    background: var(--primary);
    color: white;
  }
}

.btn-card-add-weight:active {
  background: rgba(65, 150, 255, 0.16);
}

.btn-card-disabled {
  width: 100%;
  background: var(--surface-secondary);
  color: var(--text-tertiary);
  padding: 9px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.empty-catalog-box {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: center;
}

.empty-catalog-box i {
  font-size: 44px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.empty-catalog-box h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-catalog-box p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ==========================================================================
   9. Slide-out Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface);
  box-shadow: var(--shadow-drawer);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  display: flex;
  align-items: safe center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
}

.cart-drawer-count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: #EFF6FF;
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  font-variant-numeric: tabular-nums;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .cart-drawer-count-chip {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.28);
  color: #93C5FD;
}

.cart-page-count-text {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-secondary);
  font-size: 20px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: var(--danger);
  color: white;
}

/* Free Delivery Banner inside Drawer & Cart Page */
.free-delivery-banner {
  container: free-del / inline-size;
  --free-del-track: #EEF2F7;
  --free-del-track-border: #CBD5E1;
  --free-del-fill: #2563EB;
  background: var(--surface);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.drawer-panel .free-delivery-banner {
  margin: 12px 16px 4px;
}

[data-theme="dark"] .free-delivery-banner {
  --free-del-track: rgba(255, 255, 255, 0.08);
  --free-del-track-border: rgba(148, 163, 184, 0.28);
  --free-del-fill: #3B82F6;
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.free-delivery-banner.is-unlocked {
  --free-del-fill: #059669;
  background: #F4FBF7;
  border-color: rgba(16, 185, 129, 0.36);
}

[data-theme="dark"] .free-delivery-banner.is-unlocked {
  --free-del-fill: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.36);
}

.free-del-text {
  font-size: 13.5px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.free-delivery-banner.is-unlocked .free-del-text {
  color: var(--text-primary);
}

[data-theme="dark"] .free-del-text,
[data-theme="dark"] .free-delivery-banner.is-unlocked .free-del-text {
  color: var(--text-primary);
}

.free-del-status-row {
  display: flex;
  align-items: safe center;
  gap: 12px;
  width: 100%;
}

.free-del-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.free-del-icon-badge.is-progress {
  background: rgba(65, 150, 255, 0.12);
  color: #2563EB;
}

[data-theme="dark"] .free-del-icon-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
}

[data-theme="dark"] .free-del-icon-badge.is-progress {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.free-del-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.free-del-headline {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.free-delivery-banner:not(.is-unlocked) .free-del-headline {
  font-size: clamp(11px, 3.25cqi, 13.5px);
  white-space: nowrap;
  text-wrap: nowrap;
}

.free-delivery-banner.is-unlocked .free-del-headline {
  font-weight: 700;
}

.free-del-subline {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
}

.free-del-amount {
  color: #2563EB;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .free-del-amount {
  color: #60A5FA;
}

.free-del-accent-word {
  color: var(--text-primary);
  font-weight: 700;
}

[data-theme="dark"] .free-del-accent-word {
  color: var(--text-primary);
}

.free-del-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: #047857;
  color: #FFFFFF;
}

.free-del-pct {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  font-variant-numeric: tabular-nums;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #1D4ED8;
}

[data-theme="dark"] .free-del-pct {
  color: #93C5FD;
}

.free-delivery-banner.is-unlocked .free-del-pct {
  color: #047857;
}

[data-theme="dark"] .free-delivery-banner.is-unlocked .free-del-pct {
  color: #34D399;
}

.free-del-progress-row {
  display: flex;
  align-items: safe center;
  gap: 10px;
  inline-size: 100%;
}

/* Native accessible progress indicator with solid flat fill (no gradient) */
.free-del-progress {
  display: block;
  flex: 1 1 0%;
  min-inline-size: 0;
  height: 7px;
  border: 1px solid var(--free-del-track-border);
  border-radius: var(--radius-pill);
  background-color: var(--free-del-track);
  overflow: clip;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.free-del-progress::-webkit-progress-bar {
  background-color: var(--free-del-track);
  border-radius: var(--radius-pill);
}

.free-del-progress::-webkit-progress-value {
  background-color: var(--free-del-fill);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease, background-color 0.25s ease;
}

.free-del-progress::-moz-progress-bar {
  background-color: var(--free-del-fill);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease, background-color 0.25s ease;
}

@media (forced-colors: active) {
  .free-delivery-banner {
    border: 1px solid CanvasText;
  }

  .free-del-progress {
    border: 1px solid CanvasText;
    background-color: Canvas;
  }

  .free-del-progress::-webkit-progress-value {
    background-color: Highlight;
  }

  .free-del-progress::-moz-progress-bar {
    background-color: Highlight;
  }
}

/* Items List */
.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-cart-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart-state i {
  font-size: 48px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.empty-cart-state h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-cart-state p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-start-shopping {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
}

.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cart-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-meta {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.cart-item-price-calc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cart-item-price-calc strong {
  color: var(--primary);
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}

.stepper-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-primary);
  transition: var(--transition);
}

.stepper-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.stepper-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-item-remove-btn {
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition);
}

.cart-item-remove-btn:hover {
  color: var(--danger);
  background: var(--danger-light);
}

/* Drawer Footer */
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.drawer-voucher-box {
  margin-bottom: 14px;
}

.voucher-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.voucher-input-row i {
  position: absolute;
  left: 12px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.voucher-input-row input {
  flex: 1;
  height: 40px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px 0 34px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.voucher-input-row input:focus {
  border-color: var(--primary);
}

.btn-apply-voucher {
  background: var(--primary);
  color: white;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-apply-voucher:hover {
  background: var(--primary-hover);
}

.voucher-alert-msg {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.voucher-alert-msg.success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(0, 200, 150, 0.3);
}

.voucher-alert-msg.error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.drawer-bill-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.bill-total-row {
  border-top: 1px dashed var(--border);
  padding-top: 8px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.bill-grand-total {
  font-size: 18px;
  color: var(--primary);
}

.btn-checkout-submit {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(65, 150, 255, 0.3);
}

.btn-checkout-submit:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-checkout-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   10. Modals Common
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-modal);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-secondary);
  font-size: 20px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--danger);
  color: white;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   11. Product Quick View & Fractional Weight Modal
   ========================================================================== */
.modal-product-view {
  max-width: 780px;
  padding: 28px;
}

.modal-product-view .modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.modal-product-view .modal-close-btn:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  transform: scale(1.08);
}

.product-view-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.pv-image-box {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-secondary);
}

.pv-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-discount-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.pv-details-box {
  display: flex;
  flex-direction: column;
}

.pv-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pv-brand-pill {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.pv-category-pill {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.pv-stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pv-stock-pill.in {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}

[data-theme="dark"] .pv-stock-pill.in {
  background: linear-gradient(135deg, #10B981, #047857);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.pv-stock-pill.out {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.28);
}

[data-theme="dark"] .pv-stock-pill.out {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.pv-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pv-unit-desc {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.pv-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.pv-current-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
}

.pv-old-price {
  font-size: 16px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.pv-savings-badge {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .pv-savings-badge {
  background: linear-gradient(135deg, #10B981, #047857);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* Weight Selector */
.pv-weight-section {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.pv-weight-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pv-weight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pv-weight-chip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.pv-weight-chip:hover,
.pv-weight-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pv-weight-hint {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

/* Actions Row in Quick View Modal */
.pv-actions-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.pv-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pv-qty-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pv-qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.pv-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.pv-step-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pv-qty-val {
  font-size: 15px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.pv-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-pv-add-cart {
  width: 100%;
  height: 46px;
  background: var(--primary);
  color: white;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.btn-pv-add-cart:hover {
  background: var(--primary-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-pv-buy-now {
  width: 100%;
  height: 46px;
  background: var(--accent);
  color: #1A1A2E;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.btn-pv-buy-now:hover {
  background: #F59E0B;
  box-shadow: none;
  transform: translateY(-1px);
}

/* ==========================================================================
   12. Checkout Modal & Order Placement
   ========================================================================== */
.modal-checkout-card {
  max-width: 650px;
}

.checkout-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-section-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.checkout-fieldset {
  margin: 0;
  min-inline-size: 0;
}

.checkout-legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 14px 0;
}

.checkout-legend + * {
  clear: both;
}

.checkout-sec-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
  min-width: 0;
  max-width: 100%;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

textarea.form-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: auto;
  padding: 10px 12px;
  resize: vertical !important;
  overflow-x: hidden;
  word-wrap: break-word;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(65, 150, 255, 0.15);
}

/* Payment Method Cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-option-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.pay-option-card input {
  display: none;
}

.pay-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.pay-card-text {
  flex: 1;
  min-width: 0;
}

.pay-icon-wrap {
  width: 46px;
  height: 36px;
  padding: 4px 6px;
  box-sizing: border-box;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
}

.pay-brand-svg {
  width: 100%;
  height: 100%;
  max-height: 22px;
  object-fit: contain;
  display: block;
}

.pay-icon-wrap.cod {
  background: rgba(0, 200, 150, 0.14);
  border: 1px solid rgba(0, 200, 150, 0.28);
  color: #00A86B;
}

.pay-icon-wrap.bkash {
  background: #FDF2F8;
  border: 1px solid #FBCFE8;
}

.pay-icon-wrap.nagad {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
}

.pay-icon-wrap.card {
  background: rgba(65, 150, 255, 0.14);
  border: 1px solid rgba(65, 150, 255, 0.28);
  color: #4196FF;
}

[data-theme="dark"] .pay-icon-wrap.bkash,
[data-theme="dark"] .pay-icon-wrap.nagad {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.pay-card-content strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.3;
}

.pay-card-content span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.3;
  margin-top: 2px;
}

.pay-option-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 3px 10px rgba(65, 150, 255, 0.14);
}

.checkout-summary-bar {
  background: var(--surface-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-modal-footer {
  justify-content: space-between;
}

.btn-cancel {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}

.btn-confirm-order {
  background: var(--success);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 200, 150, 0.3);
  transition: var(--transition);
}

.btn-confirm-order:hover {
  background: #00B084;
}

/* ==========================================================================
   13. Celebratory Order Success Modal
   ========================================================================== */
.modal-success-card {
  max-width: 480px;
  text-align: center;
  padding: 36px 28px;
}

.success-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid var(--success);
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.order-id-badge-wrap {
  background: var(--primary-light);
  border: 1px dashed var(--primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.order-id-badge-wrap strong {
  font-size: 18px;
  color: var(--primary);
}

.success-meta-box {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 13.5px;
}

.success-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--text-secondary);
}

.success-meta-row strong {
  color: var(--text-primary);
}

.success-meta-row.total-highlight {
  border-top: 1px dashed var(--border);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 15px;
}

.success-meta-row.total-highlight strong {
  color: var(--primary);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary-full {
  background: var(--primary);
  color: white;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary-full:hover {
  background: var(--primary-hover);
}

.btn-outline-full {
  background: var(--surface-secondary);
  color: var(--text-primary);
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   14. Live Order Tracking Modal
   ========================================================================== */
.modal-track-card {
  max-width: 580px;
}

.track-search-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.track-search-box input {
  flex: 1;
  min-width: 0;
  height: 44px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.track-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(65, 150, 255, 0.14);
  background: var(--surface);
}

.btn-track-search {
  height: 44px;
  background: var(--primary);
  color: white;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.btn-track-search:hover {
  background: var(--primary-dark, #2563EB);
}

.track-not-found {
  text-align: center;
  padding: 28px 18px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 16px;
  color: #991B1B;
}

.track-not-found i {
  font-size: 28px;
  color: #DC2626;
  margin-bottom: 8px;
}

.track-not-found h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.track-not-found p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #7F1D1D;
}

.track-card-result {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px;
}

.track-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.track-header-meta {
  min-width: 0;
  flex: 1;
}

.track-id-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
}

.track-customer-name {
  margin: 8px 0 3px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.track-order-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.track-status-pill {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  line-height: 1.2;
}

.track-status-pill.processing {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.track-status-pill.dispatched {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

.track-status-pill.delivered {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.track-status-pill.cancelled {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FECACA;
}

/* 4-Stage Horizontal Progress Stepper */
.track-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 4px;
  margin-bottom: 18px;
  position: relative;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 0;
}

.track-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 3px;
  background: #CBD5E1;
  border-radius: 999px;
  z-index: 1;
}

.track-step.line-filled:not(:last-child)::after {
  background: var(--success);
}

.step-circle {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid #CBD5E1;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 7px;
  transition: var(--transition);
}

.track-step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.track-step.current .step-circle {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.step-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.step-time {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
  line-height: 1.2;
}

.track-items-summary {
  background: var(--surface);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
}

.track-items-summary h5 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
}

.track-items-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.track-items-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #E2E8F0;
}

.track-item-name {
  color: var(--text-primary);
  line-height: 1.4;
  min-width: 0;
  flex: 1;
}

.track-item-price {
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-primary);
  font-weight: 700;
}

.track-bill-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 8px;
}

.track-bill-row,
.track-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.track-bill-row span:first-child {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.track-bill-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.track-payment-row span:first-child {
  font-size: 12px;
  color: var(--text-secondary);
}

.track-payment-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F1F5F9;
  color: var(--text-secondary);
  border: 1px solid #E2E8F0;
}

.track-address-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.track-address-row i {
  margin-top: 3px;
  color: var(--primary);
  flex-shrink: 0;
}

[data-theme="dark"] .track-search-box input {
  background: #181E2C;
  border-color: #2B3448;
}

[data-theme="dark"] .track-card-result {
  background: #181E2C;
  border-color: #2B3448;
}

[data-theme="dark"] .track-items-summary {
  background: #1E2638;
  border-color: #2F3A52;
}

[data-theme="dark"] .track-items-summary h5,
[data-theme="dark"] .track-items-list li,
[data-theme="dark"] .track-address-row {
  border-color: #2F3A52;
}

[data-theme="dark"] .track-payment-badge {
  background: #161C28;
  border-color: #2F3A52;
}

[data-theme="dark"] .track-step:not(:last-child)::after {
  background: #334155;
}

[data-theme="dark"] .track-step.line-filled:not(:last-child)::after {
  background: var(--success);
}

[data-theme="dark"] .step-circle {
  background: #1E2638;
  border-color: #334155;
}

[data-theme="dark"] .track-not-found {
  background: rgba(185, 28, 28, 0.14);
  border-color: rgba(248, 113, 113, 0.3);
  color: #FCA5A5;
}

[data-theme="dark"] .track-not-found p {
  color: #FECACA;
}

@media (max-width: 440px) {
  .track-card-result {
    padding: 14px 12px;
  }
  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .track-step:not(:last-child)::after {
    top: 16px;
    left: calc(50% + 19px);
    right: calc(-50% + 19px);
  }
  .step-title {
    font-size: 10.5px;
  }
  .step-time {
    font-size: 9.5px;
  }
}

/* ==========================================================================
   15. Location Picker Modal
   ========================================================================== */
.modal-location-card {
  max-width: 500px;
}

.location-areas-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.location-area-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.location-area-item:hover,
.location-area-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.loc-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.loc-item-info {
  flex: 1;
}

.loc-item-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.loc-item-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

.loc-check {
  color: var(--primary);
  font-size: 18px;
}

/* ==========================================================================
   16. Wishlist Modal
   ========================================================================== */
.modal-wishlist-card {
  max-width: 620px;
}

.wishlist-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wishlist-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.wishlist-item-card img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.wishlist-item-info {
  flex: 1;
  min-width: 0;
}

.wishlist-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.wishlist-unit {
  font-size: 12px;
  color: var(--text-tertiary);
}

.wishlist-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2px;
}

.wishlist-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-wishlist-cart {
  background: var(--primary);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-wishlist-del {
  color: var(--text-tertiary);
  padding: 8px;
  font-size: 15px;
}

.btn-wishlist-del:hover {
  color: var(--danger);
}

.empty-wishlist-box {
  text-align: center;
  padding: 40px 20px;
}

.empty-wishlist-box i {
  font-size: 40px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

/* ==========================================================================
   17. Mobile Bottom Navigation Bar - Floating Frosted Glass Capsule
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: max(14px, env(safe-area-inset-left, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  max-inline-size: 460px;
  margin-inline: auto;
  min-block-size: 62px;
  padding: 5px 7px;
  gap: 2px;
  align-items: stretch;
  justify-content: space-between;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(250, 248, 244, 0.70) 100%);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04);
  z-index: 999;
}

[data-theme="dark"] .mobile-bottom-bar {
  background: linear-gradient(180deg, rgba(31, 44, 58, 0.84) 0%, rgba(22, 33, 45, 0.80) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.mobile-nav-item {
  flex: 1;
  min-inline-size: 44px;
  min-block-size: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #1E293B;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 5px 4px;
  position: relative;
  font-family: inherit;
  transition: background-color 0.22s ease, color 0.2s ease, transform 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .mobile-nav-item {
  color: #F1F5F9;
}

.mobile-nav-item:active {
  transform: scale(0.95);
}

.mobile-nav-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.mob-nav-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mob-nav-svg {
  width: 21px;
  height: 21px;
  display: block;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Unselected / Default State: Crisp Round Outline Stroke Only */
.mobile-nav-item .stroke-icon {
  display: block;
  stroke: currentColor;
  fill: none;
}

.mobile-nav-item .fill-icon {
  display: none;
}

.mobile-nav-item > span {
  font-size: 11px;
  font-weight: 600;
  color: currentColor;
  transition: color 0.2s ease, font-weight 0.2s ease;
  line-height: 1.15;
  white-space: nowrap;
}

/* Hover effect */
.mobile-nav-item:hover {
  color: var(--primary);
}

/* Active / Selected State: Frosted Capsule Glow + Filled Primary Icon */
.mobile-nav-item.active,
.mobile-nav-item[aria-current="page"] {
  background: radial-gradient(circle at 50% 45%, rgba(65, 150, 255, 0.16) 0%, rgba(65, 150, 255, 0.08) 70%, transparent 100%);
  box-shadow: inset 0 0 0 1px rgba(65, 150, 255, 0.14);
  color: var(--primary);
}

[data-theme="dark"] .mobile-nav-item.active,
[data-theme="dark"] .mobile-nav-item[aria-current="page"] {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 72%, transparent 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #38BDF8;
}

.mobile-nav-item.active .stroke-icon,
.mobile-nav-item[aria-current="page"] .stroke-icon {
  display: none;
}

.mobile-nav-item.active .fill-icon,
.mobile-nav-item[aria-current="page"] .fill-icon {
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 2px 8px rgba(65, 150, 255, 0.32));
  animation: navIconPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-item.active .mob-nav-icon-wrap,
.mobile-nav-item[aria-current="page"] .mob-nav-icon-wrap {
  transform: translateY(-1px);
}

.mobile-nav-item.active > span,
.mobile-nav-item[aria-current="page"] > span {
  color: currentColor;
  font-weight: 700;
}

@keyframes navIconPop {
  0% {
    transform: scale(0.84);
  }

  60% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-item,
  .mob-nav-icon-wrap,
  .mob-nav-svg {
    transition: none;
  }

  .mobile-nav-item:active {
    transform: none;
  }

  .mobile-nav-item.active .fill-icon,
  .mobile-nav-item[aria-current="page"] .fill-icon {
    animation: none;
  }
}

@media (forced-colors: active) {
  .mobile-bottom-bar {
    border: 2px solid ButtonBorder;
    background: Canvas;
  }

  .mobile-nav-item.active,
  .mobile-nav-item[aria-current="page"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

.mob-cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-item .mob-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-box: trim-both cap alphabetic;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  pointer-events: none;
}

[data-theme="dark"] .mobile-nav-item .mob-cart-badge {
  border-color: rgba(27, 40, 54, 0.96);
}

/* ==========================================================================
   18. Toast Notifications (Bottom Snackbar - Above Bottom Nav Bar)
   ========================================================================== */
.toast-container {
  position: fixed;
  top: auto;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  left: max(20px, env(safe-area-inset-left, 0px));
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(250, 248, 244, 0.84) 100%);
  backdrop-filter: blur(22px) saturate(185%);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.16),
    0 2px 8px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  width: fit-content;
  max-width: min(420px, 100%);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
}

[data-theme="dark"] .toast {
  background: linear-gradient(180deg, rgba(31, 44, 58, 0.90) 0%, rgba(22, 33, 45, 0.86) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: no-preference) {
  .toast {
    transition:
      opacity 0.30s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transform: none;
  }
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.toast-exit {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .toast.toast-visible,
  .toast.toast-exit {
    transform: none;
  }
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.toast-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.toast-success {
  border-left: 4px solid #10B981;
}

.toast-success .toast-icon,
.toast-success i {
  color: #059669;
}

[data-theme="dark"] .toast-success .toast-icon,
[data-theme="dark"] .toast-success i {
  color: #34D399;
}

.toast-warning,
.toast-error,
.toast-info {
  border-left: 4px solid #EF4444;
}

.toast-warning .toast-icon,
.toast-warning i,
.toast-error .toast-icon,
.toast-error i,
.toast-info .toast-icon,
.toast-info i {
  color: #DC2626;
}

[data-theme="dark"] .toast-warning .toast-icon,
[data-theme="dark"] .toast-warning i,
[data-theme="dark"] .toast-error .toast-icon,
[data-theme="dark"] .toast-error i,
[data-theme="dark"] .toast-info .toast-icon,
[data-theme="dark"] .toast-info i {
  color: #F87171;
}

/* ==========================================================================
   19. Footer
   ========================================================================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px 0;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-top: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  color: white;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-contact-list i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pay-logo-badge {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.pay-logo-badge.bKash {
  color: #E2136E;
  border-color: rgba(226, 19, 110, 0.3);
}

.pay-logo-badge.Nagad {
  color: #F7941D;
  border-color: rgba(247, 148, 29, 0.3);
}

.pay-logo-badge.Rocket {
  color: #8C3494;
  border-color: rgba(140, 52, 148, 0.3);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   20. Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {

  .collections-grid,
  .flash-products-grid,
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 76px;
  }

  .container {
    padding: 0 16px;
  }

  .floating-header {
    top: 8px;
    padding: 0 16px;
  }

  .floating-nav {
    padding: 6px 12px;
    border-radius: 14px;
  }

  .capsule-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .account-btn-text {
    display: none;
  }

  .nav-account-btn {
    padding: 0;
    width: 42px;
    height: 42px;
    justify-content: center;
    border-radius: 12px;
  }

  .account-icon-wrap {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: transparent;
  }

  .search-modal-overlay {
    padding-top: 4vh;
    padding-left: 12px;
    padding-right: 12px;
  }

  .search-modal-box {
    border-radius: 16px;
  }

  .side-menu-drawer,
  .user-drawer {
    width: 300px;
    max-width: 88vw;
  }

  .top-bar-wrapper,
  .top-bar {
    display: none;
  }

  .nav-location {
    display: none;
  }

  .nav-quick-links {
    display: none;
  }

  .admin-link-text {
    display: none;
  }

  .hero {
    margin: 14px auto 26px;
  }

  .hero-search-wrapper {
    margin-bottom: 12px;
  }

  .hero-search-pill {
    height: 48px;
    padding: 4px 12px 4px 16px;
  }

  .hero-search-input {
    font-size: 14px;
  }

  .hero-banner-card {
    border-radius: 20px;
    min-height: 162px;
  }

  .hero-slides-track {
    min-height: 162px;
  }

  .hero-slide {
    padding: 16px 20px 22px 20px;
    min-height: 162px;
  }

  .hero-slide-left {
    max-width: 58%;
  }

  .hero-slide-title {
    font-size: 20px;
    line-height: 1.22;
    margin-bottom: 4px;
  }

  .hero-slide-sub {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .hero-shop-now-btn {
    padding: 5px 6px 5px 15px;
    font-size: 12.5px;
    gap: 8px;
  }

  .shop-now-arrow {
    width: 26px;
    height: 26px;
  }

  .hero-slide-right {
    max-width: 42%;
  }

  .hero-shopper-img {
    max-height: 145px;
    max-width: 100%;
    transform: translateY(2px);
  }

  .hero-notch-pill {
    padding: 4px 12px 3px 12px;
    border-radius: 16px 16px 0 0;
  }

  .hero-carousel-dot {
    width: 7px;
    height: 7px;
  }

  .hero-carousel-dot.active {
    width: 20px;
    height: 7px;
  }

  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .collection-card {
    padding: 14px 14px;
    border-radius: 14px;
  }

  .col-card-top {
    margin-bottom: 10px;
  }

  .col-card-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 10px;
  }

  .col-card-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .col-card-body {
    margin-bottom: 10px;
  }

  .col-card-title {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .col-card-desc {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .col-card-footer {
    padding-top: 8px;
  }

  .col-count-pill {
    font-size: 11px;
  }

  .col-card-link-btn {
    font-size: 11px;
    padding: 4px 8px;
    gap: 4px;
  }

  .flash-sale-banner {
    padding: 20px 16px;
  }

  .flash-product-card {
    padding: 12px;
  }

  .flash-img-wrap {
    height: 150px;
  }

  .flash-products-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bundles-grid {
    grid-template-columns: 1fr;
  }

  .bundle-card {
    flex-direction: column;
    padding: 18px;
  }

  .bundle-image-box {
    width: 100%;
    height: 180px;
  }

  .product-view-layout {
    grid-template-columns: 1fr;
  }

  .modal-product-view {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .modal-product-view .modal-close-btn {
    top: 32px;
    right: 28px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1E293B;
  }

  [data-theme="dark"] .modal-product-view .modal-close-btn {
    background: rgba(30, 30, 48, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
  }

  .pv-image-box {
    height: 220px;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .nav-control-capsule .capsule-cart-desktop-btn {
    display: none;
  }

  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  .toast-container {
    top: auto;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    left: max(14px, env(safe-area-inset-left, 0px));
    align-items: center;
  }

  .toast {
    max-width: min(440px, 100%);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .floating-header {
    top: 6px;
    padding: 0 14px;
  }

  .floating-nav {
    padding: 6px 10px;
    border-radius: 14px;
  }

  .hero {
    margin: 10px auto 20px;
  }

  .hero-search-pill {
    height: 44px;
    padding: 4px 10px 4px 14px;
  }

  .hero-search-icon {
    font-size: 14px;
    margin-right: 10px;
  }

  .hero-search-input {
    font-size: 13px;
  }

  .hero-search-divider {
    height: 18px;
    margin: 0 8px;
  }

  .hero-banner-card {
    border-radius: 18px;
    min-height: 138px;
  }

  .hero-slides-track {
    min-height: 138px;
  }

  .hero-slide {
    padding: 12px 12px 18px 16px;
    min-height: 138px;
  }

  .hero-slide-left {
    max-width: 58%;
  }

  .hero-limited-badge {
    font-size: 9.5px;
    padding: 3px 9px;
    margin-bottom: 6px;
  }

  .hero-slide-title {
    font-size: 16px;
    line-height: 1.22;
    margin-bottom: 8px;
  }

  .hero-slide-sub {
    display: none;
  }

  .hero-shop-now-btn {
    padding: 4px 5px 4px 13px;
    font-size: 11.5px;
    gap: 6px;
  }

  .shop-now-arrow {
    width: 24px;
    height: 24px;
  }

  .hero-slide-right {
    max-width: 42%;
  }

  .hero-shopper-img {
    max-height: 122px;
    max-width: 100%;
    transform: translateY(2px);
  }

  .hero-notch-pill {
    padding: 3px 10px 2px 10px;
  }

  .hero-carousel-dot {
    width: 6px;
    height: 6px;
  }

  .hero-carousel-dot.active {
    width: 18px;
    height: 6px;
  }

  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .collection-card {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .col-card-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 9px;
  }

  .col-card-title {
    font-size: 13px;
  }

  .col-card-desc {
    display: none;
  }

  .col-card-tag {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .col-count-pill {
    font-size: 10px;
  }

  .col-card-link-btn {
    font-size: 10px;
    padding: 3px 6px;
  }

  /* Flash Sales Mobile Layout & Card Calibration */
  .flash-sale-banner {
    padding: 14px 10px;
    border-radius: var(--radius-lg);
  }

  .flash-sale-header {
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .flash-sale-title-wrap {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .flash-icon-box {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }

  .flash-title {
    font-size: 15px;
    line-height: 1.25;
  }

  .flash-sub {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .flash-timer-wrap {
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
  }

  .flash-timer-box {
    width: auto;
    justify-content: center;
    padding: 4px 6px;
    margin-top: 0;
    border-radius: 10px;
  }

  .timer-lbl {
    font-size: 9.5px;
    font-weight: 600;
  }

  .timer-digits {
    gap: 3px;
  }

  .timer-unit {
    padding: 3px 5px;
    min-width: 28px;
    border-radius: 6px;
  }

  .timer-unit span {
    font-size: 11.5px;
  }

  .timer-unit small {
    font-size: 7.5px;
  }

  .timer-colon {
    font-size: 12px;
  }

  .flash-products-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .flash-product-card {
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .flash-card-badge {
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 2px 6px;
  }

  .flash-img-wrap {
    height: 125px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
  }

  .flash-brand-pill {
    bottom: 5px;
    right: 5px;
    font-size: 9px;
    padding: 1.5px 6px;
    border-radius: 5px;
  }

  .flash-card-title {
    font-size: 13px;
    height: auto;
    min-height: 0;
    line-height: 1.35;
    margin: 0 0 2px 0;
  }

  .product-brand-tag {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .product-unit-text {
    font-size: 11.5px;
    margin-bottom: 4px;
  }

  .flash-price-row {
    margin: 4px 0 8px 0;
    gap: 4px;
    align-items: center;
    justify-content: space-between;
  }

  .flash-stock-ring-svg {
    width: 32px;
    height: 32px;
  }

  .flash-stock-ring-svg .ring-center-text {
    font-size: 8px;
  }

  .flash-current-price {
    font-size: 15px;
    font-weight: 800;
  }

  .flash-old-price {
    font-size: 12px;
  }

  .flash-stock-chip {
    padding: 4px 6px;
    margin: 4px 0 8px 0;
    border-radius: 6px;
    gap: 3px;
  }

  .stock-chip-title {
    font-size: 9.5px;
  }

  .stock-chip-count {
    font-size: 9px;
  }

  .stock-chip-progress {
    height: 3px;
  }

  .flash-actions-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .btn-flash-buy,
  .btn-flash-cart {
    height: 32px;
    font-size: 11.5px;
    padding: 0 8px;
    border-radius: 9px;
    letter-spacing: 0;
  }

  .btn-flash-add {
    padding: 8px 10px;
    font-size: 12px;
    height: 36px;
    white-space: nowrap;
    border-radius: var(--radius-pill);
  }

  .product-card {
    padding: 10px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .product-card-img {
    height: 130px;
    width: 100%;
  }

  .product-title {
    font-size: 13px;
    height: 36px;
  }

  .price-stack {
    gap: 4px;
  }

  .product-price {
    font-size: 13.5px;
  }

  .product-original-price {
    font-size: 10.5px;
  }

  .product-card .stock-status-pill {
    font-size: 9.5px;
    padding: 2.5px 7px;
  }

  .product-card-top {
    top: 6px;
    left: 6px;
    right: 6px;
  }

  .btn-wishlist-toggle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .badge-discount {
    font-size: 10px;
    padding: 2px 6px;
  }

  .badge-custom-weight {
    font-size: 9.5px;
    padding: 2px 5px;
  }

  .modal-product-view {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .pv-actions-row {
    gap: 12px;
    padding-top: 12px;
  }

  .pv-btn-group {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .btn-pv-add-cart,
  .btn-pv-buy-now {
    height: 44px;
    font-size: 13px;
    padding: 0 8px;
    gap: 6px;
    white-space: nowrap;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .payment-methods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pay-option-card {
    min-width: 0;
    height: 100%;
    padding: 10px 9px;
    border-radius: 12px;
    align-items: center;
  }

  .pay-card-content {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .pay-icon-wrap {
    width: 40px;
    height: 32px;
    padding: 3px 5px;
    border-radius: 8px;
    font-size: 13px;
  }

  .pay-card-content strong {
    font-size: 11.8px;
    line-height: 1.25;
  }

  .pay-card-content span {
    font-size: 10px;
    line-height: 1.25;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .trust-item {
    padding: 12px 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .trust-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    flex-shrink: 0;
  }

  .trust-title {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .trust-desc {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .category-strip-section {
    margin-top: 14px;
    padding: 0;
    border-radius: 0;
  }

  .section {
    margin: 24px auto;
  }

  .section-header {
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .catalog-header-bar {
    margin-bottom: 12px;
    margin-bottom: 14px;
    padding: 0 4px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .btn-catalog-filter-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .catalog-filter-controls {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .section-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
  }

  .search-modal-overlay {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Mobile Footer 2-Column Responsive Layout */
  .footer {
    padding: 36px 0 20px 0;
    margin-top: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
    margin-bottom: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 10px;
  }

  .footer-social-links {
    margin-top: 14px;
    gap: 8px;
  }

  .footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
  }

  .footer-col ul {
    gap: 9px;
    font-size: 13px;
  }

  .footer-col a {
    display: inline-block;
    line-height: 1.45;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
  }

  .footer-contact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
  }

  .footer-contact-list li {
    font-size: 12.5px;
    line-height: 1.4;
    word-break: break-word;
  }

  .footer-payment-badges {
    margin-top: 14px;
    gap: 6px;
  }

  .pay-logo-badge {
    padding: 4px 8px;
    font-size: 10.5px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 12px;
    padding-top: 16px;
  }
}

@media (max-width: 350px) {
  .footer-contact-list {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   20. Multi-Route Dedicated App Page Views (Categories Explore & Offers Hub)
   ========================================================================== */
.app-page-view {
  min-height: calc(100vh - 120px);
  padding-bottom: 40px;
}

/* Storefront Home Page (#viewHomePage) sits directly above .footer without bottom void */
#viewHomePage.app-page-view {
  min-height: auto !important;
  padding-bottom: 0 !important;
  inline-size: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#viewHomePage > section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .app-page-view {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  #viewHomePage.app-page-view {
    min-height: auto !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 480px) {
  .app-page-view.container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
  }

  #viewHomePage.app-page-view {
    min-height: auto !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-bar {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    padding: 5px 5px;
  }

  .mobile-nav-item span {
    font-size: 10px;
  }
}

.dedicated-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px 20px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.view-header-left {
  display: flex;
  align-items: safe center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.view-header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-view-back {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  aspect-ratio: 1 / 1;
  padding: 0;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  line-height: 1;
}

@media (hover: hover) {
  .btn-view-back:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }
}

.btn-view-back:active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(65, 150, 255, 0.35);
}

.view-header-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  text-box: trim-both cap alphabetic;
  min-width: 0;
  word-break: break-word;
}

.pdp-header-category-text,
.view-header-count-normal {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline;
  margin-left: 6px;
  vertical-align: baseline;
}

@media (max-width: 480px) {
  .pdp-header-category-text {
    font-size: 13.5px;
    margin-left: 4px;
  }
}

.view-header-sub,
.flash-sub {
  display: none !important;
}

/* Dedicated Categories Grid */
.dedicated-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 992px) {
  .dedicated-categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .dedicated-view-header {
    padding: 14px 4px;
    margin-bottom: 16px;
  }

  .dedicated-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .view-header-title {
    font-size: 17px;
    font-weight: 700;
  }

  .view-header-count-normal {
    font-size: 13.5px;
    margin-left: 4px;
  }
}

.dedicated-cat-card {
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dedicated-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.cat-card-icon-bubble {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--surface-secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.dedicated-cat-card:hover .cat-card-icon-bubble {
  background: var(--primary);
  color: white;
  transform: scale(1.08);
}

.cat-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cat-card-count {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.cat-card-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dedicated Offers Hub Tabs */
.offers-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.offers-filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.offers-filter-tab.active,
.offers-filter-tab:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(65, 150, 255, 0.25);
}

/* ==========================================================================
   21. Dedicated Shopping Cart Page View (#viewCartPage)
   ========================================================================== */
.app-page-view .free-delivery-banner {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.app-page-view .free-delivery-banner.is-unlocked {
  border-color: rgba(16, 185, 129, 0.36);
}

.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  margin-top: 14px;
  margin-bottom: 40px;
}

.cart-page-items-col {
  min-width: 0;
}

.cart-page-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-page-summary-col {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.cart-page-summary-col .drawer-voucher-box {
  margin-bottom: 14px;
}

.cart-page-summary-col .drawer-bill-card {
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .cart-page-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .cart-page-summary-col {
    position: static;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .app-page-view .free-delivery-banner {
    padding: 11px 12px;
    margin-bottom: 14px;
  }

  .free-del-status-row {
    gap: 9px;
  }

  .free-del-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .free-del-icon-badge svg {
    width: 16px;
    height: 16px;
  }

  .free-delivery-banner.is-unlocked .free-del-headline {
    font-size: 12.5px;
  }

  .free-del-pill {
    font-size: 10.5px;
    padding: 5px 9px;
  }

  .free-del-pct {
    font-size: 12px;
    padding: 0;
  }

  .cart-drawer-count-chip {
    font-size: 11.5px;
    padding: 5px 10px;
  }

  .cart-page-layout {
    gap: 14px;
  }
}

/* ==========================================================================
   21B. Mobile Full-Page Checkout View (#viewCheckoutPage)
   ========================================================================== */
#viewCheckoutPage {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

.checkout-page-form-host {
  margin-top: 10px;
}

.checkout-page-form-host .checkout-modal-body {
  padding: 0;
  max-height: none;
  overflow: visible;
  gap: 14px;
}

.checkout-page-form-host .checkout-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.checkout-page-form-host .form-grid-2 {
  grid-template-columns: 1fr;
  gap: 12px;
}

.checkout-page-form-host .form-group {
  margin-bottom: 12px;
}

.checkout-page-form-host .form-grid-2 .form-group:last-child {
  margin-bottom: 0;
}

.checkout-page-form-host .form-label {
  font-size: 13px;
  margin-bottom: 6px;
}

.checkout-page-form-host .form-input,
.checkout-page-form-host .form-select,
.checkout-page-form-host .compact-sort-trigger {
  min-height: 46px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: max(1rem, 16px);
  border-radius: 12px;
}

.checkout-page-form-host textarea.form-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 84px;
  line-height: 1.45;
  resize: vertical !important;
  overflow-x: hidden;
}

.checkout-page-form-host .payment-methods-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-page-form-host .pay-option-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 10px 9px;
  border-radius: 12px;
  align-items: center;
}

.checkout-page-form-host .pay-card-content {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkout-page-form-host .pay-icon-wrap {
  width: 40px;
  height: 32px;
  padding: 3px 5px;
  border-radius: 8px;
  font-size: 13px;
}

.checkout-page-form-host .pay-card-content strong {
  font-size: 11.8px;
  line-height: 1.25;
}

.checkout-page-form-host .pay-card-content span {
  font-size: 10px;
  line-height: 1.25;
}

.checkout-page-form-host .checkout-summary-bar {
  background: var(--surface);
  border: 1px dashed var(--primary);
  border-radius: 14px;
  padding: 14px 16px;
}

.checkout-page-form-host .checkout-modal-footer {
  padding: 16px 0 8px;
  border-top: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-page-form-host .btn-confirm-order {
  order: -1;
  width: 100%;
  min-height: 50px;
  justify-content: center;
  font-size: 15.5px;
  border-radius: var(--radius-pill);
}

.checkout-page-form-host .btn-cancel {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ==========================================================================
   22. Favorites & Wishlist Page View (#viewFavoritesPage)
   ========================================================================== */
.favorites-page-content {
  margin-bottom: 40px;
}

.empty-fav-box {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 56px 20px;
  text-align: center;
  max-width: 600px;
  margin: 20px auto 40px;
}

.empty-fav-box i {
  color: var(--text-tertiary);
}

/* ==========================================================================
   23. Dedicated Single Product Details Page View (#viewProductDetailsPage)
   ========================================================================== */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  margin-bottom: 36px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pdp-image-col,
.pdp-info-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.pdp-image-col {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.pdp-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-secondary);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.pdp-image-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.pdp-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: var(--text-secondary);
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.pdp-wishlist-btn.wished {
  color: #EF4444;
}

.pdp-wishlist-btn:hover {
  transform: scale(1.08);
}

[data-theme="dark"] .pdp-wishlist-btn {
  background: rgba(30, 30, 48, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

.pdp-carousel-track {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  .pdp-carousel-track {
    scroll-behavior: smooth;
  }
}

.pdp-carousel-track::-webkit-scrollbar {
  display: none;
}

.pdp-carousel-track:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -3px;
}

.pdp-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  overflow: hidden;
  transform-origin: center center;
  box-sizing: border-box;
}

@keyframes pdpSlideMotion {
  0% {
    opacity: 0.72;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.72;
    transform: scale(0.95);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .pdp-carousel-track.is-multi > .pdp-carousel-slide {
      animation: pdpSlideMotion auto linear both;
      animation-timeline: view(inline);
    }
  }
}

.pdp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .pdp-carousel-slide:hover .pdp-hero-img {
    transform: scale(1.03);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pdp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  touch-action: manipulation;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pdp-gallery-nav:focus-visible,
.pdp-gallery-dot:focus-visible,
.pdp-thumb-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.pdp-gallery-nav.prev {
  left: 12px;
}

.pdp-gallery-nav.next {
  right: 12px;
}

.pdp-gallery-nav:hover {
  background: #FFFFFF;
  color: var(--primary);
  transform: translateY(-50%) scale(1.06);
}

.pdp-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  z-index: 3;
  pointer-events: none;
}

.pdp-gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  z-index: 3;
}

.pdp-gallery-dot {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  touch-action: manipulation;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.pdp-gallery-dot::before {
  content: '';
  position: absolute;
  inset: -9px -4px;
}

.pdp-gallery-dot.active {
  width: 18px;
  background: #FFFFFF;
}

.pdp-thumbs-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  box-sizing: border-box;
}

/* Custom sleek smart scrollbar for thumbnail strip */
.pdp-thumbs-strip::-webkit-scrollbar {
  height: 3px;
  background: transparent;
}

.pdp-thumbs-strip::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.pdp-thumbs-strip::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  margin: 0 4px;
}

.pdp-thumbs-strip::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.pdp-thumbs-strip::-webkit-scrollbar-thumb:hover {
  background: var(--primary, #059669);
}

.pdp-thumbs-strip::-webkit-scrollbar-corner {
  display: none;
  background: transparent;
}

[data-theme="dark"] .pdp-thumbs-strip {
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

[data-theme="dark"] .pdp-thumbs-strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .pdp-thumbs-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
}

[data-theme="dark"] .pdp-thumbs-strip::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light, #34D399);
}

.pdp-thumb-btn {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface-secondary);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.pdp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-thumb-btn:hover {
  border-color: rgba(65, 150, 255, 0.65);
}

.pdp-thumb-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(65, 150, 255, 0.22);
}

[data-theme="dark"] .pdp-gallery-nav {
  background: rgba(30, 30, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
}

[data-theme="dark"] .pdp-gallery-nav:hover {
  background: rgba(30, 36, 51, 1);
  color: #60A5FA;
}

@media (max-width: 480px) {
  .pdp-gallery-nav {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .pdp-thumbs-strip {
    gap: 8px;
    padding: 2px 2px 6px;
  }
  .pdp-thumb-btn {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    flex-shrink: 0;
    border-radius: 10px;
  }
}

.pdp-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdp-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pdp-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.pdp-unit-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   PDP Multi-Company & Packaging Format Chips (Decision 219)
   ========================================================================== */
.pdp-company-section,
.pdp-format-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.pdp-format-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pdp-format-header .stock-status-pill {
  padding: 3px 10px;
  font-size: 11px;
}

.pdp-selector-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.2px;
}

.pdp-selector-label i {
  color: var(--primary);
  font-size: 13px;
}

.pdp-company-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* User requirement: "chips এর হাইট বড় করা যাবে না" -> compact height */
.pdp-company-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: fit-content;
  box-sizing: border-box;
  height: 32px;
  max-height: 34px;
  padding: 3px 12px 3px 4px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.pdp-company-chip:hover {
  border-color: var(--primary-light, #10b981);
  background: var(--surface-hover, #f8fafc);
  transform: translateY(-1px);
}

.pdp-company-chip.active {
  border-color: var(--primary);
  background: rgba(5, 150, 105, 0.08);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

.pdp-company-chip-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pdp-company-chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-chip-fallback-icon {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.pdp-company-chip-name {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
  line-height: 1;
}

.pdp-company-chip.active .pdp-company-chip-name {
  color: var(--primary);
  font-weight: 700;
}

.pdp-chip-active-check {
  display: none;
  color: var(--primary);
  font-size: 10px;
  margin-left: -2px;
}

.pdp-company-chip.active .pdp-chip-active-check {
  display: inline-block;
}

/* Packaging Format Chips */
.pdp-format-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pdp-format-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: fit-content;
  box-sizing: border-box;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  white-space: nowrap;
}

.pdp-format-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pdp-format-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.pdp-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface-secondary);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.pdp-price-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pdp-current-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.pdp-original-price {
  font-size: 16px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.pdp-saving-pill {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .pdp-saving-pill {
  background: linear-gradient(135deg, #10B981, #047857);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.pdp-weight-section {
  background: #FFFDF9;
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 16px;
}

[data-theme="dark"] .pdp-weight-section {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.pdp-weight-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #B45309;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .pdp-weight-heading {
  color: #FBBF24;
}

.pdp-weight-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.pdp-weight-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdp-weight-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pdp-weight-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: none;
}

.pdp-weight-notice {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdp-weight-notice i {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

[data-theme="dark"] .pdp-weight-notice {
  color: var(--text-secondary);
}

[data-theme="dark"] .pdp-weight-notice i {
  color: var(--text-tertiary);
}

.pdp-actions-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pdp-qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdp-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.qty-btn-group {
  display: flex;
  align-items: center;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.btn-qty {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

@media (pointer: coarse) {
  .btn-qty {
    min-width: 44px;
    min-height: 44px;
  }
}

.btn-qty:hover {
  background: rgba(0, 0, 0, 0.05);
}

.qty-display {
  width: 42px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--text-primary);
}

.pdp-buttons-group {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 280px;
}

.btn-pdp-cart {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-pdp-cart:hover {
  background: var(--primary-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-pdp-buy {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  background: #FFD043;
  color: #0F172A;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-pdp-buy:hover {
  background: #FFC21A;
  box-shadow: none;
  transform: translateY(-1px);
}

.pdp-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 6px;
}

.pdp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  position: relative;
}

.pdp-trust-icon-box {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13.5px;
}

.pdp-trust-icon-box.quality {
  background: #F8E7CD;
  color: #D97706;
}

.pdp-trust-icon-box.delivery {
  background: #DDE8F9;
  color: #2563EB;
}

.pdp-trust-icon-box.refund {
  background: #D4EDE4;
  color: #059669;
}

[data-theme="dark"] .pdp-trust-icon-box.quality {
  background: #3B3120;
  color: #FBBF24;
}

[data-theme="dark"] .pdp-trust-icon-box.delivery {
  background: #1D3049;
  color: #60A5FA;
}

[data-theme="dark"] .pdp-trust-icon-box.refund {
  background: #18382F;
  color: #34D399;
}

.pdp-trust-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .pdp-trust-badges {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .pdp-trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 2px;
    height: calc(100% + 14px);
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.45), rgba(148, 163, 184, 0.45));
    z-index: 1;
    pointer-events: none;
  }
}

/* Price Trend Graph Section */
.pdp-graph-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.pdp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.pdp-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdp-section-title i {
  color: #10B981;
}

.pdp-graph-filter-tabs {
  display: flex;
  gap: 6px;
}

.pdp-filter-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdp-filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pdp-filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(65, 150, 255, 0.3);
}

/* ==========================================================================
   24. Interactive Price Trend Graph Styles (Admin Panel Parity)
   ========================================================================== */
.pd-graph-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pd-graph-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.pd-graph-range-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-graph-pill.is-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pd-graph-metrics-strip {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  gap: 12px;
}

.pd-gmetric-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pd-gmetric-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pd-gmetric-dot.is-avg {
  background: #0284C7;
}

.pd-gmetric-dot.is-min {
  background: #F59E0B;
}

.pd-gmetric-dot.is-max {
  background: #10B981;
}

.pd-gmetric-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pd-gmetric-val {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.pd-gmetric-val.is-avg {
  color: #0284C7;
}

.pd-gmetric-val.is-min {
  color: #D97706;
}

.pd-gmetric-val.is-max {
  color: #059669;
}

.pd-gmetric-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.pd-graph-body-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  position: relative;
  width: 100%;
}

.pd-graph-y-axis {
  position: relative;
  width: 44px;
  flex-shrink: 0;
  height: 220px;
  user-select: none;
}

.pd-y-tick {
  position: absolute;
  right: 6px;
  transform: translateY(-50%);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}

.pd-graph-canvas-wrap {
  flex: 1;
  position: relative;
  height: 220px;
  min-width: 0;
  overflow: visible;
  user-select: none;
}

.pd-price-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.pg-grid-line {
  stroke: var(--border);
  stroke-dasharray: 4 4;
  stroke-width: 1px;
  opacity: 0.85;
}

.pg-ref-line {
  stroke: #94A3B8;
  stroke-dasharray: 5 4;
  stroke-width: 1.2px;
  opacity: 0.65;
}

.pg-line-curve {
  fill: none;
  stroke: #10B981;
  stroke-width: 2.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

.pg-crosshair-line {
  stroke: #94A3B8;
  stroke-dasharray: 4 4;
  stroke-width: 1.2px;
  opacity: 0.75;
  transition: x1 0.06s ease-out, x2 0.06s ease-out;
}

.pg-active-marker {
  position: absolute;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.05s ease-out, top 0.05s ease-out, opacity 0.15s ease;
}

.pg-marker-halo {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  background: rgba(16, 185, 129, 0.22);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.pg-marker-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50% !important;
  background: #059669;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.pd-graph-tooltip {
  position: absolute;
  pointer-events: none;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 7px;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
  padding: 5px 9px;
  min-width: 0;
  transition: left 0.06s ease-out, top 0.06s ease-out, opacity 0.15s ease;
  z-index: 10;
  opacity: 0;
}

.pd-graph-tooltip-date {
  font-size: 10px;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 2px;
  line-height: 1.15;
  white-space: nowrap;
  font-family: inherit;
}

.pd-graph-tooltip-val-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-graph-tooltip-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1;
  font-family: inherit;
}

.pd-graph-tooltip-trend {
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.pd-graph-tooltip-trend .is-up {
  color: #059669;
}

.pd-graph-tooltip-trend .is-down {
  color: #EF4444;
}

.pd-graph-tooltip-trend .is-neutral {
  color: #64748B;
}

[data-theme="dark"] .pd-graph-tooltip {
  background: #1E2433;
  border-color: #334155;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pd-graph-tooltip-date {
  color: #94A3B8;
}

[data-theme="dark"] .pd-graph-tooltip-price {
  color: #F8FAFC;
}

[data-theme="dark"] .pg-ref-line {
  stroke: #64748B;
  opacity: 0.55;
}

/* Responsive adjustments for PDP */
@media (max-width: 900px) {
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
  }

  .pdp-image-col {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .pdp-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .pdp-title {
    font-size: 18px;
  }

  .pdp-current-price {
    font-size: 24px;
  }

  .pdp-price-box {
    padding: 12px 14px;
  }

  .pdp-company-chips,
  .pdp-format-chips {
    gap: 6px;
    width: 100%;
  }

  .pdp-company-chip {
    height: 30px;
    padding: 2px 8px 2px 3px;
    gap: 6px;
    flex: 1 1 auto;
    min-width: fit-content;
    justify-content: center;
  }

  .pdp-company-chip-logo {
    width: 20px;
    height: 20px;
  }

  .pdp-company-chip-name {
    font-size: 11.5px;
  }

  .pdp-format-chip {
    height: 28px;
    padding: 0 10px;
    font-size: 11.5px;
    flex: 1 1 auto;
    min-width: fit-content;
    justify-content: center;
  }

  .pdp-weight-section {
    padding: 12px;
  }

  .pdp-weight-chips {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .pdp-weight-chip {
    padding: 9px 4px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
  }

  .pdp-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .pdp-qty-control {
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
  }

  .pdp-buttons-group {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .btn-pdp-cart,
  .btn-pdp-buy {
    font-size: 14.5px;
    font-weight: 600;
    height: 46px;
    padding: 0 10px;
    min-width: 0;
  }

  .pdp-trust-badges {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Price Trend Graph Mobile Layout */
  .pdp-graph-section {
    margin-top: 28px;
    padding-top: 20px;
  }

  .pdp-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  .pdp-section-title {
    font-size: 15.5px;
    line-height: 1.4;
  }

  .pdp-graph-filter-tabs {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .pdp-filter-tab {
    flex: 1;
    text-align: center;
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .pd-graph-card {
    padding: 14px 10px;
    border-radius: 12px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }

  .pd-graph-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
  }

  .pd-graph-range-info {
    width: 100%;
  }

  .pd-graph-pill.is-range {
    width: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 5px 8px;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .pd-graph-metrics-strip {
    width: 100%;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 10px;
    box-sizing: border-box;
    gap: 4px;
  }

  .pd-gmetric-item {
    gap: 4px;
  }

  .pd-gmetric-label {
    font-size: 10px;
  }

  .pd-gmetric-val {
    font-size: 12px;
  }

  .pd-gmetric-divider {
    height: 12px;
  }

  .pd-graph-body-row {
    gap: 4px;
  }

  .pd-graph-y-axis {
    width: 38px;
    height: 190px;
  }

  .pd-y-tick {
    font-size: 10px;
    right: 2px;
  }

  .pd-graph-canvas-wrap {
    height: 190px;
    overflow: hidden;
  }

  .pd-graph-tooltip {
    padding: 4px 8px;
    min-width: 0;
    border-radius: 6px;
  }

  .pd-graph-tooltip-price {
    font-size: 12.5px;
  }

  .pd-graph-tooltip-date {
    font-size: 9.5px;
    margin-bottom: 1px;
  }

  .pd-graph-tooltip-trend {
    font-size: 10px;
  }
}

/* ==========================================================================
   25. Silky-Smooth Price Number Counter & Interactive Graph Transition Animations
   ========================================================================== */
.pdp-current-price,
.pdp-original-price,
.pdp-saving-pill,
#pvPrice,
#pvOriginalPrice,
#pvSavingsBadge {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.18s ease;
  will-change: transform, color;
}

.price-animating {
  transform: scale(1.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Only price text elements get the subtle blue glow during counter animation */
.pdp-current-price.price-animating,
.pv-current-price.price-animating,
.bundle-current-price.price-animating {
  color: #2563EB !important;
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.18);
}

/* Savings badges ALWAYS remain solid white (never flash blue on counter ticks) */
.pdp-saving-pill,
.pv-savings-badge,
.pdp-saving-pill.price-animating,
.pv-savings-badge.price-animating,
#pvSavingsBadge.price-animating,
#bundleSavingPill.price-animating {
  color: #ffffff !important;
  text-shadow: none !important;
}

.pdp-saving-pill.price-animating,
.pv-savings-badge.price-animating,
#pvSavingsBadge.price-animating,
#bundleSavingPill.price-animating {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .pd-graph-card-inner.is-graph-revealed {
    animation: pdGraphFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes pdGraphFadeIn {
  0% {
    opacity: 0.5;
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pg-line-curve {
  will-change: stroke-dashoffset, opacity;
}

.pg-area-fill {
  will-change: clip-path, opacity;
}

.pg-active-marker {
  will-change: transform, opacity, left, top;
}

.pd-graph-tooltip {
  will-change: transform, opacity, left, top;
}

.pdp-filter-tab {
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* ==========================================================================
   25. Dedicated Combo & Bundle Deal Detail Page Styles (#viewBundleDetailsPage)
   ========================================================================== */

.bundle-savings-badge-pdp {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bundle-breakdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .bundle-breakdown-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.bundle-breakdown-header {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--border);
}

.bundle-breakdown-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bundle-items-count-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.bundle-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bundle-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--text-primary);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="dark"] .bundle-breakdown-item {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

.bundle-breakdown-item:hover {
  border-color: rgba(65, 150, 255, 0.42);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(65, 150, 255, 0.08);
}

[data-theme="dark"] .bundle-breakdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bundle-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.bundle-item-thumb-box {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.bundle-item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.bundle-item-num-fallback {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bundle-item-serial-dot {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--primary, #4196FF);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(65, 150, 255, 0.35);
}

.bundle-item-info {
  min-width: 0;
  flex: 1;
}

.bundle-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.bundle-item-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bundle-item-qty-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.bundle-item-qty-text.is-muted {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.bundle-breakdown-note {
  font-size: 12px;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: #F0FDF4;
  border-radius: 12px;
  border: 1px solid #BBF7D0;
  margin-top: 2px;
  line-height: 1.45;
  font-weight: 500;
}

.bundle-breakdown-note i {
  color: #059669;
  font-size: 15px;
  flex-shrink: 0;
}

[data-theme="dark"] .bundle-breakdown-note {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.24);
  color: #A7F3D0;
}

[data-theme="dark"] .bundle-breakdown-note i {
  color: #34D399;
}

@media (max-width: 480px) {
  .bundle-breakdown-card {
    padding: 14px 12px;
  }
  .bundle-breakdown-item {
    padding: 9px 10px;
    gap: 10px;
  }
  .bundle-item-thumb-box {
    width: 38px;
    height: 38px;
  }
  .bundle-item-name {
    font-size: 13.5px;
  }
}

/* ============================================================================
   Home Catalog Preview & Dedicated All-Products Page (#viewAllProductsPage)
   ============================================================================ */
.home-catalog-preview-section {
  margin-top: 24px;
}

.home-brands-preview-section .brands-chips-bar {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .home-brands-preview-section .brands-chips-bar {
    margin-bottom: 14px;
  }
}

.home-view-all-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.btn-view-all-products {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.btn-view-all-products:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-view-all-products:active {
  transform: translateY(0);
}

.view-all-count-pill {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
}

.all-products-filter-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.all-products-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.all-products-sentinel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 12px;
  padding: 12px 0;
}

.all-products-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-load-more-products {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: var(--surface-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-load-more-products:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}

.all-products-end-note {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 8px 7px 18px;
  border-radius: 9999px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .btn-back-to-top:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
  }
}

[data-theme="dark"] .btn-view-all-products {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] .btn-view-all-products:hover {
  background: var(--primary);
  color: #ffffff;
}

@media (max-width: 768px) {
  .home-catalog-preview-section {
    margin-top: 16px;
  }

  .home-view-all-wrap {
    margin-top: 18px;
  }

  .btn-view-all-products {
    width: 100%;
    max-width: 320px;
    padding: 11px 20px;
    font-size: 14px;
  }

  .all-products-filter-wrap {
    gap: 10px;
    margin-bottom: 16px;
  }

  .all-products-sentinel {
    margin: 22px auto 8px;
  }
}

/* ============================================================================
   Dedicated Search Results Page View (#viewSearchPage)
   ============================================================================ */
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.search-page-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  min-height: 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-page-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.search-page-icon {
  color: var(--text-tertiary);
  font-size: 15px;
  flex-shrink: 0;
}

.search-page-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  height: 44px;
}

.search-page-clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.search-page-clear[hidden] {
  display: none;
}

.search-page-submit {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.search-page-submit:hover {
  background: var(--primary-dark, #2563eb);
}

.search-suggestions-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.search-suggestions-panel[hidden],
.search-page-results[hidden],
.cart-drawer-count-chip[hidden] {
  display: none !important;
}

/* Smooth page transitions when entering/exiting Dedicated Search Page (#viewSearchPage) */
@keyframes searchPageEnterMotion {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes searchViewVtOldFade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes searchViewVtEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes searchViewVtExitOld {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes searchViewVtExitNew {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #viewSearchPage.search-page-animating {
    animation: searchPageEnterMotion 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.ds-search-view-transition.ds-search-entering::view-transition-old(root) {
    animation: searchViewVtOldFade 0.16s ease-out both;
  }

  html.ds-search-view-transition.ds-search-entering::view-transition-new(root) {
    animation: searchViewVtEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.ds-search-view-transition.ds-search-exiting::view-transition-old(root) {
    animation: searchViewVtExitOld 0.2s ease-in both;
  }

  html.ds-search-view-transition.ds-search-exiting::view-transition-new(root) {
    animation: searchViewVtExitNew 0.24s ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

.search-suggest-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-suggest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-suggest-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.search-suggest-title i {
  color: var(--primary);
  font-size: 13px;
}

.search-recent-clear {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.search-recent-clear:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

.search-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.search-suggest-chip i {
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.search-suggest-chip:hover,
.search-suggest-chip:focus-visible {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  outline: none;
}

.search-suggest-chip:hover i,
.search-suggest-chip:focus-visible i {
  color: var(--primary);
}

@media (max-width: 480px) {
  .search-page-form {
    gap: 8px;
  }

  .search-page-submit {
    padding: 0 16px;
    font-size: 13.5px;
  }

  .search-suggest-group {
    padding: 12px 13px;
    border-radius: 14px;
  }

  .search-suggest-chip {
    padding: 6px 12px;
    font-size: 12.5px;
  }
}

/* ============================================================================
   Multi-Department Storefront Hierarchy (বাজার > তেল ও ঘি > পণ্য)
   ============================================================================ */
.home-dept-sections-root {
  inline-size: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-dept-sections-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  inline-size: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.section.home-catalog-preview-section.home-dept-section {
  scroll-margin-top: 84px;
  inline-size: 100%;
  width: 100%;
  max-width: min(1240px, 100%);
  min-width: 0;
  margin-block: 0;
}

.home-dept-section .catalog-header-bar {
  margin-bottom: 12px;
  inline-size: 100%;
  width: 100%;
  min-width: 0;
}

.home-dept-section .home-view-all-wrap {
  margin-top: 16px;
}

.dept-heading-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dept-section-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
}

.category-page-accent-bar.dept-title-bar {
  height: 20px;
}

.dept-section-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.catalog-breadcrumb > ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.catalog-breadcrumb > ol > li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.catalog-breadcrumb > ol > li + li::before {
  content: "›" / "";
  color: var(--text-tertiary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.catalog-breadcrumb .crumb-link-btn,
.catalog-breadcrumb a {
  background: none;
  border: none;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.catalog-breadcrumb .crumb-link-btn:hover,
.catalog-breadcrumb a:hover {
  color: var(--primary);
  background: var(--primary-light);
  text-decoration: underline;
}

.catalog-breadcrumb [aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
  padding: 2px 6px;
}

.catalog-breadcrumb :is(button, a):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (forced-colors: active) {
  .catalog-breadcrumb [aria-current="page"] {
    text-decoration: underline;
    border-bottom: 1px solid CanvasText;
  }
}

.dept-subcat-strip {
  margin-bottom: 18px;
  padding-inline: 0;
  inline-size: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.all-dept-chips-row {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.dept-subcat-visual-grid {
  margin-bottom: 4px;
}

.dept-cat-group-block {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.dedicated-dept-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dedicated-dept-group-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.dedicated-dept-group-title i {
  color: var(--primary);
}

.dedicated-dept-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .home-dept-sections-stack {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .category-page-accent-bar.dept-title-bar {
    height: 18px;
  }

  .dedicated-dept-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ==========================================================================
   Horizontal Scroll Product Carousel (per-department configurable layout)
   ========================================================================== */
.dept-products-stage {
  position: relative;
  inline-size: 100%;
  min-width: 0;
  view-transition-scope: all;
}

.dept-breadcrumb-slot:empty {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .dept-products-stage {
    transition: opacity 0.13s ease-out, transform 0.13s ease-out;
  }

  .dept-products-stage.is-swapping-out {
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
  }

  .dept-products-stage.is-swapping-in {
    animation: deptStageReveal 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .dept-products-stage.is-swapping-in .product-card,
  .dept-products-stage.is-swapping-in .empty-catalog-state {
    animation: deptCardFadeSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(min(var(--card-stagger, 0), 6) * 28ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

@keyframes deptStageReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes deptCardFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dept-scroll-shell {
  position: relative;
  inline-size: 100%;
  min-width: 0;
}

.dept-scroll-controls {
  position: absolute;
  inset-block-start: 50%;
  inset-inline: -12px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 6;
}

.dept-scroll-nav-btn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(65, 150, 255, 0.35);
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.dept-scroll-nav-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: scale(1.06);
}

.dept-scroll-nav-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dept-scroll-nav-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.products-horizontal-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  touch-action: pan-x manipulation;
  padding: 4px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (prefers-reduced-motion: no-preference) {
  .products-horizontal-scroll {
    scroll-behavior: smooth;
  }
}

.products-horizontal-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.products-horizontal-scroll > .product-card {
  flex: 0 0 240px;
  min-width: 240px;
  max-width: 240px;
  scroll-snap-align: start;
}

.products-horizontal-scroll > .product-card:hover {
  transform: translateY(-2px);
}

.dept-scroll-end-card {
  flex: 0 0 200px;
  min-width: 200px;
  max-width: 200px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 14px;
  border-radius: var(--radius-card);
  border: 1.5px dashed rgba(65, 150, 255, 0.45);
  background: var(--surface-secondary);
  color: var(--primary);
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.dept-scroll-end-card:hover {
  transform: translateY(-2px);
  border-style: solid;
  border-color: var(--primary);
  background: var(--primary-light);
}

.dept-scroll-end-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dept-scroll-end-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(65, 150, 255, 0.3);
}

.dept-scroll-end-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .products-horizontal-scroll > .product-card {
    flex: 0 0 212px;
    min-width: 212px;
    max-width: 212px;
  }

  .dept-scroll-end-card {
    flex: 0 0 180px;
    min-width: 180px;
    max-width: 180px;
  }
}

@media (max-width: 640px) {
  .dept-scroll-controls {
    inset-inline: 2px;
  }

  .dept-scroll-nav-btn {
    width: 34px;
    height: 34px;
  }

  .products-horizontal-scroll {
    gap: 12px;
    scroll-padding-inline: 2px;
  }

  .products-horizontal-scroll > .product-card {
    flex: 0 0 calc(50% - 6px);
    min-width: 0;
    max-width: none;
  }

  .dept-scroll-end-card {
    flex: 0 0 calc(46% - 6px);
    min-width: 146px;
    max-width: 175px;
    padding: 16px 10px;
  }

  .dept-scroll-end-title {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   Single Category Page (#viewCategoryPage) & Directional View Transitions
   ========================================================================== */
.dedicated-view-header.category-page-header {
  margin-bottom: 12px;
}

.category-page-breadcrumb {
  margin: 0 0 12px;
  padding-inline: 2px;
}

.category-page-breadcrumb > ol {
  margin: 0;
}

.category-page-breadcrumb > ol > li:first-child > :is(a, button) {
  padding-inline-start: 2px;
}

.category-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .category-hero-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.category-hero-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.category-hero-squircle {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  padding: 2.5px;
  border-radius: 16px;
  background: var(--cat-ring-gradient, linear-gradient(135deg, #4196FF, #6366F1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-hero-thumb-inner {
  width: 100%;
  height: 100%;
  border-radius: 13.5px;
  background: var(--surface);
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.category-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 11px;
}

.category-hero-icon-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
}

.category-hero-icon-fallback.is-visible {
  display: flex;
}

.category-hero-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-hero-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.category-hero-subtitle {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
}

.category-hero-all-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-box: trim-both cap alphabetic;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-page-filter-controls {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
}

.category-page-count-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.category-page-accent-bar {
  width: 3.5px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  flex-shrink: 0;
}

.category-page-count-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  text-box: trim-both cap alphabetic;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (hover: hover) {
  .category-hero-all-link:hover {
    background: var(--primary-light);
    border-color: rgba(65, 150, 255, 0.35);
    color: var(--primary);
  }
}

@media (max-width: 640px) {
  .dedicated-view-header.category-page-header {
    margin-bottom: 10px;
  }

  .category-page-breadcrumb {
    margin: 0 0 10px;
  }

  .category-hero-card {
    padding: 13px 14px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .category-hero-squircle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .category-hero-title {
    font-size: 15px;
  }

  .category-hero-subtitle {
    font-size: 12px;
  }

  .category-hero-all-link {
    padding: 7px 12px;
    font-size: 11.5px;
  }
}

/* Directional Navigation View Transitions (forward / backward) + Fallback */
@keyframes dsDirSlideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-28px);
  }
}

@keyframes dsDirSlideInRight {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dsDirSlideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes dsDirSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes categoryPageFallbackEnter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  #viewCategoryPage.category-page-animating {
    animation: categoryPageFallbackEnter 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html:active-view-transition-type(forward)::view-transition-group(root),
  html:active-view-transition-type(backward)::view-transition-group(root) {
    animation: 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html:active-view-transition-type(forward)::view-transition-old(root) {
    animation: dsDirSlideOutLeft 0.2s ease-out both;
  }

  html:active-view-transition-type(forward)::view-transition-new(root) {
    animation: dsDirSlideInRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html:active-view-transition-type(backward)::view-transition-old(root) {
    animation: dsDirSlideOutRight 0.2s ease-out both;
  }

  html:active-view-transition-type(backward)::view-transition-new(root) {
    animation: dsDirSlideInLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* ============================================================================
   Initial Page-Load Skeleton Placeholders (Zero-CLS & Compositor Shimmer)
   ============================================================================ */
.skeleton-box {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 10px;
}

[data-theme="dark"] .skeleton-box {
  background: rgba(148, 163, 184, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton-box::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.55) 50%,
      transparent 100%
    );
    animation: dsSkeletonShimmer 1.35s ease-in-out infinite;
  }

  [data-theme="dark"] .skeleton-box::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.10) 50%,
      transparent 100%
    );
  }
}

@keyframes dsSkeletonShimmer {
  to {
    transform: translateX(100%);
  }
}

.skeleton-cat-tile,
.skeleton-product-card {
  pointer-events: none;
  cursor: default;
}

.skeleton-cat-squircle {
  inline-size: 100%;
  max-inline-size: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-cat-label {
  width: 72%;
  margin-inline: auto;
}

.skeleton-dept-title-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.skeleton-bar {
  width: 3.5px;
  height: 20px;
  border-radius: var(--radius-pill);
}

.skeleton-dept-title {
  width: 132px;
  height: 20px;
}

.skeleton-filter-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.skeleton-chips-row {
  display: flex;
  gap: 8px;
}

.skeleton-pill {
  width: 96px;
  height: 36px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.skeleton-product-card {
  gap: 10px;
}

.skeleton-product-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.skeleton-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.skeleton-w-45 { width: 45%; height: 10px; }
.skeleton-w-85 { width: 85%; height: 14px; }
.skeleton-w-60 { width: 60%; height: 11px; }

.skeleton-btn {
  width: 100%;
  height: 38px;
  border-radius: var(--radius-pill);
  margin-top: auto;
}

@media (max-width: 768px) {
  .skeleton-hide-mobile {
    display: none;
  }

  .skeleton-bar {
    height: 18px;
  }

  .skeleton-filter-btn {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
}

/* ==========================================================================
   Redesigned All Categories & Departments Directory (#viewCategoriesPage)
   ========================================================================== */
.dedicated-view-header.cat-dir-view-header {
  margin-bottom: 16px;
}

.cat-dir-summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cat-dir-summary-pill[hidden] {
  display: none;
}

.cat-dir-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.cat-dir-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  inline-size: 100%;
}

.cat-dir-search-icon {
  position: absolute;
  inset-inline-start: 16px;
  color: var(--text-tertiary);
  font-size: 14px;
  pointer-events: none;
}

.cat-dir-search-input {
  inline-size: 100%;
  block-size: 44px;
  padding-block: 0;
  padding-inline: 42px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cat-dir-search-input::placeholder {
  color: var(--text-tertiary);
}

.cat-dir-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.cat-dir-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(65, 150, 255, 0.14);
}

.cat-dir-search-clear {
  position: absolute;
  inset-inline-end: 8px;
  inline-size: 30px;
  block-size: 30px;
  border-radius: 50%;
  border: none;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.cat-dir-search-clear[hidden] {
  display: none;
}

.cat-dir-dept-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-block: 2px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-dir-dept-pills::-webkit-scrollbar {
  display: none;
}

.cat-dir-dept-pills .category-pill {
  flex-shrink: 0;
}

.cat-dir-groups-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 44px;
}

.cat-dir-dept-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.035);
}

[data-theme="dark"] .cat-dir-dept-card {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.cat-dir-dept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cat-dir-dept-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.cat-dir-dept-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-dir-dept-meta-pill {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cat-dir-dept-all-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.cat-dir-dept-all-btn .view-all-chevron {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.cat-dir-dept-all-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (hover: hover) {
  .cat-dir-dept-all-btn:hover {
    background: var(--primary-light, rgba(0, 136, 68, 0.08));
    color: var(--primary);
  }

  .cat-dir-dept-all-btn:hover .view-all-chevron {
    transform: translateX(2px);
  }
}

.cat-dir-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.cat-dir-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  container-type: inline-size;
  min-width: 0;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}

.cat-dir-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cat-dir-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  block-size: 100%;
  padding: 14px 10px 13px;
  border-radius: 16px;
  background: var(--bg-color);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .cat-dir-card {
  background: rgba(15, 23, 42, 0.55);
}

.cat-dir-thumb-ring {
  flex-shrink: 0;
  inline-size: 58px;
  block-size: 58px;
  padding: 2.5px;
  border-radius: 17px;
  background: var(--cat-ring-gradient, linear-gradient(135deg, #4196FF 0%, #6366F1 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.cat-dir-thumb-inner {
  inline-size: 100%;
  block-size: 100%;
  border-radius: 14.5px;
  background: var(--surface);
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}

.cat-dir-thumb-img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.cat-dir-thumb-fallback {
  display: none;
  inline-size: 100%;
  block-size: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 20px;
}

.cat-dir-thumb-fallback.is-visible {
  display: flex;
}

.cat-dir-card-body {
  min-width: 0;
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cat-dir-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: clip;
}

.cat-dir-card-count {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.cat-dir-card-arrow {
  display: none;
  flex-shrink: 0;
  inline-size: 28px;
  block-size: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Container-query upgrade: horizontal scannable row when card has >= 215px inline width */
@container (min-width: 215px) {
  .cat-dir-card {
    flex-direction: row;
    align-items: center;
    text-align: start;
    gap: 12px;
    padding: 12px 13px;
  }

  .cat-dir-thumb-ring {
    inline-size: 54px;
    block-size: 54px;
    border-radius: 16px;
  }

  .cat-dir-thumb-inner {
    border-radius: 13.5px;
  }

  .cat-dir-thumb-img,
  .cat-dir-thumb-fallback {
    border-radius: 11px;
  }

  .cat-dir-card-body {
    flex: 1;
    align-items: flex-start;
    gap: 4px;
  }

  .cat-dir-card-title {
    font-size: 14px;
  }

  .cat-dir-card-count {
    padding: 0;
    background: transparent;
    border: none;
    font-size: 11.5px;
  }

  .cat-dir-card-arrow {
    display: inline-flex;
  }
}

@media (hover: hover) {
  .cat-dir-card-link:hover .cat-dir-card {
    background: var(--surface);
    border-color: rgba(65, 150, 255, 0.45);
    box-shadow: 0 8px 20px rgba(65, 150, 255, 0.1);
  }

  .cat-dir-card-link:hover .cat-dir-card-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .cat-dir-card-link:hover .cat-dir-card {
      transform: translateY(-2px);
    }

    .cat-dir-card-link:hover .cat-dir-card-arrow {
      transform: translateX(2px);
    }
  }

  .cat-dir-card-link:active .cat-dir-card {
    transform: scale(0.97);
  }
}

.cat-dir-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cat-dir-empty i {
  font-size: 32px;
  color: var(--primary);
  opacity: 0.75;
}

.cat-dir-empty h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.cat-dir-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.cat-dir-reset-btn {
  margin-top: 6px;
}

@media (max-width: 640px) {
  .dedicated-view-header.cat-dir-view-header {
    margin-bottom: 12px;
  }

  .cat-dir-summary-pill {
    padding: 5px 10px;
    font-size: 11px;
  }

  .cat-dir-toolbar {
    gap: 10px;
    margin-bottom: 14px;
  }

  .cat-dir-search-input {
    block-size: 40px;
    font-size: 13px;
  }

  .cat-dir-groups-stack {
    gap: 14px;
    margin-bottom: 36px;
  }

  .cat-dir-dept-card {
    border-radius: 18px;
    padding: 14px 12px;
  }

  .cat-dir-dept-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .cat-dir-dept-title {
    font-size: 15.5px;
  }

  .cat-dir-dept-meta-pill {
    display: none;
  }

  .cat-dir-dept-all-btn {
    padding: 3px 5px;
    font-size: 12px;
    gap: 2px;
  }

  .cat-dir-dept-card {
    border-radius: 18px;
    padding: 13px 10px;
  }

  .cat-dir-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cat-dir-card {
    padding: 10px 6px 9px;
    gap: 7px;
    border-radius: 14px;
  }

  .cat-dir-thumb-ring {
    inline-size: 46px;
    block-size: 46px;
    border-radius: 14px;
    padding: 2px;
  }

  .cat-dir-thumb-inner {
    border-radius: 12px;
    padding: 2px;
  }

  .cat-dir-thumb-img,
  .cat-dir-thumb-fallback {
    border-radius: 10px;
  }

  .cat-dir-card-title {
    font-size: 11.5px;
    line-height: 1.25;
  }

  .cat-dir-card-count {
    padding: 2px 7px;
    font-size: 10px;
  }
}

@media (min-width: 460px) and (max-width: 640px) {
  .cat-dir-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }
}

/* ==========================================================================
   Checkout Interactive Map Location Picker
   ========================================================================== */
.checkout-map-box {
  margin-top: 10px;
}

.checkout-map-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-map-toggle-btn,
.checkout-map-gps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.checkout-map-toggle-btn {
  flex: 1 1 210px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.checkout-map-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.checkout-map-toggle-btn.is-open {
  background: rgba(51, 149, 255, 0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.checkout-map-chevron {
  margin-left: auto;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.checkout-map-toggle-btn.is-open .checkout-map-chevron {
  transform: rotate(180deg);
}

.checkout-map-gps-btn {
  flex: 0 1 auto;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1.5px solid rgba(16, 185, 129, 0.28);
}

.checkout-map-gps-btn:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
}

.checkout-map-gps-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.checkout-map-toggle-btn:focus-visible,
.checkout-map-gps-btn:focus-visible,
.checkout-map-mini-btn:focus-visible,
.success-map-pin-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.checkout-map-selected-summary {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.checkout-map-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(16, 185, 129, 0.25);
}

.checkout-map-badge-title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.01em;
}

.checkout-map-confirmed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

[data-theme="dark"] .checkout-map-badge-title {
  color: #34d399;
}

[data-theme="dark"] .checkout-map-confirmed-pill {
  background: #10b981;
  color: #ffffff;
}

.checkout-map-summary-info {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.checkout-map-summary-info i {
  color: #10b981;
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkout-map-summary-info strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.checkout-map-summary-info span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.checkout-map-address-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.checkout-map-address-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
}

.checkout-admin-area-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.checkout-admin-area-grid.is-first {
  margin-top: 0;
  margin-bottom: 2px;
}

.checkout-admin-area-grid .compact-sort-dropdown.is-fullwidth,
.checkout-admin-area-grid .compact-select-wrap {
  min-height: 38px;
}

.checkout-admin-area-grid .compact-sort-menu {
  max-height: min(340px, 55vh);
}

.checkout-map-details-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.checkout-map-detail-field {
  min-width: 0;
}

.checkout-map-detail-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.checkout-map-detail-input {
  height: 38px;
  min-height: 38px;
  padding: 0 10px;
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .checkout-admin-area-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .checkout-map-details-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .checkout-map-detail-input {
    min-height: 44px;
    font-size: max(1rem, 16px);
  }
}

.checkout-map-summary-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.checkout-map-mini-btn {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  transition: var(--transition);
}

.checkout-map-mini-btn.edit-btn {
  background: var(--surface);
  color: var(--primary);
  border-color: rgba(65, 150, 255, 0.45);
}

.checkout-map-mini-btn.edit-btn:hover,
.checkout-map-mini-btn.edit-btn:active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.checkout-map-mini-btn.danger {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
  font-size: 14px;
  line-height: 1;
}

.checkout-map-mini-btn.danger:hover,
.checkout-map-mini-btn.danger:active,
.checkout-map-mini-btn.danger:focus-visible {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.45);
  outline: none;
}

[data-theme="dark"] .checkout-map-mini-btn.danger:hover,
[data-theme="dark"] .checkout-map-mini-btn.danger:active,
[data-theme="dark"] .checkout-map-mini-btn.danger:focus-visible {
  background: rgba(248, 113, 113, 0.16);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
}

.checkout-map-permission-alert {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(217, 119, 6, 0.34);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-map-perm-body {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.checkout-map-perm-body i {
  color: #d97706;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkout-map-perm-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #92400e;
  line-height: 1.4;
}

.checkout-map-perm-body p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checkout-map-perm-retry {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(217, 119, 6, 0.36);
  background: var(--surface);
  color: #b45309;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.checkout-map-perm-retry:hover {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
}

.checkout-map-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    grid-template-rows 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.3s ease;
}

.checkout-map-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
  transform: translateY(0);
  pointer-events: auto;
}

.checkout-map-panel-inner {
  overflow: hidden;
  min-height: 0;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid transparent;
  padding: 0 12px;
  transition: padding 0.3s ease, border-color 0.25s ease;
}

.checkout-map-panel.is-open .checkout-map-panel-inner {
  padding: 12px;
  border-color: var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .checkout-map-panel,
  .checkout-map-panel-inner {
    transition: none;
  }
}

.checkout-map-canvas-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-secondary);
  isolation: isolate;
}

.checkout-map-layer-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 450;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
}

.checkout-map-layer-btn {
  min-height: 30px;
  padding: 4px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.checkout-map-layer-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.checkout-map-layer-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

[data-theme="dark"] .checkout-map-layer-switch {
  background: rgba(22, 26, 36, 0.94);
}

.checkout-map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.checkout-map-locate-fab {
  position: absolute;
  right: 10px;
  bottom: 24px;
  z-index: 450;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.checkout-map-locate-fab:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.checkout-map-locate-fab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.checkout-map-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.checkout-map-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.checkout-map-hint.is-error {
  color: #dc2626;
}

.success-map-pin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.success-map-pin-link:hover {
  text-decoration: underline;
}

[data-theme="dark"] .checkout-map-gps-btn {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}

[data-theme="dark"] .checkout-map-loading {
  background: rgba(15, 23, 42, 0.85);
}

[data-theme="dark"] .checkout-map-hint.is-error {
  color: #f87171;
}

[data-theme="dark"] .checkout-map-permission-alert {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .checkout-map-perm-body i,
[data-theme="dark"] .checkout-map-perm-body strong,
[data-theme="dark"] .checkout-map-perm-retry {
  color: #fbbf24;
}

@media (max-width: 640px) {
  .checkout-map-actions-row {
    flex-direction: column;
  }

  .checkout-map-toggle-btn,
  .checkout-map-gps-btn {
    width: 100%;
    flex: none;
  }

  .checkout-map-permission-alert {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-map-perm-retry {
    align-self: flex-end;
  }

  .checkout-map-summary-btns {
    justify-content: flex-end;
  }

  .checkout-map-canvas-wrap {
    height: 220px;
  }
}

/* ==========================================================================
   PDP Horizontal Suggestions (Sub-category & Whole-App Activity Rails)
   ========================================================================== */
.pdp-suggestions-root {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pdp-suggestion-section {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  min-width: 0;
}

.pdp-suggestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pdp-suggestion-header .pdp-section-title {
  min-width: 0;
}

@media (max-width: 640px) {
  .pdp-suggestions-root {
    margin-top: 24px;
    gap: 22px;
  }

  .pdp-suggestion-section {
    padding-top: 20px;
  }

  .pdp-suggestion-header {
    margin-bottom: 12px;
    gap: 8px;
  }
}


/* ============================================================================
   Sortable Home Sections Host (Admin-controlled order below Categories)
   ============================================================================ */
.home-sortable-sections-host {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
  padding-bottom: 20px;
}

.home-sortable-sections-host > .section,
.home-sortable-sections-host > .home-dept-sections-root,
.home-sortable-sections-host > .home-catalog-preview-section {
  margin-block: 0;
  inline-size: 100%;
}

.home-dept-sections-root.is-transferred {
  display: block;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .home-sortable-sections-host {
    gap: 18px;
    margin-top: 16px;
    padding-bottom: 14px;
  }
}

/* ============================================================================
   Minimum Order Limit Notice Banner (Cart Drawer & Cart Page)
   ============================================================================ */
.min-order-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
}

.min-order-notice i {
  color: #DC2626;
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.min-order-notice strong {
  font-weight: 800;
  color: #7F1D1D;
}

.btn-checkout-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .min-order-notice {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #FCA5A5;
}

[data-theme="dark"] .min-order-notice i {
  color: #F87171;
}

[data-theme="dark"] .min-order-notice strong {
  color: #FECACA;
}

/* ============================================================================
   Product Description Card on Product Detail Page (Hidden when empty)
   ============================================================================ */
.pdp-description-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.pdp-description-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.pdp-description-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
  word-break: break-word;
}

[data-theme="dark"] .pdp-description-card {
  background: var(--surface);
  border-color: var(--border);
}

/* Auto Picture Collage Grid for Combo Deals & Gallery Slides */
.bundle-collage-grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 5px;
  padding: 5px;
  background: var(--surface-secondary, #F1F5F9);
  box-sizing: border-box;
}

.bundle-collage-grid.is-compact {
  gap: 2px;
  padding: 2px;
}

.bundle-collage-grid.cols-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  padding: 0;
}

.bundle-collage-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
}

.bundle-collage-grid.cols-3 {
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.bundle-collage-grid.cols-3 .bundle-collage-tile:first-child {
  grid-row: 1 / 3;
}

.bundle-collage-grid.cols-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.bundle-collage-tile {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
}

.bundle-collage-grid.is-compact .bundle-collage-tile {
  border-radius: 4px;
}

.bundle-image-box .bundle-collage-tile {
  border-radius: 9px;
}

.bundle-collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pdp-carousel-slide:hover .bundle-collage-tile img,
  .bundle-card:hover .bundle-collage-tile img {
    transform: scale(1.03);
  }
}

.bundle-collage-more-badge {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  backdrop-filter: blur(2px);
}

.bundle-collage-grid.is-compact .bundle-collage-more-badge {
  font-size: 11px;
}

[data-theme="dark"] .bundle-collage-grid {
  background: #0F172A;
}

/* ==========================================================================
   Customer Live Notice Banner & Popup (Synced with Admin Panel)
   ========================================================================== */
.user-notice-host {
  margin-top: 8px;
  margin-bottom: 14px;
}

.user-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-card, 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--notice-theme-color, var(--primary));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  animation: noticeSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.user-notice-banner:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

@keyframes noticeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Color types via CSS custom properties */
.user-notice-banner.notice-info {
  --notice-theme-color: var(--primary, #4196FF);
  --notice-icon-bg: #EBF5FF;
  --notice-icon-color: #4196FF;
  --notice-chip-bg: #EBF5FF;
  --notice-chip-color: #2563EB;
  --notice-chip-border: rgba(65, 150, 255, 0.25);
  --notice-btn-bg: var(--primary, #4196FF);
  --notice-btn-hover: var(--primary-hover, #2F7EE6);
  --notice-btn-shadow: rgba(65, 150, 255, 0.28);
}

.user-notice-banner.notice-success {
  --notice-theme-color: #059669;
  --notice-icon-bg: #E8F8F0;
  --notice-icon-color: #059669;
  --notice-chip-bg: #ECFDF5;
  --notice-chip-color: #047857;
  --notice-chip-border: rgba(16, 185, 129, 0.25);
  --notice-btn-bg: #059669;
  --notice-btn-hover: #047857;
  --notice-btn-shadow: rgba(5, 150, 105, 0.28);
}

.user-notice-banner.notice-warning {
  --notice-theme-color: #D97706;
  --notice-icon-bg: #FFF8E6;
  --notice-icon-color: #D97706;
  --notice-chip-bg: #FFFBEB;
  --notice-chip-color: #B45309;
  --notice-chip-border: rgba(245, 158, 11, 0.25);
  --notice-btn-bg: #D97706;
  --notice-btn-hover: #B45309;
  --notice-btn-shadow: rgba(217, 119, 6, 0.28);
}

.user-notice-banner.notice-danger {
  --notice-theme-color: #DC2626;
  --notice-icon-bg: #FEECEB;
  --notice-icon-color: #DC2626;
  --notice-chip-bg: #FEF2F2;
  --notice-chip-color: #B91C1C;
  --notice-chip-border: rgba(239, 68, 68, 0.25);
  --notice-btn-bg: #DC2626;
  --notice-btn-hover: #B91C1C;
  --notice-btn-shadow: rgba(220, 38, 38, 0.28);
}

/* Dark mode colors */
[data-theme="dark"] .user-notice-banner.notice-info {
  --notice-theme-color: #60A5FA;
  --notice-icon-bg: rgba(65, 150, 255, 0.18);
  --notice-icon-color: #93C5FD;
  --notice-chip-bg: rgba(65, 150, 255, 0.16);
  --notice-chip-color: #93C5FD;
  --notice-chip-border: rgba(65, 150, 255, 0.3);
  --notice-btn-bg: #3B82F6;
  --notice-btn-hover: #2563EB;
}

[data-theme="dark"] .user-notice-banner.notice-success {
  --notice-theme-color: #34D399;
  --notice-icon-bg: rgba(16, 185, 129, 0.18);
  --notice-icon-color: #6EE7B7;
  --notice-chip-bg: rgba(16, 185, 129, 0.16);
  --notice-chip-color: #6EE7B7;
  --notice-chip-border: rgba(16, 185, 129, 0.3);
  --notice-btn-bg: #10B981;
  --notice-btn-hover: #059669;
}

[data-theme="dark"] .user-notice-banner.notice-warning {
  --notice-theme-color: #FBBF24;
  --notice-icon-bg: rgba(245, 158, 11, 0.18);
  --notice-icon-color: #FCD34D;
  --notice-chip-bg: rgba(245, 158, 11, 0.16);
  --notice-chip-color: #FCD34D;
  --notice-chip-border: rgba(245, 158, 11, 0.3);
  --notice-btn-bg: #F59E0B;
  --notice-btn-hover: #D97706;
}

[data-theme="dark"] .user-notice-banner.notice-danger {
  --notice-theme-color: #F87171;
  --notice-icon-bg: rgba(239, 68, 68, 0.18);
  --notice-icon-color: #FCA5A5;
  --notice-chip-bg: rgba(239, 68, 68, 0.16);
  --notice-chip-color: #FCA5A5;
  --notice-chip-border: rgba(239, 68, 68, 0.3);
  --notice-btn-bg: #EF4444;
  --notice-btn-hover: #DC2626;
}

/* Banner Layout Components */
.notice-banner-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.notice-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--notice-icon-bg);
  color: var(--notice-icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.user-notice-banner:hover .notice-icon-box {
  transform: scale(1.06);
}

.notice-text-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notice-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--notice-chip-bg);
  color: var(--notice-chip-color);
  border: 1px solid var(--notice-chip-border);
  letter-spacing: 0.15px;
  white-space: nowrap;
}

.notice-body-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  word-break: break-word;
}

.notice-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-notice-action {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--notice-chip-border);
  background: var(--notice-chip-bg);
  color: var(--notice-chip-color) !important;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-notice-action:hover {
  background: var(--notice-btn-hover);
  color: #FFFFFF !important;
  border-color: var(--notice-btn-hover);
  transform: translateY(-1px);
}

.notice-clean-title {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-notice-host {
  margin-bottom: 12px;
}

.cart-notice-host.is-drawer {
  margin: 10px 16px 4px;
}

.user-notice-banner.is-cart-notice {
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: none;
}

.btn-notice-dismiss {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-notice-dismiss:hover {
  background: var(--surface-secondary);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.btn-dismiss-mobile {
  display: none;
}

.btn-dismiss-desktop {
  display: inline-flex;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .user-notice-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
  }
  .notice-banner-main {
    align-items: flex-start;
  }
  .notice-title-row {
    justify-content: space-between;
    width: 100%;
  }
  .btn-dismiss-desktop {
    display: none;
  }
  .btn-dismiss-mobile {
    display: inline-flex;
    margin-left: auto;
  }
  .notice-banner-actions {
    width: 100%;
  }
  .btn-notice-action {
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
  }
}

/* User Notice Modal Popup */
.user-notice-modal-overlay {
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-notice-modal-card {
  max-width: 440px;
  width: 90%;
  text-align: center;
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  animation: noticePopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes noticePopIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.user-notice-modal-icon-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.user-notice-modal-icon-badge.notice-info-badge { background: #EFF6FF; color: #2563EB; }
.user-notice-modal-icon-badge.notice-success-badge { background: #ECFDF5; color: #059669; }
.user-notice-modal-icon-badge.notice-warning-badge { background: #FFFBEB; color: #D97706; }
.user-notice-modal-icon-badge.notice-danger-badge { background: #FEF2F2; color: #DC2626; }
[data-theme="dark"] .user-notice-modal-icon-badge.notice-info-badge { background: rgba(37, 99, 235, 0.2); color: #93C5FD; }
[data-theme="dark"] .user-notice-modal-icon-badge.notice-success-badge { background: rgba(5, 150, 105, 0.2); color: #A7F3D0; }
[data-theme="dark"] .user-notice-modal-icon-badge.notice-warning-badge { background: rgba(217, 119, 6, 0.2); color: #FDE68A; }
[data-theme="dark"] .user-notice-modal-icon-badge.notice-danger-badge { background: rgba(220, 38, 38, 0.2); color: #FCA5A5; }

.user-notice-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.user-notice-modal-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.user-notice-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .user-notice-banner {
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .notice-banner-right {
    margin-left: auto;
  }
}
