@import "./footer.css";
@import "./header.css";
@import "./navbar.css";
@import "./support.css";
@import "./varible.css";
*,
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--sticky-offset);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--ink);
    background: var(--surface);
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

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

img {
    height: auto;
}

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

button,
input,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

address {
    font-style: normal;
}

bdi {
    unicode-bidi: isolate;
}

 :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--focus-gap);
}

input:focus-visible {
    outline-offset: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    inset-inline-start: 12px;
    top: 12px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 8px 18px;
    border-radius: 12px;
    background: var(--orange);
    color: var(--on-orange);
    font-weight: 700;
    transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: none;
}

#content:focus {
    outline: none;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    flex: none;
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--fill {
    fill: currentColor;
    stroke: none;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

main>section+section {
    margin-top: 36px;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-family: "Morabba";
    /* font-family: var(--font-head); */
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.section-title img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.title-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--green);
}

.title-icon .icon {
    width: 1.6rem;
    height: 1.6rem;
}

.section-heading {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.section-text {
    display: flex;
    min-width: 0;
}

.section-sub {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--muted);
}

.section-link:dir(ltr) .icon {
    transform: scaleX(-1);
}

.section-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}


/* ----------hero---------- */

.hero {
    padding-top: 14px;
}

.carousel {
    position: relative;
}

.track {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 10px 8px 20px;
    margin: -10px -8px -20px;
    scroll-padding-inline: 8px;
    scroll-behavior: smooth;
    anchor-name: var(--anchor, --track);
}

.track>* {
    flex: none;
    scroll-snap-align: start;
}

.track img {
    -webkit-user-drag: none;
    user-select: none;
}

.track>.track-edge {
    width: 0;
    scroll-snap-align: none;
}

.carousel-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--gap);
    min-width: 0;
}

.carousel-body>.track {
    flex: 1 1 0;
    min-width: 0;
}

.wrapper-car-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.car-btn {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: black;
    box-shadow: 0 2px 8px rgba(10, 40, 28, 0.1);
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.car-btn[hidden] {
    display: none;
}

.car-btn:hover:not(:disabled) {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.car-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.car-btn .icon {
    width: 1.3rem;
    height: 1.3rem;
    stroke-width: 2.2;
    color: #0d4d38;
}

.car-btn:dir(ltr) .icon {
    transform: scaleX(-1);
}

.track>* {
    scroll-margin-block: 30vh;
}

.track>.card:target {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.card-weight {
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--muted);
}

@media (pointer: fine) {
    .track {
        scrollbar-width: thin;
        scrollbar-color: var(--green) var(--field);
    }
    .offer .track {
        scrollbar-color: var(--orange) rgba(255, 255, 255, 0.705);
    }
}


/* ---------- hero grid ---------- */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "side" "promos";
    gap: var(--gap, 1rem);
    min-width: 0;
}

.swiper {
    grid-area: main;
    width: 100%;
    min-width: 0;
    height: 300px;
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-main {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
    direction: ltr;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(135deg, #083e2c 0%, #0d543c 100%);
    border-radius: var(--radius-lg, 24px);
    box-shadow: 0 10px 30px rgba(8, 62, 44, 0.15);
}

.hero-main__image {
    display: block;
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    min-width: 0;
    object-fit: contain;
    object-position: center;
}

.hero-main__content {
    display: flex;
    flex: 1 1 55%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 55%;
    min-width: 0;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    overflow-wrap: anywhere;
    padding-top: 0.5rem;
}

.hero-main .hero-emoji {
    display: block;
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    line-height: 1.2;
    user-select: none;
}

.hero-title,
.side-title {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.5;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.hero-main .hero-title {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
}

.hero-main .hero-text {
    max-width: 38ch;
    margin: 0 0 1rem;
    color: #d1fae5;
    font-size: 0.95rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    max-width: 100%;
    min-height: var(--tap, 44px);
    padding: 0.65rem 1.1rem;
    box-sizing: border-box;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background-color var(--dur, 200ms) var(--ease, ease), color var(--dur, 200ms) var(--ease, ease), transform var(--dur, 200ms) var(--ease, ease), box-shadow var(--dur, 200ms) var(--ease, ease);
}

.hero .btn-primary {
    color: #1a1000;
    background: linear-gradient(135deg, #ffaa00, #ff8f00);
    box-shadow: 0 4px 14px rgba(255, 170, 0, 0.3);
}

.hero .btn-secondary {
    color: #fff;
    background: #0d4d38;
    box-shadow: 0 4px 12px rgba(13, 77, 56, 0.2);
}

.hero-main .btn {
    margin-top: 0.25rem;
}

.hero-side {
    grid-area: side;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
    background-color: #EEF7F1;
    border: 1px solid color-mix(in srgb, #0b7a54 25%, transparent);
    border-radius: var(--radius-lg, 24px);
    min-height: 300px;
    background-image: none;
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 75%;
}

.hero-side-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1rem 160px 1rem;
}

.hero-side .banner-custom-img {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 350px;
    height: auto;
    z-index: 1;
    object-fit: contain;
    pointer-events: none;
}

.side-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.side-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #093424;
    line-height: 1.4;
}

.side-text {
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.hero-side .btn-primary {
    background-color: #093424;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(9, 52, 36, 0.2);
    transition: all 0.3s ease;
}

.hero-side .btn-primary:hover {
    color: #1a1000;
    background: #ffa000;
    transform: translateY(-2px);
}

.hero-promos {
    grid-area: promos;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap, 1rem);
    min-width: 0;
}

.hero-promo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: calc(var(--tap, 44px) + 1rem);
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    background: var(--promo-bg);
    border: 1px solid rgba(10, 40, 28, 0.06);
    border-radius: var(--radius, 1rem);
    font-weight: 500;
    overflow-wrap: anywhere;
    transition: transform var(--dur, 200ms) var(--ease, ease), box-shadow var(--dur, 200ms) var(--ease, ease);
    color: #183525;
}

.hero-promo>span:first-child {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
}

.swiper {
    height: 350px;
}

.swiper .swiper-pagination {
    bottom: 0.5rem;
    z-index: 5;
}

.swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.65;
}

.swiper .swiper-pagination-bullet-active {
    background: #ffaa00;
    opacity: 1;
}

.hero .btn:focus-visible {
    outline: 3px solid #ffaa00;
    outline-offset: 3px;
}

@media (hover: hover) {
    .hero-promo:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(10, 40, 28, 0.12);
    }
    .hero .btn-primary:hover {
        background: #ffa000;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(255, 170, 0, 0.35);
    }
    .hero .btn-secondary:hover {
        background: #083e2c;
        transform: translateY(-2px);
    }
}


/* ---------- features---------- */

.features-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.features-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 14px 8px;
    border-radius: 16px;
    background: var(--bg);
    text-align: center;
}

.features-list li:last-child {
    grid-column: 1 / -1;
}

.f-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mint);
    color: var(--green-deep);
}

.f-icon .icon {
    width: 1.35rem;
    height: 1.35rem;
}

.features-list strong {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
}

.features-list small {
    display: block;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--muted);
}


/* ----------products card---------- */

.products-track>* {
    width: calc((85% - (var(--pv) - 1) * var(--gap)) / var(--pv));
}

.products-track>.card {
    min-width: 130px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform var(--dur) var(--ease);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 14px 28px rgba(10, 40, 28, 0.16);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
    pointer-events: none;
}

.card:focus-within {
    transform: translateY(-4px);
}

.card:focus-within::after {
    opacity: 1;
}

.card-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    border-radius: inherit;
}

.card-media {
    position: relative;
    padding: 10px 10px 0;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-emoji {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    font-size: 2.8rem;
    line-height: 1;
    background: var(--bg);
    border-radius: 10px;
}

.card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 12px;
    text-align: center;
}

.card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 3.2em;
    overflow: hidden;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.6;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.card-title a:focus-visible {
    outline: none;
    box-shadow: none;
}

.card-title a:focus-visible::after {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--radius);
    box-shadow: 0 0 0 2px var(--focus-gap);
}

.chip-off {
    position: absolute;
    z-index: 1;
    inset-block-start: 14px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding-inline: 7px;
    border-radius: var(--radius-pill);
    background: var(--sale);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.card-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px 8px;
}

.price {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 2.7em;
}

.price del {
    font-size: 0.66rem;
    line-height: 1.4;
    color: var(--muted);
}

.price strong {
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--green-night);
}

.price strong small {
    margin-inline-start: 3px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.62rem;
    color: var(--muted);
}

.act-btn {
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.act-btn::before {
    content: "";
    position: absolute;
    inset: -6px;
}

.act-btn .icon {
    width: 1.05rem;
    height: 1.05rem;
}

.act-fav {
    position: absolute;
    z-index: 1;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--muted);
}

.act-fav:hover {
    color: var(--sale);
}

.act-cart {
    width: 36px;
    height: 36px;
    background: var(--green);
    color: #fff;
}

.act-cart:hover {
    background: var(--green-deep);
}

.card--out .card-emoji {
    filter: grayscale(1);
    opacity: 0.4;
}

.card--out .chip-off {
    display: none;
}

.card--out .card-title a,
.card--out .price strong {
    color: var(--muted);
}

.chip-out {
    position: absolute;
    z-index: 1;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 3px rgba(10, 40, 28, 0.08);
    color: #46544d;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.chip-out:dir(rtl) {
    transform: translate(50%, -50%);
}

.act-cart:disabled {
    background: var(--field);
    color: #7d8a84;
    cursor: not-allowed;
}

.act-cart:disabled:hover {
    background: var(--field);
}

.skeleton .sk-media {
    width: calc(100% - 16px);
    aspect-ratio: 4 / 3;
    margin: 8px 8px 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: sk 1.4s infinite;
}

.skeleton .sk-line {
    height: 12px;
    margin: 8px 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: sk 1.4s infinite;
}

.skeleton .sk-line--short {
    width: 60%;
}

.error-msg {
    width: 100%;
    padding: 32px 16px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
    background: var(--field);
    border-radius: 18px;
}


/* ---------- cat-list---------- */

.cat-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--gap);
}

.cat-list>* {
    grid-column: auto !important;
}

.cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px 14px;
    border-radius: 20px;
    border: 1px solid #edf2ef;
    text-align: center;
    height: auto;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.cat-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 2px;
    font-size: 2.2rem;
    line-height: 1;
    user-select: none;
    background: #f1f8f4;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(10, 40, 28, 0.08);
    border-color: #a7f3d0;
}

.cat:hover .cat-img {
    transform: scale(1.1);
}

.cat strong {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.cat small {
    font-size: 0.78rem;
    color: var(--muted);
}


/* ---------- season promo---------- */

.season-promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 22px 18px 58px;
    border-radius: var(--radius-lg);
    background: var(--green);
    color: #fff;
    overflow: hidden;
}

.season-promo-text {
    flex: 1 1 0;
    min-width: 0;
}

.season-promo-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.season-promo-desc {
    margin-top: 6px;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.9;
    color: #fff;
}

.season-promo-art {
    flex: none;
    width: 38%;
    max-width: 150px;
}

.season-promo-art img {
    width: 100%;
    aspect-ratio: 560 / 514;
    object-fit: contain;
}

.season .card-media img {
    aspect-ratio: 4 / 3;
}

.season-box {
    position: relative;
    z-index: 1;
    margin: -34px 10px 0;
    padding: 14px 12px 16px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(10, 40, 28, 0.12);
}

.season-box .section-head {
    margin-bottom: 8px;
}

.season-box .section-title {
    font-size: 1.1rem;
}

.season:target .season-promo {
    box-shadow: 0 0 0 4px var(--orange);
}


/* ---------- brand-card---------- */

.brands-box {
    position: relative;
    isolation: isolate;
    padding: 16px;
    border: 1px solid var(--cream-line);
    border-radius: var(--radius-panel);
    background: var(--cream);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
}

.brand-card .card-link {
    align-items: center;
    width: 100%;
    padding: 12px 6px 10px;
    text-align: center;
}

.brand-logo {
    width: 100%;
    max-width: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    margin-top: 8px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.brand-count {
    font-size: 0.72rem;
    color: var(--muted);
}


/* ---------- category modal ---------- */

.cat-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 16px;
}

.cat-modal[hidden] {
    display: none;
}

.cat-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.cat-modal__panel {
    position: relative;
    width: min(1000px, 100%);
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cat-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cat-modal__title {
    margin: 0;
    font-size: 1.25rem;
}

.cat-modal__close {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.cat-modal__close:hover {
    background: #f5f5f5;
}

.cat-modal__body {
    overflow-y: auto;
    padding: 16px;
    flex: 1;
}

.cat-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.cat-modal__grid>.card {
    width: 100% !important;
    height: 100%;
}

.shop-slogan {
    display: none !important;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr !important;
    /* اجبار به استفاده از یک ستون تمام‌عرض */
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}


/* ---------- Cart Drawer (fixed to the left edge) ---------- */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(24, 12, 5, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.cart-root.is-open .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: min(400px, 94vw);
    height: 100dvh;
    background: var(--surface);
    color: var(--ink);
    border-radius: 0 22px 22px 0;
    box-shadow: 28px 0 56px rgba(24, 12, 5, 0.35);
    transform: translateX(-108%);
    transition: transform 0.28s var(--ease);
}

.cart-root.is-open .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
}

.cart-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cart-close-btn .icon {
    width: 20px;
    height: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--green) transparent;
    scroll-behavior: smooth;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 999px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--green-deep);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.cart-item-emoji {
    font-size: 1.5rem;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-unit {
    font-size: 0.72rem;
    color: var(--muted);
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}

.qty-btn:hover {
    background: var(--green-deep);
}

.qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--field);
    color: var(--muted);
    border: 1px solid var(--line);
}

.cart-item-q {
    min-width: 34px;
    text-align: center;
    font-weight: 800;
    font-size: 0.92rem;
}

.cart-item-price {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--green-night);
    white-space: nowrap;
    display: none;
}

.cart-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--sale);
    cursor: pointer;
    transition: background var(--dur) var(--ease);
}

.cart-item-remove:hover {
    background: rgba(198, 40, 58, 0.14);
}

.cart-item-remove .icon {
    width: 18px;
    height: 18px;
}

.cart-footer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-summary strong {
    font-size: 1.05rem;
}

.cart-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.cart-empty-emoji {
    font-size: 2.6rem;
}

@media (prefers-reduced-motion: reduce) {
    .cart-panel,
    .cart-overlay {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-nav {
        animation: none;
        transition: none;
    }
    .hero-slide.s1 {
        opacity: 1;
    }
    .hero-nav.n1 {
        visibility: visible;
    }
    .track {
        scroll-behavior: auto;
    }
}

@keyframes heroNav {
    0%,
    33% {
        visibility: visible;
    }
    33%,
    100% {
        visibility: hidden;
    }
}

@keyframes heroFade {
    0%,
    30% {
        opacity: 1;
    }
    33%,
    96% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes sk {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
    }
    .card:hover::after {
        opacity: 1;
    }
}