@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   AI2Z OFFICIAL — PREMIUM STYLE
   ========================================================= */

:root {
    --primary: #6366f1;
    --primary-2: #a855f7;
    --primary-hover: #4f46e5;

    --primary-gradient:
        linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

    --bg-color: #f6f7fb;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --surface-hover: #f1f3f9;

    --text-main: #111827;
    --text-muted: #64748b;

    --border: #e5e7eb;
    --border-light: rgba(15, 23, 42, 0.08);

    --danger: #ef4444;
    --success: #22c55e;

    --radius: 22px;
    --radius-lg: 30px;

    --shadow-sm:
        0 4px 15px rgba(15, 23, 42, 0.06);

    --shadow-md:
        0 15px 40px rgba(15, 23, 42, 0.10);

    --shadow-lg:
        0 25px 70px rgba(15, 23, 42, 0.14);

    --shadow-glow:
        0 12px 35px rgba(99, 102, 241, 0.30);

    --header-height: 82px;
}


/* =========================================================
   DARK MODE
   ========================================================= */

[data-theme="dark"] {
    --bg-color: #080d18;

    --surface: rgba(17, 24, 39, 0.92);
    --surface-solid: #111827;
    --surface-hover: #1f2937;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border: #273449;
    --border-light: rgba(255, 255, 255, 0.08);

    --shadow-sm:
        0 5px 20px rgba(0, 0, 0, 0.25);

    --shadow-md:
        0 20px 50px rgba(0, 0, 0, 0.35);

    --shadow-lg:
        0 30px 80px rgba(0, 0, 0, 0.45);

    --shadow-glow:
        0 12px 40px rgba(139, 92, 246, 0.25);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(99, 102, 241, 0.05),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(168, 85, 247, 0.06),
            transparent 35%
        ),
        var(--bg-color);

    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;

    transition:
        background-color 0.35s ease,
        color 0.35s ease;
}

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

ul {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
}

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


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--primary),
        var(--primary-2)
    );

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: var(--header-height);

    z-index: 9999;

    background: rgba(255, 255, 255, 0.72);

    backdrop-filter:
        blur(22px)
        saturate(180%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(180%);

    border-bottom:
        1px solid rgba(15, 23, 42, 0.06);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.07);

    border-bottom-color:
        rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] header {
    background: rgba(8, 13, 24, 0.72);

    border-bottom-color:
        rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] header.scrolled {
    background: rgba(8, 13, 24, 0.94);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   NAV CONTAINER
   ========================================================= */

.nav-container {
    width: 100%;
    max-width: 1200px;

    height: 100%;

    margin: 0 auto;

    padding:
        0 1.5rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
}


/* =========================================================
   LOGO
   ========================================================= */

.nav-container > a:first-child,
.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo img {
    width: auto;
    max-height: 48px;

    object-fit: contain;
}


/* =========================================================
   DESKTOP NAV
   ========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 1rem;

    margin-left: auto;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    position: relative;

    padding: 0.55rem 0.75rem;

    color: var(--text-main);

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}


/* underline */
.nav-links a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 2px;

    width: 0;
    height: 2px;

    background: var(--primary-gradient);

    border-radius: 10px;

    transform: translateX(-50%);

    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 65%;
}


/* =========================================================
   HEADER ACTION BUTTONS
   ========================================================= */

.cart-icon,
.theme-toggle {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--surface-hover);

    border: 1px solid var(--border);

    color: var(--text-main);

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.cart-icon:hover,
.theme-toggle:hover {
    transform: translateY(-2px);

    background: var(--surface-solid);

    border-color: rgba(99, 102, 241, 0.35);

    box-shadow:
        0 8px 20px rgba(99, 102, 241, 0.15);
}

.cart-icon {
    position: relative;

    font-size: 1.25rem;
}

.theme-toggle {
    font-size: 1.1rem;
}


/* =========================================================
   CART BADGE
   ========================================================= */

#cart-badge {
    position: absolute;

    top: -6px;
    right: -6px;

    min-width: 21px;
    height: 21px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-gradient);

    color: white;

    border-radius: 50px;

    border: 2px solid var(--surface-solid);

    font-size: 0.68rem;
    font-weight: 800;

    line-height: 1;

    box-shadow:
        0 5px 15px rgba(99, 102, 241, 0.35);
}


/* =========================================================
   MENU TOGGLE
   ========================================================= */

.menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: var(--surface-hover);

    border: 1px solid var(--border);

    color: var(--text-main);

    cursor: pointer;

    font-size: 1.5rem;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.menu-toggle:hover {
    transform: scale(1.04);

    background: var(--surface-solid);

    border-color:
        rgba(99, 102, 241, 0.35);
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    width: 100%;
    max-width: 1200px;

    margin:
        var(--header-height)
        auto
        0;

    padding:
        3.5rem 1.5rem;

    min-height: 70vh;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    text-align: center;

    padding:
        5.5rem 2rem;

    margin-bottom: 5rem;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.96),
            rgba(255,255,255,0.82)
        );

    border:
        1px solid rgba(255,255,255,0.8);

    box-shadow:
        var(--shadow-md);

    isolation: isolate;
}

[data-theme="dark"] .hero {
    background:
        linear-gradient(
            145deg,
            rgba(17,24,39,0.96),
            rgba(15,23,42,0.88)
        );

    border-color:
        rgba(255,255,255,0.07);
}


/* =========================================================
   HERO BLOBS
   ========================================================= */

.blob {
    position: absolute;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    filter: blur(75px);

    opacity: 0.25;

    z-index: -1;

    pointer-events: none;

    animation:
        floatBlob 12s
        ease-in-out
        infinite
        alternate;
}

.blob-1 {
    top: -130px;
    left: -130px;

    background: #6366f1;
}

.blob-2 {
    right: -130px;
    bottom: -130px;

    background: #c084fc;

    animation-delay: -6s;
}

@keyframes floatBlob {
    from {
        transform:
            translate(0, 0)
            scale(1);
    }

    to {
        transform:
            translate(40px, 30px)
            scale(1.12);
    }
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 850px;

    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);

    font-weight: 800;

    line-height: 1.12;

    letter-spacing: -1.5px;

    margin-bottom: 1.3rem;
}

.hero p {
    max-width: 750px;

    margin:
        0 auto 2rem;

    color: var(--text-muted);

    font-size:
        clamp(1rem, 2vw, 1.2rem);
}


/* =========================================================
   GRADIENT TEXT
   ========================================================= */

.text-gradient-animated {
    background:
        linear-gradient(
            270deg,
            #6366f1,
            #8b5cf6,
            #c084fc,
            #ec4899,
            #6366f1
        );

    background-size: 300% 300%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        gradientShift 8s
        ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* =========================================================
   BUTTON
   ========================================================= */

.btn {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 52px;

    padding:
        0.85rem 2rem;

    border: none;

    border-radius: 50px;

    background: var(--primary-gradient);

    color: white;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 10px 25px
        rgba(99, 102, 241, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.22),
            transparent
        );

    transform: translateX(-100%);

    transition:
        transform 0.55s ease;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 35px
        rgba(99, 102, 241, 0.35);
}

.btn:active {
    transform: translateY(-1px);
}


/* =========================================================
   FILTER BAR
   ========================================================= */

.filter-bar {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 1rem;

    margin-bottom: 3rem;
}

.search-input {
    flex: 1;

    min-width: 240px;

    padding:
        0.85rem 1.2rem;

    border:
        1px solid var(--border);

    border-radius: 50px;

    background: var(--surface-solid);

    color: var(--text-main);

    outline: none;

    font-size: 1rem;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.search-input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(99, 102, 241, 0.10);
}

#category-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 0.5rem;
}

.category-btn {
    padding:
        0.55rem 1rem;

    border:
        1px solid var(--border);

    border-radius: 50px;

    background:
        var(--surface-solid);

    color:
        var(--text-muted);

    cursor: pointer;

    font-size: 0.9rem;
    font-weight: 600;

    transition:
        all 0.25s ease;
}

.category-btn:hover {
    color: var(--primary);

    border-color:
        rgba(99,102,241,0.4);
}

.category-btn.active {
    color: white;

    border-color: transparent;

    background:
        var(--primary-gradient);

    box-shadow:
        0 6px 18px
        rgba(99,102,241,0.25);
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(250px, 1fr)
        );

    gap: 1.7rem;

    margin-top: 2rem;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    position: relative;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    background:
        var(--surface-solid);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.product-card:hover {
    transform:
        translateY(-8px);

    box-shadow:
        var(--shadow-md);

    border-color:
        rgba(99,102,241,0.3);
}

.product-image {
    width: 100%;

    height: 220px;

    object-fit: cover;

    border-radius: 0;

    transition:
        transform 0.45s ease;
}

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

.product-info {
    position: relative;

    z-index: 2;

    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 1.4rem;

    background:
        var(--surface-solid);
}

.product-title {
    margin-bottom: 0.5rem;

    font-size: 1.15rem;

    font-weight: 700;

    line-height: 1.35;
}

.product-price {
    margin-top: auto;

    font-size: 1.45rem;

    font-weight: 800;

    color: var(--primary);
}

.discount-price {
    margin-right: 0.4rem;

    color: var(--text-muted);

    font-size: 0.9rem;

    text-decoration: line-through;
}

.badge {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    padding:
        0.35rem 0.8rem;

    border-radius: 50px;

    background:
        rgba(255,255,255,0.92);

    color:
        var(--primary);

    border:
        1px solid
        rgba(99,102,241,0.25);

    font-size: 0.75rem;
    font-weight: 800;

    box-shadow:
        0 5px 15px
        rgba(0,0,0,0.12);

    backdrop-filter: blur(10px);
}


/* =========================================================
   FORMS
   ========================================================= */

.form-floating {
    position: relative;

    margin-bottom: 1.5rem;
}

.form-floating input,
.form-floating textarea {
    width: 100%;

    padding:
        1.15rem 1rem 0.7rem;

    border:
        2px solid var(--border);

    border-radius: 13px;

    background:
        var(--bg-color);

    color:
        var(--text-main);

    outline: none;

    font-size: 1rem;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.form-floating textarea {
    min-height: 130px;

    resize: vertical;
}

.form-floating label {
    position: absolute;

    left: 1rem;
    top: 1.05rem;

    color: var(--text-muted);

    font-size: 0.95rem;
    font-weight: 500;

    pointer-events: none;

    transform-origin: left top;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        font-size 0.2s ease;
}

.form-floating input:focus,
.form-floating textarea:focus {
    border-color:
        var(--primary);

    background:
        var(--surface-solid);

    box-shadow:
        0 0 0 4px
        rgba(99,102,241,0.10);
}

.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating textarea:focus ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
    transform:
        translateY(-0.7rem)
        scale(0.78);

    color:
        var(--primary);

    font-weight: 700;
}


/* =========================================================
   CART
   ========================================================= */

.cart-item-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1.5rem;

    margin-bottom: 1rem;

    padding: 1.25rem;

    background:
        var(--surface-solid);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.cart-item-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow-md);

    border-color:
        rgba(99,102,241,0.25);
}

.cart-item-info {
    display: flex;

    align-items: center;

    gap: 1rem;

    flex: 1;

    min-width: 0;
}

.cart-item-info img {
    width: 75px !important;
    height: 75px !important;

    object-fit: cover;

    border-radius: 14px;
}

.cart-item-info h3 {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.cart-item-actions {
    display: flex;

    align-items: center;

    gap: 1rem;

    flex-shrink: 0;
}

.qty-selector {
    display: flex;

    align-items: center;

    gap: 0.7rem;

    padding: 0.35rem;

    border:
        1px solid var(--border);

    border-radius: 50px;

    background:
        var(--bg-color);
}

.qty-btn {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        var(--surface-solid);

    color:
        var(--text-main);

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        var(--shadow-sm);

    transition:
        all 0.2s ease;
}

.qty-btn:hover {
    background:
        var(--primary);

    color:
        white;

    transform:
        scale(1.08);
}


/* =========================================================
   CHECKOUT
   ========================================================= */

.checkout-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 0.8fr);

    gap: 2rem;
}


/* =========================================================
   TOAST
   ========================================================= */

#toast-container {
    position: fixed;

    left: 50%;
    bottom: 25px;

    transform:
        translateX(-50%);

    z-index: 10000;

    width: calc(100% - 30px);

    max-width: 420px;

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.toast {
    position: relative;

    display: flex;

    align-items: center;

    padding:
        1rem 1.2rem;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background:
        var(--surface-solid);

    color:
        var(--text-main);

    box-shadow:
        var(--shadow-lg);

    font-size: 0.95rem;
    font-weight: 600;

    animation:
        toastSlideUp
        0.4s ease
        forwards;
}

.toast-progress {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background:
        var(--primary-gradient);

    transform-origin:
        left;

    animation:
        progressShrink
        3s linear
        forwards;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform:
            translateY(20px)
            scale(0.95);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes progressShrink {
    from {
        transform:
            scaleX(1);
    }

    to {
        transform:
            scaleX(0);
    }
}


/* =========================================================
   REVEAL
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.active {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 5rem;

    padding:
        4rem 1.5rem 2rem;

    background:
        var(--surface-solid);

    border-top:
        1px solid var(--border);
}

.footer-content {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1.2rem;

    text-align: center;
}

.social-link {
    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding:
        0.7rem 1.3rem;

    border-radius: 50px;

    background:
        var(--bg-color);

    color:
        var(--text-main);

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        all 0.25s ease;
}

.social-link:hover {
    color: white;

    background:
        #E1306C;

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 25px
        rgba(225,48,108,0.25);
}

.social-link svg {
    width: 21px;
    height: 21px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    :root {
        --header-height: 74px;
    }

    /* -------------------------
       HEADER
       ------------------------- */

    header {
        height:
            var(--header-height);
    }

    .nav-container {
        padding:
            0 1rem;
    }

    .logo img {
        max-width: 75px;
        max-height: 42px;
    }

    /* Menu button */
    .menu-toggle {
        display: inline-flex;
    }


    /* =====================================================
       IMPORTANT:
       Mobile nav is now completely independent.
       NO nth-child positioning.
       ===================================================== */

    .nav-links {
        position: absolute;

        top:
            calc(100% + 10px);

        left: 12px;
        right: 12px;

        width: auto;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 6px;

        margin: 0;

        padding: 12px;

        border:
            1px solid rgba(15,23,42,0.08);

        border-radius: 22px;

        background:
            rgba(255,255,255,0.92);

        backdrop-filter:
            blur(25px)
            saturate(180%);

        -webkit-backdrop-filter:
            blur(25px)
            saturate(180%);

        box-shadow:
            0 20px 50px
            rgba(15,23,42,0.14);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(-10px)
            scale(0.98);

        transform-origin:
            top right;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    [data-theme="dark"] .nav-links {
        background:
            rgba(15,23,42,0.95);

        border-color:
            rgba(255,255,255,0.08);

        box-shadow:
            0 25px 60px
            rgba(0,0,0,0.45);
    }

    .nav-links.active {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateY(0)
            scale(1);
    }


    /* Menu links */
    .nav-links li {
        width: 100% !important;

        min-height: 48px;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 0 !important;

        border: none !important;
    }

    .nav-links a {
        width: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        min-height: 46px;

        border-radius: 13px;

        padding:
            0.65rem 1rem;

        font-size: 0.95rem;
    }

    .nav-links a:hover {
        background:
            var(--surface-hover);

        transform: none;
    }

    .nav-links a::after {
        display: none;
    }


    /* =====================================================
       ACTION AREA
       ===================================================== */

    /*
       Kalau cart + theme toggle berada dalam nav-links,
       kedua-duanya akan duduk sebelah-sebelah dengan kemas.
    */

    .nav-links .cart-icon,
    .nav-links .theme-toggle {
        width: 48px;

        height: 48px;

        margin: 0;

        border-radius: 15px;
    }

    /* Jika action berada dalam li */
    .nav-links li:has(.cart-icon),
    .nav-links li:has(.theme-toggle) {
        width: auto !important;

        min-height: 48px;

        display: inline-flex;

        flex: 1;
    }

    /* Dua action terakhir duduk dalam row */
    .nav-links:has(.cart-icon):has(.theme-toggle) {
        align-items: stretch;
    }


    /* =====================================================
       MAIN
       ===================================================== */

    main {
        width: 100%;

        margin-top:
            var(--header-height);

        padding:
            1.3rem 0.8rem 3rem;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {
        width: 100%;

        padding:
            3rem 1.2rem;

        margin-bottom:
            3.5rem;

        border-radius:
            25px;
    }

    .hero h1 {
        font-size:
            2.35rem;

        line-height:
            1.12;

        letter-spacing:
            -1px;
    }

    .hero p {
        font-size:
            1rem;

        line-height:
            1.75;
    }

    .blob {
        width: 220px;
        height: 220px;

        filter:
            blur(60px);
    }


    /* =====================================================
       BUTTON
       ===================================================== */

    .btn {
        width: 100%;

        min-height: 54px;

        padding:
            0.85rem 1.2rem;

        font-size:
            0.98rem;
    }


    /* =====================================================
       PRODUCT
       ===================================================== */

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

        gap:
            0.85rem;
    }

    .product-image {
        height:
            175px;
    }

    .product-info {
        padding:
            1rem;
    }

    .product-title {
        font-size:
            0.98rem;
    }

    .product-price {
        font-size:
            1.2rem;
    }

    .badge {
        top: 9px;
        right: 9px;

        padding:
            0.3rem 0.65rem;

        font-size:
            0.68rem;
    }


    /* =====================================================
       FILTER
       ===================================================== */

    .filter-bar {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .search-input {
        width: 100%;

        min-width: 0;
    }

    #category-filters {
        justify-content:
            center;

        width: 100%;
    }


    /* =====================================================
       CART
       ===================================================== */

    .cart-item-card {
        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            1rem;

        padding:
            1rem;
    }

    .cart-item-info {
        width: 100%;
    }

    .cart-item-info img {
        width:
            65px !important;

        height:
            65px !important;
    }

    .cart-item-info h3 {
        font-size:
            0.98rem !important;
    }

    .cart-item-actions {
        width: 100%;

        justify-content:
            space-between;

        padding-top:
            0.9rem;

        border-top:
            1px dashed var(--border);
    }

    .qty-btn {
        width:
            31px;

        height:
            31px;
    }


    /* =====================================================
       CHECKOUT
       ===================================================== */

    .checkout-grid {
        grid-template-columns:
            1fr;

        gap:
            1.2rem;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    footer {
        margin-top:
            3rem;

        padding:
            3rem 1rem 1.5rem;
    }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 390px) {

    .nav-container {
        padding:
            0 0.75rem;
    }

    .logo img {
        max-width:
            68px;
    }

    .menu-toggle {
        width:
            43px;

        height:
            43px;
    }

    .hero {
        padding:
            2.7rem 1rem;
    }

    .hero h1 {
        font-size:
            2rem;
    }

    .product-grid {
        grid-template-columns:
            1fr;
    }

    .product-image {
        height:
            210px;
    }
}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}