/* ONLINE PRICE MOBILE HEADER V2 */

.mobile-actions,
.mobile-menu {
  display:none;
}

@media(max-width:600px) {

  header.main-header.mobile-menu-ready {
    position:relative !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    min-height:76px !important;
    padding:12px 14px !important;
    box-sizing:border-box;
    background-color:#030905 !important;
  }

  header.main-header.mobile-menu-ready h1 {
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    min-width:0;
    margin:0 !important;
    color:#f5fff7 !important;
    font-size:clamp(16px,4.7vw,21px) !important;
    font-weight:950 !important;
    font-style:italic;
    letter-spacing:-.6px;
    white-space:nowrap;
  }

  .mobile-logo-mark {
    display:flex;
    flex-shrink:0;
    width:29px;
    height:29px;
    color:#a6ff18;
    filter:drop-shadow(0 0 5px #a6ff1855);
  }

  .mobile-logo-mark svg {
    width:100%;
    height:100%;
  }

  header.main-header.mobile-menu-ready nav,
  header.main-header.mobile-menu-ready .header-contacts {
    display:none !important;
  }

  .mobile-actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
    flex-shrink:0;
  }

  .mobile-action-button,
  .mobile-menu-trigger {
    position:relative;
    display:grid;
    place-items:center;
    width:43px;
    height:43px;
    padding:0;
    box-sizing:border-box;
    border:1px solid rgba(166,255,24,.25);
    border-radius:50%;
    background:rgba(5,17,10,.92);
    color:#f5fff7;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .mobile-action-button:active,
  .mobile-menu-trigger:active {
    border-color:#a6ff18;
    background:#142819;
  }

  .mobile-action-button svg,
  .mobile-menu-trigger svg {
    width:23px;
    height:23px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  .mobile-cart-count {
    position:absolute;
    top:-3px;
    right:-3px;
    display:grid;
    place-items:center;
    min-width:18px;
    height:18px;
    padding:0 3px;
    box-sizing:border-box;
    border-radius:20px;
    background:#a6ff18;
    color:#101b08;
    font-size:11px;
    font-weight:900;
  }

  .mobile-cart-count:empty {
    display:none;
  }

  .mobile-menu {
    display:block !important;
    flex-shrink:0;
  }

  .mobile-menu-trigger {
    list-style:none;
  }

  .mobile-menu-trigger::-webkit-details-marker {
    display:none;
  }

  .mobile-menu[open] .mobile-menu-trigger {
    border-color:#a6ff18;
    color:#a6ff18;
  }

  .mobile-menu-panel {
    position:absolute;
    top:calc(100% + 8px);
    right:10px;
    z-index:2000;
    display:grid;
    gap:5px;
    width:min(280px,calc(100vw - 24px));
    padding:10px;
    box-sizing:border-box;
    border:1px solid rgba(166,255,24,.5);
    border-radius:15px;
    background:#07110b;
    box-shadow:0 12px 35px #000b,0 0 18px #a6ff181c;
  }

  .mobile-menu-item {
    display:block;
    padding:13px 12px;
    border-radius:9px;
    background:#101d14;
    color:#f2fff3;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
  }

  .mobile-menu-item:active {
    background:#1c321c;
    color:#a6ff18;
  }

  /* Search and filters */
  #store .toolbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:10px;
    align-items:stretch;
  }

  #store .toolbar #search {
    grid-column:1/-1;
    width:100%;
    min-width:0;
  }

  #store .toolbar #filter,
  #store .toolbar #sort {
    width:100%;
    min-width:0;
    min-height:44px;
    padding-left:9px;
    padding-right:6px;
    font-size:13px;
  }
}

@media(max-width:370px) {
  .mobile-actions {gap:5px}
  .mobile-action-button,
  .mobile-menu-trigger {
    width:39px;
    height:39px;
  }
  .mobile-logo-mark {
    width:25px;
    height:25px;
  }
}

/* ONLINE PRICE — MOBILE WAREHOUSE SELECTOR V3 */

@media (max-width: 600px) {

  #store .browse-heading {
    margin: 0 0 14px;
    padding: 0 2px;
  }

  #store .browse-heading h2 {
    font-size: clamp(21px, 5.8vw, 26px);
    line-height: 1.2;
  }

  #store .browse-tiles {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(7px, 2vw, 11px) !important;
    width: 100%;
  }

  #store .browse-warehouse-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: 100%;
    min-width: 0;
    min-height: 155px !important;
    padding: 12px 5px !important;
    box-sizing: border-box;
    border-radius: 19px !important;
    text-align: center !important;
  }

  #store .warehouse-flag {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 26px !important;
  }

  #store .warehouse-card-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  #store .warehouse-card-copy strong {
    font-size: clamp(12px, 3.5vw, 15px) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }

  #store .warehouse-card-copy small {
    display: block;
    max-width: 100%;
    padding: 5px 4px !important;
    box-sizing: border-box;
    font-size: clamp(9px, 2.7vw, 11px) !important;
    line-height: 1.25 !important;
    white-space: normal;
    text-align: center;
  }

  #store .warehouse-card-arrow {
    display: none !important;
  }
}

@media (max-width: 370px) {
  #store .browse-warehouse-tile {
    min-height: 148px !important;
    padding: 10px 3px !important;
  }

  #store .warehouse-flag {
    flex-basis: 40px !important;
    width: 40px !important;
    height: 40px !important;
  }
}

/* MOBILE TOOLBAR V2 */

@media(max-width:600px) {
  #store .toolbar {
    display:grid !important;
    grid-template-columns:minmax(0,1.7fr) minmax(105px,.8fr) !important;
    gap:9px !important;
    align-items:center !important;
  }

  #store .toolbar #search {
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
    height:48px;
    box-sizing:border-box;
  }

  #store .toolbar #sort {
    width:100% !important;
    min-width:0 !important;
    height:48px;
    box-sizing:border-box;
  }
}

/* MOBILE HEADER — HIDE DUPLICATE LOGO IN HERO BACKGROUND */

@media(max-width:600px) {
  body:has(#store:not(.hidden)) header.main-header.mobile-menu-ready {
    background-image:
      linear-gradient(
        90deg,
        #030905 0%,
        rgba(3,9,5,.98) 32%,
        rgba(3,9,5,.78) 47%,
        rgba(3,9,5,0) 66%
      ),
      linear-gradient(
        180deg,
        rgba(0,5,3,.07),
        rgba(0,5,3,.13)
      ),
      url('/neon-hero-v6.webp') !important;
    background-size:100% 100%,100% 100%,auto 100% !important;
    background-position:center,center,61% center !important;
    background-repeat:no-repeat !important;
  }
}

/* ONLINE PRICE MOBILE HEADER V3 — UNIVERSAL IPHONE 12-18 */

@media (max-width: 600px) {

  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready {
    position:relative !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:flex-start !important;
    justify-content:space-between !important;

    min-height:140px !important;
    padding:12px 12px 70px !important;
    box-sizing:border-box !important;

    background:#020603 !important;
    background-image:none !important;
    overflow:visible !important;
  }

  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready::after {
    content:"";
    position:absolute;
    z-index:0;
    left:0;
    right:0;
    bottom:0;
    height:64px;

    background:
      linear-gradient(180deg,
        rgba(2,6,3,.08),
        rgba(2,6,3,.12)
      ),
      url('/neon-hero-v6.webp');

    background-size:100% 100%,auto 100%;
    background-position:center,72% center;
    background-repeat:no-repeat;

    border-bottom:0;
    pointer-events:none;
  }

  header.main-header.mobile-menu-ready > * {
    position:relative;
    z-index:2;
  }

  header.main-header.mobile-menu-ready h1 {
    font-size:clamp(16px,4.8vw,21px) !important;
    gap:6px !important;
    min-width:0;
  }

  .mobile-logo-mark {
    width:clamp(24px,7vw,29px) !important;
    height:clamp(24px,7vw,29px) !important;
    flex-shrink:0;
  }

  .mobile-actions {
    gap:clamp(4px,1.5vw,7px) !important;
  }

  .mobile-action-button,
  .mobile-menu-trigger {
    width:clamp(37px,11vw,43px) !important;
    height:clamp(37px,11vw,43px) !important;
  }

}

/* MOBILE LOGO FIX V5 — REMOVE DUPLICATE CUBE */

@media (max-width: 600px) {
  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready h1 > svg.ui-icon {
    display: none !important;
  }
}

/* MOBILE HERO V6 — SMOOTH HEADER TO PANORAMA TRANSITION */

@media (max-width: 600px) {
  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready::after {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,.12) 12%,
      rgba(0,0,0,.55) 25%,
      #000 48%,
      #000 100%
    ) !important;

    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,.12) 12%,
      rgba(0,0,0,.55) 25%,
      #000 48%,
      #000 100%
    ) !important;
  }
}

/* MOBILE HEADER V3 — ATHLETE FACE VISIBILITY */

@media (max-width: 600px) {
  body:has(#store:not(.hidden)) header.main-header.mobile-menu-ready {
    min-height: 132px !important;
    padding: 8px 12px 0 !important;
    align-items: flex-start !important;
  }

  header.main-header.mobile-menu-ready h1,
  header.main-header.mobile-menu-ready .mobile-actions,
  header.main-header.mobile-menu-ready .mobile-menu {
    margin-top: 0 !important;
    align-self: flex-start !important;
  }

  header.main-header.mobile-menu-ready h1 {
    padding-top: 2px;
  }

  header.main-header.mobile-menu-ready .mobile-actions {
    padding-top: 0;
  }
}

/* MOBILE HERO — FINAL RESPONSIVE REFINEMENT */

@media (max-width: 600px) {
  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready {
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 0 !important;

    background-image:
      linear-gradient(
        to bottom,
        transparent 55%,
        rgba(3,9,5,.35) 78%,
        #030905 100%
      ),
      linear-gradient(
        to right,
        #030905 0%,
        rgba(3,9,5,.96) 32%,
        rgba(3,9,5,.65) 48%,
        transparent 74%
      ),
      url('/neon-hero-v6.webp') !important;

    background-size:
      100% 100%,
      100% 100%,
      auto 125% !important;

    background-position:
      center,
      center,
      61% 54% !important;

    background-repeat: no-repeat !important;
  }

  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      transparent,
      #030905
    );
  }

  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready > * {
    position: relative;
    z-index: 1;
  }
}



/* MOBILE HERO — CLEAN FINAL VERSION */

@media (max-width: 600px) {

  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;

    height: 180px !important;
    min-height: 180px !important;
    padding: 12px 14px 0 !important;
    box-sizing: border-box !important;

    background: #030905 !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    overflow: hidden !important;
  }

  /* HERO IMAGE */

  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready::before {
    content: "" !important;
    position: absolute !important;
    top: 66px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;

    background-image: url('/neon-hero-mobile.png?v=1') !important;
    background-repeat: no-repeat !important;
    background-size: auto 114px !important;
    background-position: center 48% !important;

    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  /* SMOOTH TRANSITION */

  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 42px !important;
    z-index: 1 !important;
    pointer-events: none !important;

    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(3,9,5,.35) 45%,
      #030905 100%
    ) !important;
  }

  /* LOGO AND BUTTONS */

  body:has(#store:not(.hidden))
  header.main-header.mobile-menu-ready > * {
    position: relative !important;
    z-index: 2 !important;
  }

  header.main-header.mobile-menu-ready h1 {
    align-self: flex-start !important;
    margin: 0 !important;
    padding-top: 2px !important;
    min-width: 0 !important;
  }

  header.main-header.mobile-menu-ready .mobile-actions {
    align-self: flex-start !important;
    margin-top: 0 !important;
  }

  header.main-header.mobile-menu-ready nav,
  header.main-header.mobile-menu-ready .header-contacts {
    display: none !important;
  }
}


/* ONLINE PRICE — STORE CARDS HARMONY V1 */

@media (max-width: 600px) {

  #store .browse-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  #store .browse-warehouse-tile {
    min-width: 0 !important;
    min-height: 112px !important;
    padding: 12px 6px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 9px !important;

    border: 1px solid rgba(166,255,24,.25) !important;
    border-radius: 13px !important;

    background: linear-gradient(
      145deg,
      rgba(166,255,24,.07),
      #101a15 85%
    ) !important;

    box-shadow: none !important;
  }

  #store .warehouse-flag {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    font-size: 23px !important;
  }

  #store .warehouse-card-copy {
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }

  #store .warehouse-card-copy strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  #store .warehouse-card-copy small {
    align-self: center !important;
    padding: 4px 6px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  #store .warehouse-card-arrow {
    display: none !important;
  }
}


/* STORE CARDS — TYPOGRAPHY REFINEMENT */

@media (max-width: 600px) {

  #store .browse-warehouse-tile {
    min-height: 116px !important;
    gap: 8px !important;
  }

  #store .warehouse-flag {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    font-size: 25px !important;
  }

  #store .warehouse-card-copy strong {
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  #store .warehouse-card-copy small {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 27px !important;
    padding: 4px 5px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
  }
}


/* ONLINE PRICE — MOBILE TOOLBAR HARMONY V1 */

@media (max-width: 600px) {

  #store .browse-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(100px, .8fr) !important;
    gap: 8px !important;
    align-items: center !important;
  }

  #store .browse-toolbar #search,
  #store .browse-toolbar #sort {
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    margin: 0 !important;
  }

  #store .browse-toolbar #search {
    width: 100% !important;
    padding: 0 13px !important;
    background: linear-gradient(145deg, #111c17, #080e0b) !important;
    border: 1px solid #a6ff18 !important;
    color: #f1f5f2 !important;
    box-shadow: 0 0 9px rgba(166,255,24,.09) !important;
  }

  #store .browse-toolbar #search::placeholder {
    color: #a2b0a7 !important;
    opacity: 1 !important;
  }

  #store .browse-toolbar #sort {
    width: 100% !important;
    padding: 0 8px !important;
    background-color: #101915 !important;
    border: 1px solid #40534a !important;
    color: #edf3ef !important;
    font-weight: 600 !important;
  }

  #store .browse-toolbar #search:focus {
    outline: none !important;
    border-color: #a6ff18 !important;
    box-shadow: 0 0 0 2px rgba(166,255,24,.12) !important;
  }
}


/* TOOLBAR — SORT LABEL VISIBILITY */

@media (max-width: 600px) {
  #store .browse-toolbar {
    grid-template-columns: minmax(0, 1fr) 108px !important;
  }

  #store .browse-toolbar #sort {
    font-size: 11px !important;
    padding-left: 5px !important;
    padding-right: 3px !important;
  }
}


/* SEARCH — NEON LIME ICON */

@media (max-width: 600px) {
  #store .browse-toolbar #search {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a6ff18' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"),
      linear-gradient(145deg, #111c17, #080e0b) !important;

    background-repeat: no-repeat !important;
    background-position: 12px center, center !important;
    background-size: 18px 18px, cover !important;
    padding-left: 38px !important;
  }
}


/* WAREHOUSE LABEL — DARK NEON FRAME */

@media (max-width: 600px) {
  #store #catalog tr.category td,
  #store #catalog tr:has(td[colspan]) td {
    background: linear-gradient(
      100deg,
      #101b12 0%,
      #09110c 55%,
      #101b12 100%
    ) !important;

    color: #baff32 !important;
    border: 1px solid rgba(166,255,24,.75) !important;
    border-radius: 11px !important;

    padding: 11px 13px !important;
    text-align: left !important;
    font-weight: 850 !important;

    box-shadow:
      0 0 5px rgba(166,255,24,.22),
      0 0 12px rgba(166,255,24,.10),
      inset 0 0 12px rgba(166,255,24,.05) !important;

    text-shadow: 0 0 7px rgba(166,255,24,.25) !important;
  }
}

/* ONLINE PRICE — WAREHOUSE LABEL CLEAN NEON */

@media (max-width: 600px) {
  #store #catalog tr.category {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  #store #catalog tr.category td {
    background:
      linear-gradient(100deg, #142b13 0%, #0b160d 55%, #080e0b 100%)
      !important;
    color: #c1ff34 !important;
    border: 1px solid rgba(166,255,24,.75) !important;
    border-radius: 10px !important;
    padding: 10px 13px !important;
    box-shadow:
      0 0 5px rgba(166,255,24,.12),
      0 0 12px rgba(166,255,24,.06) inset !important;
    text-shadow: 0 0 8px rgba(166,255,24,.25) !important;
  }
}


/* FIX — MOBILE PRODUCT PRICE POSITION */

@media (max-width: 700px) {
  #store #catalog tr:not(.category) td.price {
    position: absolute !important;
    top: 31px !important;
    bottom: auto !important;
    right: 11px !important;
    z-index: 5 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    padding: 0 !important;
    transform: none !important;
  }
}


/* ONLINE PRICE — FINAL MOBILE PRODUCT CARD LAYOUT */

@media (max-width: 700px) {

  #store #catalog tr:not(.category) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto auto !important;
    gap: 4px 8px !important;
    padding: 9px 10px !important;
    min-height: 0 !important;
    position: relative !important;
  }

  #store #catalog tr:not(.category) > td {
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  /* Название */
  #store #catalog td.catalog-product-name {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  /* Наличие */
  #store #catalog td.catalog-stock-cell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
  }

  /* Цена */
  #store #catalog td.price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: center !important;
    font-size: 16px !important;
    line-height: 20px !important;
    white-space: nowrap !important;
  }

  /* Счётчик */
  #store #catalog td.qty {
    grid-column: 2 !important;
    grid-row: 3 !important;
    display: flex !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    justify-self: end !important;
    overflow: visible !important;
  }

  #store #catalog .qty-stepper {
    display: flex !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    flex-shrink: 0 !important;
  }

  #store #catalog .qty-stepper button {
    flex: 0 0 30px !important;
    min-width: 30px !important;
    height: 29px !important;
    min-height: 29px !important;
  }

  #store #catalog .qty-stepper input {
    flex: 1 1 auto !important;
    width: 36px !important;
    min-width: 0 !important;
    height: 29px !important;
    min-height: 29px !important;
  }
}


/* FINAL OVERRIDE — PRICE AND QUANTITY MUST NOT OVERLAP */

@media (max-width: 700px) {

  #store #catalog tr:not(.category) td.price {
    position: static !important;
    inset: auto !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: center !important;
    display: block !important;
    transform: none !important;
    z-index: auto !important;
    margin: 0 !important;
  }

  #store #catalog tr:not(.category) td.qty {
    position: static !important;
    inset: auto !important;
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    transform: none !important;
  }

  #store #catalog tr:not(.category) {
    grid-template-columns: minmax(0, 1fr) 96px !important;
    grid-template-rows: auto auto auto !important;
    padding-bottom: 9px !important;
  }
}


/* ONLINE PRICE — ULTRA COMPACT MOBILE PRODUCT CARDS */

@media (max-width: 700px) {

  #store #catalog tr:not(.category) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 96px !important;
    grid-template-rows: min-content min-content min-content !important;
    gap: 2px 6px !important;
    padding: 6px 8px !important;
    margin-bottom: 5px !important;
    min-height: 0 !important;
    height: auto !important;
    align-content: start !important;
    border-radius: 9px !important;
  }

  #store #catalog td.catalog-product-name {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    font-size: 13px !important;
    line-height: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #store #catalog .catalog-mobile-details {
    margin-top: 1px !important;
    font-size: 9px !important;
  }

  #store #catalog .catalog-mobile-details summary {
    font-size: 9px !important;
    line-height: 11px !important;
  }

  #store #catalog td.catalog-stock-cell {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
  }

  #store #catalog .catalog-stock-badge {
    font-size: 9px !important;
    padding: 2px 5px !important;
    line-height: 11px !important;
  }

  #store #catalog td.price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 16px !important;
    line-height: 18px !important;
    align-self: center !important;
    justify-self: end !important;
  }

  #store #catalog td.qty {
    grid-column: 2 !important;
    grid-row: 3 !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  #store #catalog .qty-stepper button,
  #store #catalog .qty-stepper input {
    height: 26px !important;
    min-height: 26px !important;
  }
}

/* FINAL FIX — REMOVE EXCESS SPACE BELOW MOBILE PRODUCTS */

@media (max-width: 700px) {
  #store #catalog tbody tr:not(.category) {
    padding: 6px 8px !important;
    padding-bottom: 6px !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 5px !important;
    align-content: start !important;
  }
}

/* FINAL FIX — COMPACT MOBILE PRODUCT CARDS */

@media (max-width: 700px) {

  html body #store #catalog tr:not(.category) {
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 7px 9px !important;
    margin-bottom: 5px !important;
    grid-template-columns: minmax(0, 1fr) 96px !important;
    grid-template-rows: auto auto auto !important;
    row-gap: 2px !important;
  }

  html body #store #catalog td.catalog-product-name {
    grid-row: 1 !important;
    line-height: 17px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body #store #catalog td.catalog-stock-cell {
    grid-row: 2 !important;
    align-self: start !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body #store #catalog td.price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
    font-size: 16px !important;
    line-height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body #store #catalog td.qty {
    grid-column: 2 !important;
    grid-row: 3 !important;
    align-self: start !important;
    padding: 0 !important;
    margin: 0 !important;
  }

}

/* FIX — OVERRIDE HIGH SPECIFICITY OLD CARD RULE */

@media (max-width: 700px) {

  html body #store #catalog tr:not(.category):not(:has(td[colspan])) {
    height: auto !important;
    min-height: 0 !important;
    padding: 7px 9px !important;
    margin-bottom: 5px !important;
    box-sizing: border-box !important;
  }

}

/* FINAL FIX — BRAND CARDS WIDTH AND HORIZONTAL TEXT */

@media (max-width: 600px) {

  #store .browse-tiles:has(.browse-brand-tile) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px !important;
  }

  #store .browse-tiles .browse-brand-tile {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    gap: 8px !important;
  }

  #store .browse-brand-tile .brand-card-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }

  #store .browse-brand-tile .brand-card-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #store .browse-brand-tile .brand-card-copy strong {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  #store .browse-brand-tile .brand-card-arrow {
    display: none !important;
  }
}


/* ONLINE PRICE — COMPACT MOBILE DROPDOWN V3 */
@media (max-width: 700px) {

  /* Allow the open menu to extend beyond the hero header */
  body header.main-header.mobile-menu-ready:has(.mobile-menu[open]) {
    overflow: visible !important;
  }

  body header.main-header.mobile-menu-ready .mobile-menu {
    position: relative !important;
    z-index: 100 !important;
    flex: 0 0 auto !important;
  }

  body header.main-header.mobile-menu-ready .mobile-menu[open] {
    z-index: 1000 !important;
  }

  body header.main-header.mobile-menu-ready
  .mobile-menu .mobile-menu-panel {
    position: absolute !important;
    top: calc(100% + 9px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;

    width: 190px !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    height: auto !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;

    padding: 8px !important;
    margin: 0 !important;

    background: rgba(8, 21, 13, .97) !important;
    border: 1px solid rgba(170, 255, 30, .55) !important;
    border-radius: 13px !important;

    box-shadow:
      0 12px 30px rgba(0, 0, 0, .65),
      0 0 18px rgba(164, 255, 0, .12) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    z-index: 1001 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body header.main-header.mobile-menu-ready
  .mobile-menu:not([open]) .mobile-menu-panel {
    display: none !important;
  }

  body header.main-header.mobile-menu-ready
  .mobile-menu[open] .mobile-menu-panel {
    display: flex !important;
  }

  body header.main-header.mobile-menu-ready
  .mobile-menu .mobile-menu-item {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    min-height: 43px !important;
    padding: 10px 13px !important;
    margin: 0 !important;

    box-sizing: border-box !important;
    border-radius: 9px !important;
    border: 1px solid rgba(150, 220, 40, .12) !important;

    background: rgba(24, 46, 25, .82) !important;
    color: #f0ffe5 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    transition:
      background .18s ease,
      border-color .18s ease !important;
  }

  body header.main-header.mobile-menu-ready
  .mobile-menu .mobile-menu-item:hover,
  body header.main-header.mobile-menu-ready
  .mobile-menu .mobile-menu-item:focus-visible {
    background: #294b1d !important;
    border-color: #a9ff28 !important;
    color: #c9ff51 !important;
    outline: none !important;
  }

  body header.main-header.mobile-menu-ready
  .mobile-menu-trigger {
    cursor: pointer !important;
    touch-action: manipulation;
  }

  body header.main-header.mobile-menu-ready
  .mobile-menu[open] .mobile-menu-trigger {
    background: rgba(146, 220, 20, .15) !important;
    border-color: #baff22 !important;
    box-shadow: 0 0 12px rgba(160, 255, 0, .2) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu .mobile-menu-item {
    transition: none !important;
  }
}

/* ONLINE PRICE — FLOATING MOBILE MENU V4 */
@media (max-width:700px) {

  body header.main-header.mobile-menu-ready .mobile-menu[open] {
    z-index: 12000 !important;
  }

  body header.main-header.mobile-menu-ready .mobile-menu-panel {
    position: fixed !important;
    top: 52px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;

    width: 190px !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    max-height: min(300px, 65dvh) !important;
    overflow-y: auto !important;

    z-index: 12001 !important;
  }

  body header.main-header.mobile-menu-ready:has(.mobile-menu[open]) {
    overflow: visible !important;
  }
}

/* ONLINE PRICE ADMIN MOBILE HEADER COMPACT */
@media (max-width: 700px) {
  header.main-header.mobile-menu-ready.mobile-admin-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  header.main-header.mobile-admin-header h1 {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  header.main-header.mobile-admin-header .mobile-actions {
    display: none !important;
  }

  header.main-header.mobile-admin-header .mobile-menu {
    display: block !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  header.main-header.mobile-admin-header .header-contacts,
  header.main-header.mobile-admin-header > nav {
    display: none !important;
  }
}
