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

:root {
    --primary-color: #E61E26;
    --primary-dark: #C41920;
    --secondary-color: #FFD400;
    --text-color: #1A1A1A;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #EEEEEE;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 12px;
}

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

body {
    background-color: #f8f9fb; /* Light grey background for contrast */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.text-center { text-align: center; }


a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── New Header Design (Brands For Less Style) ── */
header { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }

/* Top Row: Main Header */
.header-main { padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.header-main-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

/* Logo */
.logo { flex-shrink: 0; }

/* Search Bar */
.header-search { flex: 1; max-width: 600px; position: relative; }
.header-search form { position: relative; }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #888; font-size: 14px; }
.header-search input {
    width: 100%; padding: 14px 20px 14px 45px; border-radius: 50px;
    border: 1.5px solid #eee; background: #fdfdfd; font-size: 14px; transition: all 0.2s;
}
.header-search input:focus { outline: none; border-color: var(--primary-color); background: #fff; box-shadow: 0 4px 15px rgba(230,30,38,0.08); }

/* Icons */
.header-icons { display: flex; align-items: center; gap: 24px; }
.header-icon-item { position: relative; }
.h-icon { font-size: 20px; color: #1a1a1a; transition: color 0.2s; position: relative; display: block; }
.h-icon:hover { color: var(--primary-color); }
.h-badge {
    position: absolute; top: -8px; right: -10px; background: var(--primary-color);
    color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 20px;
}

/* Country Switcher */
.country-switcher { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: #1a1a1a; }
.switcher-text { text-decoration: underline; }

/* Bottom Row: Nav Bar */
.header-nav { background: #000; color: #fff; padding: 0; }
.header-nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-list { display: flex; align-items: center; }
.nav-item { position: relative; }
.nav-item a {
    display: block; padding: 14px 18px; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; color: #fff; transition: all 0.2s;
}
.nav-item:hover a { background: #333; }
.nav-item.highlight a { color: var(--secondary-color); font-weight: 900; }

/* Super Price Store Highlight */
.nav-item.super-highlight a {
    background: var(--primary-color); color: #fff; font-weight: 900;
}
.nav-item.super-highlight:hover a { background: var(--primary-dark); }

.nav-right-link {
    font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px; border-left: 1px solid #333; padding-left: 20px;
}

/* Promo Banner */
.promo-banner { background: var(--primary-color); color: #fff; padding: 12px 0; font-size: 14px; font-weight: 800; }

/* Responsive Header */
@media (max-width: 1024px) {
    .header-main-inner { gap: 20px; }
    .header-icons { gap: 15px; }
}

@media (max-width: 900px) {
    .header-main-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
    .header-search { order: 3; width: 100%; max-width: none; margin-top: 10px; }
    .logo { order: 1; margin-right: auto; }
    .header-icons { order: 2; margin-left: auto; }
    .nav-list { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
    .nav-list::-webkit-scrollbar { display: none; }
    .nav-right-link { display: none; }
    .switcher-text { display: none; }
}

@media (max-width: 480px) {
    .logo div { font-size: 16px !important; line-height: 1.2; }
    .header-icons { gap: 10px; margin-left: auto; }
    .h-icon { font-size: 16px; }
    .h-badge { top: -6px; right: -8px; font-size: 9px; padding: 1px 4px; }
    .promo-banner { font-size: 10px; padding: 8px 0; }
    .header-main { padding: 10px 0; }
    .header-search input { padding: 10px 15px 10px 35px; font-size: 13px; }
    .search-icon { left: 12px; }
}


/* Hero Section */
.hero {
    margin-top: 20px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 80px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

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

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(230, 30, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(230, 30, 38, 0.4);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.product-image {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.curr-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Footer Styling */
footer {
    background: #111;
    color: #eee;
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

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

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* --- Dynamic Animations & Effects --- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}
.btn-primary:hover::before {
    transform: scaleX(1);
}

.category-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}
.category-card img {
    transition: transform 0.6s ease;
}
.category-card:hover img {
    transform: scale(1.05) translateY(-5px);
}

header {
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}
header.scrolled {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1) !important;
}
header.scrolled .nav-main {
    padding: 8px 0;
}

/* ========================================================= */
/* --- Responsive Adjustments / Mobile View --- */
/* ========================================================= */

.category-grid {
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

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

@media (max-width: 768px) {
    /* Header & Nav */
    .nav-main {
        flex-direction: column;
        gap: 15px;
    }
    .search-box {
        margin: 0;
        width: 100%;
        max-width: none;
        order: 3;
    }
    .nav-icons {
        position: absolute;
        top: 15px;
        right: 20px;
    }
    .top-bar {
        padding: 8px 15px !important;
        font-size: 11px;
    }
    .top-bar > div:first-child {
        display: none;
    }

    /* Menu */
    .menu-list {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px 20px;
        white-space: nowrap;
        scrollbar-width: none; /* Firefox */
    }
    .menu-list::-webkit-scrollbar {
        display: none; /* Chrome */
    }

    /* Hero */
    .hero-banner {
        padding: 40px 20px;
        height: 350px;
        align-items: flex-end;
        background-position: left;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .btn-primary {
        padding: 12px 25px;
    }

    /* Grids */
    .category-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
    .product-name {
        font-size: 14px;
    }
    .curr-price {
        font-size: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    /* General Typography & Spacing */
    h2 {
        font-size: 24px !important;
    }
    .container {
        padding: 0 15px;
    }
    section.container {
        margin-top: 40px !important;
        margin-bottom: 40px !important;
    }
}

/* ========================================================= */
/* --- Offers Landing Section UI (Brands For Less Style) --- */
/* ========================================================= */

.landing-banner {
    width: 100%;
    margin-bottom: 40px;
}

.landing-banner img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    max-height: 400px;
}

.circular-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.circular-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 110px;
    cursor: pointer;
    transition: var(--transition);
}

.circular-item:hover {
    transform: translateY(-5px);
}

.circular-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.circular-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.circular-item.has-bg .circular-image {
    background: #ffe6e6; /* light pinkish bg like the screenshot */
}

.circular-item:hover .circular-image img {
    transform: scale(1.1);
}

.circular-title {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
}

.red-circle .circular-image {
    background: var(--primary-color) !important;
}

.red-circle .circular-image h4 {
    color: var(--white);
    text-align: center;
    line-height: 1.2;
    font-size: 16px;
    margin: 0;
}

.house-of-brands-section {
    text-align: center;
    margin-bottom: 50px;
}

.house-of-brands-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.house-of-brands-section .circular-row {
    gap: 20px;
}

.house-of-brands-section .circular-item {
    width: 130px;
}

.house-of-brands-section .circular-image {
    width: 130px;
    height: 130px;
    background: #fff8eb; /* pale yellowish like screenshot */
}

.house-of-brands-section .circular-title {
    display: none; /* Hide title for brands section as logos are self explanatory */
}

@media (max-width: 768px) {
    .circular-row {
        gap: 15px;
    }
    .circular-item, .circular-image, .house-of-brands-section .circular-item, .house-of-brands-section .circular-image {
        width: 80px;
        height: 80px;
    }
    .circular-title {
        font-size: 12px;
    }
    .red-circle .circular-image h4 {
        font-size: 11px;
    }
}

