/* ===== COMPACT SQUARE PRODUCT GRID ===== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.product {
    border-radius: 18px;
    overflow: hidden;
}

.product-image {
    height: 190px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 14px;
}

.product-info h3 {
    font-size: 17px;
    margin: 6px 0;
}

.product-description {
    font-size: 13px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.add-cart-btn {
    padding: 9px 12px;
    border-radius: 10px;
}

/* 4 products on medium screens */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2 products on mobile */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 10px;
    }
}/* ===============================
   PREMIUM PRODUCT CARD SHAPE
================================ */

.product {
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product:hover {
    transform: translateY(-8px);
    border-radius: 32px;
}

.product-image {
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.product:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin: 8px 0;
}

.add-cart-btn {
    border-radius: 14px;
    padding: 11px 16px;
    transition: all 0.3s ease;
}

.add-cart-btn:hover {
    transform: translateY(-2px);
}

.wishlist {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile */
@media (max-width: 600px) {
    .product {
        border-radius: 22px;
    }

    .product-image {
        border-radius: 22px 22px 0 0;
    }

    .product-image img {
        height: 175px;
    }
}/* =========================================================
   GREENCART - PROFESSIONAL PREMIUM STYLESHEET
   Version 1.0
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* =========================================================
   ROOT
========================================================= */

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;

    --accent: #f59e0b;
    --danger: #ef4444;

    --white: #ffffff;
    --black: #111827;

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;

    --text: #111827;
    --text-light: #64748b;
    --border: #e2e8f0;

    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --container: 1180px;

    --transition: 0.25s ease;
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

body.cart-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

::selection {
    background: var(--primary);
    color: white;
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(226, 232, 240, 0.8);

    transition: var(--transition);
}

.navbar {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.logo i {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    background: var(--primary);
    color: white;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.25);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    position: relative;

    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);

    transition: color var(--transition);
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--primary);
    border-radius: 10px;

    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Header Actions */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn,
.cart-btn {
    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    background: var(--surface);

    border-radius: 12px;

    display: grid;
    place-items: center;

    color: var(--text);

    transition: var(--transition);
}

.icon-btn:hover,
.cart-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    display: grid;
    place-items: center;

    background: var(--danger);
    color: white;

    border: 2px solid white;
    border-radius: 50%;

    font-size: 10px;
    font-weight: 800;
}

.menu-btn {
    display: none;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    padding: 95px 0 85px;

    background:
        radial-gradient(circle at 85% 20%,
            rgba(34, 197, 94, 0.16),
            transparent 30%),
        radial-gradient(circle at 10% 80%,
            rgba(22, 163, 74, 0.09),
            transparent 35%),
        var(--surface);
}

.hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -170px;
    top: -180px;

    border-radius: 50%;

    background: rgba(22, 163, 74, 0.07);
}

.hero-content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 70px;
}

.hero-text {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    background: var(--primary-light);
    color: var(--primary-dark);

    border-radius: 50px;

    font-size: 12px;
    font-weight: 800;

    margin-bottom: 20px;
}

.hero-badge i {
    font-size: 11px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;

    letter-spacing: -2.8px;
    font-weight: 800;

    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 560px;

    color: var(--text-light);

    font-size: 17px;
    line-height: 1.8;

    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

.btn {
    min-height: 48px;

    padding: 0 22px;

    border: 0;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-size: 14px;
    font-weight: 700;

    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;

    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);

    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Visual */

.hero-visual {
    position: relative;

    min-height: 420px;

    display: grid;
    place-items: center;
}

.hero-card {
    position: relative;

    width: min(100%, 450px);
    min-height: 390px;

    border-radius: 32px;

    background:
        linear-gradient(145deg,
            #ecfdf5,
            #f0fdf4 55%,
            #dcfce7);

    box-shadow: var(--shadow-lg);

    display: grid;
    place-items: center;

    overflow: hidden;
}

.hero-card::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.6);

    top: -100px;
    right: -70px;
}

.hero-product {
    position: relative;
    z-index: 2;

    width: 230px;
    height: 230px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.78);

    box-shadow:
        0 20px 50px rgba(22, 163, 74, 0.13),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);

    font-size: 105px;
}

.hero-floating {
    position: absolute;
    z-index: 3;

    padding: 13px 16px;

    background: white;

    border-radius: 14px;

    box-shadow: var(--shadow);

    font-size: 12px;
    font-weight: 700;
}

.hero-floating.one {
    left: 8%;
    top: 15%;
}

.hero-floating.two {
    right: 5%;
    bottom: 15%;
}

.hero-floating i {
    color: var(--primary);
    margin-right: 6px;
}

/* =========================================================
   SECTION
========================================================= */

section {
    padding: 85px 0;
}

.section-head {
    text-align: center;
    max-width: 650px;

    margin: 0 auto 42px;
}

.section-head span {
    display: inline-block;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.5px;

    margin-bottom: 9px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;

    letter-spacing: -1.2px;

    margin-bottom: 12px;
}

.section-head p {
    color: var(--text-light);
    font-size: 15px;
}

/* =========================================================
   CATEGORIES
========================================================= */

.categories {
    background: var(--bg);
}

.category-list {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 14px;
}

.category {
    min-height: 105px;

    border: 1px solid var(--border);

    background: var(--surface);

    border-radius: var(--radius);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 9px;

    color: var(--text-light);

    transition: var(--transition);
}

.category i {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--primary-light);
    color: var(--primary);

    font-size: 17px;

    transition: var(--transition);
}

.category strong {
    font-size: 12px;
    font-weight: 700;
}

.category:hover,
.category.active {
    border-color: var(--primary);

    color: var(--primary);

    transform: translateY(-4px);

    box-shadow: var(--shadow);
}

.category.active i,
.category:hover i {
    background: var(--primary);
    color: white;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products {
    background: var(--surface);
}

.product-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.search-box {
    position: relative;

    width: min(100%, 350px);
}

.search-box i {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-light);
}

.search-box input {
    width: 100%;

    height: 46px;

    padding: 0 16px 0 43px;

    border: 1px solid var(--border);

    background: var(--bg);

    border-radius: 12px;

    outline: none;

    color: var(--text);

    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.1);
}

.product-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

/* Product */

.product {
    position: relative;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.product:hover {
    transform: translateY(-7px);

    border-color: rgba(22, 163, 74, 0.35);

    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;

    min-height: 235px;

    display: grid;
    place-items: center;

    overflow: hidden;
}

.product-image::before {
    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);
}

.product-emoji {
    position: relative;
    z-index: 2;

    font-size: 90px;

    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.08));

    transition: transform var(--transition);
}

.product:hover .product-emoji {
    transform: scale(1.08) rotate(2deg);
}

/* Product Backgrounds */

.apple-bg {
    background: #fef2f2;
}

.banana-bg {
    background: #fefce8;
}

.orange-bg {
    background: #fff7ed;
}

.broccoli-bg {
    background: #f0fdf4;
}

.carrot-bg {
    background: #fff7ed;
}

.potato-bg {
    background: #fafaf9;
}

.milk-bg {
    background: #eff6ff;
}

.cheese-bg {
    background: #fffbeb;
}

.bread-bg {
    background: #fff7ed;
}

.cake-bg {
    background: #fdf2f8;
}

.juice-bg {
    background: #fff7ed;
}

.water-bg {
    background: #eff6ff;
}

/* Wishlist */

.wishlist {
    position: absolute;

    top: 13px;
    right: 13px;

    z-index: 5;

    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;

    border: 0;

    background: rgba(255, 255, 255, 0.9);

    border-radius: 50%;

    color: #64748b;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.wishlist:hover,
.wishlist.active {
    color: var(--danger);
    transform: scale(1.08);
}

/* Product Tag */

.product-tag {
    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 5;

    padding: 5px 9px;

    background: var(--primary);

    color: white;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}

.product-tag.sale {
    background: var(--accent);
}

/* Product Info */

.product-info {
    padding: 18px;
}

.product-category {
    color: var(--primary);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.8px;

    margin-bottom: 6px;
}

.product-info h3 {
    font-size: 16px;
    line-height: 1.35;

    margin-bottom: 8px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;

    color: var(--accent);

    font-size: 11px;

    margin-bottom: 14px;
}

.rating span {
    color: var(--text-light);
    margin-left: 3px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    font-weight: 800;
}

.price .old-price {
    color: #94a3b8;

    font-size: 11px;

    text-decoration: line-through;

    font-weight: 500;
}

.add-btn {
    width: 39px;
    height: 39px;

    border: 0;

    border-radius: 11px;

    background: var(--primary);
    color: white;

    display: grid;
    place-items: center;

    transition: var(--transition);
}

.add-btn:hover {
    background: var(--primary-dark);

    transform: scale(1.08);

    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

/* No Results */

.no-results {
    grid-column: 1 / -1;

    text-align: center;

    padding: 60px 20px;

    color: var(--text-light);
}

.no-results i {
    font-size: 40px;
    color: var(--primary);

    margin-bottom: 14px;
}

.no-results h3 {
    color: var(--text);

    margin-bottom: 5px;
}

/* =========================================================
   WHY GREENCART
========================================================= */

.why-section {
    background: var(--bg);
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.why-card {
    padding: 28px 22px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(22, 163, 74, 0.3);
}

.why-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: var(--primary-light);
    color: var(--primary);

    margin-bottom: 18px;

    font-size: 18px;
}

.why-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.why-card p {
    color: var(--text-light);

    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   ABOUT
========================================================= */

.about {
    background: var(--surface);
}

.about-content {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;

    align-items: center;
}

.about-visual {
    min-height: 380px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #dcfce7,
            #f0fdf4
        );

    display: grid;
    place-items: center;

    position: relative;

    overflow: hidden;
}

.about-visual::before,
.about-visual::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);
}

.about-visual::before {
    width: 250px;
    height: 250px;

    top: -80px;
    right: -60px;
}

.about-visual::after {
    width: 180px;
    height: 180px;

    bottom: -70px;
    left: -50px;
}

.about-icon {
    position: relative;
    z-index: 2;

    width: 170px;
    height: 170px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: white;

    color: var(--primary);

    font-size: 70px;

    box-shadow: var(--shadow-lg);
}

.about-text span {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.about-text h2 {
    font-size: clamp(30px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1.5px;

    margin: 10px 0 18px;
}

.about-text p {
    color: var(--text-light);

    font-size: 15px;
    line-height: 1.8;

    margin-bottom: 18px;
}

.about-list {
    display: grid;

    gap: 12px;

    margin-top: 22px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 600;
}

.about-list i {
    color: var(--primary);
}

/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: var(--bg);
}

.contact-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.contact-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 28px;

    display: flex;
    align-items: flex-start;

    gap: 15px;

    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.contact-icon {
    flex-shrink: 0;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--primary-light);
    color: var(--primary);
}

.contact-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
    color: var(--text-light);

    font-size: 13px;
}

.contact-card a:hover {
    color: var(--primary);
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #0f172a;
    color: white;

    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr repeat(3, 1fr);

    gap: 45px;

    padding-bottom: 45px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo span {
    color: #4ade80;
}

.footer-brand p {
    max-width: 330px;

    color: #94a3b8;

    font-size: 13px;
    line-height: 1.8;
}

.footer-col h3 {
    font-size: 14px;

    margin-bottom: 16px;
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: #94a3b8;

    font-size: 13px;

    transition: var(--transition);
}

.footer-col a:hover {
    color: #4ade80;
}

.social-links {
    display: flex;
    gap: 9px;
}

.social-links a {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.07);

    color: #cbd5e1;

    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 22px;

    text-align: center;

    color: #64748b;

    font-size: 12px;
}

/* =========================================================
   CART
========================================================= */

.cart-overlay {
    position: fixed;

    inset: 0;

    z-index: 1090;

    background: rgba(15, 23, 42, 0.5);

    backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;

    transition: var(--transition);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

#cart {
    position: fixed;

    top: 0;
    right: -430px;

    z-index: 1100;

    width: min(430px, 100%);

    height: 100vh;

    background: var(--surface);

    box-shadow: -20px 0 50px rgba(15, 23, 42, 0.15);

    display: flex;
    flex-direction: column;

    transition: right 0.35s ease;
}

#cart.show {
    right: 0;
}

.cart-header {
    min-height: 75px;

    padding: 0 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 18px;
}

.cart-close {
    width: 38px;
    height: 38px;

    border: 0;

    background: var(--surface-2);

    color: var(--text);

    border-radius: 10px;

    transition: var(--transition);
}

.cart-close:hover {
    background: #fee2e2;
    color: var(--danger);
}

#cartItems {
    flex: 1;

    overflow-y: auto;

    padding: 18px;
}

.cart-item {
    display: grid;

    grid-template-columns: 48px 1fr auto auto;

    align-items: center;

    gap: 10px;

    padding: 13px 0;

    border-bottom: 1px solid var(--border);
}

.cart-item-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    background: var(--surface-2);

    border-radius: 12px;

    font-size: 24px;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info strong {
    display: block;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 13px;

    margin-bottom: 3px;
}

.cart-item-info small {
    color: var(--text-light);

    font-size: 11px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.quantity-btn {
    width: 27px;
    height: 27px;

    border: 1px solid var(--border);

    background: var(--surface);

    border-radius: 7px;

    color: var(--text);

    font-weight: 700;

    transition: var(--transition);
}

.quantity-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quantity-controls span {
    min-width: 18px;

    text-align: center;

    font-size: 12px;
    font-weight: 700;
}

.remove-item {
    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    color: #94a3b8;

    border-radius: 7px;

    transition: var(--transition);
}

.remove-item:hover {
    color: var(--danger);
    background: #fee2e2;
}

.empty-cart {
    min-height: 280px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--text-light);
}

.empty-cart i {
    font-size: 45px;

    color: var(--primary);

    margin-bottom: 15px;
}

.empty-cart p {
    color: var(--text);

    font-weight: 700;

    margin-bottom: 4px;
}

.empty-cart small {
    font-size: 12px;
}

.cart-footer {
    padding: 20px;

    border-top: 1px solid var(--border);

    background: var(--surface);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;

    font-size: 14px;
}

.cart-total-row strong {
    font-size: 20px;
}

.checkout-btn {
    width: 100%;

    min-height: 50px;

    border: 0;

    background: var(--primary);
    color: white;

    border-radius: 12px;

    font-weight: 800;

    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    display: none;

    padding: 12px 0 18px;

    border-top: 1px solid var(--border);
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    display: block;

    padding: 12px 5px;

    color: var(--text-light);

    font-size: 14px;
    font-weight: 600;

    border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 25px;

    z-index: 2000;

    transform: translate(-50%, 100px);

    opacity: 0;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px 17px;

    background: #0f172a;
    color: white;

    border-radius: 12px;

    box-shadow: var(--shadow-lg);

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s ease;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast i {
    color: #4ade80;
}

/* =========================================================
   DARK MODE
========================================================= */

body.dark {
    --bg: #0b1120;
    --surface: #111827;
    --surface-2: #1e293b;

    --text: #f8fafc;
    --text-light: #94a3b8;

    --border: #263244;

    background: var(--bg);
    color: var(--text);
}

body.dark header {
    background: rgba(15, 23, 42, 0.94);
    border-color: #263244;
}

body.dark .hero {
    background:
        radial-gradient(circle at 85% 20%,
            rgba(34, 197, 94, 0.1),
            transparent 30%),
        var(--bg);
}

body.dark .product-image {
    filter: brightness(0.9);
}

body.dark .btn-outline {
    color: var(--text);
}

body.dark .hero-card {
    background:
        linear-gradient(145deg,
            #14291d,
            #102217);
}

body.dark .hero-product {
    background: rgba(17, 24, 39, 0.75);
}

body.dark .about-visual {
    background:
        linear-gradient(145deg,
            #14291d,
            #102217);
}

body.dark .about-icon {
    background: var(--surface);
}

body.dark .wishlist {
    background: rgba(17, 24, 39, 0.9);
}

body.dark .search-box input {
    background: var(--surface-2);
}

body.dark .cart-count {
    border-color: var(--surface);
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(22, 163, 74, 0.3);
    outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE - LAPTOP
========================================================= */

@media (max-width: 1100px) {

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content {
        gap: 40px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-grid .footer-col:last-child {
        grid-column: 2 / 4;
    }
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 850px) {

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: grid;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-text {
        margin: auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        min-height: 350px;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .about-text {
        text-align: center;
    }

    .about-list {
        justify-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-grid .footer-col:last-child {
        grid-column: auto;
    }
}

/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    .container {
        width: min(92%, 500px);
    }

    .navbar {
        min-height: 68px;
    }

    .logo {
        font-size: 19px;
    }

    .logo i {
        width: 36px;
        height: 36px;
    }

    .nav-actions {
        gap: 6px;
    }

    .icon-btn,
    .cart-btn {
        width: 38px;
        height: 38px;
    }

    section {
        padding: 65px 0;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -1.8px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-card {
        min-height: 320px;
    }

    .hero-product {
        width: 175px;
        height: 175px;
        font-size: 75px;
    }

    .hero-floating {
        font-size: 10px;
        padding: 10px 12px;
    }

    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }

    .product-image {
        min-height: 175px;
    }

    .product-emoji {
        font-size: 65px;
    }

    .product-image::before {
        width: 125px;
        height: 125px;
    }

    .product-info {
        padding: 13px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .product-category {
        font-size: 8px;
    }

    .rating {
        font-size: 9px;
    }

    .add-btn {
        width: 35px;
        height: 35px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        min-height: 300px;
    }

    .about-icon {
        width: 135px;
        height: 135px;
        font-size: 55px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .cart-item {
        grid-template-columns: 43px 1fr auto;
    }

    .quantity-controls {
        grid-column: 2;
    }

    .remove-item {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        min-height: 220px;
    }

    .product-emoji {
        font-size: 85px;
    }

    .category-list {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}