* {
    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%;
}

.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: #7b3038;
    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,
.section-title {
    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;
}

.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(4, minmax(0, 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;
}

.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);
}

.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) {
    .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;
    }
}
