:root {
    --brand-black: #2b2a29;
    --brand-orange: #f58220;
    --brand-green: #008b69;
    --brand-yellow: #ffe51f;

    --primary: #2a55e5;
    --primary-dark: #173fc6;
    --primary-soft: #eef3ff;

    --background: #f5f5f7;
    --surface: #ffffff;
    --text: #222222;
    --muted: #6b7280;
    --border: #dddddf;
    --success: #078a4d;
    --danger: #e53935;

    --shadow:
        0 3px 14px rgba(28, 32, 40, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

body.modal-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.header-main {
    min-height: 72px;
    display: grid;
    grid-template-columns:
        minmax(310px, auto)
        minmax(300px, 1fr)
        auto;
    align-items: center;
    gap: 28px;
    padding: 10px 24px;

    background:
        linear-gradient(
            105deg,
            #ffe51f 0%,
            #fff4b3 24%,
            #fffdf5 47%,
            #eaf8f3 72%,
            #eaf0ff 100%
        );

    border-bottom: 1px solid #d8d8d8;
}

/* Left logo and delivery area */

.header-brand-area {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-logo {
    width: 106px;
    height: 54px;
    flex: 0 0 106px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.07);
}

.header-logo img {
    width: auto;
    max-width: 100%;
    height: 50px;
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 38px;
    flex: 0 0 1px;
    margin: 0 18px;
    background: #d9dce3;
}

.delivery-location {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.76);
    color: #1f2937;
    text-align: left;
}

.delivery-icon {
    color: #2558ed;
    font-size: 16px;
    transform: rotate(-4deg);
}

.delivery-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.delivery-copy strong {
    overflow: hidden;
    color: #1557dc;
    font-size: 13px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delivery-time {
    font-weight: 800;
}

.delivery-copy small {
    max-width: 155px;
    overflow: hidden;
    color: #1253e1;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-arrow {
    color: #555b66;
    font-size: 9px;
}

/* Search */

.header-search {
    width: 100%;
    max-width: 610px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-self: center;
    overflow: hidden;
    border: 1px solid #d8dbe4;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.header-search:focus-within {
    border-color: #2a55e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 85, 229, 0.1);
}

.header-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 10px 0 17px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222222;
    font-size: 13px;
}

.header-search input::placeholder {
    color: #747985;
    opacity: 1;
}

.header-search button {
    width: 48px;
    height: 100%;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #5d626b;
    font-size: 16px;
}

/* Right actions */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.header-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    color: #1f1f1f;
    font-size: 14px;
}

.header-action:hover {
    border-color: rgba(42, 85, 229, 0.15);
    background: #ffffff;
}

.header-action > i:first-child {
    font-size: 20px;
}

.action-arrow {
    font-size: 9px;
}

.cart-action {
    position: relative;
}

.cart-icon {
    position: relative;
    font-size: 21px;
}

.cart-icon b {
    position: absolute;
    top: -12px;
    right: -11px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border-radius: 20px;
    background: #f58220;
    color: white;
    font-size: 10px;
}

/* Dropdowns */


.account-dropdown,
.more-dropdown {
    position: relative;
}




.account-menu,
.more-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 1100;
    width: 230px;
    display: none;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 10px 10px;
    background: white;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.account-menu.open,
.more-menu.open {
    display: block;
}

.account-menu::before,
.more-menu::before {
    position: absolute;
    top: -7px;
    right: 34px;
    width: 13px;
    height: 13px;
    content: "";
    background: white;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.account-menu a,
.more-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
}

.account-menu a:hover,
.more-menu a:hover {
    background: #f3f5fa;
}

.account-login-button {
    justify-content: center;
    margin-bottom: 5px;
    border-radius: 0 !important;
    background: #2a55e5 !important;
    color: white;
    font-size: 16px !important;
    font-weight: 700;
}

.account-login-button:hover {
    background: #173fc6 !important;
}
/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.category-navigation {
    background: var(--surface);
}

.category-scroll {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-link {
    min-width: 100px;
    flex: 1 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 10px 8px 9px;
    border-bottom: 3px solid transparent;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.category-link:hover {
    background: #fafafa;
    border-bottom-color: var(--primary);
}

.category-link.active {
    font-weight: 700;
}

.category-link.active .category-icon {
    background:
        linear-gradient(
            180deg,
            #d9f0ff,
            #f6fbff
        );
}

.category-icon {
    width: 42px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--brand-black);
    font-size: 23px;
}

.category-icon i::after {
    color: var(--brand-yellow);
}

.category-name {
    width: 100%;
    overflow: hidden;
    color: #111111;
    font-size: 11px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

main {
    width: min(1500px, calc(100% - 24px));
    margin: 12px auto 25px;
}

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

.hero-section {
    overflow: hidden;
    border-radius: 4px;
    background: white;
    box-shadow: var(--shadow);
}

.hero-slider {
    position: relative;
    min-height: 350px;
}

.hero-slide {
    min-height: 350px;
    display: none;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(320px, 0.95fr);
    align-items: center;
    padding: 40px 80px;
    background:
        linear-gradient(
            120deg,
            #ffffff 0%,
            #fffdf4 48%,
            #fff1d8 100%
        );
}

.hero-slide.active {
    display: grid;
    animation: heroFade 0.45s ease;
}

@keyframes heroFade {
    from {
        opacity: 0.25;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 690px;
}

.hero-label {
    display: inline-flex;
    padding: 7px 12px;
    border-left: 4px solid var(--brand-orange);
    background: #fff4e9;
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-content h1,
.hero-content h2 {
    margin: 16px 0 15px;
    color: var(--brand-black);
    font-size: clamp(39px, 4.7vw, 68px);
    line-height: 0.98;
    letter-spacing: -2px;
}

.hero-content h1 span,
.hero-content h2 span {
    color: var(--brand-green);
}

.hero-content p {
    max-width: 600px;
    margin: 0 0 25px;
    color: #626262;
    font-size: 17px;
    line-height: 1.65;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 138px;
    min-height: 46px;
    padding: 11px 23px;
    border-radius: 5px;
    background: var(--brand-orange);
    color: white;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.hero-button:hover {
    background: #dc690e;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-height: 270px;
    display: grid;
    place-items: center;
}

.hero-circle {
    position: absolute;
    width: 285px;
    height: 285px;
    border-radius: 50%;
    background: var(--brand-yellow);
    opacity: 0.86;
}

.hero-visual::before {
    position: absolute;
    top: 24px;
    right: 12%;
    width: 65px;
    height: 65px;
    content: "";
    border: 8px solid var(--brand-green);
    border-radius: 18px;
    transform: rotate(18deg);
    opacity: 0.18;
}

.hero-visual img {
    position: relative;
    z-index: 2;
    width: min(390px, 90%);
    max-height: 285px;
    object-fit: contain;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-black);
    font-size: 17px;
    transform: translateY(-50%);
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.13);
}

.slider-previous {
    left: 0;
    border-radius: 0 7px 7px 0;
}

.slider-next {
    right: 0;
    border-radius: 7px 0 0 7px;
}

.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 6;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.slider-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #b8b8b8;
    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.slider-dots button.active {
    width: 25px;
    background: var(--brand-orange);
}

/* =========================================================
   OFFERS
========================================================= */

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.offer-card {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 23px 27px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease;
}

.offer-card:hover {
    transform: translateY(-3px);
}

.offer-card span {
    font-size: 12px;
    font-weight: 700;
}

.offer-card h2 {
    margin: 8px 0;
    font-size: 25px;
}

.offer-card strong {
    font-size: 14px;
}

.offer-card > i {
    margin-right: 15px;
    font-size: 72px;
    opacity: 0.75;
    transform: rotate(-8deg);
}

.yellow-offer {
    background: #ffeb45;
    color: var(--brand-black);
}

.orange-offer {
    background: #ffe4cf;
    color: #a94700;
}

.green-offer {
    background: #dff6ee;
    color: #00684f;
}

/* =========================================================
   PRODUCTS
========================================================= */

.product-section {
    margin-top: 12px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.section-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 23px;
    border-bottom: 1px solid var(--border);
}

.section-header span {
    color: var(--muted);
    font-size: 12px;
}

.section-header h2 {
    margin: 4px 0 0;
    color: var(--brand-black);
    font-size: 24px;
}

.section-header > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.product-scroll {
    display: grid;
    grid-template-columns: repeat(6, minmax(190px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding: 18px;
    scroll-snap-type: x proximity;
}

.product-card {
    position: relative;
    min-width: 190px;
    overflow: hidden;
    border: 1px solid #ececef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(31, 41, 55, 0.08);
    scroll-snap-align: start;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(31, 41, 55, 0.13);
}

.product-image {
    width: 100%;
    height: 160px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #f7f7f8 0%,
        #ffffff 100%
    );
}

.product-image img {
    width: 135px;
    height: 135px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

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

.wishlist-button {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #8c949b;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wishlist-button.active {
    color: var(--danger);
}

.product-details {
    padding: 13px 15px 16px;
}

.product-category {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-name {
    min-height: 36px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
}

.product-price strong {
    color: var(--brand-black);
    font-size: 18px;
}

.product-price del {
    color: #9a9a9a;
    font-size: 11px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
}

.product-discount {
    color: var(--success);
    font-size: 11px;
    font-weight: 800;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--brand-black);
    font-size: 11px;
    font-weight: 700;
}

.product-rating i {
    color: #f2a100;
    font-size: 10px;
}

.add-cart-button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 18px;
    background: var(--brand-orange);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.add-cart-button:hover {
    background: #dc690e;
}

/* =========================================================
   SERVICE STRIP
========================================================= */

.service-strip {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    padding: 22px 15px;
    border-radius: 4px;
    background: white;
    box-shadow: var(--shadow);
}

.service-strip article {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 20px;
    border-right: 1px solid var(--border);
}

.service-strip article:last-child {
    border-right: 0;
}

.service-strip article > i {
    color: var(--brand-orange);
    font-size: 29px;
}

.service-strip article:nth-child(2) > i,
.service-strip article:nth-child(4) > i {
    color: var(--brand-green);
}

.service-strip div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.service-strip strong {
    font-size: 14px;
}

.service-strip span {
    color: var(--muted);
    font-size: 11px;
}

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

.site-footer {
    background: var(--brand-black);
    color: white;
}

.footer-grid {
    width: min(1400px, calc(100% - 40px));
    display: grid;
    grid-template-columns:
        minmax(270px, 2fr)
        repeat(3, minmax(150px, 1fr));
    gap: 45px;
    margin: auto;
    padding: 45px 0;
}

.footer-brand img {
    width: 100px;
    padding: 8px;
    border-radius: 4px;
    background: white;
}

.footer-brand p {
    max-width: 280px;
    color: #c4c4c4;
    font-size: 13px;
    line-height: 1.7;
}

.footer-grid h3 {
    margin: 0 0 15px;
    color: var(--brand-yellow);
    font-size: 13px;
    text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) a {
    display: block;
    margin: 11px 0;
    color: #dddddd;
    font-size: 13px;
}

.footer-grid a:hover {
    color: var(--brand-orange);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid #444341;
    color: #b9b9b9;
    font-size: 12px;
    text-align: center;
}

/* =========================================================
   LOCATION MODAL
========================================================= */

.location-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 20, 20, 0.66);
}

.location-modal.open {
    display: flex;
}

.location-modal-card {
    position: relative;
    width: min(440px, 100%);
    padding: 35px;
    border-radius: 12px;
    background: white;
    text-align: center;
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.23);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 13px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: var(--brand-black);
}

.modal-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #fff0e4;
    color: var(--brand-orange);
    font-size: 28px;
}

.location-modal-card h2 {
    margin: 0 0 8px;
    color: var(--brand-black);
}

.location-modal-card p {
    margin: 0 auto 23px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.location-modal-card form {
    display: flex;
    gap: 8px;
}

.location-modal-card input {
    flex: 1;
    min-width: 0;
    height: 45px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: 0;
}

.location-modal-card input:focus {
    border-color: var(--primary);
}

.location-modal-card form button {
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

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

.toast-message {
    position: fixed;
    bottom: 25px;
    left: 50%;
    z-index: 4000;
    max-width: calc(100% - 30px);
    padding: 12px 18px;
    border-radius: 5px;
    background: var(--brand-black);
    color: white;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transform:
        translate(-50%, 25px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.toast-message.show {
    opacity: 1;
    transform:
        translate(-50%, 0);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .header-top {
        grid-template-columns:
            220px
            150px
            1fr;
    }

    .header-actions {
        gap: 0;
    }

    .header-action {
        padding-inline: 8px;
    }

    .header-main {
        gap: 12px;
    }

    .hero-slide {
        padding-inline: 55px;
    }

    .offer-card > i {
        font-size: 58px;
    }

    .product-scroll {
        grid-template-columns:
            repeat(6, 215px);
    }

}

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

@media (max-width: 760px) {

    .product-scroll {
        grid-template-columns: repeat(6, 165px);
        gap: 11px;
        padding: 13px;
    }

    .product-card {
        min-width: 165px;
        border-radius: 17px;
    }

    .product-image {
        height: 135px;
    }

    .product-image img {
        width: 112px;
        height: 112px;
    }

    .product-details {
        padding: 11px 12px 13px;
    }

    .product-category {
        font-size: 8px;
    }

    .product-name {
        min-height: 34px;
        font-size: 12px;
    }

    .product-price {
        margin-top: 7px;
    }

    .product-price strong {
        font-size: 15px;
    }

    .product-price del {
        font-size: 10px;
    }

    .product-discount,
    .product-rating {
        font-size: 10px;
    }

    .wishlist-button {
        top: 9px;
        right: 9px;
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .add-cart-button {
        min-height: 35px;
        margin-top: 10px;
        border-radius: 16px;
        font-size: 11px;
    }
}

/* =========================================================
   COMPACT CATEGORY BAR ON SCROLL
   Result: [small icon] Home | [small icon] Mobiles | ...
========================================================= */

.category-navigation {
    position: relative;
    z-index: 999;
    background: #ffffff;
    transition:
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.category-navigation.compact {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 999;
    background: #ffffff;
    box-shadow:
        inset 0 1px 0 #e5e7eb,
        0 3px 8px rgba(0, 0, 0, 0.08);
}

.category-navigation.compact .category-scroll {
    min-height: 44px;
    align-items: center;
    padding: 0 10px;
}

.category-navigation.compact .category-link {
    min-width: auto;
    height: 44px;
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border-bottom-width: 2px;
}

.category-navigation.compact .category-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #f4f6fb;
    color: var(--brand-black);
    font-size: 13px;
}

.category-navigation.compact .category-name {
    width: auto;
    overflow: visible;
    color: #222222;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
}

.category-navigation.compact .category-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.category-navigation.compact .category-link.active .category-icon {
    background: var(--primary-soft);
    color: var(--primary);
}



@media (max-width: 760px) {
    .category-navigation.compact .category-scroll {
        min-height: 40px;
        padding-inline: 6px;
    }

    .category-navigation.compact .category-link {
        height: 40px;
        gap: 5px;
        padding-inline: 9px;
    }

    .category-navigation.compact .category-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        font-size: 11px;
    }

    .category-navigation.compact .category-name {
        font-size: 10px;
    }

   
}

/* =========================================================
   COMPLETE RESPONSIVE FIX
   Add at the very end of style.css
========================================================= */

/* ---------- LARGE TABLETS / SMALL LAPTOPS ---------- */

@media (max-width: 1200px) {

    .header-main {
        grid-template-columns:
            minmax(270px, auto)
            minmax(240px, 1fr)
            auto;
        gap: 14px;
        padding: 10px 14px;
    }

    .header-logo {
        width: 90px;
        flex-basis: 90px;
    }

    .header-divider {
        margin-inline: 11px;
    }

    .delivery-copy strong {
        font-size: 12px;
    }

    .delivery-copy small {
        max-width: 120px;
    }

    .header-action {
        padding-inline: 8px;
    }

    .category-link {
        min-width: 92px;
        flex-basis: 92px;
    }

    .hero-slide {
        padding-inline: 55px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(36px, 4vw, 54px);
    }

    .offer-card {
        padding-inline: 20px;
    }

    .offer-card > i {
        font-size: 55px;
    }

    .product-scroll {
        grid-template-columns: repeat(6, 205px);
    }
}


/* ---------- TABLETS ---------- */

@media (max-width: 900px) {

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-main {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        gap: 9px;
        padding: 9px 12px;
    }

    .header-brand-area {
        grid-column: 1 / -1;
        width: 100%;
    }

    .header-logo {
        width: 84px;
        height: 48px;
        flex-basis: 84px;
    }

    .header-logo img {
        height: 44px;
    }

    .header-divider {
        height: 32px;
        margin-inline: 12px;
    }

    .delivery-location {
        flex: 1;
        min-width: 0;
    }

    .delivery-copy {
        min-width: 0;
    }

    .delivery-copy strong,
    .delivery-copy small {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-search {
        max-width: none;
        justify-self: stretch;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .more-dropdown {
        display: none;
    }

    .category-scroll {
        justify-content: flex-start;
    }

    .category-link {
        min-width: 82px;
        flex-basis: 82px;
        padding-inline: 5px;
    }

    .category-name {
        font-size: 10px;
    }

    .category-navigation.compact .category-link {
        padding-inline: 10px;
    }

    main {
        width: calc(100% - 18px);
        margin-top: 9px;
    }

    .hero-slide {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(250px, 0.8fr);
        padding: 34px 45px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-circle {
        width: 220px;
        height: 220px;
    }

    .hero-visual img {
        width: 260px;
    }

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

    .offer-card:last-child {
        grid-column: 1 / -1;
    }

    .service-strip {
        grid-template-columns: 1fr 1fr;
    }

    .service-strip article {
        border-bottom: 1px solid var(--border);
    }

    .service-strip article:nth-child(2) {
        border-right: 0;
    }

    .service-strip article:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-grid > div:last-child {
        grid-column: 2 / 4;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 760px) {

    body {
        overflow-x: hidden;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-main {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        gap: 8px;
        padding: 8px 10px;
    }

    .header-brand-area {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .header-logo {
        width: 70px;
        height: 45px;
        flex: 0 0 70px;
        padding: 3px;
        border-radius: 7px;
    }

    .header-logo img {
        width: auto;
        height: 41px;
    }

    .header-divider {
        height: 30px;
        margin: 0 9px;
    }

    .delivery-location {
        min-width: 0;
        flex: 1;
        padding: 6px 8px;
    }

    .delivery-icon {
        font-size: 14px;
    }

    .delivery-copy strong {
        max-width: 170px;
        font-size: 11px;
    }

    .delivery-copy small {
        max-width: 170px;
        font-size: 9px;
    }

    .location-arrow {
        margin-left: auto;
    }

    .header-search {
        height: 42px;
        border-radius: 9px;
    }

    .header-search input {
        padding-left: 13px;
        font-size: 12px;
    }

    .header-search button {
        width: 42px;
        flex-basis: 42px;
        font-size: 15px;
    }

    .header-actions {
        gap: 0;
    }

    .account-dropdown,
    .more-dropdown {
        display: none;
    }

    .header-action.cart-action {
        width: 44px;
        height: 42px;
        min-height: 42px;
        justify-content: center;
        padding: 0;
        border: 1px solid #d8dbe4;
        background: rgba(255, 255, 255, 0.8);
    }

    .cart-action > span:last-child {
        display: none;
    }

    .cart-icon {
        font-size: 19px;
    }

    .category-navigation {
        overflow: hidden;
    }

    .category-scroll {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .category-link {
        min-width: 72px;
        flex: 0 0 72px;
        gap: 5px;
        padding: 8px 4px 7px;
        scroll-snap-align: start;
    }

    .category-icon {
        width: 34px;
        height: 31px;
        font-size: 18px;
    }

    .category-name {
        font-size: 9px;
    }

    .category-navigation.compact .category-scroll {
        min-height: 40px;
        padding: 0 5px;
    }

    .category-navigation.compact .category-link {
        height: 40px;
        min-width: auto;
        flex: 0 0 auto;
        gap: 5px;
        padding: 0 9px;
    }

    .category-navigation.compact .category-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        font-size: 11px;
    }

    .category-navigation.compact .category-name {
        font-size: 10px;
    }

    main {
        width: calc(100% - 14px);
        margin: 8px auto 18px;
    }

    .hero-slider,
    .hero-slide {
        min-height: 430px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 28px 25px 42px;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-label {
        padding: 6px 10px;
        font-size: 9px;
    }

    .hero-content h1,
    .hero-content h2 {
        margin: 10px 0 12px;
        font-size: 32px;
        line-height: 1.02;
        letter-spacing: -1px;
    }

    .hero-content p {
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.5;
    }

    .hero-button {
        min-width: 125px;
        min-height: 42px;
        padding: 10px 18px;
        font-size: 13px;
    }

    .hero-visual {
        order: 1;
        min-height: 175px;
    }

    .hero-circle {
        width: 165px;
        height: 165px;
    }

    .hero-visual img {
        width: 205px;
        max-height: 165px;
    }

    .slider-arrow {
        width: 30px;
        height: 55px;
        font-size: 13px;
    }

    .offer-grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 84%;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .offer-grid::-webkit-scrollbar {
        display: none;
    }

    .offer-card,
    .offer-card:last-child {
        min-height: 130px;
        grid-column: auto;
        padding: 18px;
        scroll-snap-align: start;
    }

    .offer-card h2 {
        margin: 6px 0;
        font-size: 20px;
    }

    .offer-card > i {
        margin-right: 5px;
        font-size: 48px;
    }

    .section-header {
        min-height: 66px;
        padding: 13px 14px;
    }

    .section-header span {
        font-size: 10px;
    }

    .section-header h2 {
        font-size: 17px;
    }

    .section-header > a {
        padding: 8px 11px;
        font-size: 10px;
    }

    .product-scroll {
        grid-template-columns: repeat(6, 165px);
        gap: 11px;
        padding: 13px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .product-card {
        min-width: 165px;
        border-radius: 17px;
        scroll-snap-align: start;
    }

    .product-image {
        height: 135px;
    }

    .product-image img {
        width: 112px;
        height: 112px;
    }

    .product-details {
        padding: 10px 12px 13px;
    }

    .product-category {
        margin-bottom: 4px;
        font-size: 8px;
    }

    .product-name {
        min-height: 32px;
        font-size: 12px;
    }

    .product-price {
        margin-top: 7px;
    }

    .product-price strong {
        font-size: 15px;
    }

    .product-price del {
        font-size: 9px;
    }

    .product-discount,
    .product-rating {
        font-size: 9px;
    }

    .wishlist-button {
        top: 8px;
        right: 8px;
        width: 31px;
        height: 31px;
        font-size: 14px;
    }

    .add-cart-button {
        min-height: 34px;
        margin-top: 9px;
        padding: 7px 8px;
        border-radius: 15px;
        font-size: 10px;
    }

    .service-strip {
        grid-template-columns: 1fr 1fr;
        padding: 8px;
    }

    .service-strip article {
        min-height: 74px;
        justify-content: flex-start;
        gap: 10px;
        padding: 11px 9px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .service-strip article:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

    .service-strip article:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .service-strip article > i {
        font-size: 21px;
    }

    .service-strip strong {
        font-size: 11px;
    }

    .service-strip span {
        font-size: 9px;
    }

    .footer-grid {
        width: calc(100% - 30px);
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 32px 0;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-grid > div:last-child {
        grid-column: auto;
    }

    .location-modal-card {
        padding: 30px 18px 22px;
    }

    .location-modal-card form {
        flex-direction: column;
    }

    .location-modal-card input,
    .location-modal-card form button {
        width: 100%;
        height: 44px;
    }
}


/* ---------- SMALL MOBILE ---------- */

@media (max-width: 420px) {

    .header-logo {
        width: 63px;
        flex-basis: 63px;
    }

    .header-logo img {
        height: 38px;
    }

    .header-divider {
        margin-inline: 7px;
    }

    .delivery-copy strong,
    .delivery-copy small {
        max-width: 145px;
    }

    .hero-slider,
    .hero-slide {
        min-height: 405px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-visual {
        min-height: 155px;
    }

    .hero-circle {
        width: 145px;
        height: 145px;
    }

    .hero-visual img {
        width: 180px;
        max-height: 145px;
    }

    .offer-grid {
        grid-auto-columns: 90%;
    }

    .product-scroll {
        grid-template-columns: repeat(6, 155px);
    }

    .product-card {
        min-width: 155px;
    }

    .product-image {
        height: 125px;
    }

    .product-image img {
        width: 103px;
        height: 103px;
    }

    .section-header h2 {
        font-size: 15px;
    }

    .service-strip strong {
        font-size: 10px;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}
/* =========================================================
   HEADER SPACING + MOBILE SEARCH / LOGIN / MORE
========================================================= */

/* Desktop: more space between Login, More and Cart */
@media (min-width: 901px) {
    .header-actions {
        gap: 12px;
    }

    .header-action {
        padding-inline: 13px;
    }
}


/* Tablet and mobile */
@media (max-width: 900px) {
    .header-main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
    }

    /* Keep search smaller so actions fit beside it */
    .header-search {
        width: 100%;
        max-width: none;
        height: 38px;
        border-radius: 8px;
    }

    .header-search input {
        padding-left: 11px;
        font-size: 11px;
    }

    .header-search button {
        width: 36px;
        flex-basis: 36px;
        font-size: 13px;
    }

    /* Show Login and More again */
    .account-dropdown,
    .more-dropdown {
        display: block;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .header-action {
        min-height: 38px;
        gap: 5px;
        padding: 0 7px;
        border: 1px solid rgba(216, 219, 228, 0.9);
        background: rgba(255, 255, 255, 0.78);
        font-size: 11px;
    }

    .header-action > i:first-child {
        font-size: 15px;
    }

    .action-arrow {
        font-size: 7px;
    }

    .cart-icon {
        font-size: 16px;
    }

    .cart-icon b {
        top: -10px;
        right: -9px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
}


/* Mobile */
@media (max-width: 760px) {
    .header-main {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 7px 8px;
    }

    .header-search {
        height: 36px;
    }

    .header-search input {
        font-size: 10px;
    }

    .header-actions {
        gap: 2px;
    }

    .header-action {
        min-height: 36px;
        padding-inline: 6px;
        font-size: 10px;
        border-radius: 7px;
    }

    .header-action > i:first-child {
        font-size: 14px;
    }

    .header-action.cart-action {
        width: auto;
        height: 36px;
        min-height: 36px;
        padding: 0 7px;
    }

    /* Show Cart text also */
    .cart-action > span:last-child {
        display: inline;
    }

    .account-menu,
    .more-menu {
        position: fixed;
        top: auto;
        right: 8px;
        left: 8px;
        width: auto;
        border-radius: 10px;
    }
}


/* Small phones: keep only compact labels */
@media (max-width: 430px) {
    .header-search {
        height: 34px;
    }

    .header-action {
        min-height: 34px;
        padding-inline: 5px;
        font-size: 9px;
    }

    .header-action > i:first-child {
        font-size: 13px;
    }

    .action-arrow {
        display: none;
    }

    .cart-action > span:last-child {
        display: none;
    }
}
@media (max-width: 760px) {
    .product-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 13px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .product-scroll::-webkit-scrollbar {
        display: none;
    }

    .product-card {
        flex: 0 0 165px;
        min-width: 165px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .product-image {
        width: 100%;
        overflow: hidden;
    }

    .product-image img {
        width: 112px;
        height: 112px;
        object-fit: contain;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }
}
@media (max-width: 420px) {
    .product-card {
        flex-basis: 155px;
        min-width: 155px;
    }
}

/* =========================================================
   FINAL MOBILE HEADER + SWIPE OVERRIDES
   Keep this block at the very end
========================================================= */

@media (min-width: 901px) {
    .header-actions {
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .header-main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
    }

    .header-search {
        width: 100%;
        max-width: none;
        height: 38px;
    }

    .account-dropdown,
    .more-dropdown {
        display: block;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 3px;
    }
}

@media (max-width: 760px) {
    .header-main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        padding: 7px 8px;
    }

    .header-search {
        height: 35px;
        min-width: 0;
    }

    .header-search input {
        min-width: 0;
        padding-left: 10px;
        font-size: 10px;
    }

    .header-search button {
        width: 34px;
        flex-basis: 34px;
        font-size: 12px;
    }

    .header-actions {
        gap: 2px;
    }

    .header-action {
        min-height: 35px;
        gap: 4px;
        padding: 0 6px;
        font-size: 10px;
    }

    .header-action > i:first-child {
        font-size: 14px;
    }

    .action-arrow {
        font-size: 7px;
    }

    .header-action.cart-action {
        width: auto;
        height: 35px;
        min-height: 35px;
        padding: 0 6px;
    }

    .cart-action > span:last-child {
        display: inline;
    }

    .account-menu,
    .more-menu {
        position: fixed;
        top: auto;
        right: 8px;
        left: 8px;
        width: auto;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 10px;
    }

    .product-scroll {
        display: flex;
        grid-template-columns: none;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 13px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        overscroll-behavior-inline: contain;
    }

    .product-scroll::-webkit-scrollbar {
        display: none;
    }

    .product-card {
        flex: 0 0 165px;
        min-width: 165px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .product-image {
        width: 100%;
        overflow: hidden;
    }

    .product-image img {
        width: 112px;
        height: 112px;
        object-fit: contain;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }
}

@media (max-width: 430px) {
    .header-action {
        min-height: 34px;
        padding-inline: 5px;
        font-size: 9px;
    }

    .action-arrow {
        display: none;
    }

    .cart-action > span:last-child {
        display: none;
    }
}

@media (max-width: 420px) {
    .product-card {
        flex-basis: 155px;
        min-width: 155px;
    }
}