/* ==========================================================================
   mobile-first.css
   Mobile-first responsive layer for Ven868.

   Loaded LAST in app/Includes/header.php so it only overrides legacy rules
   inside the breakpoints below. Desktop (>= 768px) keeps its current layout.
   ========================================================================== */

/* ---------- Shared, breakpoint-independent resets ---------- */
.v868-mobile-section-head {
  display: none;
}

/* Focus-visible safety net: every interactive control keeps a visible ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* The desktop "Contacto" pill scrolls to the footer, which phones do not render. */
.nav-contact-mobile {
  display: none;
}

.user-wrapper .user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Header hide-on-scroll (class toggle + CSS transition) ---------- */
.header-container {
  transition: transform 0.28s ease;
  -webkit-transition: transform 0.28s ease;
}

.header-container.is-scrolled-hidden {
  transform: translateY(-100%);
}

/* ---------- Reduced motion: keep the header static, no sliding ---------- */
@media (prefers-reduced-motion: reduce) {
  .header-container {
    transition: none;
  }
}

/* ==========================================================================
   PHONES  (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {

  /* ---------- Global ---------- */
  html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 16px;
    overflow-x: clip; /* global horizontal overflow containment */
  }

  body {
    overflow-x: hidden;
  }

  /* overflow-x:hidden silently disables position:sticky descendants.
     clip keeps the horizontal guard without breaking sticky. */
  @supports (overflow-x: clip) {
    body {
      overflow-x: clip;
    }
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .promo-ticker {
    padding: 6px 0;
    font-size: 12px;
  }

  /* ==========================================================================
     TOP HEADER — two compact rows: [logo ... actions] / [search]
     ========================================================================== */
  .header-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    align-items: center;
    gap: 8px 10px;
    padding: 8px 12px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px -20px rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .left-section {
    grid-area: brand;
    width: auto;
    min-width: 0;
    gap: 8px;
    text-align: left;
  }

  .left-section .logo {
    font-size: 21px;
    letter-spacing: -0.5px;
    white-space: nowrap;
  }

  /* Category access happens through the always-visible horizontal strip. */
  .left-section .category-wrapper {
    display: block;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .right-section {
    grid-area: actions;
    width: auto;
    justify-content: flex-end;
    gap: 2px;
    text-align: right;
  }

  .nav-icons {
    gap: 2px;
    font-size: 20px;
  }

  /* Hide the barcode shortcut on phones: it does not fit the thumb zone. */
  .nav-icons > a.item {
    display: none;
  }

  .nav-icons .cart-btn {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 4px;
    border-radius: 12px;
}

/* Focus-visible state for keyboard navigation */
.nav-icons .cart-btn:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    background: #e2e8f0;
  }

  .nav-icons .cart-btn:hover,
  .nav-icons .cart-btn:active {
    background: #f1f5f9;
  }

  .cart-icon-wrapper svg {
    width: 24px;
    height: 24px;
  }

  .cart-count {
    top: 0;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 10px;
    border-color: #fff;
  }

  .user-wrapper {
    margin-left: 0;
  }

  .user-wrapper .user-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
    color: #334155;
  }

  .user-wrapper .user-btn:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
  }

  .user-wrapper .user-btn:hover,
  .user-wrapper .user-btn:active {
    background: #f1f5f9;
  }

  .user-wrapper.is-open .user-dropdown,
  .user-wrapper:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* On touch screens the click toggle is authoritative (hover is sticky). */
  .user-wrapper:not(.is-open) .user-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
  }

  .user-dropdown {
    top: calc(100% + 8px);
    right: 0;
    width: min(240px, calc(100vw - 24px));
    z-index: 1200;
  }

  .user-dropdown a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }

  /* ---------- Search ---------- */
  .search-section {
    grid-area: search;
    order: 0;
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 3px 3px 3px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
  }

  .search-section:focus-within {
    background: #fff;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
  }

  .search-section form {
    width: 100%;
    align-items: center;
  }

  .search-input {
    padding: 12px 8px;
    font-size: 16px; /* keeps iOS from zooming on focus */
    min-height: 44px;
    box-sizing: border-box;
  }

  .search-icon-group {
    gap: 4px;
  }

  .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .search-btn i {
    font-size: 15px;
  }

  .search-section .search-autocomplete {
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 16px 16px;
  }

  /* ==========================================================================
     CATEGORY NAV — horizontal scrolling pill strip
     ========================================================================== */
  .main-nav {
    display: block !important;
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
  }

  .main-nav .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .nav-list {
    padding: 8px 12px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list::after {
    display: none;
  }

  .nav-list li {
    margin: 0;
    scroll-snap-align: start;
  }

  .nav-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus-visible state for keyboard/touch navigation */
.nav-list li a:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    background: #e2e8f0;
}

  .nav-list li a .icon {
    font-size: 14px;
  }

  /* Phones never render the footer, so "Contacto" goes to the Empresa page. */
  .nav-list .nav-contact-desktop {
    display: none !important;
  }

  .nav-list .nav-contact-mobile {
    display: list-item;
  }

  .nav-list li a:hover,
  .nav-list li a:active {
    background: #e2e8f0;
    color: #0e7490;
  }

  .nav-list li a.active {
    background: linear-gradient(135deg, #0e7490, #2563eb);
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(37, 99, 235, 0.75);
  }

  .nav-list li a.active .icon {
    color: #fff;
  }

  /* ==========================================================================
     HOME PAGE
     ========================================================================== */

  /* The decorative mesh is pointless on a tall phone page and expensive. */
  .v868-home-canvas {
    display: none !important;
  }

  .v868-home-page {
    border-radius: 1rem;
    padding-bottom: 0.5rem;
  }

  .v868-mobile-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0.35rem 0 0;
    padding: 0 2px;
  }

  .v868-mobile-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .v868-mobile-section-head span {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Category cards stack vertically on mobile instead of horizontal scrolling. */
  .v868-home-page .cardrow-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: none;
    margin: 0.5rem 0 1rem;
    padding: 0.2rem 12px 0.9rem;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    overscroll-behavior-x: visible;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: auto;
  }

  .v868-home-page .cardrow-container::-webkit-scrollbar {
    display: none;
  }

  .v868-home-page .cardrow-grid-container {
    flex: none;
    width: 100%;
    min-width: 100%;
    padding: 1rem;
    border-radius: 1.1rem;
    scroll-snap-align: none;
  }

  .v868-home-page .cardrow-grid-container:hover {
    transform: none;
    animation: none;
  }

  .v868-home-page .cardrow-title {
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    font-size: 0.95rem;
  }

  .v868-home-page .cardrow-subgrid {
    gap: 0.5rem;
  }

  .v868-home-page .cardrow-subitem {
    padding: 0.45rem;
    border-radius: 0.7rem;
  }

  .v868-home-page .img-placeholder {
    height: 82px;
    margin-bottom: 0.4rem;
  }

  .v868-home-page .cardrow-subitem p {
    min-height: 2.4em;
    font-size: 0.7rem;
  }

  .v868-home-page .cardrow-bottomtitle {
    padding-top: 0.75rem;
  }

  .v868-home-page .cardrow-bottomtitle a {
    min-height: 36px;
    padding: 0.3rem 0.6rem;
  }

  /* Each banner is its own card — one image per line on mobile. */
  .b2b-banner-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin: 18px 0 14px;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .b2b-banner-link img {
    aspect-ratio: auto;
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  .info-grid {
    gap: 12px;
    margin-bottom: 24px;
  }

  .info-card {
    padding: 16px;
    border-radius: 12px;
  }

  /* ==========================================================================
     CATALOG (vercat2.php)
     ========================================================================== */
  .v868-catalog-layout {
    display: block !important;
    margin-top: 1rem;
  }

  /* "Misma Categoría" becomes a sticky horizontal chip strip. */
  .v868-catalog-page .sidebar-container.v868-category-strip {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 60;
    flex: none;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0 0 0.9rem;
    padding: 0.7rem 0.75rem 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .v868-catalog-page .v868-sidebar-title {
    margin: 0 0 0.45rem !important;
    padding: 0 0 0.45rem !important;
    border: 0 !important;
    color: #0e7490 !important;
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .v868-sidebar-scroll {
    margin: 0;
    padding-bottom: 0.15rem;
    max-height: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .v868-sidebar-scroll::-webkit-scrollbar {
    display: none;
  }

  .v868-sidebar-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.45rem !important;
    width: max-content;
  }

  .v868-sidebar-link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.76rem;
  }

  .v868-sidebar-link:hover {
    transform: none;
  }

  .v868-sidebar-ad-wrap {
    display: none !important;
  }

  .breadcrumb-container {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
  }

  .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .v868-catalog-page .breadcrumb a,
  .v868-catalog-page .breadcrumb span {
    flex: 0 0 auto;
  }

  /* Two products per row keeps the grid scannable on a phone. */
  .v868-catalog-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.6rem !important;
  }

  .v868-catalog-page .product-card {
    padding: 0.45rem !important;
    border-radius: 0.9rem;
  }

  .v868-catalog-page div.product-image {
    height: 116px;
    margin: 0.1rem 0.1rem 0.4rem;
    border-radius: 0.7rem;
  }

  .v868-catalog-page .product-info {
    padding: 0.55rem 0.5rem 0.6rem;
  }

  .v868-catalog-page .product-name {
    display: -webkit-box;
    min-height: 2.5em;
    margin-bottom: 0.35rem;
    overflow: hidden;
    font-size: 0.76rem !important;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .v868-catalog-page .product-category {
    margin-bottom: 0.25rem;
    padding: 0.12rem 0.35rem;
    font-size: 0.54rem !important;
  }

  .v868-catalog-page .product-pricing {
    margin-bottom: 0.35rem;
  }

  .v868-catalog-page .price-current {
    font-size: 1rem;
  }

  .v868-catalog-page .price-wholesale {
    padding: 0.15rem 0.3rem;
    font-size: 0.56rem;
  }

  .v868-catalog-page .price-tooltip {
    width: 12px;
    height: 12px;
    font-size: 8px;
    line-height: 12px;
  }

  .v868-catalog-page .product-wishlist {
    top: 0.45rem;
    right: 0.45rem;
    width: 28px;
    height: 28px;
  }

  .v868-catalog-page .product-wishlist svg {
    width: 14px;
    height: 14px;
  }

  .v868-catalog-page .product-badges {
    top: 0.45rem;
    left: 0.45rem;
  }

  .v868-catalog-page .badge-sale {
    padding: 0.15rem 0.35rem;
    font-size: 0.55rem;
  }

  /* Cart + "Preguntar" on one row to save vertical space. */
  .v868-catalog-page .product-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    gap: 0.3rem;
  }

  .v868-catalog-page .product-actions .btn {
    min-height: 36px;
    padding: 0.25rem 0.4rem;
    border-radius: 0.55rem;
    font-size: 0.65rem;
  }

  /* Hide 'Añadir' text on mobile, keep button compact */
  .v868-catalog-page .product-actions .btn .button-text {
    font-size: 0.55rem;
    padding: 0 0.2rem;
  }

  .v868-catalog-page .product-actions .vqa-ask-row {
    flex: 0 0 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 0.55rem !important;
    font-size: 0.8rem !important;
  }

  .v868-catalog-page .product-actions .vqa-ask-row span {
    display: block;
  }

  /* ==========================================================================
     FOOTER + BOTTOM STATUS BAR
     ========================================================================== */

  /* The full footer is desktop-only; phones navigate from the bottom bar. */
  .footer.v868-footer {
    display: none !important;
  }

  /* The footer used to clear the fixed bar — move that clearance to the page. */
  #page-wrapper {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, 0.5);
    z-index: 900;
  }

  .mobile-bottom-nav a {
    gap: 2px;
    min-height: 52px;
    border-radius: 12px;
    color: #64748b;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .mobile-bottom-nav a.is-active {
    color: #0e7490;
    background: rgba(6, 182, 212, 0.1);
  }

  .mobile-bottom-nav .nav-icon {
    margin-bottom: 0;
    font-size: 20px;
  }

  .mobile-bottom-nav .nav-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-bottom-nav .nav-badge {
    position: absolute;
    top: 5px;
    left: 50%;
    min-width: 16px;
    height: 16px;
    margin-left: 5px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4700;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
  }

  .mobile-bottom-nav .nav-badge[hidden] {
    display: none;
  }

  .mobile-nav-item {
    position: relative;
  }

  /* Overlays must always sit above the bottom bar. */
  .cart-overlay {
    z-index: 10000 !important;
  }

  .cart-drawer {
    z-index: 10001 !important;
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .whatsapp-float.v868-wa-float {
    right: 0.9rem;
    bottom: calc(64px + 0.9rem + env(safe-area-inset-bottom));
  }

  #scrollToTopBtn {
    right: 0.9rem;
    bottom: calc(64px + 0.9rem + 64px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }
}

/* Banners remain as separate items (2 columns) even on very small phones */
@media (max-width: 359px) {
  .v868-catalog-page .product-grid {
    grid-template-columns: 1fr !important;
  }

  .v868-home-page .cardrow-grid-container {
    flex-basis: 92%;
    min-width: 92%;
  }
}

/* Ensure b2b-banner-grid items are always separate, never stacked into one block */
@media (max-width: 767px) {
  .b2b-banner-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 12px 0 !important;
  }
  
  .b2b-banner-link {
    background: var(--v8-white) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
}

/* ==========================================================================
   TABLETS  (768px – 1023px)
   Light polish only; the desktop structure is preserved.
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-container {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
  }

  .left-section {
    order: 1;
    flex: 0 0 auto;
    width: auto;
  }

  .right-section {
    order: 3;
    flex: 0 0 auto;
    width: auto;
  }

  .search-section {
    order: 2;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin: 0 6px;
  }

  .search-input {
    font-size: 16px;
  }

  /* The horizontal strip is enough on tablets — no need for the burger. */
  .left-section .category-wrapper {
    display: none;
  }

  .main-nav {
    display: block !important;
    position: static;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .v868-footer__inner {
    padding: 0 1.25rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .v868-home-page .cardrow-container,
  .v868-sidebar-scroll,
  .nav-list {
    scroll-behavior: auto;
  }
}

/* ---------- Compact info links for phones ---------- */
.mobile-footer-links { display: none; }

@media (max-width: 767px) {
  .mobile-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
    padding: 18px 16px calc(84px + env(safe-area-inset-bottom, 0px));
    background: #0f172a;
    color: #cbd5e1;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
  }
  .mobile-footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .mobile-footer-links a:active { color: #7dd3fc; }
  .mobile-footer-links i {
    width: 18px;
    text-align: center;
    color: #7dd3fc;
    font-size: 0.85rem;
  }

  /* Five items need a slightly tighter label on 320px screens. */
  .mobile-bottom-nav .nav-label {
    font-size: 9px;
    letter-spacing: 0.02em;
  }
  .mobile-bottom-nav a {
    min-width: 0;
    padding: 0 2px;
  }

  /* Toasts stack above the sticky bottom nav / drawer instead of
     colliding with it, and stay inside the safe-area inset. */
  .toast-container {
    z-index: 10050;
    top: auto;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 12px);
    left: 12px;
    right: 12px;
    align-items: center;
  }
  .toast {
    width: 100%;
    max-width: none;
  }

  /* Sticky add-to-cart action bar on the product detail page (phones). */
  .v868-product-actions {
    position: sticky;
    bottom: 0;
    z-index: 890;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px -18px rgba(15, 23, 42, 0.45);
  }
  .v868-product-actions .v868-share-row { margin-bottom: 0; }
  .v868-product-actions .add-to-cart-btn,
  .v868-product-actions .vqa-ask-btn { min-height: 52px; }
}

/* ---------- vercat-foto3.php refinements (mobile/toChange2.txt) ---------- */

/* Product list: image at 90% width, centered, text separated + name enlarged. */
.v868-product-page .product-card .product-image img { width: 90%; height: auto; margin: 0 auto; }
.v868-product-page .product-card .v868-product-info { margin-top: 10px; }
.v868-product-page .product-card .v868-product-info .product-name { font-size: 1.05rem !important; }

@media (max-width: 767px) {
  .v868-subcat-nav { flex: 0 0 100% !important; }
  .v868-subcat-list { flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Subcategory menu: horizontal scroll text-only menu on mobile. */
  .v868-subcat-list > .v868-subcat-link {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    flex: 0 0 auto;
    justify-content: flex-start !important;
    color: var(--text) !important;
    font-weight: 600;
    white-space: nowrap;
  }
  .v868-subcat-list > .v868-subcat-link.v868-subcat-active {
    background: transparent !important;
    border: none !important;
    color: var(--primary) !important;
    font-weight: 700;
  }
  .v868-subcat-list > .v868-subcat-link .v868-subcat-count { display: none !important; }
}

