
/* =========================================================
   PUMEKA — HOME PAGE
   CLEAN PREMIUM DESIGN SYSTEM
   Fixed media queries, duplicate rules and search styling
========================================================= */

/* =========================
   BASIC RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f5;
    color: #111;
    padding-bottom: 75px;
    overflow-x: hidden;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #b7d400;
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    min-height: 75px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #dfff00;
    color: #111;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 900;
}

/* =========================
   SEARCH BAR
   Compatible with current HTML:
   .search-box > input#search
========================= */

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    max-width: 450px;
    min-width: 0;
    margin: 0 auto;
    padding: 4px;
    background: #f7f7f5;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    transition: background .25s ease,
                border-color .25s ease,
                box-shadow .25s ease;
}

.search-box:focus-within {
    background: #fff;
    border-color: #dfff00;
    box-shadow: 0 0 0 4px rgba(223, 255, 0, .22),
                0 8px 25px rgba(0, 0, 0, .07);
}

.search-box input {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 50px;
    outline: none;
    background: transparent;
    color: #111;
    font-size: 13px;
    box-shadow: none;
}

.search-box input:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.search-box input::placeholder {
    color: #777;
    opacity: 1;
}

/* =========================
   HEADER ACTIONS
========================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.wishlist-btn,
.cart-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 9px;
    background: #f2f2f2;
    color: #111;
    font-size: 18px;
    transition: background .2s ease,
                transform .2s ease;
}

.wishlist-btn:hover,
.cart-btn:hover {
    background: #dfff00;
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    background: #dfff00;
    color: #111;
    border: 1px solid #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
}

/* LOGIN BUTTON */

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dfff00;
    color: #111;
    padding: 12px 20px;
    border: 2px solid #dfff00;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.auth-btn:hover {
    background: #111;
    color: #dfff00;
}

/* =========================
   ACCOUNT DROPDOWN
========================= */

.account-menu {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    max-width: calc(100vw - 24px);
    padding: 10px;
    background: #fff;
    color: #222;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .15);
    z-index: 99999;
}

.account-dropdown[hidden] {
    display: none !important;
}

.account-dropdown-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.account-dropdown-header strong,
.account-dropdown-header small {
    display: block;
}

.account-dropdown-header small {
    margin-top: 6px;
    color: #666;
    white-space: pre-line;
}

.account-dropdown a,
.account-dropdown button {
    display: block;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #222;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
    background: #f3f3f3;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1200px;
    min-height: 460px;
    margin: 25px auto;
    padding: 50px;
    overflow: hidden;
    background: #111;
    color: #fff;
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    color: #dfff00;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 25px;
    font-size: clamp(48px, 7vw, 82px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: -4px;
}

.hero h1 span {
    color: #dfff00;
}

.hero p {
    max-width: 500px;
    margin-bottom: 30px;
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn,
.hero-outline-btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    transition: transform .2s ease,
                background .2s ease,
                color .2s ease;
}

.hero-btn {
    background: #dfff00;
    color: #111;
}

.hero-btn:hover {
    transform: translateY(-3px);
}

.hero-outline-btn {
    padding: 13px 20px;
    color: #fff;
    border: 1px solid #555;
}

.hero-outline-btn:hover {
    border-color: #dfff00;
    color: #dfff00;
}

/* HERO VISUAL */

.hero-visual {
    position: absolute;
    top: 50%;
    right: 65px;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-circle {
    width: 280px;
    height: 280px;
    display: grid;
    place-items: center;
    background: #dfff00;
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(223, 255, 0, .18);
    animation: pumeka-float 4s ease-in-out infinite;
}

.hero-icon {
    font-size: 125px;
    filter: drop-shadow(0 20px 15px rgba(0, 0, 0, .25));
}

.floating-card {
    position: absolute;
    padding: 12px 16px;
    background: #fff;
    color: #111;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .3);
}

.card-one {
    top: 15px;
    left: 0;
}

.card-two {
    right: -10px;
    bottom: 20px;
}

@keyframes pumeka-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.section-tag {
    display: block;
    margin-bottom: 6px;
    color: #777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
}

/* =========================
   CATEGORIES
========================= */

.categories-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 20px;
    padding: 0 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}

.category-card {
    position: relative;
    padding: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    transition: transform .25s ease,
                box-shadow .25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .07);
}

.category-icon {
    height: 120px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 48px;
}

.category-icon.electronics {
    background: #e8edff;
}

.category-icon.fashion {
    background: #ffe7ef;
}

.category-icon.beauty {
    background: #f5e7ff;
}

.category-icon.medical {
    background: #e3f7eb;
}

.category-icon.home {
    background: #fff0d8;
}

.category-icon.preorder {
    background: linear-gradient(135deg, #ff6b00, #ff9500);
}

.category-card strong {
    display: block;
    margin-bottom: 5px;
    padding-right: 18px;
    font-size: 14px;
}

.category-card small {
    display: block;
    padding-right: 18px;
    color: #777;
    font-size: 10px;
    line-height: 1.5;
}

.category-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: #111;
    color: #dfff00;
    border-radius: 7px;
    font-size: 14px;
    transition: background .2s ease, color .2s ease;
}

.category-card:hover .category-arrow {
    background: #dfff00;
    color: #111;
}

/* =========================
   FLASH DEAL
========================= */

.deal {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 40px auto;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: #dfff00;
    border-radius: 20px;
}

.deal-content span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.deal h2 {
    margin: 10px 0;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -1.5px;
    font-weight: 900;
}

.deal p {
    color: #444;
    font-size: 12px;
    line-height: 1.6;
}

.deal-button {
    display: inline-block;
    padding: 14px 20px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    transition: transform .2s ease;
}

.deal-button:hover {
    transform: translateY(-2px);
}

/* =========================
   PRODUCTS
========================= */

.products-section {
    width: 100%;
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    transition: transform .25s ease,
                box-shadow .25s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.product-image {
    position: relative;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f4f2;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 20px;
    object-fit: contain;
    transition: transform .3s ease;
}

.product:hover .product-image img {
    transform: scale(1.04);
}

.badge,
.global-search-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 9px;
    background: #dfff00;
    color: #111;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .5px;
}

.global-search-badge {
    background: #111;
    color: #dfff00;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 35px;
    height: 35px;
    border: 0;
    background: #fff;
    border-radius: 50%;
    font-size: 17px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    transition: background .2s ease, color .2s ease;
}

.wishlist:hover,
.wishlist.active {
    background: #dfff00;
    color: #111;
}

.product-info {
    padding: 17px;
}

.product-category {
    margin-bottom: 6px;
    color: #888;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.product-name {
    min-height: 40px;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.price {
    font-size: 15px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.add {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 0;
    background: #111;
    color: #dfff00;
    border-radius: 8px;
    font-size: 21px;
    transition: background .2s ease,
                color .2s ease,
                transform .2s ease;
}

.add:hover {
    background: #dfff00;
    color: #111;
    transform: scale(1.05);
}

.global-search-result {
    animation: pumeka-appear .2s ease;
}

@keyframes pumeka-appear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   FEATURES
========================= */

.features {
    margin-top: 60px;
    background: #111;
    color: #fff;
}

.feature-grid {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 55px 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature {
    padding: 22px;
    border: 1px solid #292929;
    border-radius: 14px;
    transition: border-color .25s ease,
                transform .25s ease;
}

.feature:hover {
    border-color: #dfff00;
    transform: translateY(-3px);
}

.feature-icon {
    margin-bottom: 12px;
    font-size: 28px;
}

.feature h3 {
    margin-bottom: 7px;
    font-size: 15px;
}

.feature p {
    color: #aaa;
    font-size: 11px;
    line-height: 1.6;
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 50px 0 25px;
    background: #fff;
}

.footer {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    max-width: 320px;
    margin-top: 12px;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

.footer h4 {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer a:not(.logo) {
    display: block;
    margin: 9px 0;
    color: #777;
    font-size: 12px;
    transition: color .2s ease;
}

.footer a:not(.logo):hover {
    color: #111;
}

.copyright {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #777;
    font-size: 10px;
    line-height: 1.8;
}

/* =========================
   CART OVERLAY
========================= */

.overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 1999;
}

.overlay.show {
    display: block;
}

/* =========================
   CART DRAWER
========================= */

.cart {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 5000;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -15px 0 50px rgba(0, 0, 0, .15);
    transform: translateX(105%);
    transition: transform .35s ease;
}

.cart.open {
    transform: translateX(0);
}

.cart-header {
    flex: 0 0 70px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    font-size: 19px;
    font-weight: 900;
}

.cart-header button {
    width: 35px;
    height: 35px;
    border: 0;
    background: #f2f2f2;
    border-radius: 8px;
    font-size: 24px;
}

.cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

.empty {
    padding-top: 60px;
    text-align: center;
    color: #888;
}

.empty div {
    margin-bottom: 12px;
    font-size: 48px;
}

.empty h3 {
    margin-bottom: 6px;
    color: #111;
    font-size: 16px;
}

.empty p {
    font-size: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.cart-item small {
    display: block;
    color: #777;
    font-size: 11px;
}

.remove {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #e63946;
    font-size: 11px;
    font-weight: 700;
}

/* DELIVERY FORM */

.checkout-form {
    flex: 0 0 auto;
    max-height: 40%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.checkout-form h3 {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 900;
}

.checkout-form input,
.checkout-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 11px 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(223, 255, 0, .35);
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
    color: #777;
}

.checkout-form textarea {
    min-height: 60px;
    resize: vertical;
}

/* CART FOOTER */

.cart-footer {
    flex: 0 0 auto;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    background: #fff;
}

.total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.total strong {
    font-size: 17px;
}

/* CHECKOUT BUTTONS */

.checkout {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #dfff00;
    font-size: 12px;
    font-weight: 900;
    transition: background .2s ease,
                color .2s ease,
                transform .2s ease;
}

.checkout:hover {
    background: #dfff00;
    color: #111;
}

.checkout:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.checkout-supabase {
    margin-bottom: 8px;
}

.checkout-whatsapp {
    background: #128c46;
    color: #fff;
}

.checkout-whatsapp:hover {
    background: #0e773b;
    color: #fff;
}

/* =========================
   TOAST
========================= */

.toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    z-index: 6000;
    max-width: calc(100vw - 30px);
    padding: 13px 20px;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

/* =========================
   MOBILE NAVIGATION
========================= */

.bottom-nav {
    display: none;
}

/* =========================================================
   TABLET — 1000px
========================================================= */

@media (max-width: 1000px) {
    .header-inner {
        gap: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-visual {
        right: 20px;
        opacity: .85;
    }

    .hero-content {
        max-width: 55%;
    }
}

/* =========================================================
   SMALL TABLET — 800px
========================================================= */

@media (max-width: 800px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 20px;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .search-box {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        margin: 0 0 4px;
    }

    .hero {
        min-height: 420px;
        padding: 40px 35px;
    }

    .hero-content {
        max-width: 65%;
    }

    .hero h1 {
        font-size: 60px;
    }

    .hero-visual {
        right: -10px;
        width: 250px;
        height: 250px;
        opacity: .55;
    }

    .hero-circle {
        width: 210px;
        height: 210px;
    }

    .hero-icon {
        font-size: 90px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE — 600px
========================================================= */

@media (max-width: 600px) {
    body {
        padding-bottom: 70px;
    }

    .header-inner {
        min-height: 0;
        padding: 10px 14px;
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .logo span {
        width: 30px;
        height: 30px;
    }

    .header-actions {
        gap: 6px;
    }

    .auth-btn {
        padding: 10px 9px;
        font-size: 10px;
    }

    .wishlist-btn,
    .cart-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .search-box {
        padding: 3px;
        border-radius: 14px;
    }

    .search-box input {
        padding: 11px 12px;
        font-size: 13px;
    }

    .hero {
        width: calc(100% - 28px);
        min-height: 460px;
        margin: 15px 14px;
        padding: 30px 24px;
        border-radius: 15px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-tag {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 52px;
        letter-spacing: -4px;
        margin-bottom: 20px;
    }

    .hero p {
        max-width: 100%;
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-btn,
    .hero-outline-btn {
        font-size: 12px;
    }

    .hero-visual {
        top: auto;
        right: -50px;
        bottom: -55px;
        width: 210px;
        height: 210px;
        transform: none;
        opacity: .75;
    }

    .hero-circle {
        width: 180px;
        height: 180px;
    }

    .hero-icon {
        font-size: 75px;
    }

    .floating-card {
        padding: 9px 12px;
        font-size: 8px;
    }

    .card-one {
        top: 0;
        left: -10px;
    }

    .card-two {
        right: 30px;
        bottom: 0;
    }

    .categories-section,
    .products-section {
        padding-right: 14px;
        padding-left: 14px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        padding: 12px;
        border-radius: 12px;
    }

    .category-icon {
        height: 105px;
        font-size: 42px;
    }

    .category-card strong {
        font-size: 13px;
    }

    .deal {
        width: calc(100% - 28px);
        margin: 30px 14px;
        padding: 28px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 15px;
    }

    .deal h2 {
        font-size: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product {
        border-radius: 12px;
    }

    .product-image {
        height: 175px;
    }

    .product-image img {
        padding: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-category {
        font-size: 8px;
    }

    .product-name {
        min-height: 35px;
        font-size: 13px;
    }

    .price {
        font-size: 12px;
    }

    .add {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .wishlist {
        width: 32px;
        height: 32px;
    }

    .feature-grid {
        padding: 45px 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .feature {
        padding: 16px;
    }

    .feature h3 {
        font-size: 13px;
    }

    .feature p {
        font-size: 10px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer {
        padding: 0 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .cart {
        width: 100%;
    }

    .checkout-form {
        max-height: 35%;
    }

    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 4500;
        height: calc(65px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: flex;
        align-items: center;
        justify-content: space-around;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, .06);
    }

    .bottom-nav a,
    .bottom-nav button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 48px;
        padding: 5px;
        border: 0;
        background: transparent;
        color: #666;
        font-size: 10px;
    }

    .bottom-nav span {
        font-size: 19px;
    }

    .bottom-nav a.active,
    .bottom-nav button:hover {
        color: #111;
    }
}

/* =========================================================
   VERY SMALL PHONES — 380px
========================================================= */

@media (max-width: 380px) {
    .header-inner {
        padding-right: 10px;
        padding-left: 10px;
        gap: 6px;
    }

    .logo {
        gap: 5px;
        font-size: 16px;
    }

    .logo span {
        width: 27px;
        height: 27px;
    }

    .header-actions {
        gap: 4px;
    }

    .auth-btn {
        padding: 9px 7px;
        font-size: 9px;
    }

    .wishlist-btn,
    .cart-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero {
        padding: 28px 18px;
    }

    .hero h1 {
        font-size: 45px;
        letter-spacing: -3px;
    }

    .product-grid {
        gap: 9px;
    }

    .product-image {
        height: 155px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 12px;
    }

    .price {
        font-size: 11px;
    }

    .product-bottom {
        gap: 5px;
    }

    .add {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .category-grid {
        gap: 9px;
    }

    .category-icon {
        height: 90px;
        font-size: 36px;
    }
}

/* =========================
   REDUCED MOTION ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
