/* LEDFRAMES mobile experience v340
   Mobile-only polish. Desktop layouts remain unchanged. */

@media (max-width: 900px) {
  html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 76px;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-tap-highlight-color: rgba(255,255,255,.12);
  }

  img, svg, video, canvas { max-width: 100%; height: auto; }

  html body .container {
    width: min(100% - 32px, 1180px) !important;
    max-width: 100% !important;
  }

  html body .btn,
  html body button,
  html body input,
  html body select,
  html body textarea,
  html body a {
    touch-action: manipulation;
  }

  /* Header: compact, thumb-friendly, stable on iOS safe areas. */
  html body .home-topline {
    height: 28px !important;
    min-height: 28px !important;
    line-height: 28px !important;
    padding: 0 !important;
    background: #000 !important;
  }

  html body .home-topline .container,
  html body .home-topline-grid {
    min-height: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: .055em !important;
    white-space: nowrap !important;
  }

  html body .home-topline-grid > span:not(:first-child) { display: none !important; }

  html body header.home-nav,
  html body .home-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    width: 100% !important;
    background: rgba(0,0,0,.96) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
  }

  html body .home-nav > .container,
  html body header.home-nav > .container {
    position: relative !important;
    min-height: 62px !important;
    height: 62px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  html body .home-logo,
  html body .home-nav .logo {
    max-width: calc(100% - 112px) !important;
    margin: 0 !important;
    font-size: clamp(20px, 6vw, 24px) !important;
    line-height: 1 !important;
    letter-spacing: .065em !important;
    white-space: nowrap !important;
  }

  html body .home-nav .nav-actions {
    margin-left: auto !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
  }

  html body .mobile-menu-toggle,
  html body .cart-icon-link {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
  }

  html body .mobile-menu-toggle {
    display: inline-grid !important;
    place-items: center !important;
    order: 2 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    background: rgba(255,255,255,.035) !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  html body .cart-icon-link { order: 1 !important; }
  html body .cart-icon-link img { width: 22px !important; height: 22px !important; }
  html body .cart-count { right: -5px !important; top: -5px !important; min-width: 20px !important; height: 20px !important; font-size: 11px !important; }

  html body .home-nav .menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10001 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 8px !important;
    gap: 2px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 15px !important;
    background: rgba(8,8,10,.985) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.7) !important;
    -webkit-backdrop-filter: blur(22px) !important;
    backdrop-filter: blur(22px) !important;
    flex-direction: column !important;
  }

  html body .home-nav .menu.mobile-open { display: flex !important; }

  html body .home-nav .menu a {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    letter-spacing: .035em !important;
    text-decoration: none !important;
  }

  html body .home-nav .menu a.active { background: rgba(255,255,255,.08) !important; }

  /* Global sections and typography. */
  html body .section { padding-top: 34px !important; padding-bottom: 56px !important; }
  html body h1 { overflow-wrap: normal; word-break: normal; }
  html body .section-title { font-size: clamp(34px, 10vw, 48px) !important; line-height: .98 !important; }
  html body .section-sub { max-width: 42rem !important; font-size: 15px !important; line-height: 1.55 !important; }

  /* Footer: one clean reading column on phones/tablets. */
  html body .site-footer-v312 { padding-top: 40px !important; padding-bottom: max(22px, env(safe-area-inset-bottom)) !important; }
  html body .site-footer-v312 .footer-grid-v2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 24px !important;
  }
  html body .site-footer-v312 .footer-column > a,
  html body .site-footer-v312 .footer-column h2 a {
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
  }
  html body .footer-bottom-v2 { margin-top: 28px !important; font-size: 11px !important; line-height: 1.55 !important; }

  /* Checkout/cart/forms: never force horizontal scrolling. */
  html body input,
  html body select,
  html body textarea { max-width: 100% !important; font-size: 16px !important; }
  html body .checkout-layout-modern { grid-template-columns: 1fr !important; gap: 16px !important; }
  html body .checkout-summary-modern { position: static !important; }
  html body .checkout-fields.two { grid-template-columns: 1fr 1fr !important; }

  /* Creator: preview first, controls below, no cropped canvas. */
  html body.creator-v150-page .creator-v150-main { padding: 20px 0 62px !important; }
  html body.creator-v150-page .creator-v150-layout {
    width: min(100% - 28px, 900px) !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  html body.creator-v150-page .creator-v150-preview { order: 1 !important; min-height: clamp(300px, 68vw, 500px) !important; border-radius: 14px !important; }
  html body.creator-v150-page .creator-v150-thumbs { order: 2 !important; flex-direction: row !important; overflow-x: auto !important; padding-bottom: 4px !important; }
  html body.creator-v150-page .creator-v150-controls { order: 3 !important; width: 100% !important; }
  html body.creator-v150-page .creator-v150-controls input,
  html body.creator-v150-page .creator-v150-controls select,
  html body.creator-v150-page .creator-v150-add,
  html body.creator-v150-page .creator-v150-reset { min-height: 48px !important; }
}

@media (max-width: 720px) {
  html body .container { width: calc(100% - 28px) !important; }

  /* Home: product-first, strong CTA, compact benefits. */
  html body.home-v2 .home-hero-v2 {
    min-height: 0 !important;
    padding: 24px 0 30px !important;
    overflow: hidden !important;
  }

  html body.home-v2 .hero-product-wrap {
    width: 116% !important;
    max-width: none !important;
    margin: 0 0 0 -8% !important;
    padding: 0 !important;
  }

  html body.home-v2 .hero-product-img {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
  }

  html body.home-v2 .hero-cta-v20 {
    width: 100% !important;
    margin: 8px 0 24px !important;
    padding: 0 !important;
  }

  html body.home-v2 .hero-cta-v20 .home-shop-btn,
  html body.home-v2 .home-shop-btn {
    width: 100% !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    letter-spacing: .055em !important;
  }

  html body.home-v2 .home-benefits-row.home-benefits-v20,
  html body.home-v2 .home-benefits-row.home-benefits-v20.home-benefits-images-v160 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  html body.home-v2 .home-benefits-row.home-benefits-v20 > div {
    min-width: 0 !important;
    min-height: 122px !important;
    padding: 14px 10px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.11) !important;
    border-bottom: 1px solid rgba(255,255,255,.11) !important;
    text-align: center !important;
  }

  html body.home-v2 .home-benefits-row.home-benefits-v20 > div:nth-child(even) { border-right: 0 !important; }
  html body.home-v2 .home-benefits-row.home-benefits-v20 > div:nth-last-child(-n+2) { border-bottom: 0 !important; }
  html body.home-v2 .home-benefits-row.home-benefits-v20 > div:last-child {
    grid-column: 1 / -1 !important;
    min-height: 112px !important;
    border-right: 0 !important;
    border-top: 1px solid rgba(255,255,255,.11) !important;
    border-bottom: 0 !important;
  }

  html body.home-v2 .home-benefits-row strong { font-size: 10.5px !important; line-height: 1.25 !important; }
  html body.home-v2 .home-benefits-row span { font-size: 10px !important; line-height: 1.35 !important; }
  html body.home-v2 .benefit-img-icon-v160,
  html body.home-v2 .home-benefits-images-v160 img { width: 46px !important; height: 46px !important; margin-bottom: 8px !important; }

  html body.home-v2 .home-bottom-showcase { padding: 48px 0 !important; }
  html body.home-v2 .home-bottom-showcase .split {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  html body.home-v2 .home-bottom-showcase h2 { font-size: clamp(34px, 10vw, 48px) !important; line-height: .98 !important; }
  html body.home-v2 .home-bottom-showcase p { font-size: 15px !important; line-height: 1.6 !important; }
  html body.home-v2 .home-bottom-showcase img { width: 100% !important; border-radius: 14px !important; }

  /* Shop category tiles: two-up so customers reach a category without excessive scrolling. */
  html body .category-page-v45 { padding: 32px 0 58px !important; }
  html body .category-page-v45 .section-title { margin-bottom: 8px !important; }
  html body .category-grid-v45[data-collections],
  html body .category-page-v45 [data-collections] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 24px 12px !important;
  }
  html body .category-page-v45 [data-collections] > .collection-card,
  html body .category-page-v45 [data-collections] > .v58-category-card,
  html body .category-grid-v45[data-collections] > .collection-card,
  html body .category-grid-v45[data-collections] > .v58-category-card {
    grid-column: auto !important;
    grid-template-rows: 150px auto !important;
    min-width: 0 !important;
  }
  html body .category-page-v45 [data-collections] .collection-card img,
  html body .category-page-v45 [data-collections] .v58-category-card img,
  html body .category-grid-v45[data-collections] .collection-card img,
  html body .category-grid-v45[data-collections] .v58-category-card img {
    width: 100% !important;
    height: 150px !important;
    object-fit: contain !important;
  }
  html body .category-page-v45 [data-collections] .collection-card h3,
  html body .category-page-v45 [data-collections] .v58-category-card h3 {
    min-height: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
  }

  /* Catalog headings and toolbars. */
  html body .catalog-page-v324,
  html body .brand-detail-page,
  html body .brand-page { padding: 30px 0 58px !important; }

  html body .catalog-head-v324 { gap: 12px !important; margin-bottom: 18px !important; }
  html body .catalog-head-v324 h1,
  html body .brand-page h1 { font-size: clamp(34px, 10vw, 46px) !important; line-height: .98 !important; }
  html body .catalog-sub-v324 { font-size: 14px !important; line-height: 1.45 !important; }
  html body .catalog-toolbar-v324 {
    width: 100% !important;
    margin: 0 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }
  html body .catalog-count-v324 { font-size: 12px !important; white-space: nowrap !important; }
  html body .catalog-sort-v324 {
    margin-left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  html body .catalog-sort-v324 select {
    min-width: 112px !important;
    width: 112px !important;
    min-height: 44px !important;
    padding: 0 30px 0 10px !important;
    font-size: 13px !important;
  }

  /* Product catalogs: keep two cards per row on normal phones. */
  html body .catalog-page-v324 .catalog-grid-v324,
  html body .brand-detail-page .brand-products.products-grid,
  html body[data-brand-page="1"] .brand-products.products-grid,
  html body .modern-catalog-page .store-grid,
  html body .modern-catalog-page .catalog-four-column-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    column-gap: 12px !important;
    row-gap: 30px !important;
  }

  html body .catalog-product-card-v324 { min-width: 0 !important; }
  html body .catalog-product-image-v324,
  html body .catalog-grid-v324 .catalog-product-image-v324,
  html body .brand-products .catalog-product-image-v324 {
    aspect-ratio: 1.55 / 1 !important;
    padding: 4px 0 !important;
  }
  html body .catalog-product-info-v324,
  html body .brand-products .catalog-product-info-v324 { padding-top: 9px !important; }
  html body .catalog-product-title-v324 {
    min-height: 31px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 650 !important;
  }
  html body .catalog-product-price-v324 { margin-top: 5px !important; font-size: 14px !important; }

  /* Brand directory: fast two-column scan. */
  html body[data-brand-list="1"] .brand-grid,
  html body .brand-page .brand-grid,
  html body .modern-catalog-page .brand-grid,
  html body .modern-catalog-page .shop-brand-icons-all {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 12px !important;
  }
  html body[data-brand-list="1"] .brand-card,
  html body[data-brand-list="1"] .brand-logo {
    min-height: 112px !important;
    height: 112px !important;
  }
  html body[data-brand-list="1"] .brand-logo { padding: 12px 8px !important; gap: 7px !important; }
  html body[data-brand-list="1"] .brand-logo img,
  html body[data-brand-list="1"] .brand-logo[data-brand] img {
    width: 82px !important;
    max-width: 82px !important;
    height: 48px !important;
    max-height: 48px !important;
  }
  html body[data-brand-list="1"] .brand-name { min-height: 24px !important; margin-top: 5px !important; font-size: 10px !important; }

  /* Product page: image, choices and purchase action in one natural column. */
  html body[data-product-page] .product-shell-v329,
  html body[data-brand-product-page="1"] .product-shell-v329 {
    width: 100% !important;
    max-width: none !important;
    padding: 14px 14px 58px !important;
  }
  html body[data-product-page] .product-hero-v329,
  html body[data-brand-product-page="1"] .product-hero-v329 {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    border-radius: 14px !important;
  }
  html body[data-product-page] .product-media-v329,
  html body[data-brand-product-page="1"] .product-media-v329 {
    min-height: 280px !important;
    padding: 24px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #242424 !important;
  }
  html body[data-product-page] .product-media-v329:before,
  html body[data-brand-product-page="1"] .product-media-v329:before { width: 230px !important; height: 230px !important; top: 30px !important; }
  html body[data-product-page] .product-media-v329 img,
  html body[data-brand-product-page="1"] .product-media-v329 img { width: 100% !important; max-width: 520px !important; -webkit-box-reflect: unset !important; }
  html body[data-product-page] .product-info-v329,
  html body[data-brand-product-page="1"] .product-info-v329 { padding: 22px 16px 18px !important; }
  html body[data-product-page] .product-kicker-v329,
  html body[data-brand-product-page="1"] .product-kicker-v329 { font-size: 12px !important; margin-bottom: 8px !important; }
  html body[data-product-page] .product-title-v329,
  html body[data-brand-product-page="1"] .product-title-v329 { font-size: clamp(30px, 9vw, 38px) !important; line-height: 1 !important; }
  html body[data-product-page] .product-desc-v329,
  html body[data-brand-product-page="1"] .product-desc-v329 { margin-bottom: 18px !important; font-size: 14px !important; }
  html body[data-product-page] .product-price-v329,
  html body[data-brand-product-page="1"] .product-price-v329 { margin-bottom: 18px !important; font-size: 30px !important; }
  html body[data-product-page] .lighting-list-v329,
  html body[data-brand-product-page="1"] .lighting-list-v329 { gap: 8px !important; margin-bottom: 18px !important; }
  html body[data-product-page] .lighting-option-v329,
  html body[data-brand-product-page="1"] .lighting-option-v329 { min-height: 58px !important; padding: 11px 12px !important; gap: 9px !important; }
  html body[data-product-page] .lighting-copy-v329 strong,
  html body[data-brand-product-page="1"] .lighting-copy-v329 strong { font-size: 13px !important; }
  html body[data-product-page] .lighting-copy-v329 span,
  html body[data-brand-product-page="1"] .lighting-copy-v329 span { font-size: 11px !important; }
  html body[data-product-page] .qty-wrap-v329,
  html body[data-brand-product-page="1"] .qty-wrap-v329 { width: 156px !important; height: 46px !important; }
  html body[data-product-page] .product-add-v329,
  html body[data-brand-product-page="1"] .product-add-v329 { min-height: 56px !important; padding: 0 16px !important; font-size: 14px !important; border-radius: 9px !important; }
  html body[data-product-page] .product-creator-v329,
  html body[data-brand-product-page="1"] .product-creator-v329 { min-height: 50px !important; border-radius: 9px !important; font-size: 13px !important; }
  html body[data-product-page] .product-accordions-v329,
  html body[data-brand-product-page="1"] .product-accordions-v329 { margin-top: 18px !important; border-radius: 13px !important; }
  html body[data-product-page] .product-accordions-v329 summary,
  html body[data-brand-product-page="1"] .product-accordions-v329 summary { min-height: 54px !important; padding: 0 46px 0 43px !important; font-size: 12px !important; }
  html body[data-product-page] .product-accordions-v329 details > div,
  html body[data-brand-product-page="1"] .product-accordions-v329 details > div { padding: 0 16px 18px !important; font-size: 13px !important; }

  /* Cart: product image + information, controls beneath, no crushed columns. */
  html body.cart-page .cart-section { padding-top: 28px !important; }
  html body .cart-line.store-cart-line,
  html body .store-cart-line {
    grid-template-columns: 86px minmax(0,1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }
  html body .cart-line-media,
  html body .store-cart-line .cart-line-media { width: 86px !important; height: 64px !important; }
  html body .cart-line-info { min-width: 0 !important; }
  html body .cart-line-info strong { font-size: 13px !important; line-height: 1.3 !important; }
  html body .cart-qty-control button { width: 36px !important; height: 36px !important; }

  /* Checkout: one column, large controls, low nesting visual noise. */
  html body .checkout-page-modern { padding: 24px 0 56px !important; }
  html body .checkout-layout-modern { width: calc(100% - 28px) !important; gap: 14px !important; }
  html body .checkout-form-modern,
  html body .checkout-summary-modern { padding: 16px !important; border-radius: 16px !important; }
  html body .checkout-heading h1 { font-size: 32px !important; line-height: 1 !important; }
  html body .checkout-section-card { padding: 15px !important; margin: 12px 0 !important; border-radius: 13px !important; }
  html body .checkout-section-card h2 { margin-bottom: 12px !important; font-size: 17px !important; }
  html body .checkout-fields.two { grid-template-columns: 1fr !important; gap: 12px !important; }
  html body .checkout-form-modern input,
  html body .checkout-form-modern select { min-height: 48px !important; }
  html body .checkout-form-modern textarea { min-height: 96px !important; }
  html body .consent-row { padding: 12px !important; gap: 10px !important; font-size: 12px !important; line-height: 1.45 !important; }
  html body .checkout-pay { min-height: 56px !important; border-radius: 10px !important; }

  /* Legal/info/contact pages. */
  html body .legal-shell { padding: 24px 0 54px !important; }
  html body .legal-heading { padding: 20px 0 !important; }
  html body .legal-heading h1 { font-size: clamp(34px, 10vw, 44px) !important; line-height: 1.02 !important; }
  html body .legal-content { padding-top: 10px !important; }
  html body .legal-content section { padding: 18px 0 !important; }
  html body .legal-content h2 { font-size: 21px !important; line-height: 1.15 !important; }
  html body .legal-content p,
  html body .legal-content li { font-size: 14px !important; line-height: 1.65 !important; }
  html body .legal-data div { grid-template-columns: 1fr !important; gap: 4px !important; }
  html body .delivery-policy-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

  /* Creator controls become comfortable touch UI. */
  html body.creator-v150-page .creator-v150-main { padding-top: 14px !important; }
  html body.creator-v150-page .creator-v150-preview { min-height: 280px !important; overflow: hidden !important; }
  html body.creator-v150-page .creator-v150-stage { width: 116% !important; max-width: none !important; margin-left: -8% !important; }
  html body.creator-v150-page .creator-v150-thumbs { display: none !important; }
  html body.creator-v150-page .creator-v150-controls h1 { font-size: 28px !important; margin-bottom: 10px !important; }
  html body.creator-v150-page .creator-v150-price { margin-bottom: 16px !important; }
  html body.creator-v150-page .creator-v150-controls label { margin-top: 15px !important; }
  html body.creator-v150-page .creator-v150-controls input,
  html body.creator-v150-page .creator-v150-controls select { min-height: 50px !important; border-radius: 9px !important; }
  html body.creator-v150-page .creator-v150-two { grid-template-columns: 1fr !important; gap: 0 !important; }
  html body.creator-v150-page .creator-v150-qty { width: 168px !important; grid-template-columns: 50px 68px 50px !important; border-radius: 9px !important; overflow: hidden !important; }
  html body.creator-v150-page .creator-v150-qty input,
  html body.creator-v150-page .creator-v150-qty button { min-height: 48px !important; }
  html body.creator-v150-page .creator-v150-add { min-height: 56px !important; border-radius: 9px !important; }
  html body.creator-v150-page .creator-v150-reset { min-height: 48px !important; border-radius: 9px !important; }
  html body.creator-v150-page .creator-line-picker-menu { max-height: 56vh !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; }

  /* Footer on phones. */
  html body .site-footer-v312 .footer-grid-v2 { grid-template-columns: 1fr !important; gap: 26px !important; }
  html body .site-footer-v312 .footer-column { gap: 7px !important; }
  html body .site-footer-v312 .footer-column h2 { margin-bottom: 4px !important; }
}

@media (max-width: 380px) {
  html body .container { width: calc(100% - 22px) !important; }
  html body .home-logo,
  html body .home-nav .logo { font-size: 19px !important; letter-spacing: .05em !important; }
  html body .mobile-menu-toggle,
  html body .cart-icon-link { width: 42px !important; min-width: 42px !important; height: 42px !important; min-height: 42px !important; }

  html body .category-grid-v45[data-collections],
  html body .category-page-v45 [data-collections] { gap: 20px 9px !important; }
  html body .category-page-v45 [data-collections] > .collection-card,
  html body .category-page-v45 [data-collections] > .v58-category-card { grid-template-rows: 132px auto !important; }
  html body .category-page-v45 [data-collections] .collection-card img,
  html body .category-page-v45 [data-collections] .v58-category-card img { height: 132px !important; }

  html body .catalog-page-v324 .catalog-grid-v324,
  html body .brand-detail-page .brand-products.products-grid,
  html body[data-brand-page="1"] .brand-products.products-grid { column-gap: 9px !important; row-gap: 26px !important; }
  html body .catalog-product-title-v324 { font-size: 11px !important; }

  html body .delivery-policy-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 330px) {
  html body .category-grid-v45[data-collections],
  html body .category-page-v45 [data-collections],
  html body .catalog-page-v324 .catalog-grid-v324,
  html body .brand-detail-page .brand-products.products-grid,
  html body[data-brand-page="1"] .brand-products.products-grid,
  html body[data-brand-list="1"] .brand-grid,
  html body .brand-page .brand-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) and (hover: none) and (pointer: coarse) {
  html body a:hover,
  html body button:hover { transform: none !important; }
}

@supports (padding: max(0px)) {
  @media (max-width: 900px) {
    html body .home-nav > .container { padding-left: max(0px, env(safe-area-inset-left)) !important; padding-right: max(0px, env(safe-area-inset-right)) !important; }
    html body .site-footer-v312 { padding-bottom: max(24px, env(safe-area-inset-bottom)) !important; }
  }
}

/* ===== LEDFRAMES mobile refinement v341 =====
   Fixes legacy CSS conflicts in the mobile header, removes content overlap,
   tightens the footer and improves catalog/product spacing.
   Desktop (>900px) is intentionally untouched. */
@media (max-width: 900px) {
  /* Neutralise legacy header rules that set top offsets / wrapping. */
  html body div.topbar.home-topline,
  html body .topbar.home-topline {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 26px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255,255,255,.09) !important;
  }

  html body div.topbar.home-topline > .container.home-topline-grid,
  html body .home-topline > .container,
  html body .home-topline-grid {
    width: calc(100% - 24px) !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  html body header.nav.home-nav,
  html body header.home-nav,
  html body .nav.home-nav,
  html body .home-nav {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset-block-start: 0 !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
    z-index: 10000 !important;
    background: rgba(0,0,0,.97) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.11) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
  }

  html body header.nav.home-nav > .container,
  html body header.home-nav > .container,
  html body .nav.home-nav > .container,
  html body .home-nav > .container {
    position: relative !important;
    width: calc(100% - 24px) !important;
    max-width: 1180px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html body header.nav.home-nav .logo,
  html body header.nav.home-nav .home-logo,
  html body .home-nav .logo,
  html body .home-logo {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 104px) !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 auto 0 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: clamp(19px, 5.8vw, 23px) !important;
    line-height: 1 !important;
    letter-spacing: .055em !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  html body header.nav.home-nav .nav-actions,
  html body .home-nav .nav-actions,
  html body .nav-actions {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  html body header.nav.home-nav .mobile-menu-toggle,
  html body .home-nav .mobile-menu-toggle,
  html body header.nav.home-nav .cart-icon-link,
  html body .home-nav .cart-icon-link {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 11px !important;
    display: inline-grid !important;
    place-items: center !important;
  }

  html body header.nav.home-nav .mobile-menu-toggle,
  html body .home-nav .mobile-menu-toggle {
    border: 1px solid rgba(255,255,255,.16) !important;
    background: rgba(255,255,255,.04) !important;
    font-size: 22px !important;
    line-height: 1 !important;
  }

  html body header.nav.home-nav .cart-icon-link,
  html body .home-nav .cart-icon-link {
    border: 1px solid rgba(255,255,255,.12) !important;
    background: rgba(255,255,255,.025) !important;
  }

  html body header.nav.home-nav .cart-icon-link img,
  html body .home-nav .cart-icon-link img {
    width: 20px !important;
    height: 20px !important;
  }

  html body header.nav.home-nav .menu,
  html body .home-nav .menu {
    position: absolute !important;
    top: calc(100% + 7px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(70vh, 420px) !important;
    padding: 7px !important;
    margin: 0 !important;
    display: none !important;
    flex-flow: column nowrap !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 2px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 14px !important;
    background: rgba(7,8,10,.99) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.72) !important;
    z-index: 10002 !important;
  }

  html body header.nav.home-nav .menu.mobile-open,
  html body .home-nav .menu.mobile-open { display: flex !important; }

  html body header.nav.home-nav .menu a,
  html body .home-nav .menu a {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 13px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  /* Kill the legacy 46px / 82px page offset that was pushing content under the nav. */
  html body:not(.home-v2) main,
  html body:not(.home-v2) .page-content,
  html body:not(.home-v2) .section:first-of-type,
  html body:not(.home-v2) .brand-page,
  html body:not(.home-v2) .brand-detail-page,
  html body:not(.home-v2) .designer-studio-v36,
  html body:not(.home-v2) .designer-studio-v34,
  html body:not(.home-v2) .cart-page,
  html body:not(.home-v2) .checkout-page,
  html body:not(.home-v2) .checkout-page-modern,
  html body:not(.home-v2) .contact-page,
  html body[data-product-page] main,
  html body[data-brand-product-page="1"] main {
    margin-top: 0 !important;
    transform: none !important;
  }

  html body main { scroll-margin-top: 66px !important; }

  /* Prevent legacy global rules from erasing needed first-section spacing. */
  html body .brand-detail-page,
  html body .brand-page { padding-top: 22px !important; }
  html body .checkout-page-modern { padding-top: 20px !important; }
  html body .legal-page { padding-top: 0 !important; }
  html body[data-product-page] .product-shell-v329,
  html body[data-brand-product-page="1"] .product-shell-v329 { margin-top: 0 !important; }

  /* Touch feedback without desktop hover behaviour. */
  html body .mobile-menu-toggle:active,
  html body .cart-icon-link:active,
  html body .btn:active { transform: scale(.98) !important; }
}

@media (max-width: 720px) {
  /* Home: remove the blank header feel and surface the product immediately. */
  html body.home-v2 .home-hero-v2 {
    margin-top: 0 !important;
    padding: 12px 0 26px !important;
  }
  html body.home-v2 .hero-product-wrap {
    width: 110% !important;
    margin-left: -5% !important;
  }
  html body.home-v2 .hero-cta-v20 { margin: 2px 0 20px !important; }

  /* Brand/catalog polish. */
  html body .brand-detail-page,
  html body .brand-page,
  html body .catalog-page-v324 { padding: 22px 0 50px !important; }
  html body .catalog-head-v324 {
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
  }
  html body .catalog-head-v324 h1,
  html body .brand-page h1 {
    font-size: clamp(31px, 9vw, 42px) !important;
    line-height: 1 !important;
  }
  html body .catalog-creator-link {
    min-height: 42px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 12px !important;
  }
  html body .catalog-toolbar-v324 { margin-bottom: 20px !important; }
  html body .catalog-product-title-v324 {
    min-height: 34px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  /* Product page: keep purchase button available while reading product options. */
  html body[data-product-page] .product-shell-v329,
  html body[data-brand-product-page="1"] .product-shell-v329 {
    padding-top: 12px !important;
    padding-bottom: 44px !important;
  }
  html body[data-product-page] .product-add-v329,
  html body[data-brand-product-page="1"] .product-add-v329 {
    position: sticky !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    z-index: 12 !important;
    box-shadow: 0 10px 32px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.08) !important;
  }

  /* Checkout first heading is now safely below the header. */
  html body .checkout-page-modern { margin-top: 0 !important; padding-top: 20px !important; }

  /* Footer: compact two-column navigation, seller details full-width below. */
  html body .site-footer-v312 {
    padding-top: 30px !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
  }
  html body .site-footer-v312 .footer-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 24px 18px !important;
  }
  html body .site-footer-v312 .footer-column {
    min-width: 0 !important;
    gap: 4px !important;
  }
  html body .site-footer-v312 .footer-column > a,
  html body .site-footer-v312 .footer-column h2 a {
    min-height: 30px !important;
    padding: 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
  html body .site-footer-v312 .footer-column h2 {
    margin: 0 0 6px !important;
    font-size: 13px !important;
  }
  html body .site-footer-v312 .footer-seller,
  html body .site-footer-v312 .footer-signup {
    grid-column: 1 / -1 !important;
  }
  html body .site-footer-v312 .footer-seller {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    column-gap: 14px !important;
    row-gap: 3px !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
  }
  html body .site-footer-v312 .footer-seller h2,
  html body .site-footer-v312 .footer-seller address {
    grid-column: 1 / -1 !important;
  }
  html body .site-footer-v312 .footer-seller p,
  html body .site-footer-v312 .footer-seller address,
  html body .site-footer-v312 .footer-seller a {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
  html body .footer-bottom-v2 {
    margin-top: 20px !important;
    padding-top: 16px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 380px) {
  html body header.nav.home-nav > .container,
  html body .home-nav > .container { width: calc(100% - 18px) !important; }
  html body header.nav.home-nav .logo,
  html body header.nav.home-nav .home-logo,
  html body .home-logo { font-size: 18px !important; }
  html body header.nav.home-nav .mobile-menu-toggle,
  html body .home-nav .mobile-menu-toggle,
  html body header.nav.home-nav .cart-icon-link,
  html body .home-nav .cart-icon-link {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
  html body .site-footer-v312 .footer-grid-v2 { gap: 22px 14px !important; }
}
