/*
 * General LED — mobile layout layer
 *
 * This file is loaded after the theme and WooCommerce product effects styles.
 * Keep mobile-only layout decisions here. Desktop primitives live in
 * style.css; product-only motion lives in product-effects.css.
 */

/* Desktop category markup is replaced by the mobile drawer below. */
.site-header .category-panel-backdrop,
.site-header .category-panel-mobile-header,
.site-header .category-panel-mobile-links,
.site-header .category-panel-mobile-section-title,
.site-header .category-panel-close {
  display: none;
}

.site-header .category-tree-mobile {
  display: none;
}

@media (max-width: 820px) {
  :root {
    --general-topbar-height: 50px;
    --general-mobile-control-size: clamp(46px, 14vw, 52px);
    --general-mobile-gutter: 14px;
  }

  html,
  body {
    max-width: 100%;
  }

  @supports (overflow: clip) {
    html,
    body {
      overflow-x: clip;
    }
  }

  @supports not (overflow: clip) {
    body {
      overflow-x: hidden;
    }
  }

  /* Fixed-height brand strip and one stable mobile header grid. */
  .site-header {
    position: sticky;
    top: var(--general-sticky-offset);
    z-index: 1000;
    overflow: visible;
    overflow-anchor: none;
    isolation: isolate;
    transition: box-shadow 0.22s ease, background-color 0.22s ease;
  }

  .site-header.is-mobile-nav-compact {
    box-shadow: 0 10px 24px rgba(16, 20, 24, 0.1);
  }

  .site-header.is-mobile-nav-compact .main-nav {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(16, 20, 24, 0.08);
  }

  .site-header .welcome-bar,
  .site-header .welcome-inner {
    height: var(--general-topbar-height);
    min-height: var(--general-topbar-height);
  }

  .site-header .welcome-bar {
    overflow: hidden;
  }

  .site-header .welcome-inner {
    display: flex;
    width: 100%;
    min-width: 100%;
    align-items: center;
    justify-content: center;
    padding-inline: var(--general-mobile-gutter);
    font-size: 13px;
  }

  .site-header .sublineas-logo {
    display: block;
    width: min(800px, 100%);
    max-width: 100%;
    height: auto;
    max-height: 38px;
    object-fit: contain;
    object-position: center;
  }

  .site-header .main-nav {
    position: relative;
    overflow: visible;
  }

  .site-header .nav-inner,
  .site-header.is-mobile-nav-compact .nav-inner {
    display: grid;
    grid-template-columns:
      var(--general-mobile-control-size)
      minmax(0, 1fr)
      minmax(0, 1fr)
      var(--general-mobile-control-size);
    grid-template-rows: 56px 42px;
    align-items: center;
    column-gap: 8px;
    row-gap: 8px;
    min-height: 0;
    padding: 10px 0 12px;
  }

  .site-header .brand,
  .site-header .shop-link,
  .site-header .locals-link,
  .site-header .nav-inner > .search-form:not(.mobile-inline-search) {
    display: none;
  }

  .site-header .nav-inner > .mobile-inline-search.search-form {
    grid-column: 2 / 4;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    width: 100%;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    align-items: stretch;
    justify-self: stretch;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(20, 32, 36, 0.08);
  }

  .site-header .mobile-inline-search.search-form input[type="search"] {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    min-height: 0;
    padding: 0 10px 0 14px;
    font-size: 14px;
    font-weight: 700;
  }

  .site-header .mobile-inline-search.search-form input[type="search"]::-webkit-search-cancel-button {
    width: 19px;
    height: 19px;
    margin: 0 6px 0 4px;
    border-radius: 999px;
    background:
      linear-gradient(45deg, transparent 43%, #3d6fa5 44%, #3d6fa5 56%, transparent 57%),
      linear-gradient(-45deg, transparent 43%, #3d6fa5 44%, #3d6fa5 56%, transparent 57%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 17px 17px;
    cursor: pointer;
    opacity: 0.92;
    -webkit-appearance: none;
    appearance: none;
  }

  .site-header .mobile-inline-search.search-form button {
    grid-column: 2;
    grid-row: 1;
    width: 48px;
    min-height: 0;
    padding: 0;
    background: transparent;
    color: var(--brand-dark);
    font-size: 0;
  }

  .site-header .mobile-inline-search.search-form button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .site-header .category-trigger,
  .site-header.is-mobile-nav-compact .category-trigger {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    width: var(--general-mobile-control-size);
    min-width: var(--general-mobile-control-size);
    max-width: var(--general-mobile-control-size);
    height: var(--general-mobile-control-size);
    min-height: var(--general-mobile-control-size);
    max-height: var(--general-mobile-control-size);
    align-items: center;
    justify-content: center;
    justify-self: start;
    gap: 0;
    padding: 0;
    border-radius: 14px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .site-header .category-trigger-label {
    display: none;
  }

  .site-header .quick-actions,
  .site-header.is-mobile-nav-compact .quick-actions {
    display: contents;
  }

  .site-header .quick-actions .cart-link,
  .site-header.is-mobile-nav-compact .quick-actions .cart-link {
    grid-column: 4;
    grid-row: 1;
    display: inline-flex;
    width: var(--general-mobile-control-size);
    min-width: var(--general-mobile-control-size);
    max-width: var(--general-mobile-control-size);
    height: var(--general-mobile-control-size);
    min-height: var(--general-mobile-control-size);
    max-height: var(--general-mobile-control-size);
    align-items: center;
    justify-content: center;
    justify-self: end;
    padding: 0;
    border-radius: 14px;
  }

  .site-header .quick-actions .login-link,
  .site-header .quick-actions .whatsapp-link,
  .site-header.is-mobile-nav-compact .quick-actions .login-link,
  .site-header.is-mobile-nav-compact .quick-actions .whatsapp-link {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition:
      max-height 0.24s ease,
      min-height 0.24s ease,
      height 0.24s ease,
      padding-block 0.24s ease,
      opacity 0.18s ease,
      transform 0.24s ease,
      visibility 0.24s ease;
  }

  .site-header .quick-actions .login-link {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .site-header .quick-actions .whatsapp-link {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  .site-header .quick-actions .login-link::after {
    content: "Mi cuenta";
  }

  .site-header .quick-actions .whatsapp-link::after {
    content: "WhatsApp";
  }

  .site-header .quick-actions .login-link svg,
  .site-header .quick-actions .whatsapp-link svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
  }

  .site-header .cart-count {
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    font-size: 12px;
    line-height: 21px;
  }

  .site-header.is-mobile-nav-compact .nav-inner {
    grid-template-rows: 50px 0;
    row-gap: 0;
    padding: 7px 0 9px;
  }

  .site-header.is-mobile-nav-compact .category-trigger,
  .site-header.is-mobile-nav-compact .quick-actions .cart-link {
    height: 50px;
    min-height: 50px;
    max-height: 50px;
  }

  .site-header.is-mobile-nav-compact .quick-actions .login-link,
  .site-header.is-mobile-nav-compact .quick-actions .whatsapp-link {
    height: 0;
    min-height: 0;
    max-height: 0;
    padding-block: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
  }

  body.is-category-menu-open {
    overflow: hidden;
  }

  .site-header .category-panel {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    padding: 0;
    background: transparent;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease;
  }

  .site-header .category-panel[hidden] {
    display: none;
  }

  .site-header .category-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header .category-panel-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(5, 15, 20, 0.56);
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .site-header .category-panel.is-open .category-panel-backdrop {
    opacity: 1;
  }

  .site-header .category-panel-inner {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    width: min(88vw, 380px);
    max-width: calc(100% - 36px);
    height: 100%;
    max-height: 100dvh;
    min-height: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 18px 16px max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    box-shadow: 16px 0 36px rgba(5, 15, 20, 0.22);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
  }

  .site-header .category-panel.is-open .category-panel-inner {
    transform: translateX(0);
  }

  .site-header .category-panel-mobile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-header .category-panel-mobile-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .site-header .category-panel-mobile-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.08;
  }

  .site-header .category-panel-close {
    position: relative;
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }

  .site-header .category-panel-close svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2.25;
  }

  .site-header .category-panel-mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 16px 0 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-header .category-panel-mobile-links a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid rgba(34, 151, 211, 0.18);
    border-radius: 10px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
  }

  .site-header .category-panel-mobile-links a:focus-visible,
  .site-header .category-panel-mobile-links a:hover {
    border-color: rgba(34, 151, 211, 0.45);
    background: var(--blue-soft);
  }

  .site-header .category-panel-mobile-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 8px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
  }

  .site-header .category-panel-mobile-section-title small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }

  .site-header .category-panel-intro {
    display: none;
  }

  .site-header .category-tree {
    display: none;
  }

  .site-header .category-tree-mobile {
    display: block;
  }

  .site-header .category-accordion-list {
    display: grid;
    gap: 8px;
  }

  .site-header .category-accordion-node {
    border: 1px solid rgba(199, 208, 206, 0.82);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }

  .site-header .category-branch-toggle {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  .site-header .category-branch-toggle::-webkit-details-marker {
    display: none;
  }

  .site-header .category-branch-toggle:hover,
  .site-header .category-branch-toggle:focus-visible {
    background: var(--blue-soft);
  }

  .site-header .category-branch-toggle > span:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .site-header .category-branch-toggle strong {
    color: var(--brand-dark);
    font-size: 14px;
    line-height: 1.18;
  }

  .site-header .category-branch-toggle small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .site-header .category-accordion-chevron {
    flex: 0 0 auto;
    color: var(--brand);
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-2px);
    transition: transform 0.2s ease;
  }

  .site-header .category-accordion-node[open] .category-accordion-chevron {
    transform: rotate(180deg) translateY(2px);
  }

  .site-header .category-accordion-panel {
    padding: 0 12px 12px;
    border-top: 1px solid rgba(199, 208, 206, 0.58);
  }

  .site-header .category-accordion-panel .category-accordion-list {
    gap: 0;
  }

  .site-header .category-accordion-panel .category-accordion-node {
    border: 0;
    border-bottom: 1px solid rgba(199, 208, 206, 0.42);
    border-radius: 0;
  }

  .site-header .category-accordion-panel .category-branch-toggle {
    min-height: 44px;
    padding: 8px 0;
  }

  .site-header .category-accordion-panel .category-branch-toggle strong {
    font-size: 13px;
  }

  .site-header .category-accordion-panel .category-accordion-panel {
    padding: 0 0 0 12px;
    border-top: 0;
  }

  .site-header .category-accordion-panel > .category-subcategory-link,
  .site-header .category-accordion-panel .category-accordion-panel > .category-subcategory-link {
    border-bottom: 1px solid rgba(199, 208, 206, 0.42);
  }

  .site-header .category-subcategory-link {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(199, 208, 206, 0.42);
    color: var(--muted);
    font-size: 13px;
  }

  .site-header .category-subcategory-link > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .site-header .category-subcategory-link strong {
    color: inherit;
    font-size: inherit;
    line-height: 1.2;
  }

  .site-header .category-subcategory-link small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
  }

  .site-header .category-subcategory-link:hover,
  .site-header .category-subcategory-link:focus-visible {
    color: var(--brand-dark);
  }

  /* Home rails are horizontal touch regions, not shrinking grids. */
  body.home .promo-grid[data-promo-slider],
  body.home .products-section .product-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  body.home .promo-grid[data-promo-slider]::-webkit-scrollbar,
  body.home .products-section .product-grid::-webkit-scrollbar {
    display: none;
  }

  body.home .promo-grid[data-promo-slider] {
    gap: 10px;
    min-height: 74px;
    padding: 8px;
    scroll-padding-inline: 8px;
    scroll-snap-type: x mandatory;
  }

  body.home .promo-grid[data-promo-slider] .promo-item {
    flex: 0 0 calc(100% - 2px);
    width: calc(100% - 2px);
    scroll-snap-align: center;
  }

  body.home .category-wrap {
    padding-inline: 42px;
  }

  body.home .category-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 40vw);
    grid-template-columns: none;
    width: 100%;
    gap: 14px;
    padding: 8px 0 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  body.home .category-rail::-webkit-scrollbar {
    display: none;
  }

  body.home .light-guide-section {
    padding: 0 0 30px;
  }

  body.home .light-guide-heading {
    display: block;
    margin-bottom: 12px;
  }

  body.home .light-guide-heading > p {
    margin-top: 8px;
  }

  body.home .light-guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.home .light-guide-scene {
    aspect-ratio: 1.28;
  }

  body.home .light-guide-scene-caption {
    right: 10px;
    bottom: 10px;
  }

  body.home .light-guide-controls {
    padding: 14px;
  }

  body.home .light-guide-control-heading {
    align-items: start;
    gap: 8px;
  }

  body.home .light-guide-control-heading output {
    font-size: 10px;
  }

  body.home .light-guide-tone-buttons {
    gap: 6px;
  }

  body.home .light-guide-tone-buttons button {
    justify-items: center;
    padding: 9px 5px;
    text-align: center;
  }

  body.home .light-guide-tone-buttons strong {
    font-size: 11px;
  }

  body.home .light-guide-tone-buttons small {
    font-size: 9px;
  }

  body.home .light-guide-result {
    padding: 22px 18px;
  }

  body.home .light-guide-result h3 {
    max-width: none;
  }

  body.home .products-section .product-grid {
    gap: 14px;
    padding: 4px 0 18px;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
  }

  body.home .products-section .product-card {
    flex: 0 0 min(88vw, 330px);
    width: min(88vw, 330px);
    scroll-snap-align: start;
  }
}

/* Product page mobile flow and horizontal variation carousels. */
@media (max-width: 820px) {
  /* Product flow: breadcrumb, title, gallery, purchase, support, copy. */
  .single-product-page {
    padding-top: 8px;
  }

  .single-product-page > .frame,
  .single-product-page .single-product-hero,
  .single-product-page .single-product-info-grid {
    width: 100%;
    max-width: none;
  }

  .single-product-page .single-product-breadcrumb {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin: 0;
    padding: 10px 14px 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
  }

  .single-product-page .single-product-breadcrumb a {
    color: var(--brand-dark);
  }

  .single-product-page .single-product-breadcrumb a,
  .single-product-page .single-product-breadcrumb span {
    min-width: 0;
  }

  .single-product-page .single-product-breadcrumb span:last-child {
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .single-product-page .single-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }

  .single-product-page .single-product-summary-panel {
    display: contents;
  }

  .single-product-page .single-product-summary-panel > * {
    grid-column: 1;
    min-width: 0;
  }

  .single-product-page .single-product-summary-panel > h1 {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 4px 14px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(20px, 5.6vw, 27px);
    line-height: 1.12;
  }

  .single-product-page .single-product-media-panel {
    order: 2;
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: clip;
    border-top: 1px solid rgba(199, 208, 206, 0.7);
    border-bottom: 1px solid rgba(199, 208, 206, 0.7);
  }

  .single-product-page .single-product-price {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 14px 14px 8px;
    background: #fff;
    font-size: 20px;
  }

  .single-product-page .single-product-variable-cart {
    order: 3;
  }

  .single-product-page .single-product-variable-price {
    order: 4;
  }

  .single-product-page .single-product-native-cart:not(.single-product-variable-cart),
  .single-product-page .single-product-buy {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .single-product-page .single-product-metrics {
    order: 5;
    width: 100%;
    padding: 0 14px 12px;
    background: #fff;
  }

  .single-product-page .general-product-tech-icons {
    order: 6;
    width: 100%;
  }

  .single-product-page .single-product-support {
    order: 8;
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
  }

  .single-product-page .single-product-summary-copy {
    order: 9;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: var(--surface);
  }

  .single-product-page .single-product-info-grid {
    margin-top: 0;
  }

  .single-product-page .single-product-info-grid article {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .single-product-page .single-product-variable-cart {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    overflow-x: clip;
  }

  .single-product-page .single-product-variable-cart,
  .single-product-page .single-product-variable-cart form.variations_form,
  .single-product-page .single-product-variable-cart form.variations_form > *,
  .single-product-page .single-product-variable-cart table.variations,
  .single-product-page .single-product-variable-cart table.variations tbody,
  .single-product-page .single-product-variable-cart table.variations tr,
  .single-product-page .single-product-variable-cart table.variations th,
  .single-product-page .single-product-variable-cart table.variations td {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .single-product-page .single-product-variable-cart table.variations {
    table-layout: fixed;
  }

  /* Do not let the form width rule expand WooCommerce's hidden alert node. */
  .single-product-page .single-product-variable-cart form.variations_form > .screen-reader-text,
  .single-product-page .single-product-variable-cart form.variations_form > .reset_variations_alert {
    position: absolute;
    width: 1px;
    min-width: 1px;
    max-width: 1px;
    height: 1px;
    min-height: 1px;
    max-height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* WooCommerce attributes: horizontal touch carousel. */
  .single-product-page .single-product-variable-cart .general-variation-options,
  .single-product-page .single-product-variable-cart .single-product-cct-card-grid {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
    margin: 0;
    padding: 2px 2px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .single-product-page .single-product-variable-cart .general-variation-options::-webkit-scrollbar,
  .single-product-page .single-product-variable-cart .single-product-cct-card-grid::-webkit-scrollbar {
    display: none;
  }

  .single-product-page .single-product-variable-cart .general-variation-option {
    flex: 0 0 clamp(104px, 34vw, 132px);
    width: clamp(104px, 34vw, 132px);
    min-width: clamp(104px, 34vw, 132px);
    scroll-snap-align: start;
  }

  /* Color/CCT cards use a larger slide but keep the next option partially visible. */
  .single-product-page .single-product-variable-cart .single-product-cct-guide,
  .single-product-page .single-product-variable-cart .single-product-cct-card-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .single-product-page .single-product-variable-cart .single-product-cct-card {
    flex: 0 0 min(84vw, 320px);
    width: min(84vw, 320px);
    min-width: min(84vw, 320px);
    scroll-snap-align: start;
  }

  /* Make horizontal attribute carousels discoverable without covering the cards. */
  .single-product-page .single-product-variable-cart .single-product-cct-carousel,
  .single-product-page .single-product-variable-cart .single-product-attribute-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .single-product-page .single-product-variable-cart [data-general-attribute-carousel]::before,
  .single-product-page .single-product-variable-cart [data-general-attribute-carousel]::after {
    position: absolute;
    top: 2px;
    bottom: 12px;
    z-index: 1;
    width: 28px;
    pointer-events: none;
    content: "";
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .single-product-page .single-product-variable-cart [data-general-attribute-carousel]::before {
    left: 0;
    background: linear-gradient(90deg, rgba(248, 250, 249, 0.98), rgba(248, 250, 249, 0));
  }

  .single-product-page .single-product-variable-cart [data-general-attribute-carousel]::after {
    right: 0;
    background: linear-gradient(270deg, rgba(248, 250, 249, 0.98), rgba(248, 250, 249, 0));
  }

  .single-product-page .single-product-variable-cart [data-general-attribute-carousel].has-overflow:not(.is-at-start)::before,
  .single-product-page .single-product-variable-cart [data-general-attribute-carousel].has-overflow:not(.is-at-end)::after {
    opacity: 1;
  }

  .single-product-page .single-product-variable-cart .single-product-attribute-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(34, 151, 211, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 12px rgba(16, 20, 24, 0.12);
    color: var(--brand-dark);
    font-size: 23px;
    font-weight: 850;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
  }

  .single-product-page .single-product-variable-cart .single-product-attribute-carousel-arrow.is-prev {
    left: 3px;
  }

  .single-product-page .single-product-variable-cart .single-product-attribute-carousel-arrow.is-next {
    right: 3px;
  }

  .single-product-page .single-product-variable-cart .single-product-attribute-carousel-arrow:focus-visible {
    outline: 3px solid rgba(34, 151, 211, 0.28);
    outline-offset: 2px;
  }

  .single-product-page .single-product-variable-cart .single-product-attribute-carousel-arrow[hidden],
  .single-product-page .single-product-variable-cart .single-product-attribute-carousel-hint[hidden] {
    display: none;
  }

  .single-product-page .single-product-variable-cart .single-product-attribute-carousel-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin: -2px 4px 1px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
  }

  .single-product-page .single-product-variable-cart .single-product-attribute-carousel-hint::before {
    content: "↔";
    color: var(--brand);
    font-size: 14px;
    line-height: 1;
  }

  .single-product-page .single-product-main-image {
    grid-column: auto;
    grid-row: auto;
    justify-items: center;
    width: 100%;
    height: min(82vw, 420px);
    aspect-ratio: auto;
    touch-action: pan-y;
  }

  .single-product-page .single-product-main-image img {
    justify-self: center;
    width: min(100%, 320px);
    max-width: 100%;
    height: auto;
    max-height: 100%;
  }

  .single-product-page .single-product-thumbs-carousel {
    flex-direction: row;
    grid-column: auto;
    grid-row: auto;
    width: min(100%, 420px);
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 2px auto 0;
    padding-inline: 6px;
  }

  .single-product-page .single-product-thumbs-carousel .single-product-thumbs {
    flex-direction: row;
    width: auto;
    max-width: calc(100% - 92px);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
  }

  .single-product-page .single-product-thumbs-carousel .single-product-thumb {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 520px) {
  .site-header .welcome-inner {
    padding-inline: 10px;
  }

  .site-header .sublineas-logo {
    max-height: 36px;
  }

  .single-product-page .single-product-summary-panel > h1 {
    font-size: 20px;
  }

  .single-product-page .single-product-thumbs-carousel {
    width: min(100%, 360px);
    padding-inline: 4px;
    gap: 6px;
  }

  .single-product-page .single-product-thumbs-carousel .single-product-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 360px) {
  :root {
    --general-mobile-control-size: 44px;
  }

  .site-header .nav-inner,
  .site-header.is-mobile-nav-compact .nav-inner {
    column-gap: 6px;
  }

  .site-header .quick-actions .login-link,
  .site-header .quick-actions .whatsapp-link {
    font-size: 11px;
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .site-header .nav-inner,
  .site-header.is-mobile-nav-compact .nav-inner,
  .site-header .quick-actions .login-link,
  .site-header .quick-actions .whatsapp-link {
    transition: none;
  }

  .site-header .category-panel,
  .site-header .category-panel-backdrop,
  .site-header .category-panel-inner {
    transition: none;
  }
}

/* Checkout: collapse the desktop two-column layout before it can squeeze the form. */
@media (max-width: 820px) {
  body.woocommerce-checkout .page-shell {
    padding: 14px 0 34px;
  }

  body.woocommerce-checkout .page-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    padding-inline: var(--general-mobile-gutter);
  }

  body.woocommerce-checkout .entry-content,
  body.woocommerce-checkout .general-checkout-page,
  body.woocommerce-checkout .general-checkout-form,
  body.woocommerce-checkout .general-checkout-header,
  body.woocommerce-checkout .general-checkout-layout,
  body.woocommerce-checkout .general-checkout-details-panel,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout .general-checkout-summary-panel,
  body.woocommerce-checkout .general-checkout-card,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .general-checkout-review-order,
  body.woocommerce-checkout .general-checkout-payment {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.woocommerce-checkout .general-checkout-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  body.woocommerce-checkout .general-checkout-header > *,
  body.woocommerce-checkout .general-checkout-layout > *,
  body.woocommerce-checkout .general-checkout-details-panel > *,
  body.woocommerce-checkout #customer_details > *,
  body.woocommerce-checkout .general-checkout-card > *,
  body.woocommerce-checkout .general-checkout-summary-panel > * {
    min-width: 0;
  }

  body.woocommerce-checkout .general-checkout-header h1 {
    font-size: clamp(28px, 8vw, 36px);
    overflow-wrap: anywhere;
  }

  body.woocommerce-checkout .general-checkout-header p {
    max-width: none;
  }

  body.woocommerce-checkout .general-checkout-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.woocommerce-checkout .general-checkout-summary-panel {
    position: static;
    top: auto;
    order: 2;
  }

  body.woocommerce-checkout .general-checkout-field-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  body.woocommerce-checkout .general-checkout-page .form-row,
  body.woocommerce-checkout .general-checkout-page input.input-text,
  body.woocommerce-checkout .general-checkout-page textarea,
  body.woocommerce-checkout .general-checkout-page select,
  body.woocommerce-checkout .general-checkout-page .select2-container,
  body.woocommerce-checkout .general-checkout-page .select2-container .select2-selection--single {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.woocommerce-checkout .general-checkout-page .form-row .description {
    color: var(--muted) !important;
  }

  body.woocommerce-checkout .general-checkout-page input.input-text,
  body.woocommerce-checkout .general-checkout-page textarea,
  body.woocommerce-checkout .general-checkout-page select {
    min-height: 44px;
  }

  body.woocommerce-checkout .general-checkout-coupon-form {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-checkout .general-checkout-coupon-form button {
    width: 100%;
  }

  body.woocommerce-checkout .general-checkout-review-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
    box-sizing: border-box;
  }

  body.woocommerce-checkout .general-checkout-review-table tr,
  body.woocommerce-checkout .general-checkout-review-table th,
  body.woocommerce-checkout .general-checkout-review-table td,
  body.woocommerce-checkout .general-checkout-review-product,
  body.woocommerce-checkout .general-checkout-review-copy {
    min-width: 0;
  }

  body.woocommerce-checkout .general-checkout-review-table th,
  body.woocommerce-checkout .general-checkout-review-table td,
  body.woocommerce-checkout .general-checkout-review-copy strong,
  body.woocommerce-checkout .general-checkout-review-copy .variation {
    overflow-wrap: anywhere;
  }

  body.woocommerce-checkout .general-checkout-review-table .product-total,
  body.woocommerce-checkout .general-checkout-review-table tfoot td {
    white-space: nowrap;
  }

  body.woocommerce-checkout #payment,
  body.woocommerce-checkout #payment ul.payment_methods,
  body.woocommerce-checkout #payment .form-row,
  body.woocommerce-checkout .general-checkout-payment-methods,
  body.woocommerce-checkout .general-checkout-place-order,
  body.woocommerce-checkout #payment #place_order {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.woocommerce-checkout #payment .general-checkout-place-order {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-checkout #payment #place_order {
    min-height: 54px;
  }

  body.woocommerce-cart .general-cart-totals .shipping-calculator-button {
    width: 100%;
    min-height: 44px;
  }

  body.woocommerce-cart .general-cart-totals .shipping-calculator-form {
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
  }

  body.woocommerce-cart .general-cart-totals .general-shipping-form-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.woocommerce-cart .general-cart-totals .general-shipping-form-progress {
    width: 100%;
  }

  body.woocommerce-cart .general-cart-totals .general-shipping-form-fields {
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart .general-cart-totals .general-shipping-field-full {
    grid-column: auto;
  }

  body.woocommerce-cart .general-cart-totals .shipping-calculator-form select,
  body.woocommerce-cart .general-cart-totals .shipping-calculator-form input,
  body.woocommerce-cart .general-cart-totals .shipping-calculator-form .button {
    min-height: 44px;
    font-size: 16px;
  }

  body.woocommerce-cart .general-cart-totals .shipping-calculator-form .select2-selection--single {
    min-height: 44px;
  }

  body.woocommerce-cart .general-cart-totals .shipping-calculator-form .select2-selection__rendered {
    line-height: 42px;
    font-size: 16px;
  }
}
