* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-black: #111111;
    --brand-dark: #1c1f26;
    --brand-white: #ffffff;
    --brand-bg: #f7f8fb;
    --brand-card: #ffffff;
    --brand-border: #ececf1;
    --brand-text: #14151a;
    --brand-soft: #7b8190;
    --brand-orange: #f58220;
    --brand-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.04);
    --brand-shadow-md: 0 14px 32px rgba(0, 0, 0, 0.07);
    --transition: all 0.28s ease;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--brand-bg);
    color: var(--brand-text);
    display: flex;
    flex-direction: column;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(94%, 1280px);
    margin: 0 auto;
}

/* TOP STRIP */
.top-strip {
    background: var(--brand-black);
    color: var(--brand-white);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    letter-spacing: 0.2px;
}

/* TOAST */
.cart-toast {
    position: fixed;
    top: 88px;
    right: 18px;
    z-index: 9999;
    background: var(--brand-black);
    color: var(--brand-white);
    border-left: 4px solid var(--brand-orange);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
}

.cart-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--brand-white);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03);
}

.header-main {
    background: var(--brand-white);
    padding: 12px 0 10px;
}

.header-main-wrap {
    display: grid;
    grid-template-columns: 210px minmax(280px, 1fr) 150px;
    gap: 18px;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.site-logo .logo-black {
    color: #111111;
}

.site-logo .logo-orange {
    color: var(--brand-orange);
}

.header-search {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: var(--brand-white);
    border: 1.5px solid #dddddf;
    border-radius: 999px;
    overflow: hidden;
    transition: var(--transition);
}

.header-search:focus-within {
    border-color: var(--brand-black);
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.04);
}

.header-search input {
    flex: 1;
    height: 46px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--brand-text);
    padding: 0 16px;
    font-size: 14px;
}

.header-search input::placeholder {
    color: #a0a3ad;
}

.header-search button {
    width: 54px;
    height: 46px;
    border: none;
    background: var(--brand-dark);
    color: var(--brand-white);
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
}

.header-search button:hover {
    background: var(--brand-black);
}

.header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.header-icons a,
.mobile-menu-toggle {
    color: var(--brand-dark);
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.header-icons a:hover,
.mobile-menu-toggle:hover {
    color: var(--brand-orange);
}

.header-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-cart-count {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

/* HAMBURGER */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: #f6f7fb;
    color: #111111;
    border: 1px solid #ececf1;
    padding: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle.active {
    background: #111111;
    color: #ffffff;
}

.mobile-menu-toggle.active i::before {
    content: "\f00d";
}

.header-categories {
    background: var(--brand-white);
    border-top: 1px solid #f3f3f5;
}

.header-categories-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 11px 0 13px;
    scrollbar-width: none;
}

.header-categories-nav::-webkit-scrollbar {
    display: none;
}

.header-categories-nav a {
    color: #3a3d46;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.header-categories-nav a:hover {
    color: var(--brand-black);
}

.header-categories-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--brand-orange);
    transition: var(--transition);
}

.header-categories-nav a:hover::after {
    width: 100%;
}

/* HOME */
.home-page {
    padding-bottom: 36px;
}

/* SHARED SECTIONS */
.quick-categories-section,
.home-products-section,
.dual-products-section {
    padding: 0 0 30px;
}

/* SHOP BY CATEGORY HEADING */
.category-heading {
    margin-bottom: 22px;
}

.category-heading h2 {
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.2px;
    color: #14151a;
    margin: 0;
}

/* CATEGORY ROW */
.quick-categories-section {
    padding-top: 8px;
    padding-bottom: 34px;
}

.quick-categories-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.quick-categories-scroll::-webkit-scrollbar {
    display: none;
}

.quick-category-item {
    min-width: 116px;
    flex: 0 0 auto;
    text-align: center;
    transition: var(--transition);
}

.quick-category-item:hover {
    transform: translateY(-4px);
}

.quick-category-image {
    width: 96px;
    height: 96px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 4px solid #ffffff;
    outline: 1px solid #ececf2;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.quick-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-category-item span {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #20222c;
    line-height: 1.3;
}

/* subtle phone hint animation */
@keyframes categorySlideHint {
    0% { transform: translateX(0); }
    35% { transform: translateX(-18px); }
    70% { transform: translateX(0); }
    100% { transform: translateX(0); }
}

/* SUPER DEALS / TOP TRENDS */
.dual-products-section {
    padding-bottom: 34px;
}

.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.dual-box {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    border: 1px solid #ececf1;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.dual-box-head {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #efeff3;
}

.dual-box-head h2 {
    font-size: 24px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin: 0;
    color: #17181d;
    position: relative;
    padding-left: 14px;
}

.dual-box-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 999px;
    background: #1d1f24;
}

.three-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* FOR YOU */
.foryou-heading {
    text-align: center;
    margin-bottom: 18px;
}

.foryou-heading h2 {
    display: inline-block;
    position: relative;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: #232634;
    margin: 0;
    padding: 0 16px;
}

.foryou-heading h2::before,
.foryou-heading h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 52px;
    height: 1px;
    background: #d8dbe3;
}

.foryou-heading h2::before {
    right: 100%;
    margin-right: 10px;
}

.foryou-heading h2::after {
    left: 100%;
    margin-left: 10px;
}

.foryou-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

/* PRODUCT CARD */
.product-card {
    background: var(--brand-card);
    border: 1px solid #efeff2;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-shadow-md);
}

.product-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f1f2f6;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
    margin-bottom: 8px;
    min-height: 38px;
    max-height: 38px;
    overflow: hidden;
    color: var(--brand-text);
}

.product-title a:hover {
    color: #3a3d46;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--brand-text);
    line-height: 1;
}

.product-old-price {
    font-size: 12px;
    color: #a1a4ad;
    text-decoration: line-through;
    line-height: 1;
}

/* COMPACT CARDS */
.compact-card .product-image {
    aspect-ratio: 0.88 / 1;
    border-radius: 14px 14px 0 0;
}

.compact-card .product-title {
    font-size: 12px;
    min-height: 34px;
    max-height: 34px;
    margin-bottom: 7px;
}

.compact-card .product-price {
    font-size: 16px;
}

.small-btn {
    margin-top: 10px;
    width: auto;
    min-width: 88px;
    height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: #20222c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.small-btn:hover {
    background: var(--brand-black);
}

/* FOR YOU CARDS */
.foryou-card .product-image {
    aspect-ratio: 0.84 / 1;
}

.foryou-card .product-info {
    padding: 11px 11px 12px;
}

.foryou-card .product-title {
    font-size: 12px;
    min-height: 34px;
    max-height: 34px;
    margin-bottom: 6px;
}

.foryou-card .product-price {
    font-size: 16px;
}

.foryou-card .product-old-price {
    font-size: 11px;
}

.tiny-btn {
    margin-top: 8px;
    min-width: 84px;
    height: 30px;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    background: #20222c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tiny-btn:hover {
    background: var(--brand-black);
}

.add-btn {
    text-decoration: none;
}

.disabled-btn {
    background: #d9dbe2 !important;
    color: #8d9099 !important;
    cursor: not-allowed;
}

/* EMPTY */
.empty-products-box {
    grid-column: 1 / -1;
    background: var(--brand-white);
    border-radius: 16px;
    border: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow-sm);
    padding: 30px 24px;
    text-align: center;
}

.empty-products-box h3 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--brand-text);
}

.empty-products-box p {
    font-size: 14px;
    color: var(--brand-soft);
}

/* VIEW MORE */
.view-more-box {
    text-align: center;
    margin-top: 24px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 165px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--brand-black);
    background: var(--brand-white);
    color: var(--brand-black);
    font-size: 13px;
    font-weight: 800;
    transition: var(--transition);
}

.view-more-btn:hover {
    background: var(--brand-black);
    color: var(--brand-white);
    transform: translateY(-2px);
}

/* WHITE FOOTER */
.site-footer.white-footer {
    margin-top: 18px;
    background: #ffffff;
    color: #14151a;
    padding: 46px 0 18px;
    border-top: 1px solid #ececf1;
}

.footer-grid-clean {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.9fr;
    gap: 26px;
    padding-bottom: 22px;
}

.footer-column {
    min-width: 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 12px;
    font-family: 'Poppins', 'Inter', sans-serif;
}

.footer-logo .logo-black {
    color: #111111;
}

.footer-logo .logo-orange {
    color: var(--brand-orange);
}

.footer-brand-text {
    max-width: 330px;
    font-size: 14px;
    line-height: 1.8;
    color: #6e7380;
}

.footer-info-column h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #14151a;
}

.footer-info-column a,
.footer-info-column p {
    display: block;
    font-size: 13px;
    line-height: 1.8;
    color: #6e7380;
    margin-bottom: 2px;
    transition: all 0.25s ease;
}

.footer-info-column a:hover {
    color: #111111;
    transform: translateX(2px);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f6fa;
    color: #1b1f27;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.28s ease;
}

.footer-socials a:hover {
    background: var(--brand-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom-clean {
    border-top: 1px solid #ececf1;
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom-clean p {
    font-size: 12px;
    color: #8a8f9b;
    margin: 0;
}

/* MOBILE BOTTOM NAV */
.mobile-bottom-nav {
    display: none;
}

/* LARGE LAPTOP */
@media (max-width: 1180px) {
    .container {
        width: min(94%, 1160px);
    }

    .foryou-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* TABLET */
@media (max-width: 992px) {
    .container {
        width: 94%;
        max-width: 960px;
    }

    .header-main-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-logo {
        font-size: 28px;
        text-align: center;
    }

    .header-search {
        max-width: 100%;
    }

    .header-icons {
        justify-content: center;
    }

    .dual-grid {
        grid-template-columns: 1fr;
    }

    .three-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .foryou-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid-clean {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    body {
        padding-bottom: 76px;
    }

    .top-strip {
        font-size: 11px;
        padding: 7px 10px;
    }

    .cart-toast {
        top: 76px;
        right: 12px;
        left: 12px;
        max-width: unset;
    }

    .header-main {
        padding: 10px 0 8px;
    }

    .header-main-wrap {
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
    }

    .site-logo {
        font-size: 24px;
        text-align: left;
        letter-spacing: -0.7px;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
        max-width: 100%;
        margin-top: 2px;
    }

    .header-search input {
        height: 42px;
        font-size: 13px;
        padding: 0 14px;
    }

    .header-search button {
        width: 50px;
        height: 42px;
        font-size: 14px;
    }

    .header-icons {
        justify-content: flex-end;
        gap: 10px;
    }

    .header-icons a {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .header-categories {
        border-top: none;
    }

    .header-categories-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        background: #ffffff;
        border-top: 1px solid #f1f2f5;
    }

    .header-categories-nav.show {
        display: flex;
        padding: 8px 0;
    }

    .header-categories-nav a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 13px;
    }

    .header-categories-nav a::after {
        display: none;
    }

    .category-heading h2 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }

    .dual-box-head h2 {
        font-size: 20px;
    }

    .foryou-heading h2 {
        font-size: 18px;
    }

    .foryou-heading h2::before,
    .foryou-heading h2::after {
        width: 30px;
    }

    .quick-categories-scroll {
        gap: 14px;
        padding-bottom: 12px;
        animation: categorySlideHint 2s ease-in-out 1;
    }

    .quick-category-item {
        min-width: 88px;
    }

    .quick-category-image {
        width: 74px;
        height: 74px;
        margin-bottom: 10px;
    }

    .quick-category-item span {
        font-size: 12px;
        line-height: 1.2;
    }

    .three-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .three-grid .product-card:nth-child(3) {
        display: none;
    }

    .dual-box {
        padding: 16px;
        border-radius: 20px;
    }

    .compact-card .product-image {
        aspect-ratio: 0.92 / 1;
    }

    .compact-card .product-title,
    .foryou-card .product-title {
        font-size: 11.5px;
        line-height: 1.35;
    }

    .compact-card .product-price,
    .foryou-card .product-price {
        font-size: 15px;
    }

    .small-btn,
    .tiny-btn {
        height: 29px;
        min-width: 82px;
        font-size: 10px;
        padding: 0 11px;
    }

    .foryou-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .site-footer.white-footer {
        padding: 44px 0 88px;
    }

    .footer-grid-clean {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-logo {
        font-size: 26px;
    }

    .footer-brand-text {
        max-width: 100%;
        font-size: 13px;
    }

    .footer-bottom-clean {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 850;
        background: var(--brand-white);
        border-top: 1px solid #dddddd;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--brand-text);
        font-size: 11px;
        font-weight: 700;
        text-align: center;
    }

    .mobile-bottom-nav a i {
        font-size: 18px;
    }

    .mobile-bottom-nav a.active {
        color: var(--brand-black);
    }
}

/* SMALL PHONE */
@media (max-width: 480px) {
    .top-strip {
        font-size: 10px;
        padding: 6px 8px;
    }

    .site-logo {
        font-size: 21px;
    }

    .header-search input {
        height: 40px;
        font-size: 12px;
    }

    .header-search button {
        width: 46px;
        height: 40px;
    }

    .header-icons {
        gap: 9px;
    }

    .header-icons a,
    .mobile-menu-toggle {
        font-size: 17px;
    }

    .header-cart-count {
        font-size: 12px;
    }

    .quick-category-item {
        min-width: 82px;
    }

    .quick-category-image {
        width: 70px;
        height: 70px;
    }

    .quick-category-item span {
        font-size: 11px;
    }

    .foryou-grid {
        gap: 10px;
    }

    .product-old-price {
        font-size: 11px;
    }
}