/* ==========================================================================
   LGT - LAITH GLOBAL GENERAL TRADING
   Product Archive & Category Listing Stylesheet
   Pixel-Perfect Replica of Reference Design with LGT Brand Guidelines
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb & Intro Section
   -------------------------------------------------------------------------- */
.archive-breadcrumb-section {
  padding: 12px 0 6px;
  background-color: var(--color-bg-page);
}

.archive-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.archive-breadcrumbs a {
  color: #475569;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.archive-breadcrumbs a:hover {
  color: #0847aa;
}

.archive-breadcrumbs .crumb-sep {
  color: #cbd5e1;
  font-size: 10px;
}

.archive-breadcrumbs .crumb-current {
  color: #0f172a;
  font-weight: 600;
}

.archive-seo-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Green Promotion Banner (Top Right in Reference) */
.archive-promo-banner {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.promo-banner-icon {
  width: 28px;
  height: 28px;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-banner-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.promo-banner-text {
  flex-grow: 1;
}

.promo-banner-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.promo-banner-sub {
  font-size: 11px;
  color: #166534;
  margin-top: 2px;
}

.promo-banner-sub em {
  font-style: normal;
  font-weight: 600;
  color: #15803d;
}

/* --------------------------------------------------------------------------
   Archive Main 2-Column Layout
   -------------------------------------------------------------------------- */
.archive-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Left Column: Filter Sidebar
   -------------------------------------------------------------------------- */
.archive-sidebar {
  width: 250px;
  min-width: 250px;
  flex: 0 0 250px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

/* Global backdrop for mobile filter slide-out (hidden on desktop) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 1050;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.archive-sidebar::-webkit-scrollbar {
  width: 5px;
}

.archive-sidebar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.sidebar-header {
  padding: 12px 14px;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-header-title svg {
  width: 15px;
  height: 15px;
  fill: #0847aa;
}

.btn-clear-filters {
  font-size: 11px;
  font-weight: 600;
  color: #0847aa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-clear-filters:hover {
  text-decoration: underline;
}

/* Accordion Filter Group */
.filter-group {
  border-bottom: 1px solid #f1f5f9;
}

.filter-group-header {
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  transition: background-color var(--transition-fast);
}

.filter-group-header:hover {
  background-color: #f8fafc;
}

.filter-group-header .chevron {
  width: 12px;
  height: 12px;
  color: #94a3b8;
  transition: transform var(--transition-fast);
}

.filter-group.collapsed .filter-group-header .chevron {
  transform: rotate(-90deg);
}

.filter-group.collapsed .filter-group-body {
  display: none;
}

.filter-group-body {
  padding: 4px 14px 12px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 11.5px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.filter-item:hover {
  color: #0847aa;
}

.filter-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.filter-link-item:hover {
  color: #0847aa;
}

.filter-name-sub {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.2;
}

.filter-label-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.filter-checkbox {
  width: 13px;
  height: 13px;
  accent-color: #0847aa;
  cursor: pointer;
}

.filter-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-count {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 4px;
}

/* Color indicator dots in sidebar */
.color-swatch-bullet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.color-swatch-bullet.red    { background-color: #dc2626; }
.color-swatch-bullet.black  { background-color: #1e293b; }
.color-swatch-bullet.green  { background-color: #16a34a; }
.color-swatch-bullet.blue   { background-color: #2563eb; }
.color-swatch-bullet.yellow { background-color: #eab308; }
.color-swatch-bullet.white  { background-color: #f8fafc; border-color: #cbd5e1; }

/* Stars inside filter */
.filter-stars {
  color: #ea580c;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Right Column: Archive Main Header & Meta
   -------------------------------------------------------------------------- */
.archive-main {
  flex: 1 1 0%;
  min-width: 0;
}

.archive-header-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.archive-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.archive-page-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.archive-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #f8fafc;
  padding-top: 8px;
}

.archive-results-count {
  font-weight: 600;
  color: #475569;
}

.archive-controls-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Currency Toggle Switch */
.archive-currency-toggle {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 2px;
  border: 1px solid #e2e8f0;
}

.currency-pill-btn {
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  border: none;
  background: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.currency-pill-btn.active {
  background-color: #0847aa;
  color: #ffffff;
}

/* Sort By Dropdown */
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.sort-select {
  padding: 5px 24px 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 14px;
}

.sort-select:focus {
  border-color: #0847aa;
}

/* Active Filter Chips Row */
.active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #eff6ff;
  color: #0847aa;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

.active-filter-chip button {
  background: none;
  border: none;
  color: #0847aa;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.active-filter-chip button:hover {
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   Product Listing Grid (4 Columns on Desktop)
   -------------------------------------------------------------------------- */
.plp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

/* Single Product Card */
.plp-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}

.plp-card:hover {
  border-color: #93c5fd;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.12);
  z-index: 30;
}

/* Ribbon Top Badge */
.plp-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2.5px 6px;
  border-radius: 3px;
  z-index: 3;
  line-height: 1;
}

.plp-badge.deal-day {
  background: #0d9488;
  color: #ffffff;
}

.plp-badge.top-seller {
  background: #0847aa;
  color: #ffffff;
}

/* Wishlist Button */
.plp-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  z-index: 3;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.plp-wishlist-btn:hover,
.plp-wishlist-btn.active {
  color: #dc2626;
  background-color: #fef2f2;
  border-color: #fecaca;
}

.plp-wishlist-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: transparent;
  stroke-width: 2;
  transition: fill var(--transition-fast);
}

.plp-wishlist-btn.active svg {
  fill: #dc2626;
}

/* Image Container */
.plp-img-box {
  width: 100%;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.plp-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.plp-card:hover .plp-img-box img {
  transform: scale(1.04) translateZ(0);
}

/* Card Content Body */
.plp-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Rating Row */
.plp-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.plp-rating-badge {
  background-color: #16a34a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.plp-rating-badge .star {
  font-size: 8px;
}

.plp-rating-count {
  font-size: 10px;
  color: #64748b;
}

/* Title */
.plp-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 33px;
  transition: color var(--transition-fast);
}

.plp-card:hover .plp-title {
  color: #0847aa;
}

/* Brand line */
.plp-brand-line {
  font-size: 10.5px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Price Block */
.plp-price-block {
  margin-top: auto;
  margin-bottom: 6px;
}

.plp-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.plp-current-price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.plp-mrp-price {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.plp-discount-tag {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
}

/* Delivery Line */
.plp-delivery-line {
  font-size: 10.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.plp-delivery-line svg {
  width: 13px;
  height: 13px;
  fill: #64748b;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hover Action Tray & Key Specs (Smooth Floating Popover)
   -------------------------------------------------------------------------- */
.plp-action-tray {
  position: absolute;
  top: calc(100% - 1px);
  left: -1px;
  right: -1px;
  background-color: #ffffff;
  border: 1px solid #93c5fd;
  border-top: 1px solid #f1f5f9;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 8px 12px 12px;
  box-shadow: 0 16px 28px -4px rgba(0, 0, 0, 0.15);
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

/* Show action tray on card hover */
.plp-card:hover .plp-action-tray {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.plp-buttons-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.btn-plp-cart {
  flex: 1;
  height: 30px;
  background-color: #0847aa;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background-color var(--transition-fast);
}

.btn-plp-cart:hover {
  background-color: #063988;
}

.btn-plp-cart svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.btn-plp-buynow {
  flex: 1;
  height: 30px;
  background-color: #e53935;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: background-color var(--transition-fast);
}

.btn-plp-buynow:hover {
  background-color: #c62828;
}

.plp-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
}

.plp-feature-bullets li {
  position: relative;
  padding-left: 10px;
  margin-bottom: 2px;
}

.plp-feature-bullets li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #0847aa;
}

/* --------------------------------------------------------------------------
   Pagination Section
   -------------------------------------------------------------------------- */
.plp-pagination-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.pagination-info {
  font-size: 12px;
  color: #64748b;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  border-color: #0847aa;
  color: #0847aa;
}

.page-btn.active {
  background-color: #0847aa;
  border-color: #0847aa;
  color: #ffffff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Bottom SEO / Buying Guide Section
   -------------------------------------------------------------------------- */
.archive-buying-guide {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-sm);
}

.guide-heading {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.guide-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.guide-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
}

.guide-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0847aa;
  margin-bottom: 6px;
}

.guide-card-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Mobile App Components (Hidden on Desktop >= 901px)
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  .mobile-quick-pills-bar,
  .mobile-filter-bar,
  .mobile-bottom-sheet,
  .bottom-sheet-backdrop,
  .sidebar-close-btn,
  .mobile-sidebar-footer,
  .sidebar-active-pill {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .plp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .archive-layout {
    gap: 16px;
  }

  .archive-sidebar {
    width: 220px;
    min-width: 220px;
    flex: 0 0 220px;
  }
}

/* ==========================================================================
   NATIVE MOBILE APP EXPERIENCE (< 900px)
   Pixel-Perfect 100% Responsive PLP with Sticky Bottom Sort & Filter Bar
   ========================================================================== */
@media (max-width: 900px) {
  html {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
    touch-action: pan-y pinch-zoom;
  }

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

  .archive-breadcrumb-section,
  .archive-layout,
  .archive-main,
  .archive-header-card,
  .container {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* 1. Hide desktop chrome & generic bottom tabs to give pure PLP focus */
  .mobile-bottom-nav {
    display: none !important;
  }

  .archive-seo-desc {
    display: none !important;
  }

  .archive-sort-wrap,
  .sort-wrap {
    display: none !important; /* Managed natively by the sticky bottom Sort button */
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* 2. Compact Native App Breadcrumb & Promo Ribbon */
  .archive-breadcrumb-section {
    padding: 8px 0 2px;
    overflow-x: clip;
    max-width: 100%;
  }

  .archive-breadcrumbs {
    font-size: 11px;
    margin-bottom: 6px;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
  }

  .archive-promo-banner {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .promo-banner-icon {
    width: 24px;
    height: 24px;
  }

  .promo-banner-icon svg {
    width: 14px;
    height: 14px;
  }

  .promo-banner-title {
    font-size: 11px;
    line-height: 1.25;
  }

  .promo-banner-sub {
    font-size: 10px;
    line-height: 1.25;
    margin-top: 1px;
  }

  /* 3. Native Horizontal Quick-Filter Pills (One-Touch Filtering, Scoped Horizontally) */
  .mobile-quick-pills-bar {
    display: flex !important;
    gap: 6px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 2px 2px 8px;
    margin-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-quick-pills-bar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .quick-pill-btn {
    flex-shrink: 0;
    height: 30px;
    padding: 0 10px;
    border-radius: 15px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .quick-pill-btn:active {
    background-color: #f1f5f9;
  }

  .quick-pill-btn.active {
    background-color: #0847aa !important;
    color: #ffffff !important;
    border-color: #0847aa !important;
    box-shadow: 0 2px 6px rgba(8, 71, 170, 0.25);
  }

  .pill-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
  }

  .quick-pill-btn.active .pill-color-dot {
    box-shadow: 0 0 0 1.5px #ffffff;
  }

  .pill-check-icon {
    width: 12px;
    height: 12px;
  }

  /* 4. Compact Category Header & Currency Switcher */
  .archive-header-card {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .archive-page-title {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .archive-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .archive-controls-right {
    gap: 6px;
    margin-left: auto;
  }

  .currency-pill-btn {
    padding: 3px 8px;
    font-size: 10.5px;
  }

  .archive-results-count {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
  }

  /* 5. Main Layout on Mobile */
  .archive-layout {
    display: block;
    margin-bottom: 24px;
  }

  .archive-main {
    width: 100%;
  }

  /* 6. Native 2-Column Product Grid */
  .plp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 24px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .plp-card {
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .plp-card:hover {
    border-radius: 10px;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .plp-badge {
    font-size: 7.5px;
    font-weight: 800;
    padding: 2px 4px;
    top: 5px;
    left: 5px;
    border-radius: 3px;
  }

  .plp-wishlist-btn {
    width: 26px;
    height: 26px;
    top: 5px;
    right: 5px;
  }

  .plp-wishlist-btn svg {
    width: 11px;
    height: 11px;
  }

  .plp-img-box {
    height: 120px;
    padding: 2px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 6px;
  }

  .plp-rating-row {
    margin-bottom: 4px;
    gap: 4px;
  }

  .plp-rating-badge {
    font-size: 9px;
    padding: 1px 4px;
  }

  .plp-rating-count {
    font-size: 9.5px;
  }

  .plp-title {
    font-size: 11px;
    line-height: 1.35;
    height: 30px;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .plp-brand-line {
    font-size: 9.5px;
    margin-bottom: 4px;
  }

  .plp-price-block {
    margin-bottom: 4px;
  }

  .plp-price-row {
    gap: 4px;
    flex-wrap: wrap;
  }

  .plp-current-price {
    font-size: 13px;
    font-weight: 800;
  }

  .plp-mrp-price {
    font-size: 10px;
  }

  .plp-discount-tag {
    font-size: 9px;
    padding: 1px 3px;
  }

  .plp-delivery-line {
    font-size: 9.5px;
    margin-bottom: 4px;
    gap: 3px;
  }

  .plp-delivery-line svg {
    width: 11px;
    height: 11px;
  }

  /* Action Buttons on Mobile Card */
  .plp-action-tray {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 6px 0 0 !important;
    margin-top: 4px !important;
    z-index: 1 !important;
  }

  .plp-buttons-row {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
  }

  .btn-plp-cart {
    flex: 1;
    min-width: 0;
    height: 28px;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 5px;
    background-color: #0847aa;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-plp-cart span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .btn-plp-cart svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
  }

  .btn-plp-buynow {
    flex: 1;
    min-width: 0;
    height: 28px;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 5px;
    background-color: #e53935;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .plp-feature-bullets {
    display: none !important;
  }

  /* 7. Buying Guide Mobile */
  .archive-buying-guide {
    padding: 16px;
    border-radius: 10px;
  }

  .guide-heading {
    font-size: 14px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 8. NATIVE STICKY BOTTOM SORT & FILTER BAR (The Mobile Footer) */
  .mobile-filter-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 52px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    align-items: stretch;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .btn-mobile-sort,
  .btn-mobile-filter {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 12px;
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-mobile-sort:active,
  .btn-mobile-filter:active {
    background-color: #f1f5f9;
  }

  .bottom-menu-icon {
    width: 17px;
    height: 17px;
    fill: #0847aa;
    flex-shrink: 0;
  }

  .bottom-menu-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
  }

  .bottom-menu-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .bottom-menu-sub {
    font-size: 9.5px;
    color: #64748b;
    font-weight: 500;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bottom-menu-badge {
    background-color: #0847aa;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-menu-badge.empty {
    display: none;
  }

  .mobile-filter-divider {
    width: 1px;
    height: 26px;
    background-color: #e2e8f0;
    align-self: center;
  }

  /* 9. NATIVE SORT BOTTOM SHEET */
  .bottom-sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 1050;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .bottom-sheet-backdrop.active {
    display: block !important;
    opacity: 1;
  }

  .mobile-bottom-sheet {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
    z-index: 1100;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    max-height: 80vh;
    flex-direction: column;
    visibility: hidden;
  }

  .mobile-bottom-sheet.active {
    transform: translateY(0);
    visibility: visible;
  }

  .sheet-handle-bar {
    width: 36px;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 2px;
    margin: 10px auto 4px;
  }

  .sheet-header {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sheet-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sheet-header-icon {
    width: 18px;
    height: 18px;
    fill: #0847aa;
  }

  .sheet-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
  }

  .sheet-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .sheet-body {
    padding: 8px 12px;
    overflow-y: auto;
  }

  .sort-options-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sort-radio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .sort-radio-item:active,
  .sort-radio-item.active {
    background-color: #eff6ff;
    border-color: #bfdbfe;
  }

  .sort-radio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .sort-radio-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
  }

  .sort-radio-item.active .sort-radio-name {
    color: #0847aa;
  }

  .sort-radio-hint {
    font-size: 10.5px;
    color: #64748b;
  }

  .sort-radio-input {
    display: none;
  }

  .sort-radio-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.15s ease;
    flex-shrink: 0;
  }

  .sort-radio-check svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .sort-radio-item.active .sort-radio-check {
    background-color: #0847aa;
    border-color: #0847aa;
  }

  .sort-radio-item.active .sort-radio-check svg {
    opacity: 1;
  }

  /* 10. NATIVE SLIDE-OUT FILTER DRAWER */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 1050;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .sidebar-backdrop.active {
    display: block !important;
  }

  .archive-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 86vw);
    height: 100vh;
    max-height: 100vh;
    z-index: 1100;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    pointer-events: none;
  }

  .archive-sidebar.mobile-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 14px;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .sidebar-header-icon {
    width: 16px;
    height: 16px;
    fill: #0847aa;
  }

  .sidebar-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
  }

  .sidebar-active-pill {
    display: inline-flex !important;
    background-color: #0847aa;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
  }

  .sidebar-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sidebar-close-btn {
    display: flex !important;
    width: 30px;
    height: 30px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #475569;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .sidebar-content-scroll {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
  }

  .mobile-sidebar-footer {
    display: flex !important;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 14px;
    gap: 10px;
    z-index: 10;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  }

  .btn-sidebar-reset {
    flex: 1;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
  }

  .btn-sidebar-apply {
    flex: 2;
    height: 42px;
    border: none;
    border-radius: 8px;
    background-color: #0847aa;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(8, 71, 170, 0.25);
  }
}

