.web-foot-policy-bar { display: none; }

.web-foot-nav summary {
  list-style: none;
}
.web-foot-nav summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 768px) {
  .web-foot-group {
    display: block;
  }
  .web-foot-group > :not(summary) {
    display: block !important;
  }
  .web-foot-nav details > ul,
  .web-foot-nav .web-foot-group > ul {
    display: grid !important;
  }
  .web-foot-nav summary {
    pointer-events: none;
  }
}

/* Bridge: full mobile-app-trend-concept.css → Laravel layout (≤767px) */

@media (min-width: 768px) {
  /* Desktop layout handled by desktop-from-mobile.css */
  .phone-shell-bridge {
    all: unset;
    display: block;
    width: 100%;
  }

  /* Kill phone-shell constraints from prototype CSS on wide screens */
  .phone-shell,
  .catalog-main.phone-shell-bridge {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Content shell must match header width (--desk-w / --content-w), not full bleed */
  .catalog-main.phone-shell-bridge.content-shell,
  .catalog-main.app-main.content-shell,
  main.content-shell {
    width: 100% !important;
    max-width: var(--content-w, var(--web-w, var(--desk-w, 1180px))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--content-pad, 24px) !important;
    padding-right: var(--content-pad, 24px) !important;
    padding-top: 0 !important;
    padding-bottom: 48px !important;
    box-sizing: border-box !important;
  }

/* Home: full-bleed hero; content-shell width only for catalog pages */
@media (min-width: 768px) {
  body.is-catalog-home main.catalog-main.content-shell,
  body.is-catalog-home main.catalog-main.app-main.content-shell,
  body.is-catalog-home main.content-shell {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.is-catalog-home .web-hero {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.is-catalog-home .web-hero-stage {
    width: 100%;
    max-width: none;
  }

  /* Keep non-hero home blocks aligned to header width */
  body.is-catalog-home .web-home > *:not(.web-hero) {
    max-width: var(--content-w, var(--web-w, var(--desk-w, 1180px)));
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--content-pad, 24px);
    padding-right: var(--content-pad, 24px);
    box-sizing: border-box;
  }

  /* Fit keeps its own inset; brands box aligns to content grid (no extra pad) */
  body.is-catalog-home .web-fit {
    padding-left: 0;
    padding-right: 0;
  }

  body.is-catalog-home .home-brands--web.web-section {
    padding-left: 0;
    padding-right: 0;
    max-width: calc(var(--content-w, var(--web-w, var(--desk-w, 1180px))) - 2 * var(--content-pad, 24px));
  }
}

  .bottom-nav,
  .app-topbar.mobile-header {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.mobile-app-shell {
    margin: 0;
    padding: 0 !important;
    min-width: 320px;
    font-family: "Onest", ui-sans-serif, system-ui, sans-serif;
    font-synthesis: none;
    background:
      radial-gradient(circle at 12% 0%, rgba(10, 99, 216, 0.13), transparent 32%),
      radial-gradient(circle at 100% 24%, rgba(21, 154, 93, 0.1), transparent 28%),
      var(--paper, #f2efe8) !important;
    color: var(--ink, #151a1f);
  }

  .desktop-header,
  .web-home,
  .web-cat-backdrop {
    display: none !important;
  }

  /* Compact .web-footer on mobile: same links, compressed; policy first */
  .web-footer {
    display: block !important;
    --foot-bg: #2b2e3f;
    --foot-line: rgba(255, 255, 255, 0.1);
    --foot-muted: rgba(255, 255, 255, 0.58);
    --foot-text: #f4f1ea;
    margin-top: 12px;
    background: var(--foot-bg);
    color: var(--foot-text);
    padding: 0 12px calc(118px + 12px) !important;
  }

  .web-foot-policy-bar {
    display: block;
    margin: 0 0 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--foot-line);
  }

  .web-footer .web-foot-policy {
    color: #7eb6ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }

  .web-foot-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--foot-line);
  }

  .web-foot-group {
    border: 1px solid var(--foot-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
  }

  .web-foot-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    padding: 12px 14px;
    min-height: 44px;
    box-sizing: border-box;
  }

  .web-foot-nav summary::-webkit-details-marker {
    display: none;
  }

  .web-foot-nav summary::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-right: 1.5px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
    transform: rotate(45deg);
    margin-top: -4px;
  }

  .web-foot-group[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  .web-footer h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
  }

  .web-footer ul {
    list-style: none;
    margin: 0;
    padding: 0 14px 12px;
    display: grid;
    gap: 8px;
    font-size: 12px;
    color: var(--foot-muted);
  }

  .web-footer a {
    color: inherit;
    text-decoration: none;
  }

  .web-foot-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--foot-line);
  }

  .web-foot-brand-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .web-foot-logo img {
    width: 96px;
    height: auto;
    display: block;
  }

  .web-foot-brand-copy {
    font-size: 11px;
    color: var(--foot-muted);
    max-width: 28ch;
  }

  .web-foot-brand-copy p {
    margin: 0;
  }

  .web-foot-brand-copy .web-foot-policy {
    display: none;
  }

  .web-foot-ratings {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .web-foot-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 3px 8px 3px 3px;
    border: 1px solid var(--foot-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--foot-text);
    text-decoration: none;
  }

  .web-foot-badge__logo {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
    flex-shrink: 0;
  }

  .web-foot-badge__copy {
    display: grid;
    gap: 0;
    line-height: 1.15;
  }

  .web-foot-badge__name {
    font-size: 10px;
    font-weight: 600;
    color: var(--foot-muted);
  }

  .web-foot-badge__score {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
  }

  .web-foot-legal {
    margin: 10px 0 0;
    font-size: 10px;
    line-height: 1.35;
    color: var(--foot-muted);
  }

  .web-foot-legal a {
    color: inherit;
  }

  /* Laravel main — nearly full-bleed on mobile */
  .catalog-main.phone-shell-bridge {
    container-type: inline-size;
    position: relative;
    display: block;
    width: 100% !important;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 8px 118px !important;
    max-width: none !important;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
  }

  /* Filters drawer must escape phone-shell overflow and sit above backdrop */
  body.mobile-filters-open .catalog-main.phone-shell-bridge,
  .catalog-main.phone-shell-bridge.filters-fixed {
    container-type: normal !important;
    overflow: visible !important;
    position: relative;
    z-index: 80;
  }

  body.mobile-filters-open .category-filters-panel.catalog-filter-form,
  body.mobile-filters-open .category-filters-aside .category-filters-panel {
    z-index: 90 !important;
  }

  body.mobile-filters-open .mobile-bottom-nav {
    visibility: hidden;
    pointer-events: none;
  }


  /* Map Laravel header → app-topbar look (classes added in Blade) */
  header.mobile-header.app-topbar {
    position: sticky;
    top: 0;
    z-index: 24;
    display: grid !important;
    grid-template-columns: minmax(116px, auto) minmax(0, 1fr) 44px;
    gap: 7px;
    align-items: center;
    margin: 0 -8px;
    padding: 12px 10px 11px;
    border-bottom: 1px solid rgba(21, 26, 31, 0.06);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(21, 26, 31, 0.05);
    backdrop-filter: blur(22px) saturate(1.14);
    color: var(--ink, #151a1f);
  }

  header.mobile-header.app-topbar .mobile-brand {
    display: grid;
    place-items: center;
    height: auto;
    background: transparent;
  }

  header.mobile-header.app-topbar .mobile-brand img {
    width: min(126px, 100%);
    height: auto;
    filter: none;
  }

  /* Bottom nav: use prototype .bottom-nav */
  nav.mobile-bottom-nav.bottom-nav {
    position: fixed;
    z-index: 30;
    right: 8px;
    bottom: 9px;
    left: 8px;
    max-width: none;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    align-items: end;
    min-height: auto;
    padding: 8px 6px 10px;
    border: 0;
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
  }

  /* Dock overlays to full mobile width (override 430px prototype frame) */
  .drawer,
  .search-panel,
  .category-filter-sheet,
  .city-sheet,
  aside.mobile-drawer.drawer,
  .mobile-search-panel,
  .bottom-nav,
  .floating-buybar {
    left: 8px !important;
    right: 8px !important;
    max-width: none !important;
  }

  .category-page,
  .category-layout,
  .category-listing {
    max-width: none;
    width: 100%;
  }

  .category-page {
    padding: 0 0 40px !important;
  }

  .catalog-main.phone-shell-bridge {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }


  /* Prefer prototype drawer look; open state from Laravel JS */
  aside.mobile-drawer.drawer {
    background: var(--surface-strong, #fff) !important;
    color: var(--ink, #151a1f) !important;
  }

  body.mobile-menu-open .mobile-drawer.drawer,
  body.mobile-menu-open aside.drawer {
    transform: translateX(0);
  }

  /* Links inside drawer (prototype used buttons) */
  .drawer .drawer-submenu a,
  .drawer .drawer-links a {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
  }

  .drawer .drawer-links a:hover,
  .drawer .drawer-submenu a:hover {
    background: rgba(10, 99, 216, 0.08);
  }

  .screen-home a.category-card,
  .screen-home a.rental-wide-card,
  .screen-home a.all-categories,
  .screen-home a.store-more {
    text-decoration: none;
    color: inherit;
  }

  /* Category cards as <a> — match button.category-card */
  .screen-home .category-grid > a.category-card {
    cursor: pointer;
  }
}

/* responsive-picture: keep existing img selectors working */
picture { display: contents; }

/* Tiles: display:contents on picture can make Safari ignore <source> and fetch img src (2MB PNG). */
.web-tile picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* mobile-header-flex-20260830 */
@media (max-width: 767px) {
    header.mobile-header.app-topbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        grid-template-columns: none !important;
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 56px;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    header.mobile-header.app-topbar .mobile-brand {
        display: block !important;
        flex: 0 1 auto;
        min-width: 0;
        height: auto;
        overflow: hidden;
        color: #151a1f;
        font-family: Onest, ui-sans-serif, system-ui, sans-serif;
        font-size: 30px;
        font-weight: 900;
        letter-spacing: -0.05em;
        line-height: 1;
        text-align: left;
        text-decoration: none;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    header.mobile-header.app-topbar .mobile-brand img,
    header.mobile-header.app-topbar .mobile-brand picture {
        display: none !important;
    }

    header.mobile-header.app-topbar .mobile-header-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 4px;
    }

    header.mobile-header.app-topbar .mobile-city-picker {
        position: relative;
    }

    header.mobile-header.app-topbar .mobile-city-menu {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        z-index: 60;
        min-width: 196px;
        margin: 0;
        padding: 6px;
        list-style: none;
        border: 1px solid rgb(21 26 31 / 10%);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 12px 28px rgb(21 26 31 / 14%);
    }

    header.mobile-header.app-topbar .mobile-city-menu button {
        display: block;
        width: 100%;
        padding: 9px 10px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #151a1f;
        font-size: 14px;
        font-weight: 600;
        text-align: left;
    }

    header.mobile-header.app-topbar .mobile-city-menu button.is-active {
        background: #eef4ff;
        color: #0a63d8;
    }

    header.mobile-header.app-topbar .mobile-icon-button {
        position: relative;
        display: grid;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        place-items: center;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #151a1f;
    }

    header.mobile-header.app-topbar .mobile-icon-button svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    header.mobile-header.app-topbar .mobile-geo-button {
        color: #159a5d;
    }

    header.mobile-header.app-topbar .mobile-menu-button {
        background: #0a63d8;
        color: #fff;
    }

    header.mobile-header.app-topbar .mobile-cart-badge {
        position: absolute;
        top: 3px;
        right: 3px;
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        border-radius: 999px;
        background: #0a63d8;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        line-height: 15px;
        text-align: center;
    }

    header.mobile-header.app-topbar .mobile-cart-badge[data-empty] {
        display: none;
    }
}

.privacy-consent a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
