/* Mobile layout (max-width 760px). Desktop stays unchanged. */

.add-label-short {
  display: none;
}

#shop-more-toggle {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 64px;
  }

  .container {
    width: min(1120px, calc(100% - 24px));
  }

  .section {
    padding: 20px 0 4px;
  }

  .section-head {
    margin: 0 0 10px;
  }

  h1 {
    font-size: clamp(1.45rem, 7vw, 1.7rem);
  }

  h2 {
    font-size: clamp(1.15rem, 4.4vw, 1.35rem);
  }

  .lede {
    font-size: 0.92rem;
    margin-bottom: 0.55em;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(253, 246, 240, 0.96);
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }

  .site-nav,
  .auth-slot {
    grid-column: 1 / -1;
  }

  .wordmark-name {
    font-size: 1.12rem;
  }

  .wordmark-domain {
    margin-top: 2px;
    font-size: 0.62rem;
  }

  .cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .cart-btn {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
    position: relative;
  }

  .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.65rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .site-header.is-open .cart-btn {
    display: none;
  }

  .site-header.is-open .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
  }

  .hero {
    gap: 16px;
    padding: 18px 0 4px;
  }

  .hero-collage {
    grid-template-rows: 100px 100px;
    gap: 8px;
  }

  .hero .button-row .btn {
    min-height: 42px;
    padding: 0 14px;
  }

  .guarantees {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .guarantees li {
    padding: 10px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 14px;
  }

  .guarantees li:last-child {
    grid-column: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .steps li {
    padding: 12px;
  }

  .steps span {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }

  #ponudba,
  #offer-tabs-cats,
  #kako,
  .offer-grid {
    scroll-margin-top: 68px;
  }

  .filter-bar,
  .filter-panel {
    gap: 8px;
  }

  .search-field {
    flex: 1 1 100%;
  }

  .filter-bar label,
  .filter-panel label,
  .value-bon label,
  .field {
    display: grid;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
  }

  .value-bon {
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    padding: 12px;
    margin: 6px 0 10px;
    align-items: end;
  }

  .value-bon > div:first-child,
  .value-picks,
  #value-note {
    grid-column: 1 / -1;
  }

  .value-bon h3 {
    font-size: 1rem;
  }

  .value-bon > div:first-child p {
    font-size: 0.82rem;
  }

  .value-bon label input,
  #value-amount {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 12px;
    font-weight: 550;
  }

  .value-bon #value-add {
    min-height: 44px;
    white-space: nowrap;
  }

  .value-pick {
    min-height: 40px;
    padding: 0 12px;
  }

  .tabs {
    gap: 6px;
    padding: 2px 0 8px;
  }

  .tab {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  /* Two-column offer cards */
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .offer-card img {
    height: 120px;
  }

  .offer-body {
    padding: 8px 8px 10px;
    gap: 4px;
  }

  .offer-card h3 {
    font-size: 0.88rem;
  }

  .offer-meta {
    font-size: 0.75rem;
  }

  .price-now {
    font-size: 0.98rem;
  }

  .offer-card [data-quick] {
    display: none;
  }

  .add-label-full {
    display: none;
  }

  .add-label-short {
    display: inline;
  }

  .offer-card .btn {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.88rem;
    margin-top: 4px;
  }

  .package-note,
  .fine-print {
    font-size: 0.82rem;
  }

  /* Smaller sticky gift; only after hero, never over the cookie banner */
  .sticky-gift {
    display: none;
    left: auto;
    right: 16px;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(90, 52, 36, 0.18);
  }

  body.sticky-gift-on .sticky-gift {
    display: flex;
  }

  body.has-consent .sticky-gift,
  body.modal-open .sticky-gift {
    display: none !important;
  }

  body {
    padding-bottom: 28px;
  }

  body.sticky-gift-on {
    padding-bottom: 72px;
  }

  body.has-consent {
    padding-bottom: 16px;
  }

  .consent {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .consent p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .consent-actions .btn {
    min-height: 40px;
  }

  .note-card,
  .contact-block,
  .faq-list {
    padding: 16px;
  }

  .site-footer {
    margin-top: 16px;
    padding: 20px 0 14px;
  }
}

/* Mobile order: offers sooner, extras behind one control */
@media (max-width: 760px) {
  main {
    display: flex;
    flex-direction: column;
  }

  main > .hero {
    order: 0;
  }

  #kako {
    order: 1;
  }

  #ponudba {
    order: 2;
  }

  #obljube {
    order: 3;
  }

  #za-stranjo {
    order: 6;
  }

  #vprasanja {
    order: 7;
  }

  #kontakt {
    order: 8;
  }

  #kako {
    padding-top: 12px;
    padding-bottom: 0;
  }

  #kako .section-head {
    margin-bottom: 8px;
  }

  .steps {
    display: flex;
    gap: 8px;
  }

  .steps li {
    flex: 1;
    min-width: 0;
    padding: 8px;
  }

  .steps span {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .steps strong {
    font-size: 0.75rem;
    line-height: 1.25;
    margin-bottom: 0;
  }

  .steps p {
    display: none;
  }

  #shop-more-toggle {
    display: inline-flex;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .filter-bar {
    align-items: end;
    flex-wrap: wrap;
  }

  .filter-bar .search-field {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-collage {
    grid-template-rows: 90px 90px;
    gap: 6px;
  }

  .filter-bar > label:not(.search-field),
  #filter-toggle,
  .value-bon,
  .package-note,
  .filter-panel {
    display: none;
  }

  #ponudba.is-shop-open .filter-bar > label:not(.search-field) {
    display: grid;
  }

  #ponudba.is-shop-open #filter-toggle {
    display: inline-flex;
  }

  #ponudba.is-shop-open .value-bon {
    display: grid;
  }

  #ponudba.is-shop-open .package-note {
    display: block;
  }

  #ponudba.is-shop-open .filter-panel.is-open {
    display: flex;
  }
}

/* Mobile: category tab row; sticky gift button stays hidden */
@media (max-width: 760px) {
  #offer-tabs-cats {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }

  #offer-tabs-cats .tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  /* Keep sticky gift off the offer cards */
  .sticky-gift,
  body.sticky-gift-on .sticky-gift {
    display: none !important;
  }

  body.sticky-gift-on {
    padding-bottom: 28px;
  }
}
