* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --page: #f7f5f0;
    --paper: #ffffff;
    --ink: #151515;
    --muted: #6e6a63;
    --line: #ded8ce;
    --soft: #ebe7df;
    --accent: #28594f;
    --radius: 6px;
}

body {
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
    font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
}

.mobile-shop-catalog {
    display: none;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 245, 240, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transition: transform .24s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1220px;
    min-height: 70px;
    margin: 0 auto;
    padding: 14px 22px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.logo {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.search-form {
    position: relative;
    width: min(520px, 100%);
    margin: 0 auto;
}

.search-form input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    padding: 0 44px 0 14px;
    outline: none;
}

.search-form input:focus {
    border-color: var(--ink);
}

.search_sbtn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 5px;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 360px;
    overflow: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 30;
}

.search-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}

.search-item:hover {
    background: var(--soft);
}

.search-item img {
    width: 50px;
    height: 62px;
    object-fit: cover;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.cart-icon,
.account-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    display: grid;
    place-items: center;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.all-products {
    padding: 38px 0 72px;
}

.container_na {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px;
}

.listing-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

h1 {
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 520;
    line-height: .95;
}

.section-subtitle {
    max-width: 580px;
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.section-title {
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 520;
    line-height: .95;
}

.listing-action,
.pagination a,
.pagination span {
    min-height: 42px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    font-weight: 650;
}

.listing-action:hover,
.pagination a:hover,
.pagination .current-page {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.product-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
}

.product-image {
    aspect-ratio: 4 / 5;
    background: var(--soft);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.product-info {
    padding: 13px;
}

.subcategory {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.new-tag {
    display: inline-flex;
    margin-left: 8px;
    color: #111;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.discount-tag {
    display: inline-flex;
    margin-left: 8px;
    color: #0f6b46;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.shipping-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #5f5038;
    font-size: 11px;
    font-weight: 760;
    text-transform: uppercase;
}

.shipping-tag .fa-plane {
    transform: rotate(-45deg);
}

.promo-countdown {
    display: block;
    margin-top: 6px;
    color: #0f6b46;
    font-size: 11px;
    font-weight: 750;
}

.product-name {
    min-height: 42px;
    margin: 7px 0 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 560;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.price {
    font-weight: 720;
    white-space: nowrap;
    display: grid;
    gap: 2px;
}

.price-now {
    color: #0f6b46;
}

.price-was {
    color: var(--muted);
    font-size: 12px;
    font-weight: 560;
    text-decoration: line-through;
}

.grid-cart-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 5px;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.grid-cart-btn:hover {
    background: var(--accent);
}

.pagination {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination span:not(.current-page) {
    color: var(--muted);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 42px 0;
    color: var(--muted);
    text-align: center;
}

.empty-state p {
    margin-bottom: 14px;
}

.empty-state a {
    color: var(--ink);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-main-desktop {
    min-height: 330px;
    padding: 48px 22px;
    background: #1d1d1d;
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
}

.join-our-world {
    font-size: 26px;
    font-weight: 560;
}

.sub-text,
.md-tc {
    max-width: 620px;
    color: rgba(255,255,255,.62);
}

.main-desktop-form {
    width: min(620px, 100%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 18px 0;
}

.md-form-input {
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: #fff;
    padding: 0 14px;
    outline: none;
}

.main-subscribe-btn {
    min-height: 44px;
    border: 0;
    background: #fff;
    color: #111;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .header-left {
        grid-column: 1 / -1;
        order: 3;
    }

    .search-form {
        width: 100%;
    }

    .listing-head {
        display: block;
    }

    .listing-action {
        margin-top: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        overflow: hidden;
    }

    body {
        background: #fbf8f2;
    }

    body .mobile-shop-catalog {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    }

    .main-header,
    .all-products,
    .footer-main-desktop,
    .product-quick-view-overlay {
        display: none !important;
    }

    .mobile-shop-catalog {
        display: block;
        height: calc(100dvh - 54px - env(safe-area-inset-bottom));
        min-height: 0;
        background: #fbf8f2;
    }

    .mobile-shop-header {
        height: 60px;
        padding: 0 12px 0 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        box-shadow: none;
        position: relative;
        z-index: 2;
    }

    .mobile-shop-brand {
        color: #171317;
        font-size: 23px;
        font-weight: 400;
        letter-spacing: -.03em;
    }

    .mobile-shop-support {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #2f2930;
        font-size: 14px;
        font-weight: 450;
    }

    .mobile-shop-support i {
        color: #6f405f;
        font-size: 20px;
    }

    .mobile-shop-layout {
        height: calc(100% - 60px);
        min-height: 0;
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .mobile-category-rail {
        min-width: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        background: #f2f2f2;
        padding-bottom: 14px;
    }

    .mobile-category-rail::-webkit-scrollbar,
    .mobile-category-content::-webkit-scrollbar {
        display: none;
    }

    .mobile-category-rail button,
    .mobile-rail-support {
        width: 100%;
        min-height: 48px;
        padding: 7px 2px;
        display: flex;
        align-items: center;
        border: 0;
        border-left: 3px solid transparent;
        background: transparent;
        color: #4f4a4d;
        text-align: left;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.22;
        cursor: pointer;
    }

    .mobile-category-rail button.active {
        border-left-color: #111;
        background: #f2f2f2;
        color: #111;
        font-weight: 500;
    }

    .mobile-category-rail button:hover,
    .mobile-category-rail button:focus-visible,
    .mobile-rail-support:hover,
    .mobile-rail-support:focus-visible {
        color: #111;
    }

    .mobile-rail-support {
        gap: 5px;
        margin-top: 8px;
    }

    .mobile-category-content {
        min-width: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding: 14px 8px 20px 4px;
        background: #fff;
    }

    .mobile-category-section {
        scroll-margin-top: 12px;
        margin-bottom: 18px;
    }

    .mobile-category-section[hidden] {
        display: none;
    }

    .mobile-category-section h2 {
        margin: 0 0 10px;
        color: #282228;
        font-size: 16px !important;
        font-weight: 600;
        line-height: 1.2;
    }

    .mobile-subcategory-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px 3px;
    }

    .mobile-subcategory-link {
        width: min(62px, 100%);
        min-width: 0;
        justify-self: start;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #3b3639;
        text-align: center;
    }

    .mobile-subcategory-image {
        width: 100%;
        max-width: 62px;
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: 50%;
        background: #f2f2f2;
        color: #8a7c84;
        display: grid;
        place-items: center;
    }

    .mobile-subcategory-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-subcategory-image i {
        font-size: 20px;
    }

    .mobile-subcategory-name {
        width: 100%;
        min-height: 31px;
        display: -webkit-box;
        overflow: hidden;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.3;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .mobile-shop-empty {
        padding: 20px 8px;
        color: #706a6e;
        font-size: 14px;
    }

    .header-inner,
    .container_na {
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo {
        font-size: 12px;
    }

    h1,
    .section-title {
        font-size: 44px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 13px;
    }

    .main-desktop-form {
        grid-template-columns: 1fr;
    }
}
