/* Storefront mobile-specific layer */
.tool-link-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.header-search button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.mobile-quick-nav {
    display: none;
}

.mobile-more-nav {
    display: none;
}

@media (max-width: 860px) {
    body {
        padding-bottom: 78px;
    }

    .utility-bar {
        display: none;
    }

    .campaign-strip {
        display: none;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .header-top {
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: 0;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .brand {
        width: 100%;
        justify-content: flex-start;
        padding: 6px 10px;
    }

    .brand strong {
        font-size: 0.95rem;
    }

    .header-search {
        grid-template-columns: 1fr auto;
    }

    .header-search input {
        min-height: 42px;
        font-size: 16px;
    }

    .header-search button {
        min-width: 98px;
        min-height: 42px;
    }

    .header-tools {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .tool-link {
        min-width: 0;
        min-height: 44px;
        padding: 4px 8px;
        border-radius: 10px;
        text-align: center;
    }

    .tool-link-title {
        justify-content: center;
        font-size: 0.78rem;
    }

    .tool-link span[id] {
        font-size: 0.72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-nav-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .main-nav a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 8px;
        text-align: center;
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .main-nav .nav-extra {
        display: none;
    }

    .mobile-more-nav {
        display: block;
        max-width: var(--layout-max);
        margin: 0 auto;
        padding: 0 var(--layout-pad) 8px;
    }

    .mobile-more-nav summary {
        list-style: none;
        cursor: pointer;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid #d7c5b1;
        background: #fff4e8;
        color: #6c503a;
        font-weight: 700;
    }

    .mobile-more-nav summary::-webkit-details-marker {
        display: none;
    }

    .mobile-more-links {
        margin-top: 6px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .mobile-more-links a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid #decdbb;
        background: #fff9f3;
        color: #6a4f3a;
        font-size: 0.78rem;
        font-weight: 700;
        text-align: center;
    }

    .page {
        padding-top: 12px;
    }

    .page-section {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .intro-band,
    .hero-home,
    .panel,
    .path-card,
    .product-card,
    .category-tile {
        border-radius: 12px;
    }

    h1 {
        font-size: clamp(1.45rem, 5vw, 1.9rem);
        line-height: 1.15;
        max-width: 100%;
    }

    h2 {
        font-size: clamp(1.16rem, 3.8vw, 1.45rem);
    }

    .lede {
        font-size: 0.96rem;
        line-height: 1.45;
    }

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

    .checkout-progress span {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 6px;
    }

    .status-strip-more {
        grid-column: 1 / -1;
    }

    .status-strip div {
        padding: 8px 9px;
    }

    .mobile-quick-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        background: linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(246, 234, 218, 0.98));
        border-top: 1px solid #d8c5b1;
        box-shadow: 0 -8px 20px rgba(80, 58, 37, 0.12);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-quick-nav a {
        min-height: 58px;
        display: grid;
        place-items: center;
        gap: 2px;
        color: #6c513a;
        font-size: 0.72rem;
        font-weight: 700;
        border-right: 1px solid #e2d2c2;
    }

    .mobile-quick-nav a:last-child {
        border-right: 0;
    }

    .mobile-quick-nav a span:first-child {
        font-size: 0.86rem;
        line-height: 1;
    }

    .mobile-quick-nav a.active {
        color: #8a4f21;
        background: rgba(210, 144, 74, 0.14);
    }
}

@media (max-width: 620px) {
    body {
        padding-bottom: 82px;
    }

    .header-tools .tool-link span[id] {
        display: none;
    }

    .main-nav-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav a {
        justify-content: center;
    }

    .hero-actions,
    .product-hero-actions,
    .table-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    button,
    .button,
    .add-button {
        min-height: 46px;
    }

    .hero-media-stack,
    .hero-support-card {
        display: none;
    }

    .hero {
        gap: 6px;
    }

    .hero-copy .lede {
        margin-bottom: 8px;
    }

    .hero-meta {
        display: none;
    }

    .hero-actions .button {
        min-height: 42px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .mobile-more-links {
        grid-template-columns: 1fr;
    }

    .status-strip {
        grid-template-columns: 1fr;
    }
}
