
:root {
    --nature-50: #f0fdf4;
    --nature-100: #dcfce7;
    --nature-200: #bbf7d0;
    --nature-500: #22c55e;
    --nature-600: #16a34a;
    --nature-700: #15803d;
    --nature-800: #166534;
    --nature-900: #14532d;

    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    --amber-50: #fffbeb;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-800: #92400e;

    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-500: #f43f5e;
    --rose-700: #be123c;

    --orange-50: #fff7ed;
    --orange-600: #ea580c;

    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-800: #1e40af;

    --red-500: #ef4444;

    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-900: #0f172a;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 1.75rem;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 20, 0.05);
    --shadow-md: 0 10px 25px -8px rgba(16, 24, 20, 0.12);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 45px -15px rgba(0, 0, 0, 0.35);

    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8faf9;
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}
input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--nature-500); color: #fff; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* focus visibility for a11y */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--nature-600);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Layout helpers ---------- */
.container {
    max-width: 80rem; /* 1280px */
    margin-inline: auto;
    padding-inline: 0.75rem;
}
.container--narrow { max-width: 64rem; }
.container--tight { max-width: 36rem; }
.section-gap { padding-block: 1rem 1.5rem; }

.is-hidden { display: none !important; }

.ltr-text { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ltr-input { direction: ltr; text-align: right; }
.center-text { text-align: center; }

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--nature-600); border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn--block { width: 100%; }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 0.85rem; border-radius: var(--radius-lg); }

.btn--primary {
    background: var(--nature-600);
    color: #fff;
    box-shadow: 0 10px 20px -6px rgba(22, 163, 74, 0.35);
}
.btn--primary:hover { background: var(--nature-700); }

.btn--accent {
    background: linear-gradient(90deg, var(--emerald-500), var(--nature-600));
    color: #fff;
    box-shadow: 0 15px 30px -10px rgba(6, 78, 59, 0.5);
}
.btn--accent:hover {
    background: linear-gradient(90deg, var(--emerald-600), var(--nature-700));
    transform: translateY(-1px);
}

.btn--ghost {
    background: var(--gray-50);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.btn--ghost:hover {
    background: var(--nature-50);
    color: var(--nature-700);
    border-color: var(--nature-200);
}

.btn--outline {
    background: #fff;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    font-size: 0.8rem;
}
.btn--outline:hover { color: var(--nature-600); }

.btn--translucent {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}
.btn--translucent:hover { background: rgba(255, 255, 255, 0.2); }

.btn--muted {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    font-size: 0.7rem;
}
.btn--muted:hover { background: var(--gray-200); }

.btn--danger-soft {
    background: var(--rose-50);
    color: var(--rose-700);
    border: 1px solid var(--rose-200);
    font-weight: 700;
}
.btn--danger-soft:hover { background: var(--rose-100); }

.btn--pill { border-radius: var(--radius-md); padding: 0.5rem 0.7rem; }

.btn__label { display: none; }

.icon { width: 1rem; height: 1rem; }

.icon-btn {
    width: 1.9rem; height: 1.9rem;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: var(--gray-500);
}
.icon-btn:hover { color: var(--gray-700); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.65rem;
}

.brand { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; flex-shrink: 0; }
.brand__mark {
    width: 2.25rem; height: 2.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--nature-700), var(--nature-500));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.25rem;
    box-shadow: 0 10px 20px -6px rgba(22, 163, 74, 0.3);
}
.brand__text { display: none; }
.brand__name { font-size: 1rem; font-weight: 900; color: var(--nature-900); display: block; line-height: 1.2; }
.brand__tagline { font-size: 0.62rem; color: var(--gray-400); font-weight: 500; }

.search-bar { display: none; position: relative; flex: 1; max-width: 24rem; }
.search-bar input {
    width: 100%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.6rem 2.4rem 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--gray-700);
}
.search-bar input:focus {
    outline: none;
    border-color: var(--nature-500);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.search-bar__icon { width: 1.15rem; height: 1.15rem; color: var(--gray-400); position: absolute; left: 0.75rem; top: 0.65rem; }

.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
    display: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-700);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
}
.nav-link:hover { color: var(--nature-600); }

.cart-btn { position: relative; }
.cart-btn__badge {
    position: absolute;
    top: -0.35rem; right: -0.35rem;
    background: var(--red-500);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    width: 1.1rem; height: 1.1rem;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 5rem; right: 1rem;
    z-index: 9999;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--nature-200);
    padding: 0.75rem 1rem;
    max-width: 20rem;
    transform: translateX(120%);
    transition: transform 0.5s var(--ease-spring);
}
.toast.show { transform: translateX(0); }
.toast__inner { display: flex; align-items: center; gap: 0.6rem; }
.toast__icon {
    width: 2rem; height: 2rem;
    background: var(--nature-100);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.toast__title { font-weight: 800; color: var(--gray-900); font-size: 0.78rem; margin: 0; }
.toast__subtitle { font-size: 0.68rem; color: var(--gray-500); margin: 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: linear-gradient(120deg, var(--nature-800), var(--nature-700) 55%, var(--emerald-800));
    color: #fff;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--nature-600);
}
.hero__bg {
    position: absolute; inset: 0;
    background-image: url('https://images.unsplash.com/photo-1470058869958-2a77ade41c02?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: overlay;
}
.hero__grid {
    position: relative; z-index: 1;
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem;
}
.hero__copy { display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.hero__eyebrow {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.3);
    backdrop-filter: blur(8px);
    color: var(--emerald-300);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
}
.hero__title { font-size: 1.5rem; font-weight: 900; line-height: 1.35; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero__desc { color: rgba(209, 250, 229, 0.9); font-size: 0.8rem; line-height: 1.8; font-weight: 300; max-width: 42rem; margin-inline: auto; }

.hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    max-width: 30rem;
    margin-inline: auto;
    font-size: 0.65rem;
    color: var(--emerald-100);
}
.hero__stat {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    text-align: center;
}
.hero__stat--wide { grid-column: span 2; }
.hero__stat-num { display: block; font-size: 1.05rem; font-weight: 900; color: var(--emerald-300); margin-bottom: 0.15rem; }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; padding-top: 0.5rem; }

.hero__media { display: flex; justify-content: center; }
.hero__photo {
    position: relative;
    width: 100%;
    max-width: 26rem;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-xl);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.hero__photo:hover img { transform: scale(1.05); }
.hero__photo-caption {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1rem;
}
.hero__photo-eyebrow { font-size: 0.65rem; color: var(--emerald-300); font-weight: 700; }
.hero__photo-title { font-size: 0.95rem; font-weight: 900; color: #fff; }

/* ---------- Section heading ---------- */
.section-heading { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading--split { }
.section-heading__title { font-size: 1.15rem; font-weight: 900; color: var(--gray-900); }
.section-heading__sub { font-size: 0.68rem; color: var(--gray-500); margin-top: 0.15rem; }

.badge-soft {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: var(--emerald-300);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ---------- Category grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.category-card {
    background: #fff;
    padding: 0.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.25s ease;
}
.category-card:hover { box-shadow: var(--shadow-md); border-color: var(--nature-200); }
.category-card.is-active { border-color: var(--nature-500); box-shadow: 0 0 0 2px var(--nature-100); }
.category-card__icon {
    width: 2.5rem; height: 2.5rem;
    border-radius: var(--radius-lg);
    margin-inline: auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    transition: all 0.25s ease;
}
.category-card__icon--nature { background: var(--nature-50); }
.category-card:hover .category-card__icon--nature { background: var(--nature-600); color: #fff; }
.category-card__icon--emerald { background: var(--emerald-50); }
.category-card:hover .category-card__icon--emerald { background: var(--nature-600); color: #fff; }
.category-card__icon--amber { background: var(--amber-50); }
.category-card:hover .category-card__icon--amber { background: var(--amber-600); color: #fff; }
.category-card__icon--rose { background: var(--rose-50); }
.category-card:hover .category-card__icon--rose { background: var(--rose-500); color: #fff; }
.category-card__icon--orange { background: var(--orange-50); }
.category-card:hover .category-card__icon--orange { background: var(--orange-600); color: #fff; }
.category-card__icon--blue { background: var(--blue-50); }
.category-card:hover .category-card__icon--blue { background: var(--blue-600); color: #fff; }
.category-card__label { font-weight: 700; font-size: 0.65rem; color: var(--gray-800); margin-top: 0.4rem; }

/* ---------- Filter pills ---------- */
.filter-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-pill {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    white-space: nowrap;
    transition: all 0.2s ease;
}
.filter-pill:hover { background: var(--gray-50); }
.filter-pill.is-active { background: var(--nature-600); color: #fff; border-color: var(--nature-600); }

/* ---------- Products grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.product-card {
    cursor: pointer;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.1); }
.product-card__badge {
    position: absolute; top: 0.4rem; right: 0.4rem;
    background: var(--nature-600); color: #fff;
    font-size: 0.55rem; font-weight: 900;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.product-card__discount {
    position: absolute; top: 0.4rem; left: 0.4rem;
    background: var(--red-500); color: #fff;
    font-size: 0.55rem; font-weight: 900;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
}
.product-card__cat { font-size: 0.6rem; font-weight: 700; color: var(--nature-600); display: block; margin-bottom: 0.15rem; }
.product-card__title {
    font-weight: 800; color: var(--gray-900); font-size: 0.75rem; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card:hover .product-card__title { color: var(--nature-600); }
.product-card__summary {
    font-size: 0.62rem; color: var(--gray-500); margin-top: 0.3rem; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__footer {
    margin-top: 0.75rem; padding-top: 0.6rem;
    border-top: 1px solid var(--gray-50);
    display: flex; align-items: center; justify-content: space-between;
}
.product-card__old-price { font-size: 0.6rem; color: var(--gray-400); text-decoration: line-through; display: block; }
.product-card__price { font-weight: 900; color: var(--nature-800); font-size: 0.75rem; }
.product-card__price small { font-size: 0.55rem; font-weight: 400; color: var(--gray-500); }

.btn-add-cart {
    background: #fff;
    color: var(--nature-800);
    border: 2px solid var(--nature-600);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.btn-add-cart:hover { background: var(--nature-600); color: #fff; transform: scale(1.08); box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3); }
.btn-add-cart:active { transform: scale(0.92); }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 2.5rem 0; color: var(--gray-400); font-weight: 700; font-size: 0.8rem; }

/* ---------- Contact banner ---------- */
.contact-banner {
    background: linear-gradient(135deg, var(--emerald-800), var(--nature-800));
    border-radius: var(--radius-2xl);
    padding: 1.5rem 1.25rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--emerald-600);
}
.contact-banner__grid { display: grid; gap: 1.5rem; align-items: center; }
.contact-banner__copy { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-banner__title { font-size: 1.15rem; font-weight: 900; }
.contact-banner__desc { font-size: 0.72rem; color: rgba(209, 250, 229, 0.8); line-height: 1.8; }
.contact-banner__list { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 0.25rem; font-size: 0.72rem; color: var(--emerald-200); }
.contact-banner__list li { display: flex; align-items: center; gap: 0.4rem; }
.contact-banner__list a { font-weight: 900; color: #fff; }
.contact-banner__list a:hover { text-decoration: underline; }

.contact-banner__card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.contact-banner__card h4 { font-weight: 900; font-size: 0.95rem; }
.contact-banner__card p { font-size: 0.65rem; color: var(--emerald-200); }

/* ---------- Back button ---------- */
.back-btn { margin-bottom: 1.25rem; }

/* ---------- Product detail page ---------- */
.product-detail {
    background: #fff;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    padding: 1rem;
}
.product-detail__grid { display: grid; gap: 1.5rem; align-items: start; }
.product-detail__media { position: relative; }
.product-detail__photo {
    width: 100%; aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
}
.product-detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__shipping {
    margin-top: 0.75rem;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.65rem;
    color: var(--nature-800);
}

.product-detail__info { display: flex; flex-direction: column; gap: 1rem; }
.product-detail__cat {
    display: inline-block;
    background: var(--nature-100); color: var(--nature-700);
    font-weight: 800; font-size: 0.65rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}
.product-detail__title { font-size: 1.25rem; font-weight: 900; color: var(--gray-900); margin-top: 0.4rem; }
.product-detail__rating { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.68rem; color: var(--gray-500); }
.product-detail__rating strong { color: var(--amber-600); font-weight: 700; }

.product-detail__price-box {
    background: var(--gray-50);
    padding: 0.85rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    display: flex; flex-direction: column; gap: 0.75rem;
}
.product-detail__price-label { font-size: 0.65rem; color: var(--gray-400); display: block; }
.product-detail__old-price { font-size: 0.65rem; color: var(--gray-400); text-decoration: line-through; }
.product-detail__price { font-size: 1.3rem; font-weight: 900; color: var(--nature-800); display: block; }
.product-detail__price small { font-size: 0.65rem; color: var(--gray-500); font-weight: 400; }

.product-detail__section { display: flex; flex-direction: column; gap: 0.5rem; }
.product-detail__section h3 { font-weight: 800; color: var(--gray-900); font-size: 0.78rem; }
.product-detail__section p { font-size: 0.75rem; color: var(--gray-600); line-height: 1.9; }

.care-grid { display: grid; gap: 0.5rem; font-size: 0.68rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-100); }
.care-card { padding: 0.65rem; border-radius: var(--radius-xl); }
.care-card--light { background: rgba(255, 251, 235, 0.5); border: 1px solid var(--amber-50); }
.care-card--water { background: rgba(239, 246, 255, 0.5); border: 1px solid var(--blue-50); }
.care-card--soil { background: rgba(236, 253, 245, 0.5); border: 1px solid var(--emerald-50); }
.care-card span { display: block; font-weight: 800; margin-bottom: 0.2rem; }
.care-card--light span { color: var(--amber-800); }
.care-card--water span { color: var(--blue-800); }
.care-card--soil span { color: var(--emerald-800); }
.care-card p { color: var(--gray-600); margin: 0; }

.contact-cta {
    background: var(--emerald-900);
    color: #fff;
    padding: 0.85rem;
    border-radius: var(--radius-xl);
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    text-align: center;
    font-size: 0.68rem;
}
.contact-cta a {
    background: #fff; color: var(--nature-900); font-weight: 800;
    padding: 0.5rem 0.9rem; border-radius: var(--radius-md);
}
.contact-cta a:hover { background: var(--emerald-50); }

/* ---------- Forms (shared) ---------- */
.form { display: flex; flex-direction: column; gap: 0.85rem; }
.form--tight { gap: 0.75rem; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.form__field { display: flex; flex-direction: column; gap: 0.3rem; }
.form__field label { font-size: 0.68rem; font-weight: 700; color: var(--gray-700); }
.form__inline { display: flex; gap: 0.5rem; }
.form__inline-grow { flex: 1; }

.form input[type="text"],
.form input[type="tel"],
.form input[type="password"],
.form textarea {
    width: 100%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.85rem;
    font-size: 0.75rem;
}
.form input:focus, .form textarea:focus {
    outline: none;
    border-color: var(--nature-500);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.form textarea { resize: vertical; }

.field-error { color: var(--red-500); font-size: 0.65rem; font-weight: 700; margin: 0; }

/* ---------- Checkout page ---------- */
.checkout-grid { display: grid; gap: 1.5rem; }
.checkout-form-card {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 1rem;
}
.checkout-form-card__head { border-bottom: 1px solid var(--gray-100); padding-bottom: 0.75rem; }
.checkout-form-card__head h2 { font-size: 1.05rem; font-weight: 900; color: var(--gray-900); }
.checkout-form-card__head p { font-size: 0.65rem; color: var(--gray-500); margin-top: 0.2rem; }

.form__gateway { padding-top: 0.75rem; border-top: 1px solid var(--gray-100); }
.form__gateway > label { display: block; font-size: 0.68rem; font-weight: 700; color: var(--gray-700); margin-bottom: 0.6rem; }
.gateway-option {
    background: rgba(236, 253, 245, 0.6);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    display: flex; align-items: center; justify-content: space-between;
}
.gateway-option__info { display: flex; align-items: center; gap: 0.6rem; }
.gateway-option__icon {
    width: 2.1rem; height: 2.1rem;
    background: var(--emerald-600); color: #fff;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.gateway-option__name { font-weight: 800; font-size: 0.75rem; color: var(--gray-900); display: block; }
.gateway-option__note { font-size: 0.6rem; color: var(--gray-500); }

.order-summary {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    display: flex; flex-direction: column; gap: 0.85rem;
}
.order-summary h3 { font-weight: 800; font-size: 0.85rem; color: var(--gray-900); padding-bottom: 0.6rem; border-bottom: 1px solid var(--gray-100); }
.order-summary__items { display: flex; flex-direction: column; gap: 0.6rem; max-height: 15rem; overflow-y: auto; }
.order-summary__totals { border-top: 1px solid var(--gray-100); padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.72rem; }
.order-summary__row { display: flex; justify-content: space-between; color: var(--gray-500); }
.order-summary__ship { color: var(--nature-600); font-weight: 700; }
.order-summary__row--total { color: var(--gray-900); font-weight: 900; font-size: 0.85rem; padding-top: 0.6rem; border-top: 1px solid var(--gray-100); }
.order-summary__row--total span:last-child { color: var(--nature-700); }

.order-summary-line { display: flex; justify-content: space-between; align-items: center; font-size: 0.68rem; }
.order-summary-line__name { font-weight: 700; color: var(--gray-700); }
.order-summary-line__price { font-weight: 800; color: var(--gray-900); }

/* ---------- Gateway simulator page ---------- */
.gateway-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.gateway-card__head {
    background: var(--slate-900);
    color: #fff;
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.gateway-card__badge {
    display: inline-block;
    background: var(--blue-600);
    font-size: 0.65rem; font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    margin-inline: auto;
}
.gateway-card__head h2 { font-size: 1.05rem; font-weight: 700; }
.gateway-card__head p { font-size: 0.65rem; color: var(--slate-400); }

.gateway-card__body { padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
.gateway-amount-box {
    background: var(--slate-50);
    padding: 0.85rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    text-align: center;
    display: flex; flex-direction: column; gap: 0.15rem;
    font-size: 0.65rem;
    color: var(--gray-500);
}
.gateway-amount-box__amount { font-size: 1.3rem; font-weight: 900; color: var(--emerald-600); }
.gateway-amount-box__ref { color: var(--gray-400); font-size: 0.6rem; }

.card-input { text-align: center; letter-spacing: 0.15em; font-size: 0.95rem; font-weight: 700; color: var(--gray-800); padding: 0.75rem !important; }

.gateway-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.gateway-card__actions .btn { padding-block: 0.85rem; border-radius: var(--radius-xl); font-size: 0.75rem; }

/* ---------- Receipt page ---------- */
.receipt-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--emerald-100);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem 1.25rem;
    text-align: center;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.receipt-card__icon {
    width: 4rem; height: 4rem;
    background: var(--nature-100); color: var(--nature-600);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-inline: auto;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}
.receipt-card h2 { font-size: 1.15rem; font-weight: 900; color: var(--gray-900); }
.receipt-card > div > p { font-size: 0.65rem; color: var(--gray-500); margin-top: 0.4rem; }
.receipt-card__details {
    background: var(--gray-50);
    padding: 0.85rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    font-size: 0.68rem;
    display: flex; flex-direction: column; gap: 0.45rem;
}
.receipt-card__row { display: flex; justify-content: space-between; }
.receipt-card__row span:first-child { color: var(--gray-500); }
.receipt-card__row span:last-child { font-weight: 700; color: var(--gray-800); }
.receipt-card__amount { font-weight: 900; color: var(--nature-600) !important; }

/* ---------- Modal (auth) ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center;
    padding: 0.75rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-card {
    background: #fff;
    width: 100%; max-width: 26rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    padding: 1.25rem;
    position: relative;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.modal-card__close {
    position: absolute; top: 0.85rem; left: 0.85rem;
    width: 1.75rem; height: 1.75rem;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    color: var(--gray-500);
}
.modal-card__close:hover { color: var(--gray-700); }
.modal-card__head { text-align: center; display: flex; flex-direction: column; gap: 0.4rem; }
.modal-card__icon {
    width: 2.5rem; height: 2.5rem;
    background: var(--nature-100); color: var(--nature-600);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    margin-inline: auto;
    font-weight: 700;
}
.modal-card__head h3 { font-size: 1.1rem; font-weight: 900; color: var(--gray-900); }
.modal-card__head p { font-size: 0.65rem; color: var(--gray-500); }
.otp-input { font-size: 1.05rem; letter-spacing: 0.3em; }
.modal-card__foot { text-align: center; font-size: 0.6rem; color: var(--gray-400); border-top: 1px solid var(--gray-100); padding-top: 0.75rem; }

/* ---------- Cart drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 60; }
.drawer-overlay__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.drawer-panel {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 100%; max-width: 26rem;
    background: #fff;
    box-shadow: var(--shadow-xl);
    display: flex; flex-direction: column; justify-content: space-between;
    z-index: 10;
    animation: slide-in 0.3s ease;
}
@keyframes slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
.drawer-panel__head {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; justify-content: space-between;
}
.drawer-panel__title { display: flex; align-items: center; gap: 0.5rem; }
.drawer-panel__title h3 { font-weight: 800; font-size: 0.9rem; color: var(--gray-900); }
.drawer-panel__items { padding: 1rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.drawer-panel__foot { padding: 1rem; border-top: 1px solid var(--gray-100); background: var(--gray-50); display: flex; flex-direction: column; gap: 0.75rem; }
.drawer-panel__subtotal { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 900; }
.drawer-panel__subtotal span:first-child { color: var(--gray-700); }
.drawer-panel__subtotal span:last-child { color: var(--nature-700); font-size: 0.9rem; }

.cart-line {
    display: flex; align-items: center; gap: 0.6rem;
    background: var(--gray-50);
    padding: 0.6rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}
.cart-line img { width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__title { font-weight: 800; font-size: 0.68rem; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line__price { font-size: 0.65rem; font-weight: 700; color: var(--nature-700); display: block; margin-top: 0.2rem; }
.cart-line__qty { display: flex; align-items: center; gap: 0.5rem; background: #fff; padding: 0.2rem 0.5rem; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.cart-line__qty button { font-weight: 700; font-size: 0.85rem; }
.cart-line__qty .plus { color: var(--nature-600); }
.cart-line__qty .minus { color: var(--red-500); }
.cart-line__qty span { font-weight: 700; font-size: 0.68rem; min-width: 1rem; text-align: center; }

.empty-cart { text-align: center; padding: 2.5rem 0; color: var(--gray-400); font-weight: 700; font-size: 0.8rem; }

/* =========================================================
   Responsive breakpoints
   ========================================================= */

/* xs ~480px */
@media (min-width: 30rem) {
    .brand__text { display: block; }
}

/* sm ~640px */
@media (min-width: 40rem) {
    .container { padding-inline: 1.5rem; }
    .section-gap { padding-block: 1.5rem 2rem; }
    .site-header__inner { padding-block: 0.9rem; }
    .brand__mark { width: 2.75rem; height: 2.75rem; font-size: 1.5rem; }
    .header-actions { gap: 0.75rem; }
    .btn { font-size: 0.85rem; padding: 0.65rem 1rem; }
    .btn--pill { padding: 0.6rem 0.9rem; }
    .btn__label { display: inline; }
    .icon { width: 1.15rem; height: 1.15rem; }
    .cart-btn__badge { width: 1.25rem; height: 1.25rem; font-size: 0.68rem; top: -0.4rem; right: -0.4rem; }

    .hero__grid { padding: 2rem; }
    .hero__title { font-size: 2rem; }
    .hero__desc { font-size: 0.85rem; }
    .hero__stats { font-size: 0.7rem; }
    .hero__stat-num { font-size: 1.1rem; }

    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    .category-card { padding: 1rem; }
    .category-card__icon { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
    .category-card__label { font-size: 0.8rem; margin-top: 0.75rem; }

    .section-heading__title { font-size: 1.3rem; }
    .section-heading__sub { font-size: 0.72rem; }
    .filter-row { font-size: 0.72rem; }
    .filter-pill { padding: 0.5rem 1rem; }

    .products-grid { gap: 1.5rem; }
    .product-card { padding: 1rem; border-radius: var(--radius-2xl); }
    .product-card__media { border-radius: var(--radius-lg); margin-bottom: 1rem; }
    .product-card__badge, .product-card__discount { font-size: 0.62rem; padding: 0.25rem 0.6rem; }
    .product-card__title { font-size: 0.85rem; }
    .product-card__summary { font-size: 0.68rem; }
    .product-card__price { font-size: 0.85rem; }
    .btn-add-cart { padding: 0.6rem; font-size: 0.9rem; }

    .contact-banner { padding: 2rem; }
    .contact-banner__title { font-size: 1.5rem; }
    .contact-banner__desc { font-size: 0.8rem; }
    .contact-banner__list { font-size: 0.8rem; }

    .modal-card { padding: 2rem; }
    .modal-card__icon { width: 3rem; height: 3rem; font-size: 1.5rem; }
    .modal-card__head h3 { font-size: 1.25rem; }
    .otp-input { font-size: 1.15rem; }

    .form__row { grid-template-columns: 1fr 1fr; }
    .form input[type="text"], .form input[type="tel"], .form input[type="password"], .form textarea { padding: 0.65rem 1rem; font-size: 0.85rem; }

    .checkout-form-card { padding: 1.5rem; }
    .order-summary { padding: 1.25rem; }

    .receipt-card { padding: 2rem; }
    .receipt-card__icon { width: 5rem; height: 5rem; font-size: 2rem; }
    .receipt-card h2 { font-size: 1.4rem; }
}

/* md ~768px */
@media (min-width: 48rem) {
    .search-bar { display: flex; }
    .checkout-form-card__head h2 { font-size: 1.15rem; }
    .section-heading--split { flex-direction: row; align-items: center; justify-content: space-between; }
    .product-detail { padding: 1.5rem; }
}

/* lg ~1024px */
@media (min-width: 64rem) {
    .container { padding-inline: 2rem; }
    .nav-link { display: flex; align-items: center; gap: 0.4rem; }
    .hero__grid { grid-template-columns: repeat(12, 1fr); align-items: center; padding: 3rem; }
    .hero__copy { grid-column: span 7; text-align: right; }
    .hero__eyebrow { align-self: flex-start; }
    .hero__title { font-size: 2.75rem; }
    .hero__stats { margin-inline: 0; }
    .hero__cta { justify-content: flex-start; }
    .hero__media { grid-column: span 5; }

    .category-grid { grid-template-columns: repeat(6, 1fr); }

    .products-grid { grid-template-columns: repeat(3, 1fr); }

    .contact-banner__grid { grid-template-columns: 1fr 1fr; }

    .product-detail__grid { grid-template-columns: 5fr 7fr; }
    .product-detail__price-box { flex-direction: row; align-items: center; justify-content: space-between; }
    .care-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-cta { flex-direction: row; justify-content: space-between; text-align: right; }

    .checkout-grid { grid-template-columns: 7fr 5fr; }
}

/* xl ~1280px */
@media (min-width: 80rem) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}
