:root {
    --bg-color: #F8F9FA;
    --text-dark: #1F2937;
    --search-border: #DDDDDD;
    --text-gray: #6B7280;
    --border-light: #E5E7EB;
    --white: #FFFFFF;
    --brand-color: #731542;
    --brand-color-dark-10: #68133b;
    --brand-color-dark-20: #5c1135;
    --brand-color-dark-30: #510f2e;
    --brand-color-dark-40: #450d28;
    --brand-color-dark-50: #3a0b21;
    --brand-color-dark-60: #2e081a;
    --brand-color-dark-70: #230614;
    --brand-color-dark-80: #17040d;
    --brand-color-dark-90: #0c0207;
    --brand-color-light-10: #812c55;
    --brand-color-light-20: #8f4468;
    --brand-color-light-30: #9d5b7b;
    --brand-color-light-40: #ab738e;
    --brand-color-light-50: #b98aa1;
    --brand-color-light-60: #c7a1b3;
    --brand-color-light-70: #d5b9c6;
    --brand-color-light-80: #e3d0d9;
    --brand-color-light-90: #f1e8ec;
    --button-color: #e60053;
    --button-color-hover: #cc004a;
}

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

body {
    background-color: var(--white);
    color: var(--text-dark);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
}

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.gap-8 {
    gap: 32px;
}

.gap-12 {
    gap: 48px;
}

.w-full {
    width: 100%;
}

.flex-grow {
    flex-grow: 1;
}

.search-form {
    width: 100%;
}

.btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.badge {
    background-color: var(--brand-color-dark-20);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popular Searches Bar Redesign */
.popular-searches-bar {
    background-color: #fff;
    border-top: 1px solid #eee;
    margin-top: 0px;
    padding: 20px 0 5px 0;
}

.popular-searches-bar .popular-title {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.popular-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #777;
    letter-spacing: 0.03em !important;
}

.search-tag {
    color: #777;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s;
}

.search-tag:hover {
    color: #ff005c;
    text-decoration: underline;
}

.search-tag:not(:last-child)::after {
    content: "|";
    margin-left: 8px;
    color: #ccc;
    font-weight: 300;
}

/* Header styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding-bottom: 12px;
}

.header-top {
    padding: 0px 20px;
    padding-top: 5px;
    gap: 2rem;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.search-container {
    width: 45%;
    margin: 0 40px;
    position: relative;
}

.search-form {
    background-color: var(--white);
    border: 1px solid var(--search-border);
    border-radius: 9999px;
    padding: 2px 2px 2px 20px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-wrapper {
    position: relative;
}

.search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: var(--text-dark);
    padding: 8px 0;
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
    padding: 0 12px;
    display: none;
    /* Hidden by default */
}

.clear-btn.show {
    display: flex;
}

.search-btn {
    background-color: var(--brand-color-light-10);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s;
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: var(--brand-color-dark-10);
}

/* --- Search Dropdown --- */
.search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 200;
    display: none;
    /* Hidden by default */
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.search-dropdown.show {
    display: block;
}

.dropdown-header {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
    color: var(--text-gray);
    font-size: 14px;
}

.dropdown-list {
    list-style: none;
    max-height: 650px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--bg-color);
}

.item-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    background-color: #f9f9f9;
    padding: 0px;
    border-radius: 2px;
    transform: scale(1.4);
}

.item-name {
    font-size: 14px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 14px;
    white-space: nowrap;
}

.price-discounted {
    color: var(--button-color);
    font-weight: 700;
}

.price-original {
    color: var(--text-dark);
    text-decoration: line-through;
    font-size: 12px;
}

.action-icon {
    font-size: 28px;
    color: var(--text-dark);
    position: relative;
}

.action-icon i {
    -webkit-text-stroke: 1px var(--white);
}

/* User Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}

.user-dropdown-item:hover {
    background: #f5f5f5;
}

.user-dropdown-item i {
    font-size: 18px;
    -webkit-text-stroke: 0;
}

/* --- Hero Section --- */
.hero {
    margin-top: 15px;
}

.hero-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    background-color: #ededed;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    visibility: hidden;
    z-index: 1;
}

.hero-slide.active {
    transform: translateX(0);
    visibility: visible;
    z-index: 2;
}

.hero-slide.exit {
    transform: translateX(-100%);
    visibility: visible;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: center;
    padding-left: 60px;
}

.hero-content h2 {
    font-size: 48px;
    color: var(--white);
    line-height: 1.1;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 24px;
}

.hero-btn {
    font-size: 16px;
    padding: 12px 32px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    /* Not a full pill in the banner */
}

.offer-banner {
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--white);
    width: 24px;
    border-radius: 12px;
}

/* --- Top Categories --- */
.top-categories {
    margin-top: 40px;
}

.section-title {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.see-all {
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: 0.2s;
}

.see-all:hover {
    background-color: var(--bg-color);
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 15px;
    padding-top: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 135px;
    cursor: pointer;
}

.category-item:hover .category-img-wrapper {
    transform: scale(1.1);
}

.category-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 0px;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.makeup-border {
    border: 3px solid #f2f2f2;
}

.skincare-border {
    border: 3px solid var(--brand-color);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scale(1);
}

.category-name {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.mobile-break {
    display: none;
}

.cart-icon .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    width: 20px;
    height: 20px;
    font-size: 11px;
}

/* Nav Pills */
.nav-wrapper {
    position: relative;
}

@media (max-width: 768px) {
    .top-categories {
        margin-top: 32px;
    }

    .products-section,
    .top-brands-section {
        margin-top: 40px !important;
        margin-bottom: 40px !important;
    }

    .products-section {
        margin-top: 60px !important;
    }

    .categories-grid {
        margin-top: 9px;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 5px;
        gap: 25px;
        /* Reduce spacing between items on mobile */
        justify-content: flex-start;
        /* Ensure items align at start */
    }

    .category-item {
        min-width: 90px;
        /* Reduce min-width for mobile items */
    }

    .category-img-wrapper {
        width: 80px;
        /* Reduce image wrapper size */
        height: 80px;
        padding: 0px;
    }

    .category-img {
        transform: scale(1);
    }

    .category-name {
        font-size: 13px;
        /* Smaller font size for mobile */
        margin-top: 10px;
    }

    .mobile-break {
        display: block;
    }

    .nav-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to left, var(--white) 10%, rgba(255, 255, 255, 0));
        pointer-events: none;
    }

    .products-grid {
        margin-top: 24px !important;
    }

    .brands-grid {
        margin-top: 24px !important;
    }
}

.header-nav {
    padding: 0px 20px;
    padding-bottom: 1px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.nav-pills {
    list-style: none;
    gap: 12px;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nav-pills {
        justify-content: center;
    }


    .header-nav {
        padding-top: 5px;
    }
}

.nav-pills li {
    flex-shrink: 0;
}

/* --- Filter & Sort --- */
.sidebar {
    background: var(--white);
    transition: left 0.3s ease-in-out;
}

.sidebar-header {
    display: none;
}

.sort-dropdown-mobile {
    display: none;
}

.filter-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-backdrop.open {
    display: block;
    opacity: 1;
}

.floating-filter-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.2s;
}

.floating-filter-btn:hover {
    background: var(--button-color-hover);
}

.close-filter-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .sort-dropdown-desktop {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80vw !important;
        max-width: 300px;
        height: 100vh;
        z-index: 1001;
        overflow-y: auto;
        padding: 20px;
        padding-bottom: 80px;
        /* space for scrolling past floating button if needed */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-header {
        display: flex;
    }

    .sort-dropdown-mobile {
        display: block;
    }

    .floating-filter-btn {
        display: flex;
    }
}

.pill {
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    background-color: var(--bg-color);
}

.pill:hover {
    background-color: var(--border-light);
}

/* --- Product Grid --- */
.products-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.products-carousel-wrapper {
    position: relative;
}

.products-grid {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    padding-top: 5px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

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

.product-card {
    min-width: calc(50vw - 28px);
    width: calc(50vw - 28px);
    /* exactly 2 cards fit on mobile */
    flex-shrink: 0;
    scroll-snap-align: start;
}

@media (min-width: 480px) {
    .product-card {
        min-width: 160px;
        width: 160px;
    }
}

@media (min-width: 768px) {
    .product-card {
        min-width: 180px;
        width: 180px;
    }
}

@media (min-width: 1024px) {
    .product-card {
        min-width: calc(20% - 13px);
        width: calc(20% - 13px);
        max-width: 200px;
        /* restrict from expanding too large on big screens */
    }
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.03);
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff005c;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 10;
}

.sale-badge.sold-out {
    background-color: #6B7280;
}

.product-img-wrapper {
    aspect-ratio: 1;
    width: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-img-wrapper {
        padding: 0px;
        /* Reduce padding to give image more room */
    }
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .product-img {
        transform: scale(1);
        /* Reset scale if any was applied */
    }
}

@media (hover: hover) {
    /* Full card zoom instead of image zoom */
    .product-card:hover .product-img {
        transform: scale(1);
    }
}

.add-to-cart-btn {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: var(--button-color);
    color: var(--white);
    border: none;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.add-to-cart-btn i {
    font-size: 18px;
}

@media (hover: hover) {
    .product-card:hover .add-to-cart-btn {
        bottom: 15px;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .add-to-cart-btn {
        opacity: 1;
        bottom: 10px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 0;
        left: auto;
        right: 10px;
        transform: none;
        background-color: var(--button-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .add-to-cart-btn i {
        font-size: 21px;
        margin: 0 !important;
        padding: 0 !important;
        margin-left: 5px !important;
        line-height: normal !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        text-align: center !important;
    }

    .add-to-cart-btn:active {
        background-color: var(--button-color-hover);
        transform: scale(0.95);
    }
}

.add-to-cart-btn:hover {
    background-color: var(--button-color-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
    padding: 12px;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info .brand {
    font-size: 11px;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
    word-break: break-word;
    /* Ensure large words wrap on tiny screens */
}

.price-container {
    margin-top: auto;
}

.product-card .price-original {
    color: var(--text-gray);
    text-decoration: line-through;
    font-size: 12px;
}

.product-card .price-discounted {
    color: #ff005c;
    font-weight: 700;
    font-size: 14px;
}

/* --- Top Brands Section --- */
.top-brands-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.brands-carousel-wrapper {
    position: relative;
}

.brands-grid {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    padding-top: 5px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

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

.brand-card {
    min-width: calc(50vw - 28px);
    width: calc(50vw - 28px);
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 480px) {
    .brand-card {
        min-width: 150px;
        width: 150px;
    }
}

@media (min-width: 768px) {
    .brand-card {
        min-width: 160px;
        width: 160px;
    }
}

@media (min-width: 1024px) {
    .brand-card {
        min-width: calc(14.28% - 14px);
        /* Attempt to fit 7 */
        width: calc(14.28% - 14px);
        max-width: 160px;
    }
}

.brand-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.brand-card:hover .brand-img-wrapper {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.brand-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.view-collection {
    font-size: 13px;
    font-weight: 400;
}

.brand-card:hover .view-collection {
    color: var(--brand-color);
}

/* --- Shared Slider Arrows --- */
.slider-arrow-right,
.slider-arrow-left {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 10;
    font-size: 28px;
    color: var(--text-dark);
    transition: 0.2s;
}

.slider-arrow-right {
    right: -10px;
}

.slider-arrow-left {
    left: -10px;
}

.slider-arrow-right:hover,
.slider-arrow-left:hover {
    background-color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.slider-arrow-left.hidden,
.slider-arrow-right.hidden {
    display: none !important;
}

@media (max-width: 768px) {

    .slider-arrow-right,
    .slider-arrow-left {
        display: none !important;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    margin-top: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-gray);
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-icons a {
    font-size: 24px;
    color: var(--text-dark);
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 24px 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

/* --- Floating Actions --- */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 36px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.2s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-messenger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #0084FF;
    color: white;
    border-radius: 50%;
    font-size: 36px;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
    z-index: 99;
    transition: transform 0.2s;
}

.floating-messenger:hover {
    transform: scale(1.1);
}

.floating-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.8;
}

.floating-top:hover {
    background-color: var(--bg-color);
    opacity: 1;
}

/* --- Responsive Polish --- */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 16px;
        padding: 12px 16px 12px 16px;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0px 0 0 0;
        /* Override the desktop margin, set top margin */
    }

    .header-nav {
        margin-top: 0;
    }

    .search-btn {
        width: 32px;
        height: 32px;
    }

    .dropdown-list {
        max-height: 415px;
    }

    .hero-banner {
        height: auto;
        aspect-ratio: 9216 / 3456;
        /* Matches the banner-1.png aspect ratio perfectly */
        border-radius: 16px;
    }

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

    .hero-content p {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .hero-overlay {
        padding-left: 20px;
    }

    .slider-dots {
        bottom: 10px;
        right: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .category-img-wrapper {
        width: 100px;
        height: 100px;
    }

    .footer-content {
        gap: 20px;
    }
}

.icon-text {
    padding-top: 5px;
    display: inline-flex;
    align-items: center;
    /* vertical alignment */
    gap: 6px;
    color: var(--text-gray);
    font-weight: 600;
    /* space between icon and text */
}

.icon-text-regular {
    padding-top: 15px;
    display: inline-flex;
    align-items: center;
    /* vertical alignment */
    gap: 6px;
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
    /* space between icon and text */
}

@media (min-width: 1024px) {
    .footer-section.first-item {
        width: 85%;
    }

    .footer-section.second-item {
        padding-top: 30px;
    }

    .footer-section.third-item {
        padding-top: 30px;
    }
}

/* --- Product Grid Page Styles --- */
.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-4-cols .product-card {
    min-width: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (max-width: 1024px) {
    .grid-4-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-content {
        flex-direction: column;
    }

    .page-content .sidebar {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

/* ========================================================================= */
/* PRODUCT DETAILS PAGE STYLES                                               */
/* ========================================================================= */

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Left Column: Image Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-view {
    position: relative;
    border-radius: 8px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f0ff; /* Light lavender matches product imagery */
    min-height: 450px;
    overflow: hidden;
}

.main-img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: contain;
}

.gallery-top-actions {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .main-image-view {
        min-height: 350px;
    }
    .main-img {
        min-height: 350px;
    }
}

.gallery-tags,
.gallery-share {
    pointer-events: auto;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-tags .tag {
    background-color: #ff005c;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.gallery-tags .tag.sold-out {
    background-color: #6B7280;
}

.gallery-share {
    position: relative;
}

.share-btn {
    background: white;
    border: 1px solid #eee;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.share-btn:hover {
    background: #fdf2f8;
    color: #ff005c;
    border-color: #ff005c;
}

.gallery-tags .tag.offer {
    background: #8b5cf6;
    /* purple */
}

.gallery-tags .tag.best-sale {
    background: var(--primary-color);
}

.gallery-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-actions .icon-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-color);
    transition: all var(--transition-speed);
}

.gallery-actions .icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.gallery-actions .icon-btn .bx-heart {
    color: #ff4242;
    /* custom heart red */
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 40px;
    color: var(--text-color);
    transition: all var(--transition-speed);
    z-index: 2;
    padding: 0;
}

.gallery-arrow:hover {
    color: var(--primary-color);
}

.gallery-arrow.left-arrow {
    left: 10px;
}

.gallery-arrow.right-arrow {
    right: 10px;
}

/* Thumbnails */
.thumbnail-row {
    flex-wrap: wrap;
}

.thumbnail-row .thumb {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
    transition: border-color var(--transition-speed);
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail-row .thumb:hover,
.thumbnail-row .thumb.active {
    border-color: var(--primary-color);
}

.thumbnail-row .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Product Info */
.product-info-column {
    display: flex;
    flex-direction: column;
}



.product-breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.product-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--primary-color);
}

.product-main-title {
    font-size: 26px;
    font-weight: 400;
    color: var(--title-color);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.product-ratings {
    margin-bottom: 20px;
    font-size: 14px;
}

.product-price-block {
    align-items: center;
}

.product-action-buttons .btn {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.product-action-buttons .btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Descriptive Sections Layout */
.product-details-description .description-content p {
    margin-bottom: 10px;
}

.collapsed-text {
    max-height: 250px;
    /* Adjust as needed */
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    position: relative;
}

/* Override background and font from HTML editor, but exclude icons */
.description-content *:not(i):not([class^="bx-"]):not([class*=" bx-"]) {
    background-color: transparent !important;
    background: transparent !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* Responsive Product Details */
@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-image-view {
        min-height: 350px;
        overflow: hidden;
    }

    .main-img {
        max-height: 350px;
    }

    .thumbnail-row .thumb {
        width: 60px;
        height: 60px;
        overflow: hidden;
    }

    .thumbnail-row .thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-main-title {
        font-size: 22px;
    }

    .add-to-bag-btn,
    .app-price-btn {
        padding-left: 30px !important;
        padding-right: 30px !important;
        font-size: 14px !important;
    }

    .similar-products-section,
    .more-brands-section {
        margin-top: 30px !important;
    }
}

/* --- Login Modal Styles --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #e1e1e1;
    color: #333;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.order-confirm-btn {
    background-color: var(--button-color);
    color: #fff;
    border-radius: 4px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.order-confirm-btn:hover {
    background-color: var(--button-color-hover);
}

@media (max-width: 768px) {
    .order-modal-box {
        padding: 20px 15px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .order-modal-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}


.modal-logo {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.phone-input-group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 25px;
    background: #fff;
    height: 50px;
    position: relative;
    z-index: 2;
}

.phone-icon-wrapper {
    background: #f3f4f6;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    margin-right: 15px;
}

.phone-icon-wrapper i {
    color: #000;
    font-size: 16px;
}

.phone-prefix {
    font-weight: 600;
    font-size: 16px;
    color: #000;
    margin-right: 10px;
}

.phone-input {
    border: none;
    outline: none;
    font-size: 16px;
    color: #000;
    background: transparent;
}

.phone-input::placeholder {
    color: #9ca3af;
    letter-spacing: 2px;
    font-size: 13px;
}

.modal-continue-btn {
    color: white;
    background-color: var(--button-color);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.modal-continue-btn:disabled {
    background: var(--button-color-hover);
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.modal-continue-btn:hover {
    background-color: var(--button-color-hover);
}

.modal-divider {
    margin: 25px 0;
}

.modal-divider .line {
    flex-grow: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.modal-divider .text {
    padding: 0 15px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

.social-login {
    width: 100%;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.social-btn i {
    font-size: 24px;
    color: #000;
}

/* --- OTP & Visibility Helpers --- */
.hidden {
    display: none !important;
}

.otp-message {
    font-size: 16px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 10px;
}

.otp-field {
    width: 55px;
    height: 55px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 20px;
}

.otp-field:focus {
    border-color: var(--brand-color-light-10);
}

@media (max-width: 480px) {
    .otp-field {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-bottom: 15px;
    }

    .otp-input-container {
        gap: 5px;
    }
}

.resend-text {
    margin-top: 15px;
    font-size: 16px;
    color: var(--text-gray);
}

#otpTimer {
    font-weight: bold;
}

.resend-btn {
    margin-top: 15px;
    background: none;
    border: none;
    color: var(--brand-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.resend-btn:hover {
    color: var(--brand-color-dark-10);
}

/* --- Contact Page Styles --- */
.contact-page {
    padding: 60px 0;
    padding-bottom: 20px;
}

.contact-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.contact-header h1 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-header p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
}

.info-card {
    background: #fff;
    padding: 10px 15px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-color-light-10);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 24px;
}

.info-details h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-details p {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.contact-form-wrapper {
    background: #fff;
    padding: 25px 40px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label span {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-color);
}

.submit-btn {
    background: #e60053;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #cc004a;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.form-success {
    text-align: center;
    padding: 40px 0;
}

.form-success i {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--text-gray);
}

@media (max-width: 992px) {
    .contact-page {
        padding: 40px 0;
    }

    .contact-header {
        text-align: left;
        padding: 0px 15px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info-cards {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .contact-info-cards .info-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 20px 0;
    }

    .contact-container {
        gap: 24px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .info-card {
        padding: 8px 12px 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-header {
        margin-bottom: 20px;
    }

    .contact-header h1 {
        font-size: 28px;
    }
}

/* --- Privacy Policy Page Styles --- */
.policy-page {
    padding: 20px 0;
}

.policy-card {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.policy-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.policy-header h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-gray);
    font-size: 14px;
}

.policy-content h2 {
    font-size: 20px;
    color: var(--text-dark);
    margin: 30px 0 15px;
    font-weight: 700;
}

.policy-content p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    list-style-type: disc;
}

.policy-contact {
    background: #f9fafb;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.contact-details p {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .policy-card {
        padding: 30px 20px;
    }

    .policy-header h1 {
        font-size: 24px;
    }
}

/* --- Profile Page Styles --- */
.profile-page {
    padding: 0px;
}

.profile-card {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.profile-card .policy-header {
    margin-bottom: 25px;
    /* Reduced from 40px in base .policy-header */
    padding-bottom: 15px;
    /* Reduced from 20px in base .policy-header */
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-form .form-row {
    display: flex;
    gap: 20px;
}

.profile-form .form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .profile-card {
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .profile-form .form-row {
        flex-direction: column;
        gap: 20px;
    }
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
}

.profile-form .form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.profile-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-form .input-wrapper.align-top {
    align-items: flex-start;
}

.profile-form .input-icon {
    position: absolute;
    left: 15px;
    color: #888;
    font-size: 20px;
}

.profile-form .form-group input,
.profile-form .form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.profile-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.profile-form .form-group input:focus,
.profile-form .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-color, #c1885b);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(193, 136, 91, 0.1);
}

.profile-form .save-btn {
    background-color: var(--button-color);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 0px;
}

.profile-form .save-btn:hover {
    background-color: var(--button-color-hover);
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- Cart Page Styles --- */
.cart-page {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 80px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.cart-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    padding: 0 0;
    border-bottom: 1px solid var(--border-light);
    gap: 20px;
}

.cart-quantity-selector,
.cart-item-remove,
.picked-add-btn {
    z-index: 10;
}

.cart-item:first-child {
    border-top: none;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #ff3366;
    cursor: pointer;
}

.cart-item-img-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    /* Replace utility class */
    min-width: 0;
    /* Prevent flex blowout */
    padding-right: 15px;
    /* Spacing from price */
}

.cart-item-brand {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.4;
    /* Add space between lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price-wrapper {
    text-align: right;
    width: 100px;
}

.cart-price-discounted {
    color: #ff3366;
    font-weight: 700;
    font-size: 16px;
}

.cart-price-original {
    color: #a8a8a8;
    text-decoration: line-through;
    font-size: 13px;
}

.cart-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
}

.qty-btn:hover {
    background: #f9f9f9;
}

.qty-input {
    width: 40px;
    height: 30px;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Picked For You */
.picked-for-you {
    margin-top: 20px;
}

.picked-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.badge-new {
    background-color: #2ecca6 !important;
}

.text-black {
    color: #000 !important;
}

.picked-right-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
}

.custom-scroll {
    position: relative;
    padding-bottom: 20px;
}

/* Order Summary */
.order-summary-card {
    background: #fff;
    border-radius: 8px;
    padding: 0;
}

.order-summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.summary-details {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    padding-bottom: 14px !important;
    margin-bottom: 16px;
}

.summary-row {
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row:last-child {
    margin-bottom: 0px !important;
}

.summary-value {
    font-weight: 600;
}

.summary-subtotal {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-light);
    margin-bottom: 4px;
}

.checkout-btn {
    background-color: #e60053;
    color: white;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.checkout-btn i {
    font-size: 20px;
}

.checkout-btn:hover {
    background-color: #cc004a;
}

.payment-methods {
    margin-top: 20px;
}

.we-accepts-text {
    font-size: 14px;
    font-weight: 600;
}

.payment-icon {
    height: 20px;
    object-fit: contain;
}

.payment-icon-font {
    font-size: 24px;
}

@media (max-width: 992px) {
    .cart-page {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .cart-page {
        gap: 20px;
    }

    .picked-for-you {
        display: none;
    }

    .order-summary-title {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 15px;
        row-gap: 10px;
        padding: 8px 0;
        position: relative;
        align-items: center;
    }

    .cart-item-img-wrapper {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 80px;
        height: 80px;
        margin: 0;
    }

    .cart-item-info {
        grid-column: 2 / span 2;
        grid-row: 1;
        width: 100%;
        margin-bottom: 0;
        padding-right: 25px;
        /* Room for remove button */
    }

    .cart-item-brand {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .cart-item-title {
        font-size: 13px;
        line-height: 1.5;
        /* Add space between lines */
        /* Restore 2-line ellipsis if needed, or stick to user image */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        overflow: hidden;
    }

    .cart-item-price-wrapper {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        width: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        justify-content: flex-start;
    }

    .cart-quantity-selector {
        grid-column: 3;
        grid-row: 2;
        margin: 0;
        justify-self: start;
        /* Align directly after the price column */
    }

    .cart-item-remove {
        position: absolute;
        top: 15px;
        right: 0;
        bottom: auto;
        margin-left: 0;
        font-size: 20px;
    }

    .delivery-options-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff2c55;
    font-size: 22px;
    cursor: pointer;
    margin-left: 16px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: var(--button-color);
}

.picked-add-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-size: 16px;
    z-index: 10;
    transition: all 0.2s ease;
}

.picked-add-btn i {
    transition: transform 0.2s ease;
}

.picked-add-btn:hover {
    background-color: #cccccc;
}

@keyframes scaleUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

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

.success-icon-circle {
    width: 80px;
    height: 80px;
    border: 1px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    margin: 0 auto 10px;
    animation: scaleUp 0.3s ease-out;
}

.success-icon-circle i {
    font-size: 48px;
}

.success-modal-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    padding: 20px 0;
    text-align: center;
    color: #111;
}

.modal-secondary-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--button-color);
    border: 1px solid var(--button-color);
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    font-size: 16px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s;
}

.modal-secondary-btn:hover {
    background: var(--button-color-hover);
    border-color: var(--button-color-hover);
}

.modal-gray-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    font-size: 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.modal-gray-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
}


/* Delivery Info Form */
.delivery-info-form {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.delivery-form-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.delivery-info-form .form-group {
    margin-bottom: 16px;
}

.delivery-info-form .form-group:last-child {
    margin-bottom: 0;
}

.cart-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.cart-input {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-dark);
    transition: border-color 0.2s;
    background-color: #fcfcfc;
}

.cart-input:focus {
    outline: none;
    border-color: #ff2c55;
    background-color: #fff;
}

.cart-input::placeholder {
    color: #a8a8a8;
}

.cart-radio {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--button-color);
}

.form-group label.cart-radio-label {
    font-size: 13.5px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    /* Override .form-group label margin */
    font-weight: 400;
    /* Override .form-group label font-weight */
}

.delivery-options-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.cart-input-select {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    padding: 5px;
    text-align: left;
}

/* --- Pagination Styles --- */
.pagination-container {
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--button-color) !important;
    border-color: var(--button-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(230, 0, 83, 0.25);
}

.pagination .page-link:hover:not(.disabled) {
    background-color: var(--brand-color-light-90);
    border-color: var(--button-color);
    color: var(--button-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.pagination .page-item.active .page-link:hover {
    background-color: var(--button-color-hover) !important;
    border-color: var(--button-color-hover) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-gray);
    background-color: #f8f9fa;
    border-color: var(--border-light);
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Fix for icons in pagination */
.pagination .page-link i,
.pagination .page-link svg {
    font-size: 20px;
    line-height: 1;
}

.pagination .page-link span[aria-hidden="true"] {
    font-size: 24px;
    line-height: 1;
    margin-top: -2px;
}

/* --- Custom Delivery Radio Buttons --- */
.delivery-options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.custom-delivery-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
}

.custom-delivery-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: transparent;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.custom-delivery-option:hover input~.radio-checkmark {
    border-color: #999;
}

.custom-delivery-option input:checked~.radio-checkmark {
    border-color: #808080;
    background-color: #808080;
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-delivery-option input:checked~.radio-checkmark:after {
    display: block;
}

.custom-delivery-option .radio-checkmark:after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.delivery-label {
    font-size: 15px;
    font-weight: 400;
    color: #444 !important;
}

/* Firefox-specific fix for horizontal scroll sections */
.brands-grid,
.products-grid,
.categories-grid,
.header-nav {
    scrollbar-width: none !important;
}

/* --- Global Loader --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    height: auto;
    animation: focusPulse 2s infinite ease-in-out;
}

@keyframes focusPulse {
    0% {
        transform: scale(0.75);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.75);
    }
}