/* ==========================================================================
   Mobile-first layer
   Everything here is scoped to narrow screens — the desktop layout is untouched.
   Loaded after every other stylesheet so it can refine, not fight.
   ========================================================================== */

@media (max-width: 700px) {
  :root {
    --m-safe-b: env(safe-area-inset-bottom, 0px);
  }

  .store-header .header-actions .mobile-menu { display: inline-flex !important; }

  /* ---------- compact sticky header ---------- */
  .store-header { position: sticky; top: 0; z-index: 40; background: var(--surface); }
  .header-main { padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .search-box { margin: 0 0 10px; }
  .announcement { position: relative; }

  /* ---------- section rhythm ---------- */
  .section { margin-top: 34px; }
  .shelf-caption, .section-head, .section-heading { margin-bottom: 12px; }

  /* ---------- home shelves: swipeable rows ---------- */
  .product-shelf .product-grid {
    display: flex; gap: 10px; overflow-x: auto; padding: 2px 12px 10px 20px; margin: 0 -12px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    /* leading air: the first card never hugs the screen edge, and a snapped
       card keeps the same 20px lead on every swipe */
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .product-shelf .product-grid::-webkit-scrollbar { display: none; }
  .product-shelf .product-grid > * {
    flex: 0 0 62%; max-width: 62%; scroll-snap-align: start;
  }
  .product-shelf .product-grid > *:last-child { margin-right: 12px; }
  .shelf-caption, .product-shelf .section-head { display: flex; align-items: center; justify-content: space-between; }

  /* ---------- category circles: swipeable ---------- */
  .category-grid {
    display: flex !important; grid-template-columns: none !important;
    gap: 10px; overflow-x: auto; padding: 2px 12px 8px; margin: 0 -12px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-grid > * { flex: 0 0 96px; scroll-snap-align: start; }
  .category-grid .category-card { border-radius: 18px; }
  .category-grid .category-card img, .category-grid .category-card .category-photo { border-radius: 50%; }

  /* ---------- shop page: filter sheet ---------- */
  .m-filter-fab {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(16px + var(--m-safe-b)); z-index: 54;
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
    border: 0; border-radius: 999px; background: var(--navy); color: #fff;
    font-family: var(--font); font-size: 13.5px; font-weight: 600;
    box-shadow: 0 10px 26px rgba(10, 31, 68, .32);
  }
  .m-filter-fab svg { width: 17px; height: 17px; }
  .m-filter-fab .m-fab-count {
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--accent); font-family: var(--num); font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .shop-filters {
    display: block !important; position: fixed !important; z-index: 70;
    left: 0; right: 0; bottom: 0; top: auto; max-height: 84vh; overflow: auto;
    border-radius: 22px 22px 0 0; padding: 20px 18px calc(24px + var(--m-safe-b));
    transform: translateY(104%); transition: transform .3s cubic-bezier(.32, .72, .3, 1);
    box-shadow: 0 -18px 50px rgba(10, 31, 68, .24); border: 0;
  }
  .shop-filters.is-open { transform: none; }
  .shop-filters::before {
    content: ""; position: sticky; top: -20px; display: block; width: 44px; height: 4px;
    margin: -8px auto 10px; border-radius: 3px; background: var(--line-2);
  }
  .m-sheet-backdrop {
    position: fixed; inset: 0; z-index: 65; background: rgba(7, 15, 30, .42);
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .m-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .shop-results { padding-bottom: 12px; }
  .results-toolbar { position: sticky; top: 58px; z-index: 30; background: var(--surface); }

  /* ---------- product card polish ---------- */
  .product-card { border-radius: 16px; }
  .product-card .product-photo img { aspect-ratio: 3 / 4; }
  .product-card .card-cart-button span { display: none; }
  .product-card .card-cart-button { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; padding: 0; }
  .card-actions { gap: 8px; }

  /* ---------- pagination: bigger touch target ----------
     .pagination button (0,1,1) outranked .page-step (0,1,0), so the height set
     here never applied; scope the rule to beat it. */
  .pagination .page-step,
  .table-footer .page-step { height: 48px; min-height: 48px; padding: 0 24px; font-size: 14.5px; }
  .page-steps { gap: 12px; }

  /* ---------- footer + floating helpdesk ---------- */
  .footer { padding-bottom: 28px; }
  /* the helpdesk toggle is NOT its own fixed button any more: it lives inside
     .contact-dock, which carries the bottom/safe-area offset. Pushing it with
     `bottom` only made it ride up over the cart circle on phones. */

  /* forms get comfortable thumbs */
  .btn, .form-actions .btn { min-height: 46px; }
  input, select, textarea { font-size: 16px; } /* stops iOS zoom-on-focus */
}

/* Very small phones */
@media (max-width: 380px) {
  .product-shelf .product-grid > * { flex-basis: 68%; max-width: 68%; }
}

/* ---------- mobile hero: shorter, thumb-friendly ---------- */
@media (max-width: 700px) {
  .smart-hero, .hero { border-radius: 20px; }
  .hero-slide { min-height: 0 !important; }
  .hero-slide .hero-copy {
    min-height: 0 !important; padding: 84px 18px 18px !important; justify-content: flex-end !important;
  }
  .hero-slide .hero-copy h1,
  .hero-slide .hero-copy h1[style] { font-size: 26px !important; line-height: 1.3 !important; margin: 0 0 6px !important; }
  .hero-slide .hero-copy > p {
    font-size: 13px !important; line-height: 1.6 !important; margin: 0 0 12px !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-slide .hero-copy .eyebrow { font-size: 10px !important; margin-bottom: 8px !important; }
  .hero-slide .hero-copy .hero-actions,
  .hero-slide .hero-copy .btn-row { display: flex; gap: 8px; }
  .hero-slide .hero-copy .btn { min-height: 42px; padding: 0 16px !important; font-size: 13.5px !important; border-radius: 999px; }
  .hero-slide .hero-foot { display: none !important; }
  .hero-slides { height: auto !important; min-height: 0 !important; }
  .smart-hero { display: block !important; }
  .hero-slide .hero-art { height: 210px !important; inset: 0 0 auto 0 !important; }
  .hero-slide .hero-art img { object-fit: cover; width: 100%; height: 210px !important; object-position: center 35%; }
  .hero-slide .hero-art:before { background: linear-gradient(180deg, rgba(8, 16, 30, .25) 0%, rgba(8, 16, 30, .05) 40%, transparent 100%) !important; }

  /* campaign cards in the strip read like compact banners */
  .campaign-strip .campaign-card { flex-basis: 88%; padding: 16px !important; border-radius: 18px !important; }
  .campaign-strip .campaign-card.has-image { grid-template-columns: 1fr !important; }
  .campaign-strip .campaign-card.has-image .campaign-media { height: 92px !important; margin-bottom: 10px; }
  .campaign-strip .campaign-card h3 { font-size: 19px !important; }
  .campaign-strip .campaign-card p { font-size: 12.5px !important; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .campaign-strip .campaign-cta, .campaign-strip .campaign-coupon { min-height: 40px; font-size: 12.5px; }

  /* trust strip: 2 x 2 instead of a tall column */
  .trust-strip, .service-strip, .perks-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
  .trust-strip > *, .service-strip > *, .perks-row > * { min-height: 0 !important; }

  /* category chips row (sub-categories) scrolls horizontally */
  .subfilter-row, .filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .subfilter-row::-webkit-scrollbar, .filter-chips::-webkit-scrollbar { display: none; }
  .subfilter, .filter-chip { flex: 0 0 auto; white-space: nowrap; }

  /* campaign stage + long panels keep their corners tidy */
  .campaign-stage { grid-template-columns: 1fr !important; min-height: 0 !important; border-radius: 20px !important; }
  .campaign-stage-wrap { padding-top: 8px; }
  /* ---------- campaign buttons: offer + coupon + products on one row ----------
     The short "পণ্য" label is only swapped in here; desktop keeps the full
     "সব ক্যাম্পেইন পণ্য" wording. */
  .campaign-stage .campaign-stage-actions { flex-wrap: nowrap !important; gap: 6px !important; align-items: stretch; }
  .campaign-stage .campaign-stage-actions .campaign-cta,
  .campaign-stage .campaign-stage-actions .campaign-hero-coupon {
    flex: 1 1 0 !important; width: auto !important; min-width: 0;
    padding: 0 9px !important; height: 40px; gap: 5px !important;
    font-size: 11.5px !important; justify-content: center; white-space: nowrap;
  }
  .campaign-stage .campaign-stage-actions .campaign-cta .icon,
  .campaign-stage .campaign-stage-actions .campaign-hero-coupon .icon { width: 13px !important; height: 13px !important; }
  .campaign-stage .campaign-stage-actions .campaign-hero-coupon b { font-size: 11.5px !important; letter-spacing: .2px; }
  .campaign-stage .campaign-stage-actions .campaign-hero-coupon small { font-size: 10.5px !important; }
  /* the product shortcut now wears the same button skin as "অফার দেখুন" */
  .campaign-stage .campaign-stage-actions .campaign-stage-link {
    flex: 0 0 auto !important; width: auto !important; min-width: 0;
    padding: 0 11px !important; height: 42px; gap: 5px !important;
    font-size: 11.5px !important; font-weight: 700 !important;
    justify-content: center; white-space: nowrap;
    text-decoration: none; opacity: 1;
    background: var(--accent) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 10px;
  }
  /* light theme paints .btn with accent-ink, so match it exactly */
  html:not([data-theme="dark"]) .campaign-stage .campaign-stage-actions .campaign-stage-link {
    background: var(--accent-ink) !important;
    border-color: var(--accent-ink);
  }
  .campaign-stage .campaign-stage-actions .campaign-stage-link:hover { opacity: .92; }
  .campaign-stage .campaign-stage-actions .campaign-stage-link .icon { width: 13px !important; height: 13px !important; }
  .campaign-stage .campaign-stage-actions .campaign-stage-link .csl-short { display: inline; }
  .campaign-stage .campaign-stage-actions .campaign-stage-link .csl-long { display: none; }
  .panel, .card, .coupon-card { border-radius: 16px; }
  .table-scroll { border-radius: 12px; }
}

/* ---------- campaign stage: compact banner on phones ---------- */
@media (max-width: 700px) {
  .campaign-stage-wrap { padding-top: 6px !important; margin-bottom: 18px !important; }
  .campaign-stage {
    grid-template-columns: 1fr !important; min-height: 0 !important;
    border-radius: 18px !important;
  }
  .campaign-stage-art { order: -1; height: 132px !important; min-height: 0 !important; }
  .campaign-stage-art img { width: 100%; height: 132px !important; object-fit: cover; object-position: center 42%; }
  .campaign-stage-copy { padding: 16px 16px 18px !important; gap: 9px !important; }
  .campaign-stage h2 { font-size: 22px !important; line-height: 1.28 !important; letter-spacing: 0 !important; }
  .campaign-stage p {
    font-size: 12.5px !important; line-height: 1.6 !important; margin: 0 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .campaign-stage-actions { gap: 8px !important; margin-top: 2px !important; }
  .campaign-stage-actions .campaign-cta { flex: 1 1 auto; justify-content: center; min-height: 42px; font-size: 13px; }
  .campaign-stage-actions .campaign-hero-coupon { flex: 0 0 auto; min-height: 42px; font-size: 12.5px; padding: 0 12px; }
  .campaign-stage-link { font-size: 12px !important; padding: 4px 0 !important; }
  .campaign-stage-points { gap: 10px !important; flex-wrap: wrap; font-size: 11.5px !important; }
  .campaign-badge { font-size: 10px !important; padding: 3px 9px !important; }
  .campaign-timer { font-size: 11px !important; padding: 4px 9px !important; }
}

/* ---------- compact campaign strip cards ---------- */
@media (max-width: 700px) {
  .campaign-strip .campaign-card { flex-basis: 84% !important; }
  .campaign-strip .campaign-card .campaign-media { height: 76px !important; border-radius: 12px; }
  .campaign-strip .campaign-card h3 { font-size: 17px !important; margin: 6px 0 2px; }
  .campaign-strip .campaign-card p { font-size: 12px !important; margin-bottom: 6px !important; }
  .campaign-strip .campaign-card .campaign-actions { gap: 8px; }
  .campaign-strip .campaign-card .campaign-cta { flex: 1 1 auto; justify-content: center; min-height: 40px; font-size: 12.5px; padding: 0 12px; }
  .campaign-strip .campaign-card .campaign-coupon { flex: 0 0 auto; min-height: 40px; font-size: 11.5px; padding: 0 10px; }
  .campaign-strip .campaign-card .campaign-tags { gap: 6px; }
  .campaign-strip .campaign-card .campaign-timer { font-size: 10.5px; padding: 3px 8px; }
}

/* ---------- filter button lives in the results toolbar, not over the content ---------- */
@media (max-width: 700px) {
  .m-filter-fab { display: none !important; }
  .results-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
  .results-toolbar .m-inline-filter {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    height: 38px; padding: 0 13px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--surface); color: var(--navy);
    font-family: var(--font); font-size: 12.5px; font-weight: 600;
  }
  .results-toolbar .m-inline-filter.is-on { border-color: var(--accent); color: var(--accent-ink); background: rgba(242, 106, 33, .08); }
  .results-toolbar .m-inline-filter svg { width: 15px; height: 15px; }
  .results-toolbar .m-inline-filter i {
    min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent); color: #fff;
    font-family: var(--num); font-size: 10.5px; font-style: normal; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .results-toolbar > * { min-width: 0; }
  /* The item count after the filter button made the row cramped and wrapped
     onto two lines; the toolbar is filter + sort only now. */
  .results-toolbar #result-count { display: none !important; }
  .results-toolbar label { margin-left: auto; gap: 6px; flex: 0 0 auto; }
  /* was max-width:42% — the select was 57px wide and clipped its own label */
  .results-toolbar #sort-select {
    max-width: none; width: auto; min-width: 138px;
    font-size: 13px; padding: 7px 26px 7px 10px;
    background-position: right 8px center;
  }

  /* ---------- filter sheet in dark mode: no olive blocks ----------
     enhancements.css paints every .radio-row olive on phones; inside the
     filter sheet the rows stay transparent (like light mode) and only the
     chosen one gets a faint accent tint. */
  html[data-theme="dark"] .shop-filters .radio-row {
    background: transparent;
    border-color: transparent;
    color: #E3ECF8;
  }
  html[data-theme="dark"] .shop-filters .radio-row span { color: #E3ECF8 !important; }
  html[data-theme="dark"] .shop-filters .radio-row small { color: #9FB0CC !important; }
  html[data-theme="dark"] .shop-filters .radio-row:has(input:checked) {
    background: rgba(242, 106, 33, .10);
    border-color: rgba(242, 106, 33, .35);
    color: #FFD9C4;
  }
  html[data-theme="dark"] .shop-filters .radio-row:has(input:checked) span { color: #FFD9C4 !important; }
}

/* ---------- floating contact dock sits clear of the phone home bar ---------- */
@media (max-width: 700px) {
  .contact-dock {
    bottom: calc(16px + var(--m-safe-b)) !important;
    right: 12px !important;
  }
  .contact-dock-toggle { width: 46px !important; min-width: 46px; height: 46px; padding: 0 !important; border-radius: 50% !important; justify-content: center !important; }
  .contact-dock-toggle .dock-label, .contact-dock-toggle span { display: none; }
  .contact-dock-panel { width: min(320px, calc(100vw - 24px)) !important; }
  .contact-dock.is-open .contact-dock-panel { max-height: calc(100vh - 140px); overflow: auto; }
}

/* ---------- admin: category table becomes a card list on phones ---------- */
@media (max-width: 700px) {
  .table-scroll { overflow: visible; }
  .cat-table thead { display: none; }
  .cat-table, .cat-table tbody, .cat-table tr, .cat-table td { display: block; width: auto; }
  .cat-table tr {
    position: relative; margin: 0 0 10px; padding: 14px 14px 52px;
    border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  }
  .cat-table tr:last-child { margin-bottom: 0; }
  .cat-table td { padding: 0 !important; border: 0 !important; }
  .cat-table td:nth-child(2) { display: none; }                 /* slug is not needed on a card */
  .cat-table td:nth-child(3) {
    position: absolute; top: 14px; right: 14px;
    font-size: 12px; font-weight: 600; color: var(--muted);
  }
  .cat-table td:nth-child(4) { margin-top: 10px; }
  .cat-table td:nth-child(5) {
    position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; margin: 0;
  }
  .cat-table .cat-name-cell > strong { font-size: 16px; }
  .cat-table .cat-name-cell > small { display: block; margin-bottom: 8px; }
  .cat-table .subcat-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .cat-table .subcat-chip { font-size: 12px; }
  .cat-table .subcat-add { font-size: 12px; }
  .cat-table .status-badge { font-size: 11.5px; }

  /* other admin tables keep their columns but scroll instead of squeezing */
  .table-wrap { overflow-x: auto; }
  .table-wrap > table.admin-table { min-width: 620px; }
}

/* ---------- toasts: full width, never cramped ---------- */
@media (max-width: 700px) {
  #toast {
    left: 12px !important; right: 12px !important; transform: translateY(14px) !important;
    max-width: none !important; width: auto !important;
    bottom: calc(18px + var(--m-safe-b)) !important;
    font-size: 13px !important; padding: 11px 13px !important; border-radius: 14px !important;
    justify-content: flex-start; text-align: left; line-height: 1.5;
  }
  #toast.show { transform: none !important; }
}

/* The admin workspace keeps its own layout: no extra bottom padding. */
@media (max-width: 700px) {
  html.m-admin body { padding-bottom: 0 !important; }
  html.m-admin .contact-dock { bottom: 16px !important; }
  html.m-admin #toast { bottom: 18px !important; }
}

/* ---------- horizontal tables get a visible "more to the right" hint ---------- */
@media (max-width: 700px) {
  .table-wrap, .table-scroll {
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  }
  .cat-table-wrap, .cat-table ~ * { -webkit-mask-image: none; mask-image: none; }
  .table-scroll:has(.cat-table) { -webkit-mask-image: none; mask-image: none; }
  .admin-table-tools { flex-direction: column; align-items: flex-start; gap: 4px; }
  .admin-table-tools span { font-size: 12px; }
}

/* ---------- one add-to-cart control per card on phones ---------- */
@media (max-width: 700px) {
  .product-photo .card-cart-button { display: none !important; }
  .card-add-btn {
    height: 40px; font-size: 12.5px; border-radius: 12px;
    left: 10px; right: 10px; bottom: 10px;
  }
  .product-photo { border-radius: 16px; }
  .product-card .heart-button { width: 36px; height: 36px; top: 8px; right: 8px; }
  .product-card .product-tag { font-size: 11px; padding: 4px 9px; border-radius: 8px; top: 8px; left: 8px; }
  .product-title { font-size: 13.5px; line-height: 1.45; }
  .price-line { font-size: 14.5px; }
}

/* Category shelf on phones: when one long name makes the row taller, keep the
   photo+label centred instead of leaving a gap under short tiles. */
@media (max-width:700px){
  .category-grid .category-card{justify-content:center}
}

/* campaign product link: the short "পণ্য" label is a phone-only convenience */
.campaign-stage-link .csl-short { display: none; }
.campaign-stage-link .csl-long { display: inline; }

/* ==========================================================================
   Home page polish — phones only (≤700px). Nothing here touches desktop:
   every selector lives inside this media query, and the tablet/desktop
   layout keeps its own rules in style.css / campaigns.css.
   ========================================================================== */
@media (max-width: 700px) {
  /* 1. header search — the খুঁজুন button now caps the end of the field */
  #search-form.search-box {
    padding: 0 0 0 14px !important;
    gap: 8px;
    overflow: hidden;
    min-height: 44px;
    align-items: stretch;
  }
  #search-form.search-box > .icon { align-self: center; flex: 0 0 auto; }
  #search-form.search-box input {
    padding: 0 !important; font-size: 13px !important;
    align-self: center; height: auto; min-width: 0;
  }
  #search-form.search-box button[type="submit"] {
    margin-left: auto; align-self: stretch;
    height: auto !important; min-height: 0 !important;
    padding: 0 22px !important;
    border-radius: 0 999px 999px 0 !important;
    font-size: 13.5px !important; font-weight: 700;
    flex: 0 0 auto;
  }

  /* 2. hero carousel — bring the scrim back so the white copy is readable,
        trim the type, drop the dot/arrow/pause controller, breathe at the base */
  .hero-slide .hero-art:before {
    background: linear-gradient(180deg,
      rgba(6, 16, 32, .06) 0%,
      rgba(7, 18, 36, .26) 32%,
      rgba(8, 20, 40, .74) 47%,
      rgba(9, 22, 42, .94) 62%,
      #0A1F44 78%) !important;
  }
  .hero-slide .hero-copy { padding-bottom: 22px !important; }
  .hero-slide .hero-copy h1,
  .hero-slide .hero-copy h1[style] { font-size: 21px !important; line-height: 1.34 !important; }
  .hero-slide .hero-copy > p { font-size: 12px !important; line-height: 1.55 !important; }
  .hero-slide .hero-copy .eyebrow { font-size: 9.5px !important; }
  .smart-hero .hero-carousel-controls,
  .hero .hero-carousel-controls { display: none !important; }
  .smart-hero .hero-slides { margin-bottom: 12px !important; }

  /* 4. trust strip: four perks in a 2 x 2 grid (style.css collapses it to a
        single column below 480px via !important, so this has to out-rank it) */
  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .benefits > div {
    min-width: 0; padding: 10px 12px; gap: 9px;
    align-items: center;
  }
  .benefits > div > span { min-width: 0; }
  .benefits strong { font-size: 12px !important; line-height: 1.3 !important; }
  .benefits small { display: none !important; }
  .benefits .icon { width: 20px !important; height: 20px !important; padding: 3px !important; flex: 0 0 auto; }

  /* 3. strip cards: a lone offer fills the width; with several, one card plus
        about half of the next is visible so it is obvious more exist. */
  .campaign-strip .campaign-card {
    max-width: 100% !important;
    scroll-snap-align: start;
  }
  .campaign-strip .campaign-card:only-child { flex: 0 0 100% !important; }
  .campaign-strip .campaign-card:first-child:nth-last-child(n+2),
  .campaign-strip .campaign-card:first-child:nth-last-child(n+2) ~ .campaign-card {
    flex: 0 0 66% !important;
  }
}

/* Header lockup on phones: the tagline under the shop name was hidden entirely.
   It now shows, small and on a single line, exactly under the name. */
@media (max-width: 700px) {
  .store-header .header-main .brand { min-width: 0; }
  .store-header .header-main .brand .brand-name { min-width: 0; max-width: 100%; }
  .store-header .header-main .brand .brand-name small.brand-tagline {
    display: block !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    letter-spacing: .2px !important;
    font-weight: 600 !important;
    margin-top: -5px !important;
    color: var(--muted) !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .store-header .header-main .brand.image-brand .brand-name small.brand-tagline { display: block !important; }
}

/* Checkout on phones: the confirm button waits until the customer has seen the
   totals. It leaves the form and reappears after the summary. */
@media (max-width: 700px) {
  .checkout-page.simple-checkout .checkout-form .place-order { display: none !important; }
  /* it belongs to the end of the page, not floating over the form */
  /* the divider now closes the total block, so the confirm button sits just
     below that line and just above the "3–5 working days" line */
  .checkout-page .checkout-summary #checkout-totals {
    border-bottom: 1px solid var(--line, #E1E7F1);
    padding-bottom: 4px;
  }
  .checkout-page .checkout-summary .checkout-assurance { border-top: 0; padding-top: 0; }
  .checkout-page .place-order-tail {
    display: flex !important;
    margin: 12px 0 10px;
    box-shadow: 0 12px 26px -14px rgba(10, 31, 68, .45);
    scroll-margin-bottom: 80px;
  }
  .coupon-line { margin: 12px 0 2px; }
  .coupon-line-copy strong { font-size: 13px; }
  .coupon-line-cta { font-size: 11.5px; }
  .coupon-modal .coupon-form { flex-direction: column; }
  .coupon-modal .coupon-form .btn { width: 100%; }
}

/* ==========================================================================
   Offer cards on listing pages (home strip, shop, category shelves):
   phones show only the offer name, its text and its buttons — buttons share
   one row. Desktop keeps the tall card with image + timer untouched.
   ========================================================================== */
@media (max-width: 700px) {
  .campaign-strip .campaign-card {
    padding: 13px 13px 12px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column;
    gap: 7px;
  }
  /* the photo and the countdown are the bulky parts — a card keeps its message only */
  .campaign-strip .campaign-card .campaign-media { display: none !important; }
  .campaign-strip .campaign-card .campaign-timer { display: none !important; }

  .campaign-strip .campaign-card .campaign-tags { gap: 6px; }
  .campaign-strip .campaign-card .campaign-badge {
    font-size: 10px !important; padding: 3px 9px !important;
  }
  .campaign-strip .campaign-card h3 {
    font-size: 15.5px !important; line-height: 1.32 !important; margin: 0 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .campaign-strip .campaign-card p {
    font-size: 11.5px !important; line-height: 1.5 !important; margin: 0 !important;
    -webkit-line-clamp: 2;
  }
  .campaign-strip .campaign-card .campaign-actions {
    display: flex !important; flex-wrap: nowrap !important;
    gap: 7px !important; margin-top: auto !important; padding-top: 2px;
  }
  .campaign-strip .campaign-card .campaign-cta {
    flex: 1 1 auto !important; min-width: 0;
    min-height: 36px !important; height: 36px;
    padding: 0 9px !important; font-size: 11.5px !important;
    justify-content: center; white-space: nowrap; gap: 4px;
  }
  .campaign-strip .campaign-card .campaign-cta .icon { width: 13px !important; height: 13px !important; }
  .campaign-strip .campaign-card .campaign-coupon {
    flex: 0 1 auto !important; min-width: 0;
    min-height: 36px !important; height: 36px;
    padding: 0 9px !important; font-size: 10.5px !important; gap: 4px;
    white-space: nowrap; overflow: hidden;
  }
  .campaign-strip .campaign-card .campaign-coupon b { font-size: 10.5px !important; letter-spacing: .2px; }
  .campaign-strip .campaign-card .campaign-coupon small { font-size: 9.5px; }
  .campaign-strip .campaign-card .campaign-coupon .icon { width: 12px !important; height: 12px !important; }
}
