/* ============================================================
   MOBILE REDESIGN — figurydeco.pl
   Aktywne TYLKO ≤768px. Desktop zachowuje aktualny look 1:1.
   Bazuje na istniejących selektorach (.prod, .header, #cart, .offcanvas...).
   Mockup źródło: templaty/nowe-figurydeco/mobile/styles.css.
   Tokeny: z tokens.css (--bg-soft, --accent-soft, --accent-dark, --ink-2/3).
   ============================================================ */

@media (max-width: 768px) {

  /* ---------- ROOT TOKENY (mobile-only nadpisania) ---------- */
  :root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --header-h: 56px;
    --bottomnav-h: 64px;
    --radius-pill: 999px;
    --radius-mob: 14px;
    --radius-mob-lg: 22px;
  }

  /* ---------- BODY + LAYOUT GLOBAL ---------- */
  html, body { overscroll-behavior-y: contain; }
  body { padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom)) !important; }
  body.lock { overflow: hidden; }

  /* Container narrower padding on mobile */
  .container { padding-left: 16px !important; padding-right: 16px !important; }

  /* ============================================================
     TOPBAR → ZWIJAMY (replaces with thin announcement strip)
     ============================================================ */
  .topbar {
    background: var(--accent-soft) !important;
    color: var(--accent-dark) !important;
    padding-top: var(--safe-top);
    font-size: 12px !important;
    letter-spacing: 0.02em;
  }
  .topbar__inner {
    flex-direction: column !important;
    padding: 7px 16px !important;
    text-align: center;
    gap: 0 !important;
  }
  .topbar__left { gap: 6px !important; justify-content: center !important; font-size: 12px; }
  .topbar__left span:nth-of-type(3), .topbar__sep { display: none !important; }
  .topbar__right { display: none !important; }
  .topbar__left svg { width: 12px !important; height: 12px !important; }

  /* ============================================================
     STICKY HEADER (sticky, blur)
     ============================================================ */
  .header {
    position: sticky !important;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: none !important;
  }
  .header__inner {
    height: var(--header-h);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 0 12px !important;
    grid-template-columns: none !important;
  }

  /* Hamburger button (already exists as [data-toggle=offcanvas]) */
  .header__inner > button[data-toggle="offcanvas"] {
    width: 40px !important; height: 40px !important;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    background: none;
    color: var(--ink);
    padding: 0 !important;
  }
  .header__inner > button[data-toggle="offcanvas"]:active { background: var(--bg-soft); }

  /* Logo: centered, smaller */
  .logo {
    flex: 0 1 auto !important;
    margin: 0 auto !important;
  }
  .logo__img { height: 30px !important; width: auto !important; max-width: 160px; }

  /* Header search: hide on mobile (use search sheet via bottom nav) */
  .header .search { display: none !important; }

  /* Header action buttons (icon-only on mobile) */
  .header__actions {
    display: flex !important;
    align-items: center;
    gap: 0 !important;
    flex-shrink: 0;
  }
  .header__actions .iconbtn {
    width: 40px !important; height: 40px;
    padding: 0 !important;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    background: none !important;
    border: 0 !important;
    color: var(--ink) !important;
    position: relative;
    gap: 0 !important;
  }
  .header__actions .iconbtn:active { background: var(--bg-soft) !important; }
  .header__actions .iconbtn span:not(.badge):not(.quantity):not(.formatted_value) { display: none !important; }
  .header__actions .iconbtn .formatted_value { display: none !important; }
  .header__actions .iconbtn .quantity:empty { display: none !important; }
  .header__actions .iconbtn .badge,
  .header__actions .iconbtn .quantity {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 999px;
    font-size: 10px !important;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    font-family: var(--sans);
    letter-spacing: 0;
    border: 1.5px solid #fff;
  }

  /* Account: hide on mobile (drawer has it) */
  .header__actions .iconbtn[aria-label*="onto"],
  .header__actions .iconbtn[aria-label*="ccount"] { display: none !important; }

  /* MAIN NAV → ukryj na mobile (drawer + bottom-nav replace it) */
  .header .nav { display: none !important; }

  /* ============================================================
     OFFCANVAS DRAWER (already in markup) — restyle to mobile mockup
     ============================================================ */
  .offcanvas {
    position: fixed !important;
    top: 0 !important; bottom: 0 !important; left: 0 !important;
    width: min(86vw, 380px) !important;
    height: 100% !important;
    background: var(--bg) !important;
    z-index: 100 !important;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.22,.61,.36,1);
    box-shadow: var(--shadow-md);
    display: flex !important;
    flex-direction: column;
    padding: calc(var(--safe-top) + 8px) 0 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
  }
  .offcanvas.is-open,
  .offcanvas.open,
  .offcanvas.active,
  .offcanvas[aria-expanded="true"] { transform: translateX(0); }

  .offcanvas > button[data-toggle="offcanvas"] {
    position: absolute;
    top: calc(var(--safe-top) + 12px); right: 12px;
    width: 36px !important; height: 36px !important;
    float: none !important;
    font-size: 0 !important;
    padding: 0 !important;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
    display: inline-flex;
    align-items: center; justify-content: center;
  }
  .offcanvas > button[data-toggle="offcanvas"]::before {
    content: '';
    width: 16px; height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><path d='M6 6l12 12M6 18L18 6'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'><path d='M6 6l12 12M6 18L18 6'/></svg>") center/contain no-repeat;
  }
  .offcanvas h4 {
    font-family: var(--sans) !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
    color: var(--ink-3) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 18px 18px 8px !important;
  }
  .offcanvas ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    overflow-y: auto;
    flex: 1;
  }
  .offcanvas ul li { margin: 0 !important; }
  .offcanvas ul li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 13px 18px !important;
    border-bottom: 1px solid var(--line) !important;
    font-size: 16px !important;
    color: var(--ink) !important;
    font-weight: 500;
    transition: background .15s;
    text-decoration: none;
  }
  .offcanvas ul li a:active { background: var(--bg-soft); }
  .offcanvas ul li:first-child a { color: var(--accent) !important; font-weight: 600; }

  .offcanvas__backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(28,28,28,.45) !important;
    z-index: 90 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    display: block !important;
  }
  body.menu-open .offcanvas__backdrop,
  .offcanvas__backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* ============================================================
     CONTENT BASE: padding + container
     ============================================================ */
  #content-wrapper { padding: 0 !important; }

  /* ============================================================
     HERO SLIDER (homepage) — pełnoekranowy, edge-to-edge mobile
     ============================================================ */
  .cslider {
    height: 70vh !important;
    min-height: 440px;
    max-height: 620px;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .cslider__slide::before {
    background:
      linear-gradient(180deg,
        rgba(20,20,20,.40) 0%,
        rgba(20,20,20,.55) 45%,
        rgba(20,20,20,.82) 100%) !important;
  }
  .cslider__inner {
    padding: 0 20px 100px !important;
    align-items: flex-end !important;
  }
  .cslider__copy { max-width: 100% !important; }
  .cslider__eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 12px !important;
    padding: 5px 10px !important;
  }
  .cslider__title {
    font-size: clamp(28px, 8.5vw, 44px) !important;
    line-height: 1.05 !important;
    margin: 0 0 14px !important;
  }
  .cslider__lead {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 0 20px !important;
    max-width: 100% !important;
  }
  .cslider__ctas {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100%;
  }
  .cslider__ctas .btn {
    flex: 1;
    padding: 13px 14px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }
  .cslider__arrow {
    width: 38px !important;
    height: 38px !important;
    top: auto !important;
    bottom: 60px;
    transform: none !important;
  }
  .cslider__arrow:hover { transform: scale(1.05) !important; }
  .cslider__arrow--prev { left: auto !important; right: 64px !important; }
  .cslider__arrow--next { right: 16px !important; }
  .cslider__arrow svg { width: 16px; height: 16px; }
  .cslider__controls { padding: 0 16px 18px !important; }
  .cslider__counter { display: none !important; }
  .cslider__dot { width: 24px !important; height: 3px !important; }
  .cslider__dot.is-active { width: 48px !important; }
  .cslider__pause {
    top: 14px !important;
    right: 14px !important;
    width: 34px !important;
    height: 34px !important;
  }

  /* ============================================================
     SECTION HEADERS
     ============================================================ */
  .section-head,
  .section-head--row {
    text-align: left !important;
    padding: 0 16px !important;
    margin-bottom: 16px !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px;
  }
  .section-title { font-size: 26px !important; line-height: 1.1 !important; }
  .eyebrow { font-size: 10px !important; margin-bottom: 6px !important; }

  /* ============================================================
     KATEGORIE — desktop ma .cats__grid → na mobile karuzela pozioma
     ============================================================ */
  .cats__grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding: 4px 16px 8px !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    grid-auto-rows: auto !important;
  }
  .cats__grid::-webkit-scrollbar { display: none; }
  .cat {
    flex: 0 0 220px !important;
    height: 280px !important;
    grid-row: auto !important;
    grid-column: auto !important;
    scroll-snap-align: start;
    border-radius: var(--radius-mob-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .cat:nth-child(1) { flex-basis: 240px !important; height: 300px !important; }

  /* ============================================================
     PRODUCT GRID → DWA TRYBY:
       1. HOME (.prod-grid[data-tab-panel]) → karuzela pozioma
       2. KATEGORIA (.prod-grid bez data-tab-panel) → 2-kol siatka
     ============================================================ */

  /* HOME: featured/newest panel → KARUZELA pozioma 1.7 karty widoczne */
  .prod-grid[data-tab-panel] {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding: 4px 16px 8px !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
  }
  .prod-grid[data-tab-panel]::-webkit-scrollbar { display: none; }
  .prod-grid[data-tab-panel] > .prod,
  .prod-grid[data-tab-panel] > .product {
    flex: 0 0 200px !important;
    width: 200px;
    scroll-snap-align: start;
  }

  /* KATEGORIA: zwykły grid 2-kolumnowy */
  .prod-grid:not([data-tab-panel]) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 0 16px !important;
  }

  /* Klasa .carousel jeśli kiedykolwiek pojawi się explicit (futureproof) */
  .carousel,
  .inline-carousel .carousel {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding: 4px 16px 8px !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
  }
  .carousel::-webkit-scrollbar,
  .inline-carousel .carousel::-webkit-scrollbar { display: none; }
  .carousel > .prod,
  .inline-carousel .carousel > .prod {
    flex: 0 0 170px !important;
    flex-basis: 170px !important;
    scroll-snap-align: start;
  }

  /* Product card mobile look */
  .prod, .product {
    border-radius: var(--radius-mob) !important;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: none !important;
  }
  .prod__media { aspect-ratio: 1 / 1 !important; }
  .prod__body { padding: 10px 12px 12px !important; gap: 4px; }
  .prod__title, .product-name {
    font-family: var(--sans) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: var(--ink) !important;
    min-height: 34px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .prod__cat { font-size: 10px !important; letter-spacing: 0.12em; }
  .prod__price, .product-price {
    font-size: 15px !important;
    font-weight: 600;
    color: var(--ink) !important;
  }
  .prod__price-old {
    font-size: 11px !important;
    margin-left: 4px;
    color: var(--ink-3);
  }
  .prod__add {
    width: 34px !important; height: 34px !important;
    border-radius: 50% !important;
    background: var(--ink) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 0 !important;
  }
  .prod__add:active { background: var(--accent-dark) !important; }
  .prod__like, .product-fav {
    top: 8px !important; right: 8px !important;
    width: 32px !important; height: 32px !important;
    background: rgba(255,255,255,.94) !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-sm);
    border: 0 !important;
    color: var(--ink-2);
  }
  .prod__like.is-active, .product-fav.is-active { color: #c9483b; }
  .prod__badge {
    top: 8px !important; left: 8px !important;
    font-size: 9px !important;
    padding: 4px 8px !important;
    letter-spacing: 0.15em;
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
  }
  .prod__badge--new { background: var(--accent) !important; color: #fff !important; }
  .prod__badge--sale { background: #d97a3c !important; color: #fff !important; }

  /* ============================================================
     USP STRIP — 2 kolumny, kremowe karty
     ============================================================ */
  .usp__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 0 16px !important;
  }
  .usp__item {
    background: var(--bg-warm) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius-mob) !important;
    padding: 14px 12px !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center;
  }
  .usp__item svg {
    width: 22px !important; height: 22px !important;
    color: var(--accent-dark);
    flex-shrink: 0;
    background: var(--accent-soft);
    border-radius: 50%;
    padding: 7px;
    box-sizing: content-box;
  }
  .usp__item strong { font-size: 13px !important; display: block; }
  .usp__item span { font-size: 11px !important; color: var(--ink-3); }

  /* ============================================================
     EDITORIAL — single column + nice card
     ============================================================ */
  .editorial { padding: 32px 0 !important; }
  .editorial__grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 16px;
    background: var(--bg-warm);
    border: 1px solid var(--line);
    border-radius: var(--radius-mob-lg);
    overflow: hidden;
  }
  .editorial__media { aspect-ratio: 16 / 10; }
  .editorial__media img { width: 100%; height: 100%; object-fit: cover; }
  .editorial__copy { padding: 20px 18px 22px !important; }
  .editorial__list {
    background: #fff;
    border-radius: var(--radius-mob);
    padding: 12px 16px !important;
    border: 1px solid var(--line);
    margin: 14px 0 !important;
    list-style: none;
  }
  .editorial__list li { padding: 6px 0; font-size: 13px; }

  /* ============================================================
     BROWSE GRID — mini-tiles 3 col
     ============================================================ */
  .browse__grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 0 16px !important;
  }
  .browse__item span { font-size: 12px !important; }

  /* ============================================================
     BLOG — karuzela pozioma (1.2 karty widoczne, swipe L<>R)
     Specyficzność: .blog-home .blog-home__grid wygrywa z home.css .blog-home__grid
     ============================================================ */
  .blog-home .blog-home__grid,
  .blog-home__grid {
    display: flex !important;
    grid-template-columns: none !important;
    grid-auto-rows: none !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding: 0 16px 8px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
  }
  .blog-home .blog-home__grid::-webkit-scrollbar,
  .blog-home__grid::-webkit-scrollbar { display: none; }
  .blog-home .blog-home__grid .post,
  .blog-home .blog-home__grid .post--lg,
  .blog-home__grid .post,
  .blog-home__grid .post--lg {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-mob);
    overflow: hidden;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
  }
  .blog-home__grid .post__media,
  .blog-home__grid .post--lg .post__media {
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
  }
  .blog-home__grid .post__body {
    padding: 12px 14px 14px !important;
  }
  .blog-home__grid .post__title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-home__grid .post__excerpt { display: none !important; }

  /* ============================================================
     REVIEWS — karuzela
     ============================================================ */
  .reviews { padding: 36px 0 32px !important; background: var(--bg-soft); }
  .reviews__grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    padding: 0 16px 8px !important;
    -webkit-overflow-scrolling: touch;
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .review {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-mob);
    padding: 18px 18px 16px !important;
  }

  /* ============================================================
     NEWSLETTER — full-width gradient card
     ============================================================ */
  .newsletter { padding: 28px 16px 0 !important; }
  .newsletter__inner {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 24px 20px 26px !important;
    border-radius: var(--radius-mob-lg) !important;
    margin: 0 !important;
  }
  .newsletter__form {
    flex-direction: column !important;
    gap: 10px !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: none !important;
  }
  .newsletter__form input,
  .newsletter__form button {
    width: 100% !important;
    padding: 13px 16px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
  }

  /* ============================================================
     FOOTER — accordion + center + bottom nav clearance
     ============================================================ */
  .footer__top {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 24px 16px 12px !important;
    border-bottom: 0 !important;
  }
  .footer__brand {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .footer__col h4 {
    font-family: var(--sans) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 14px 4px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  .footer__col h4::after {
    content: '+';
    font-size: 20px;
    color: var(--ink-3);
  }
  .footer__col.is-open h4::after { content: '−'; }
  .footer__col ul {
    display: none !important;
    padding: 0 4px 14px !important;
    margin: 0 !important;
    gap: 10px !important;
    flex-direction: column;
  }
  .footer__col.is-open ul { display: flex !important; }
  .footer__col ul li a { font-size: 13px; color: var(--ink-2); }
  .footer__bottom { padding: 16px 0 !important; }
  .footer__bottom-inner {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center;
    font-size: 11px;
  }
  .footer__pay {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  .footer__pay span,
  .footer__pay .pay {
    padding: 4px 8px !important;
    font-size: 10px !important;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
  }

  /* ============================================================
     CATEGORY PAGE (.cat-lead, .cat-filters, .cat-grid)
     ============================================================ */
  .cat-lead { padding: 22px 0 18px !important; }
  .cat-lead__inner { text-align: left !important; padding: 22px 16px 8px !important; }
  .cat-lead__title { font-size: clamp(28px, 8vw, 36px) !important; margin: 4px 0 8px !important; }
  .cat-lead__intro { font-size: 13px !important; margin-top: 8px; }

  .cat-filters {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cat-filters::-webkit-scrollbar { display: none; }
  .cat-filters > * {
    flex-shrink: 0;
    font-size: 13px !important;
    padding: 8px 14px !important;
    background: var(--bg-soft);
    border-radius: 999px;
    border: 0;
    color: var(--ink);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* ============================================================
     PRODUCT PAGE (.pd-*)
     ============================================================ */
  .pd-gallery, .pd-main {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .pd-gallery__main, .pd-gallery {
    border-radius: 0 !important;
  }
  .pd-gallery img { aspect-ratio: 1/1; object-fit: cover; }
  .pd-info, .pd-summary { padding: 20px 16px 16px !important; }
  .pd-title, .pd-info__title { font-size: clamp(24px, 7vw, 32px) !important; line-height: 1.1 !important; }
  .pd-subtitle, .pd-info__subtitle { font-size: 14px !important; }
  .pd-price-block, .pd-info__price-row {
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px !important;
  }
  .pd-price-block__value, .pd-info__price { font-size: 28px !important; }

  .pd-cta, .pd-buy, .pd-buy-row {
    display: flex !important;
    gap: 10px !important;
    padding: 0 16px 20px !important;
  }
  .pd-cta .btn, .pd-buy .btn { flex: 1; padding: 14px 18px !important; border-radius: 999px !important; }

  /* Sticky add-to-cart bar (uses .pd-stickybar from mockup; if not present, no-op) */
  .pd-stickybar {
    position: fixed;
    bottom: var(--bottomnav-h);
    left: 0; right: 0;
    z-index: 55;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 10px 14px;
    display: none;
    align-items: center;
    gap: 10px;
  }
  .pd-stickybar.is-visible { display: flex; }

  /* ============================================================
     CART / CHECKOUT — slimmer mobile
     ============================================================ */
  .checkout-grid,
  .cart-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 16px !important;
  }
  .cart-item, .cart__item {
    grid-template-columns: 80px 1fr !important;
    gap: 12px !important;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-mob);
    padding: 12px !important;
  }

  /* ============================================================
     BREADCRUMB
     ============================================================ */
  .breadcrumb {
    padding: 14px 16px 0 !important;
    font-size: 11px !important;
    flex-wrap: wrap;
  }

  /* ============================================================
     BUTTONS — globalny mobile look (pigułka)
     ============================================================ */
  .btn {
    padding: 13px 18px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
  }
  .btn--lg { padding: 15px 22px !important; font-size: 15px !important; }
  .btn--block { width: 100%; }

  /* ============================================================
     BOTTOM NAVIGATION (sticky, 5 ikon)
     HTML injected by layouts/default.inc.php
     ============================================================ */
  .bottomnav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    background: rgba(255,255,255,.95);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
    padding-bottom: var(--safe-bottom);
    display: block;
  }
  .bottomnav__inner {
    max-width: 480px;
    margin: 0 auto;
    height: var(--bottomnav-h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
  }
  .bottomnav__item {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-3);
    padding: 8px 4px;
    letter-spacing: 0.02em;
    position: relative;
    text-decoration: none !important;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--sans);
    line-height: 1.2;
  }
  .bottomnav__item.is-active { color: var(--accent-dark); }
  .bottomnav__item.is-active::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 2px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
  }
  .bottomnav__item svg { width: 22px; height: 22px; stroke-width: 1.6; }
  .bottomnav__item.is-active svg { color: var(--accent); }
  .bottomnav__badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-family: var(--sans);
    border: 2px solid #fff;
  }
  .bottomnav__badge:empty { display: none; }

  /* When NOT on mobile, hide bottom nav (default) */

  /* ============================================================
     SEARCH SHEET (full-screen overlay; HTML injected by layout)
     ============================================================ */
  .searchsheet {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 110;
    transform: translateY(-100%);
    transition: transform .3s cubic-bezier(.22,.61,.36,1);
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
  }
  .searchsheet.is-open { transform: translateY(0); }
  .searchsheet__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  .searchsheet__input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-soft);
    border-radius: 999px;
    border: 1px solid transparent;
  }
  .searchsheet__input:focus-within { border-color: var(--accent); background: #fff; }
  .searchsheet__input input {
    flex: 1;
    border: 0;
    background: none;
    outline: none;
    font-size: 15px;
    width: 100%;
  }
  .searchsheet__cancel { color: var(--accent-dark); font-weight: 600; font-size: 14px; padding: 0 4px; background: none; border: 0; }
  .searchsheet__body { flex: 1; overflow-y: auto; padding: 18px 16px; }
  .searchsheet__title {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600;
    margin-bottom: 10px;
  }
  .searchsheet__chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .searchsheet__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--bg-soft);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 500;
    border: 0;
    text-decoration: none;
  }

  /* ============================================================
     TOAST — global notification
     ============================================================ */
  .toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--bottomnav-h) + 20px + var(--safe-bottom));
    transform: translateX(-50%) translateY(20px);
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    max-width: calc(100vw - 32px);
  }
  .toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .toast svg { color: var(--sage); }

  /* ============================================================
     SCROLL-TO-TOP — w góre nad bottom nav
     ============================================================ */
  #scroll-up {
    bottom: calc(var(--bottomnav-h) + 16px + var(--safe-bottom)) !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: var(--ink) !important;
    color: #fff !important;
    box-shadow: var(--shadow-md);
    z-index: 45;
  }

  /* ============================================================
     ACCESSIBILITY — reduced motion
     ============================================================ */
  @media (prefers-reduced-motion: reduce) {
    .offcanvas, .searchsheet, .toast, .bottomnav__item { transition: none !important; }
  }
}

/* ============================================================
   ABOVE 768px: HIDE all mobile-only chrome (bottom nav, search sheet, toast)
   ============================================================ */
@media (min-width: 769px) {
  .bottomnav, .searchsheet, .toast { display: none !important; }
}
