﻿.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C45C26;
    letter-spacing: -0.5px;
    text-decoration:none;
}

.logo:hover {
    color: #000;
}

.logo:hover span {
    color: #000;
}

    .logo span {
        color: #2D2118;
    }


/* ===== Header (full width) ===== */
header {
    position: sticky;
    top: 0;
    z-index: 70;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.10);
}

/* Top row */
.header-inner {
    width: 100%;
    padding: .6rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr minmax(0, 672px) 1fr;
    gap: .65rem;
    align-items: center;
    background-color: #fff;
}

.user-icon-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .35rem;
    color: rgba(17,24,39,.75);
    text-decoration: none;
}

.user-icon-wrapper:hover {
    color: #C45C26;
}

.user-icon-wrapper.icon-btn {
    border: none;
    background: transparent;
}

/* User dropdown */
.user-menu-container {
    position: relative;
    margin-right: auto;
    margin-left: auto;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 10rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: .35rem 0;
    z-index: 80;
}

.user-menu-container:hover .user-dropdown {
    display: block;
}

.user-dropdown-item {
    display: block;
    padding: .55rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
}

.user-dropdown-item:hover {
    background: #f5f3f0;
    color: #C45C26;
}

.user-dropdown-form {
    margin: 0;
}

.user-dropdown-item-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.user-icon {
    width: 1.75em;
    height: 1.75em;
}

.user-label {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.65rem
}

    .brand h1 {
        font-size: 1.05rem;
        font-weight: 950;
        letter-spacing: .02em;
        line-height: 1
    }

.location-pill {
    margin-left: .35rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    border-radius: 999px;
    padding: .2rem .7rem;
    border: 1px solid rgba(0,0,0,.18);
    background: rgba(255,255,255,.35);
    white-space: nowrap;
}

    .location-pill b {
        font-weight: 700
    }

/* ===== Search bar ===== */
.search-wrap {
    min-width: 0;
}

.search-amz {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15,23,42,.10);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

    .search-amz:focus-within {
        border-color: rgba(37,99,235,.55);
        box-shadow: 0 0 0 1px rgba(37,99,235,.25), 0 14px 34px rgba(15,23,42,.14);
    }

.search-select {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-right: 1px solid rgba(209,213,219,.95);
    padding: 0 .6rem;
    gap: .45rem;
}

    .search-select select {
        border: none;
        outline: none;
        background: transparent;
        font-size: .9rem;
        color: #111827;
        padding: .6rem .15rem;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        font-weight: 700;
    }

.chev {
    font-size: .75rem;
    color: #6b7280;
    user-select: none;
}

.search-amz input {
    flex: 1;
    border: none;
    outline: none;
    background: #fff;
    padding: .65rem .8rem;
    font-size: 1rem;
    min-width: 0;
}

    .search-amz input::placeholder {
        color: #9ca3af
    }

/*.search-amz button {
    flex: 0 0 auto;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C45C26;
    color: #fff;
    transition: background 120ms ease, transform 80ms ease;
}

    .search-amz button:hover {
        background: #000;
        transform: translateY(-1px)
    }*/

/*.search-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
}*/

/* Search Bar Styles */
.search-wrap {
    position: relative;
    width: 100%;
    max-width: 672px;
    justify-self: center;
}

.search-amz {
    display: flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-select {
    position: relative;
    background-color: #f3f3f3;
    border-right: 1px solid #ddd;
}

    .search-select select {
        appearance: none;
        background-color: transparent;
        border: none;
        padding: 0.65rem .5rem 0.75rem 0.555rem;
        font-size: 0.9rem;
        cursor: pointer;
        outline: none;
    }

.chev {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.7rem;
}

#searchInput {
    flex: 1;
    padding: 0.75rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-amz button[type="submit"] {
    background-color: #C45C26;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .search-amz button[type="submit"]:hover:not(:disabled) {
        background-color: #e88900;
    }

    .search-amz button[type="submit"]:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        opacity: 0.6;
    }

.search-icon {
    width: 20px;
    height: 20px;
}

/* Autocomplete Dropdown Styles */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

    .autocomplete-dropdown.active {
        display: block;
    }

.autocomplete-item {
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

    .autocomplete-item:last-child {
        border-bottom: none;
    }

    .autocomplete-item:hover, .autocomplete-item.highlighted {
        background-color: #f5f5f5;
    }

.autocomplete-category {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.autocomplete-highlight {
    font-weight: bold;
}


.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

.action-link {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: .8rem;
    color: rgba(17,24,39,.75);
}

/* Make Call to Order more prominent */
.action-link.call-to-order {
    padding: .65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: #C45C26;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(15,23,42,.18);
    text-align: center;
}

.action-link.call-to-order span:first-child {
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
}

.action-link.call-to-order span:last-child {
    font-weight: 950;
    font-size: .95rem;
    color: #fff;
}

.action-link.call-to-order:hover {
    background: #a94f21;
}

.action-link.call-to-order:focus-visible {
    outline: 3px solid rgba(37,99,235,.45);
    outline-offset: 3px;
}

    .action-link span:first-child {
        font-size: .7rem
    }

    .action-link span:last-child {
        font-weight: 900;
        color: var(--text)
    }

.icon-btn {
    position: relative;
    border-radius: 999px;
    padding: .4rem .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.35);
    border: 1px solid rgba(0,0,0,.18);
    font-size: 1rem;
}

.badge {
    position: absolute;
    top: -4px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: .6rem;
    font-weight: 900;
    padding: .05rem .32rem;
    border-radius: 999px;
}

/* ===== Category bar ===== */
.catbar {
    width: 100%;
    background: #f9f7f4;
    color: #111827;
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.12);
    position: relative;
}

.catbar-inner {
    width: 100%;
    padding: .45rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.cat-left {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
}

.hamb {
    width: 34px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,.18);
    background: rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #111827;
}

.allbtn {
    font-weight: 950;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .55rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.18);
    background: rgba(255,255,255,.35);
    white-space: nowrap;
    color: #111827;
}

.cat-right {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.cat-right .call-to-order {
    display: flex;
    flex-direction: column;
    padding: .45rem .9rem;
    border-radius: 999px;
    /*border: 1px solid rgba(0,0,0,.08);*/
  /*  background: #C45C26;*/
    color: #000000;
    text-decoration: none;
  /*  box-shadow: 0 16px 34px rgba(15,23,42,.18);*/
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
}

.cat-right .call-to-order span:first-child {
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
}

.cat-right .call-to-order span:last-child {
    font-weight: 950;
    font-size: .85rem;
    color: #000000;
}

.cat-right .call-to-order:hover {
    background: #a94f21;
}

.cat-right .call-to-order:focus-visible {
    outline: 3px solid rgba(37,99,235,.45);
    outline-offset: 3px;
}

.cat-links {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    overflow: auto;
    scrollbar-width: thin;
    padding-bottom: .15rem;
    flex: 1 1 auto;
}

    .cat-links::-webkit-scrollbar {
        height: 6px
    }

    .cat-links::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.18);
        border-radius: 999px
    }

.cat-link {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: .92rem;
    padding: .35rem .55rem;
    border-radius: 10px;
    border: 1px solid transparent;
    white-space: nowrap;
    opacity: .95;
    transition: background 120ms ease, border-color 120ms ease, opacity 120ms ease;
    color: #111827;
    position: relative;
}

    .cat-link:hover {
       /* background: rgba(0,0,0,.06);*/
        border-color: rgba(0,0,0,.12);
        opacity: 1;
    }

/* ===== Mega menus (per dropdown) ===== */
.mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #f9f7f4;
    border-top: 1px solid rgba(0,0,0,.10);
    border-bottom: 1px solid rgba(0,0,0,.14);
    box-shadow: 0 18px 44px rgba(15,23,42,.18);
    z-index: 65;
}

    .mega[data-open="true"] {
        display: block;
    }

.mega-inner {
    padding: .9rem 1.25rem 1.1rem;
}

.mega-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.mega-title {
    font-weight: 950;
    letter-spacing: -.01em;
}

.mega-sub {
    font-size: .82rem;
    color: rgba(17,24,39,.75);
}

.mega-card {
    background: rgba(255,255,255,.35);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    padding: .8rem;
}

.mega-grid-4 {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1rem;
}

.mega-grid-3 {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1rem;
}

.mega-grid-2-hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 1rem;
}

/* Mega menu layout with a left category column */
.mega-grid-left {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.mega-left {
    position: sticky;
    top: .75rem;
    max-height: calc(70vh - 2rem);
    overflow: auto;
}

    .mega-left::-webkit-scrollbar {
        width: 8px;
    }

    .mega-left::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.18);
        border-radius: 999px;
    }

.mega-cat {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .55rem;
    padding: .5rem .55rem;
    border-radius: 10px;
    transition: background 100ms ease, border-color 100ms ease;
}

    .mega-cat:hover,
    .mega-cat.mega-cat--active {
        background: rgba(196,92,38,.08);
        border-color: rgba(196,92,38,.22);
    }

.mega-cat-img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}

.mega-cat-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .mega-cat::after {
        content: '›';
        opacity: .5;
        font-weight: 900;
        flex-shrink: 0;
    }

    .mega-cat--active::after {
        opacity: 1;
        color: #C45C26;
    }

.mega-panel {
    background: rgba(255,255,255,.35);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    padding: .9rem;
    min-height: 260px;
    max-height: calc(70vh - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
}

    .mega-panel::-webkit-scrollbar {
        width: 6px;
    }

    .mega-panel::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.15);
        border-radius: 999px;
    }

.mega-panel-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 950;
    margin-bottom: .35rem;
}

.mega-panel-sub {
    font-size: .85rem;
    color: rgba(17,24,39,.72);
    margin-bottom: .75rem;
}

.mega-panel-loading,
.mega-panel-empty {
    font-size: .9rem;
    color: rgba(17,24,39,.6);
    padding: 1.5rem 0;
    text-align: center;
}

.mega-panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2.5rem 1rem;
    color: rgba(17,24,39,.45);
    font-size: .95rem;
}

.mega-panel-placeholder-icon {
    font-size: 2rem;
}

.mega-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .7rem;
}

.mega-subcat {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    text-decoration: none;
    color: #111827;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.55);
    overflow: hidden;
    transition: transform 100ms ease, box-shadow 100ms ease, border-color 100ms ease;
}

    .mega-subcat:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15,23,42,.10);
        border-color: rgba(196,92,38,.30);
    }

.mega-subcat-img {
    aspect-ratio: 16/10;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
}

    .mega-subcat-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 200ms ease;
    }

    .mega-subcat:hover .mega-subcat-img img {
        transform: scale(1.05);
    }

.mega-subcat-img--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C45C26 0%, #e88900 100%);
}

.mega-subcat-initial {
    font-size: 1.6rem;
    font-weight: 950;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.15);
    user-select: none;
}

.mega-subcat-body {
    padding: .55rem .65rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.mega-subcat-name {
    font-weight: 850;
    font-size: .88rem;
}

.mega-subcat-desc {
    font-size: .78rem;
    color: rgba(17,24,39,.6);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mega-subcat-seeall {
    display: inline-block;
    flex-shrink: 0;
    font-weight: 850;
    font-size: .82rem;
    color: #C45C26;
    text-decoration: none;
    padding: .45rem .7rem;
    border-radius: 10px;
    border: 1px solid rgba(196,92,38,.18);
    transition: background 100ms ease;
}

    .mega-subcat-seeall:hover {
        background: rgba(196,92,38,.08);
    }

/* Image tiles inside mega */
.m-tile {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

    .m-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(15,23,42,.14);
        border-color: rgba(37,99,235,.35);
    }

.m-img {
    aspect-ratio: 16/9;
    background: #e5e7eb;
    overflow: hidden;
}

    .m-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.m-body {
    padding: .65rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

    .m-body b {
        font-weight: 950;
    }

    .m-body span {
        font-size: .82rem;
        color: rgba(17,24,39,.72);
        line-height: 1.35;
    }

/* list links inside mega cards */
.m-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
}

    .m-list a {
        display: block;
        padding: .4rem .45rem;
        border-radius: 10px;
        color: #111827;
        text-decoration: none;
        font-weight: 800;
        font-size: .9rem;
        border: 1px solid transparent;
        background: rgba(255,255,255,.18);
    }

    .m-list a.mega-cat {
        display: flex;
    }

        .m-list a:hover {
            background: rgba(0,0,0,.06);
            border-color: rgba(0,0,0,.12);
        }

/* service cards used in some mega variants */
.service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: .5rem .75rem;
    align-items: center;
    padding: .85rem;
    border-radius: 16px;
    background: rgba(255,255,255,.35);
    border: 1px solid rgba(0,0,0,.10);
    text-decoration: none;
    color: #111827;
    position: relative;
    overflow: hidden;
    min-height: 110px;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(15,23,42,.14);
        border-color: rgba(37,99,235,.35);
    }

.svc-ico {
    grid-row: 1 / span 2;
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(0,0,0,.10);
}

.svc-copy b {
    display: block;
    font-weight: 950;
}

.svc-copy span {
    display: block;
    font-size: .82rem;
    color: rgba(17,24,39,.72);
    line-height: 1.35;
}

.svc-img {
    position: absolute;
    right: -12px;
    bottom: -18px;
    width: 140px;
    height: 110px;
    opacity: .45;
    transform: rotate(6deg);
}

    .svc-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 18px;
    }


/* ===== Responsive Design ===== */

/* ── Tablet (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .mega-grid-left {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .mega-cat-img {
        width: 24px;
        height: 24px;
        min-width: 24px;
        border-radius: 6px;
    }

    .mega-cat {
        gap: .4rem;
        padding: .4rem .45rem;
        font-size: .85rem;
    }

    .actions {
        gap: 1.5rem;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

    /* Remove backdrop-filter so position:fixed mega overlays work correctly */
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }

    /* Header: two-row layout – brand + actions on top, full-width search below */
    .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: .4rem;
        padding: .5rem .75rem;
    }

    #accountActionLink {
        flex: 0 0 auto;
        text-align: left;
    }

    .header-inner > .brand {
        grid-area: brand;
    }

    .header-inner > .search-wrap {
        grid-area: search;
    }

    .header-inner > .actions {
        grid-area: actions;
    }

    .brand {
        gap: .75rem;
    }

    .search-wrap {
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
    }

    .actions {
        gap: 1rem;
    }

    /* Compact action link – hide greeting, keep label */
    #accountActionLink span:first-child {
        display: none;
    }

    #accountActionLink span:last-child {
        font-size: .75rem;
    }

    /* Hide search category selector – search covers all categories on mobile */
    .search-select {
        display: none;
    }

    .search-amz {
        border-radius: 8px;
    }

    .search-amz input {
        padding: .55rem .7rem;
        font-size: .93rem;
    }

    .search-amz button[type="submit"] {
        padding: .55rem .8rem;
    }

    /* Autocomplete dropdown */
    .autocomplete-dropdown {
        max-height: 50vh;
        border-radius: 0 0 8px 8px;
    }

    /* ── Category bar ── */
    .catbar-inner {
        padding: .3rem .75rem;
        gap: .4rem;
    }

    .cat-right {
        display: none;
    }

    .cat-links {
        gap: .2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cat-links::-webkit-scrollbar {
        display: none;
    }

    .cat-links a {
        font-size: .78rem;
        padding: .25rem .4rem;
    }

    .allbtn {
        font-size: .82rem;
        padding: .28rem .45rem;
    }

    /* ── Mega menu – full-screen overlay ── */
    .mega {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: none;
        border-radius: 0;
    }

    .mega-inner {
        padding: .65rem .75rem .85rem;
        min-height: 100%;
    }

    .mega-head {
        position: sticky;
        top: 0;
        background: #f9f7f4;
        z-index: 5;
        padding-bottom: .5rem;
        border-bottom: 1px solid rgba(0,0,0,.08);
        margin-bottom: .65rem;
    }

    .mega-title {
        font-size: .95rem;
    }

    .mega-sub {
        font-size: .78rem;
    }

    /* All departments – single column, hide right subcategory panel */
    .mega-grid-left {
        grid-template-columns: 1fr;
    }

    .mega-left {
        max-height: none;
        position: static;
    }

    .mega-right {
        display: none;
    }

    .mega-cat {
        padding: .6rem .5rem;
        border-bottom: 1px solid rgba(0,0,0,.04);
        border-radius: 8px;
    }

    .mega-cat:last-child {
        border-bottom: none;
    }

    .mega-cat-img {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    /* Other mega grids */
    .mega-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .mega-grid-3 {
        grid-template-columns: 1fr;
    }

    .mega-grid-2-hero {
        grid-template-columns: 1fr;
    }

    .mega-subgrid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    /* Service cards – hide decorative image on mobile */
    .service-card {
        min-height: 80px;
        padding: .65rem;
    }

    .svc-img {
        display: none;
    }

    /* Tiles */
    .m-tile {
        min-height: 140px;
    }
}

/* ── Extra-small screens (≤ 480px) ── */
@media (max-width: 480px) {
    .header-inner {
        padding: .4rem .55rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .actions {
        gap: .7rem;
    }

    .search-amz input {
        padding: .5rem .6rem;
        font-size: .88rem;
    }

    .catbar-inner {
        padding: .25rem .55rem;
    }

    .mega-grid-4 {
        grid-template-columns: 1fr;
    }

    .mega-subgrid {
        grid-template-columns: 1fr 1fr;
    }
}
