/* Material Design 3 Theme - Light */
* {
    box-sizing: border-box;
}

:root {
    /* Premium Theme - Rich & Clean */
    --md-sys-color-primary: #ea580c;
    /* Rich Orange */
    --md-sys-color-primary-hover: #c2410c;
    --md-sys-color-on-primary: #FFFFFF;

    --md-sys-color-background: #FAFAFA;
    /* Very light gray for depth */
    --md-sys-color-surface: #FFFFFF;

    --md-sys-color-text-primary: #101010;
    /* Almost Black */
    --md-sys-color-text-secondary: #555555;

    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --md-sys-color-error: #e74c3c;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Layout */
.container {
    margin: 0 auto;
    /* Slightly reduced on all screens */
}

main {
    padding-bottom: 40px;
}

main>.container {
    padding-top: 20px;
    
}
@media(max-width: 768px) {
    main>.container {
        margin-top: 20px;
    }
}

/* Header / Top App Bar */
.header-main {
    color: var(--md-sys-color-on-background);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Scrolled state with glassmorphism effect */
.header-main.scrolled {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    /* Ensure spacing between items */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    color: #000000;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo img {
    height: 60px;
    width: auto;
}



/* Nav Links */
.nav-links {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav-links a {
    font: var(--md-sys-typescale-label-large);
    color: #1a1a1a;
    position: relative;
    padding: 6px 12px;
    border-radius: 0;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--md-sys-color-primary);
}

.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1a1a1a;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header-main {
        height: 60px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        gap: 16px;
        z-index: 1000;
        border-top: 1px solid #f0f0f0;
    }

    .nav-links.active {
        display: flex;
    }

    .logo {
        font-size: 18px;
        gap: 8px;
        flex-shrink: 0;
    }

    .logo img {
        height: 32px;
    }

    .logo span {
        white-space: nowrap;
    }
}

/* Reductions in spacing */
.banner-carousel-section {
    padding: 0 !important;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.full-screen-banner {
    width: 100%;
    background: #fff;
    overflow: hidden
}

/* Tablet and below */
@media (max-width: 1024px) {
    .full-screen-banner {
        max-width: 100%;
        width: 100%;
    }
}

/* Mobile - Flipkart-style banner with rounded corners */
/* Mobile - Flipkart-style banner with rounded corners */
@media (max-width: 768px) {
    .full-screen-banner {
        width: 92%;
        padding: 0;
       margin: 0 auto;
        overflow: hidden;
    }
    
    .full-screen-banner .banner-carousel-wrapper {
        margin-top: 0;
        border-radius: 16px;
        width: 100%;
    }
}

.top-categories-section {
    margin: 10px auto;
    /* Center with auto margins */
    padding: 20px 10px;
    max-width: 95vw;
    /* Widened for large screens */
}

.banner-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.full-screen-banner .banner-carousel-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 0px;
    margin-top: 20px;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.full-screen-banner .banner-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.banner-carousel-track {
    display: flex;
    gap: 16px;
    width: fit-content;
    margin: 0 auto;
}

.full-screen-banner .banner-carousel-track {
    gap: 0;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.banner-item {
    flex-shrink: 0;
    height: 200px;
    width: 100vw;
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.full-screen-banner .banner-item {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    scroll-snap-align: start;
    box-shadow: none;
    display: block;
    background-color: #fff;
    overflow: hidden;
   
}

/* Tablet and below - ensure full width */
@media (max-width: 1024px) {
    .full-screen-banner .banner-item {
        width: 100%;
        height: auto;
    }
}

/* Mobile - Flipkart-style rounded banner items */
@media (max-width: 768px) {
    .full-screen-banner .banner-item {
        height: auto;
        border-radius: 0; /* Parent handles radius */
        width: 100%;
    }
    
    .banner-image {
        border-radius: 16px;
        object-fit: cover;
        width: 100%;
        display: block;
    }
}

@media (max-width: 480px) {
    .full-screen-banner .banner-item {
        height: auto;
    }
    
    .banner-image {
        height: auto;
        min-height: 180px; /* Ensure visibility */
    }
}

.banner-item:hover {
    scale: 1;
    box-shadow: none;
}

.full-screen-banner .banner-item:hover {
    scale: 1;
}

.banner-image {
    width: 100%;
    height: auto;
    /* Auto height to preserve aspect ratio */
    object-fit: contain;
    /* Show full image without cropping */
    display: block;
}

/* Ensure images show fully on all screens */
@media (max-width: 1024px) {
    .banner-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

.full-screen-banner .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.full-screen-banner .carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.full-screen-banner .carousel-nav-left {
    left: 20px;
}

.full-screen-banner .carousel-nav-right {
    right: 20px;
}

/* Navigation Chips */
.category-nav {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar */
}

.category-link {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 0;
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface-variant);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.category-link:hover {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-color: transparent;
}

/* Section Titles */
.section-title {
    font: var(--md-sys-typescale-headline-small);
    color: var(--md-sys-color-on-background);
    margin: 32px 0 24px 0;
    font-weight: bold;
}



.trending-section {
    margin: 20px 0;
    padding: 20px 0;
    background: linear-gradient(to right, #ffffff, #fff7ed);
    /* Subtle rich gradient */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.trending-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.trending-title {
    font-size: 32px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 40px 0;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.trending-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Navigation Buttons - Hidden as per request */
/* Navigation Buttons - Hidden by default, shown on desktop */
.carousel-nav-btn {
    display: none;
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

.trending-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.trending-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0 16px 0;
    background-image: url('/static/images/arrow-left.svg');
}

.trending-carousel::-webkit-scrollbar {
    display: none;
}

/* ========================================
   TRENDING CARD - CLEAN DESIGN
   ======================================== */

.trending-card {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.trending-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f8f8f8;
}

.trending-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.trending-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.trending-card-content {
    padding: 16px;
    background: #fff;
}

.trending-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--md-sys-color-text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.trending-card-pricing {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 8px;
}

.trending-final-price {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.trending-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* ========================================
   TRENDING CTA BUTTON - CLEAN DESIGN
   ======================================== */

/* Unified CTA Button Style */
.trending-cta-btn,
.cta-btn,
.grab-deal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary) !important;
    text-align: center;
    border: none;
    border-radius: 8px;
    /* Consistent rounded corners */
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-cta-btn:hover,
.cta-btn:hover,
.grab-deal-btn:hover {
    background-color: var(--md-sys-color-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trending-cta-btn:active,
.cta-btn:active,
.grab-deal-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .trending-discount-badge{
        font-size:8px;
    }
    .trending-section {
        margin: 20px 10px;
        padding: 20px 0;
        border-radius: 12px;
    }

    .trending-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .carousel-nav-btn {
        width: 32px;
        height: 32px;
    }

    .trending-card {
        flex: 0 0 160px;
    }

    .trending-card-image-wrapper {
        height: 160px;
    }

    .trending-card-content {
        padding: 10px;
    }

    .trending-card-title {
        font-size: 13px;
        height: 36px;
        margin-bottom: 8px;
    }

    .trending-final-price {
        font-size: 10px;
    }

    .trending-original-price {
        font-size: 8px;
    }

    .trending-cta-btn {
        padding: 8px 12px;
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .trending-card {
        flex: 0 0 140px;
    }

    .trending-card-image-wrapper {
        height: 140px;
    }
}

/* ========================================
   ALL PRODUCTS UNIFIED GRID LAYOUT
   ======================================== */

.all-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure cards fit the grid properly */
.all-products-grid .trending-card {
    flex: none;
    width: 100%;
    max-width: 100%;
}
@media (min-width: 2560px) {
    .all-products-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 24px;
        max-width: none; /* No max-width constraint for ultra-wide screens */
        padding: 0 40px;
    }
}

/* Large Desktop - 1440px to 2559px */
@media (min-width: 1440px) and (max-width: 2559px) {
    .all-products-grid {
        max-width: 1400px;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

/* Desktop - 1024px to 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
    .all-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Tablet - 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .all-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0 16px;
    }
}

/* Mobile - below 768px */
@media (max-width: 767px) {
    .all-products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .all-products-grid::-webkit-scrollbar {
        display: none;
    }
    
    .all-products-grid .trending-card {
        flex: 0 0 160px;
        max-width: 160px;
    }
}

/* Load More Button Container */
.load-more-container {
    clear: both;
    width: 100%;
}

/* Primary Button Styling */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--md-sys-color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   TOP CATEGORIES SECTION
   ======================================== */

.top-categories-section {
    margin: 10px auto;
    /* Center with auto margins */
    position: relative;
    padding: 20px;
    background: #ffffff;
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #fafafa;
    background-blend-mode: overlay;
    border-radius: 24px;
    overflow: hidden;
    max-width: 95vw;
    /* Widened for large screens */
}

@media (max-width: 768px) {
    .top-categories-section {
        margin: 10px 15px;
        padding: 15px 10px;
        border-radius: 12px;
        max-width: 98vw;
    }
}

/* Add a clean overlay to ensure text readability if pattern is too strong */
/* Clean overlay for the categories background */
.top-categories-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44, 105, 236, 0.9) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.9) 100%);
    z-index: 0;
}

.top-categories-section .section-header,
.categories-scroll-wrapper {
    position: relative;
    z-index: 1;
}

.top-categories-section .section-header {
    margin-bottom: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .top-categories-section .section-header {
        margin-bottom: 40px;
    }
}

.top-categories-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.categories-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 -12px;
}

.categories-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 12px 20px 12px;
    width: 100%;
    justify-content: flex-start;
}

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

.category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-circle-item:hover {
    transform: translateY(-10px) scale(1.05);
}

.circle-image-wrapper {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 4px solid #fff;
    transition: all 0.4s ease;
    position: relative;
}

.circle-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 0px var(--md-sys-color-primary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.category-circle-item:hover .circle-image-wrapper {
    box-shadow: 0 15px 35px rgba(255, 69, 0, 0.15);
    border-color: #fff;
}

.category-circle-item:hover .circle-image-wrapper::after {
    box-shadow: inset 0 0 0 4px rgba(255, 69, 0, 0.1);
}

.circle-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-circle-item:hover .circle-image-wrapper img {
    transform: scale(1.2);
}

.category-circle-label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    max-width: 120px;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

.category-circle-item:hover .category-circle-label {
    color: var(--md-sys-color-primary);
    transform: scale(1.05);
}

/* Category Navigation Buttons */
.category-nav-btn {
    display: none !important;
}
.category-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
}

.category-nav-btn:hover {
    background: var(--md-sys-color-primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 69, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.category-nav-left {
    left: -10px;
}

.category-nav-right {
    right: -10px;
}



@media (max-width: 768px) {
    .categories-container {
        gap: 2px;
        padding: 16px 10px;
        justify-content: center;
    }

    .circle-image-wrapper {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .category-circle-item {
        min-width: 70px;
    }

    .category-circle-label {
        font-size: 8px;
    }

    .top-categories-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .categories-container {
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ========================================
   CATEGORY DEALS SECTION
   ======================================== */

.category-deals-section {
    margin: 20px 0;
    padding: 0 16px;
}

.category-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.category-deals-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--md-sys-color-primary-container);
}

.view-all-link:hover {
    background: var(--md-sys-color-primary);
    color: #fff;
}

.deals-horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 4px 30px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -4px;
}

.deals-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* ========================================
   ABOUT US PAGE STYLES
   ======================================== */

.about-hero {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    /* Removed border radius for a 'straight and hard' look */
    border-radius: 4px;
    margin-bottom: 80px;
    padding: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    /* Hard edge shape */
    backdrop-filter: blur(30px);
}

.about-hero h1 {
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero p {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--md-sys-color-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border: 1px solid var(--md-sys-color-primary);
}

.about-section {
    margin-bottom: 80px;
}

.about-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--md-sys-color-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
    line-height: 1.2;
}

.about-text-content h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 700;
}

.about-text-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 100%;
    min-height: 400px;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Big Tech / Growth Section */
/* Big Tech / Growth Section - Dark Theme */
.growth-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 80px 60px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.growth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(234, 88, 12, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.growth-section h2 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.growth-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.growth-text-primary {
    font-size: 24px;
    font-weight: 400;
    color: #cccccc;
    line-height: 1.6;
}

.growth-text-highlight {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    padding: 24px;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.growth-text-highlight span {
    color: var(--md-sys-color-primary);
}

/* Philosophy Section */
.philosophy-section {
    text-align: center;
    margin-bottom: 80px;
}

.philosophy-section h2 {
    font-size: 32px;
    color: var(--md-sys-color-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.philosophy-section h3 {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.1;
    margin-bottom: 40px;
}

/* Teams Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.location-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.location-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.location-info {
    padding: 24px;
    text-align: center;
}

.location-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    margin-bottom: 8px;
}

.location-sub {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Final CTA */
.about-cta-section {
    text-align: center;
    padding: 100px 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(234, 88, 12, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.about-cta-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Responsive */
/* Responsive */
@media (max-width: 900px) {
    .about-grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        min-height: 300px;
    }

    .growth-section {
        padding: 60px 30px;
    }
}

@media (max-width: 600px) {
    .about-hero {
        height: auto;
        min-height: 400px;
        padding: 60px 20px;
    }

    .about-hero h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .about-hero p {
        font-size: 16px;
        letter-spacing: 2px;
        padding: 6px 12px;
    }

    .about-page-label {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .growth-section {
        padding: 40px 20px;
    }

    .growth-section h2 {
        font-size: 28px;
    }

    .growth-text-primary {
        font-size: 18px;
    }

    .growth-text-highlight {
        font-size: 20px;
        padding: 16px;
    }

    .philosophy-section h3 {
        font-size: 32px;
    }

    .about-cta-section {
        padding: 60px 20px;
    }

    .about-cta-section h2 {
        font-size: 28px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .location-img {
        height: 200px;
    }
}

.deals-horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Deal Card Design */
.deal-card {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f2f2f2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--md-sys-color-primary-container);
}

.deal-card-tag {
    background: #FFF0ED;
    /* Light themed strip */
    color: #FF4500;
    /* Primary brand color */
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 10px;
    background: #fff;
    max-height: 80px;
}

.deal-card-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.deal-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* About Label */
.about-page-label {
    font-size: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--md-sys-color-primary);
    margin-bottom: 12px;
    font-weight: 800;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.nav-links a.active {
    color: var(--md-sys-color-primary) !important;
}

.deal-card:hover .deal-card-logo img {
    transform: scale(1.05);
}

.deal-card-company {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 12px;
    opacity: 0.8;
}

.deal-card-footer {
    padding: 0 20px 20px 20px;
}

.grab-deal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-primary);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

/* Deals Grid for View All page */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
    padding: 0 12px;
}
@media (max-width:768px)
{
    .deals-grid
    {
        grid-template-columns: repeat(auto-fill, minmax(160px, 2fr));
    }
}
@media (max-width: 600px) {
    .deals-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
    }

    .deals-grid .deal-card {
        flex: none;
    }

    .deals-grid .deal-card-tag {
        font-size: 11px;
        padding: 6px 8px;
    }

    .deals-grid .deal-card-body {
        padding: 12px 8px;
        max-height: 60px;
    }

    .deals-grid .grab-deal-btn {
        padding: 10px;
        font-size: 12px;
    }
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--md-sys-color-surface);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s;
    /* Elevated card style by default or outlined? Let's go filled tonal/elevated mix */
    background: #fff;
    /* fallback */
    border: none;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
    /* Subtle definition */
    position: relative;
    /* Needed for stretched link */
}



.product-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
    background-color: #fff;
}

.product-title {
    padding: 0 16px;
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    padding: 0 16px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    /* Reduced gap */
    margin-bottom: 16px;
    flex-wrap: nowrap;
    /* Force single line */
}

.final-price {
    font: var(--md-sys-typescale-headline-small);
    font-size: 18px;
    /* Slightly smaller to fit */
    white-space: nowrap;
    color: var(--md-sys-color-primary);
    font-weight: 700;
}

.original-price {
    font: var(--md-sys-typescale-body-medium);
    font-size: 13px;
    /* Slightly smaller to fit */
    white-space: nowrap;
    text-decoration: line-through;
    color: var(--md-sys-color-on-surface-variant);
}

.discount {
    font: var(--md-sys-typescale-label-large);
    font-size: 11px;
    white-space: nowrap;
    background-color: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    padding: 2px 6px;
    border-radius: 0;
    margin-left: auto;
    /* Push to right if space allows, or just keeps it in flow? Keeping in flow is safer for fit. */
}

/* Removed redundant cta-btn styles as they are now unified */
.cta-btn {
    /* Kept for potential specific overrides, but mainly handled by unified class */
    width: auto;
    margin: 0 16px 16px 16px;
    /* ensure proper spacing in card */
}

.cta-btn:hover {
    color: #fff;
}

.cta-btn::after {
    content: none;
}

/* Leaderboard Banner */
.leaderboard-banner {
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-level1);
}

/* Admin Styles (Minimal update to not break, but focus was Storefront) */
.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    background: #000000;
    color: #FFFFFF;
    width: 240px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sidebar-header {
    margin-bottom: 40px;
    font: var(--md-sys-typescale-title-large);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 16px;
    color: #AAAAAA;
    border-radius: 0;
    margin-bottom: 2px;
    font-weight: 500;
}

.sidebar-nav a i {
    margin-right: 12px;
    width: 20px;
    /* Ensure alignment */
    text-align: center;
}

.sidebar-nav a.active {
    background: #FF4500;
    color: #FFFFFF;
}

.sidebar-nav a:hover {
    background: #333333;
    color: #FFFFFF;
}

.admin-content {
    flex-grow: 1;
    padding: 24px;
    background: var(--md-sys-color-background);
    overflow-y: auto;
    min-width: 0;
}

.table-container {
    background: white;
    border-radius: 0;
    padding: 16px;
    box-shadow: var(--md-sys-elevation-level1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--md-sys-color-outline);
    vertical-align: middle;
}

/* Specific column adjustments */
th:nth-child(2),
td:nth-child(2) {
    /* Name/Title column */
    max-width: 200px;
    /* Limit width */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 16px;
    /* Spacing between buttons */
    align-items: center;
    white-space: nowrap;
}

.btn {
    padding: 6px 16px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font: var(--md-sys-typescale-label-large);
    font-size: 16px;
    /* Slightly larger base */
}

/* Specific icon button sizing for toggles/trash */
.btn i {
    font-size: 18px;
    /* Larger icons */
}

.btn-primary {
    background: var(--md-sys-color-primary);
    color: white;
}

.btn-danger {
    background-color: var(--md-sys-color-error);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* Modern Form Styles - Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    height: 56px;
    padding: 24px 16px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: transparent;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    border-width: 2px;
    padding: 23px 15px 7px;
    /* Adjust padding for border width */
}

/* Floating Label */
.form-group label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background-color: #fefefe;
    /* Match modal bg */
    padding: 0 4px;
    color: #5f6368;
    font-size: 16px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.2s ease-out;
    transform-origin: left top;
}

/* Float logic: Focus or Value present (via placeholder-shown hack) */
.form-control:focus+label,
.form-control:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--md-sys-color-primary);
    font-weight: 600;
}

.form-control:not(:placeholder-shown)+label {
    color: #5f6368;
    /* Default color if not focused */
}

.form-control:focus+label {
    color: var(--md-sys-color-primary);
}

/* Adjust select padding as it always has value visually or we force it */
select.form-control {
    padding-top: 24px;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 50px;
    /* Location of the box */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    /* padding removed - moved to children */
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    /* Slightly rounded */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;

    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
    /* Increased visible area */
    overflow: hidden;
    /* Hide outer scroll, internal scroll in body */

    animation-name: animatetop;
    animation-duration: 0.3s;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    /* Takes available space */
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    text-align: right;
    flex-shrink: 0;
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

/* Utility Classes for Dynamic Styling - Added to fix template syntax errors */
.text-selected {
    color: #333 !important;
}

.text-placeholder {
    color: #999 !important;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.badge-admin {
    background: #ffe0db;
    color: #9a3412;
}

.badge-ops {
    background: #e0f2fe;
    color: #075985;
}

/* Status Indicators */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: green;
}

.status-inactive {
    background-color: grey;
}

/* Log Badges */
.log-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.log-delete {
    background: #fee2e2;
    color: #b91c1c;
}

.log-create {
    background: #dcfce7;
    color: #166534;
}

.log-edit {
    background: #dbeafe;
    color: #1e40af;
}

.log-login-success {
    background: #dcfce7;
    color: #166534;
}

.log-login-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.log-default {
    background: #f3f4f6;
    color: #374151;
}

.toggle-trending-on {
    color: orangered !important;
}

.toggle-trending-off {
    color: #ccc !important;
}

/* Specific fixes for audit_logs.html */
.user-dropdown-trigger {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    margin-bottom: 0;
}

/* -----------------------------
   Drag & Drop Image Upload
------------------------------- */

.upload-container {
    margin-bottom: 24px;
}

.image-upload-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    background-color: #fff;
    position: relative;
}

.section-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background-color: #fefefe;
    /* Match modal bg */
    padding: 0 6px;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    /* Slightly smaller like floating label */
    margin: 0;
}


.drag-drop-zone {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.drag-drop-zone:hover {
    background-color: #f0f4f8;
    border-color: var(--md-sys-color-primary);
}

.drag-drop-zone.drag-over {
    background-color: #e3f2fd;
    border-color: var(--md-sys-color-primary);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 24px;
    color: var(--md-sys-color-primary);
    margin-bottom: 10px;
    background: #e3f2fd;
    padding: 12px;
    border-radius: 50%;
}

.upload-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 5px 0 0;
}

.upload-subtext {
    font-size: 12px;
    color: #888;
    margin: 2px 0 0;
}

/* File Info Card */
.file-info-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    margin-bottom: 15px;
    /* Spacing before OR divider */
    animation: fadeIn 0.3s ease;
}

.file-info-card i {
    font-size: 20px;
    color: #5f6368;
    margin-right: 12px;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.file-size {
    font-size: 11px;
    color: #888;
}

.btn-remove {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.btn-remove:hover {
    color: #d32f2f;
}

/* Divider */
.upload-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.upload-divider::before,
.upload-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.upload-divider span {
    padding: 0 10px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

@media (max-width: 768px) {

    /* Mobile Carousel - One item per view */
    .banner-carousel-track {
        gap: 0;
    }

    .banner-item {
        width: 100%;
        max-width: 100%;
        /* Forced rounded corners */
        overflow: hidden !important;
        margin: 0;
        box-shadow: none;
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        mask-image: radial-gradient(white, black);
        /* Fix for Safari border-radius clipping */
    }


    .banner-carousel-wrapper {
        padding: 0 16px;
    }

    /* Trending Section */
    .trending-carousel-container {
        padding: 0 8px;
    }

    .trending-carousel {
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 16px;
    }

    .trending-card {
        flex: 0 0 160px !important;
        scroll-snap-align: start;
        margin: 0 !important;
    }

    .trending-card-image-wrapper {
        height: 100px !important;
    }

    /* Arrows - Explicitly Hidden */
    .carousel-nav-btn,
    .category-nav-btn {
        display: none !important;
    }

    /* All Products Container - Stacked Horizontal Rows */
    .deals-grid-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 16px;
    }

    /* Row Layout - Horizontal Scroll */
    .deals-row {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding-bottom: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .deals-row::-webkit-scrollbar {
        display: none;
    }

    .deals-row .trending-card {
        flex: 0 0 160px !important;
        width: 160px !important;
        scroll-snap-align: start;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        border: 1px solid #eee;
    }

    .deals-row .trending-card-image-wrapper {
        height: 160px !important;
    }
}

@media (min-width: 1024px) {
    .top-categories-section {
        max-width: 1440px;
        margin: 20px auto;
    }

    .categories-container {
        justify-content: center !important;
        flex-wrap: wrap; /* Allow wrapping on tablet if many */
        gap: 40px;
    }

    /* Trending Carousel Navigation for Desktop */
    .trending-carousel-container {
        padding: 0 40px; /* Give space for arrows */
        position: relative;
    }

    .trending-carousel-container .carousel-nav-btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        color: #333;
    }

    .trending-carousel-container .carousel-nav-left {
        left: 0;
    }

    .trending-carousel-container .carousel-nav-right {
        right: 0;
    }

    .trending-carousel-container .carousel-nav-btn:hover {
        background: var(--md-sys-color-primary);
        color: #fff;
        border-color: var(--md-sys-color-primary);
        transform: translateY(-50%) scale(1.1);
    }

    .trending-carousel-container .carousel-nav-btn i {
        font-size: 18px;
    }

    .deals-row {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important; /* 6 per row for 1024 */
        gap: 16px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .deals-row .trending-card {
        flex: none !important;
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
    }

    .deals-row .trending-card-image-wrapper {
        height: 180px !important;
    }
}

/* Wide Screens (1440px and above) */
@media (min-width: 1440px) {
    .deals-row {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 20px !important;
    }
    .deals-row .trending-card-image-wrapper {
        height: 200px !important;
    }
}

/* Full HD Screens (1920px and above) */
@media (min-width: 1920px) {
    .deals-row {
        grid-template-columns: repeat(8, 1fr) !important; /* 10 per row for 1920+ */
    }
    .deals-row .trending-card-image-wrapper {
        height: 220px !important;
    }
}

@media (min-width: 2560px) {

    .circle-image-wrapper {
        width: 180px;
        height: 180px;
        border-width: 6px;
    }

    .category-circle-item {
        min-width: 200px;
    }

    .category-circle-label {
        font-size: 20px;
        max-width: 200px;
    }

    .deals-row {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 24px !important;
    }

    .deals-row .trending-card-image-wrapper {
        height: 240px !important;
    }

    .top-categories-section {
        max-width: 2400px;
        padding: 60px 40px;
    }
}

/* =========================================
   Contact Page Styles
   ========================================= */

.contact-hero-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    padding: 80px 20px;
    z-index: 1;
}

.contact-hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: -1;
    backdrop-filter: blur(4px);
}

.contact-card {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.8s ease-out forwards;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

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

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Sidebar | Form */
    min-height: 500px;
}

/* Sidebar */
.contact-sidebar {
    background: #1a1a1a;
    /* Dark sidebar */
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #FF4500;
    /* Theme orange accent */
    display: inline-block;
    padding-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 69, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #FF4500;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
}

.contact-value:hover {
    color: #FF4500;
}

/* Form Section */
.contact-form-section {
    padding: 40px;
    background: #fff;
}

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

.form-group-contact {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-input:focus {
    outline: none;
    border-color: #FF4500;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit-btn {
    background-color: #FF4500;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    align-self: flex-start;
}

.contact-submit-btn:hover {
    background-color: #e03e00;
    transform: translateY(-2px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        padding: 30px;
        order: 2;
        /* Move below form on mobile if desired, or keep as is */
    }

    .contact-form-section {
        padding: 30px;
        order: 1;
    }

    .contact-hero-wrapper {
        padding: 40px 15px;
    }
}

/* =========================================
   Footer Styles
   ========================================= */
.footer-main {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 40px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    /* Better distribution */
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column.brand h4 {
    color: var(--md-sys-color-primary);
    /* Use primary color for brand heading */
}

.footer-column p {
    color: #999;
    line-height: 1.8;
    font-size: 14px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-list a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--md-sys-color-primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copyright {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #666;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--md-sys-color-primary);
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 30px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}

/* ========================================
   BANNER NAVIGATION & PAGINATION
   ======================================== */

.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #444;
    border: none;
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    opacity: 0.9;
}

.banner-nav-btn:hover {
    background: #fff;
    color: #000;
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.banner-nav-left {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.banner-nav-right {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.banner-nav-btn i {
    font-size: 16px;
}

/* Pagination Dots - Placed BELOW the banner */
.banner-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 8px 0;
    width: 100%;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    background: #d1d5db; /* Light gray for inactive */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-dot:hover {
    background: #9ca3af;
}

.banner-dot.active {
    width: 24px;
    background: #000;
    border-radius: 4px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Hide navigation arrows on mobile */
    .banner-nav-btn {
        display: none !important;
    }
    
    .banner-pagination {
        padding: 8px 0;
        gap: 6px;
    }

    /* Make dots very small on mobile */
    .banner-dot {
        width: 5px;
        height: 5px;
    }

    .banner-dot.active {
        width: 15px;
        border-radius: 3px;
    }
}


.brand-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    padding: 10px;
}

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

.brand-logo-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--md-sys-color-primary);
}

.brand-item span {
    font-size: 0.9em;
    margin-top: 8px;
    font-weight: 500;
    color: var(--md-sys-color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.btn-brand-offer {
    margin-top: 5px;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 15px;
    background-color: var(--md-sys-color-primary);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-brand-offer:hover {
    background-color: var(--md-sys-color-primary-hover);
    color: white;
}

/* Offer Box Animations */
.offer-box {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}






/* --- Responsive Brand & Offer Styles --- */

/* Top Brands Section */
.brands-scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.brands-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Center the brands track */
.brands-container {
    display: flex;
    gap: 24px;
    padding: 0 5%;
    width: max-content;
    margin: 0 auto;
}

.brand-card {
    width: 220px;
    height: 200px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.brand-logo-wrapper {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-logo-wrapper img {
    transform: scale(1.1);
}

.brand-card .btn-primary {
    width: 100%;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    border: none;
    color: white;
    background-color: var(--md-sys-color-primary); 
}

.brand-card .btn-primary:hover {
    background-color: var(--md-sys-color-primary-hover);
}

/* Section Header Centering */
.section-header {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    text-align: center;
    width: 100%;
}

/* Brand Page Offer Box */
.offer-container {
    position: relative; 
    z-index: 10; 
    padding: 0 15px;
}

/* Base Offer Box Styles */
.offer-box {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-top: 4px solid var(--md-sys-color-primary);
    animation: slideUp 0.5s ease-out;
}

/* Horizontal Offer Card for Large Screens (1024px+) */
@media (min-width: 1024px) {
    .horizontal-offer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        text-align: left;
        padding: 30px 40px;
        max-width: 900px;
        margin: 0 auto;
        border: 2px solid #f0f0f0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .offer-left {
        flex-shrink: 0;
    }

    .offer-middle {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .offer-right {
        flex-shrink: 0;
    }
}

/* Mobile: Vertical Centered Layout */
@media (max-width: 1023px) {
    .horizontal-offer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }

    .offer-left,
    .offer-middle,
    .offer-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.brand-logo-header img {
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.offer-box h2 {
    font-size: 2.2em;
    color: var(--md-sys-color-text-primary);
    margin: 0 0 5px 0;
    font-weight: 800;
}

.offer-box p {
    font-size: 1.2em;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.offer-cta-btn {
    padding: 20px 40px;
    font-size: 1.1em;
    border-radius: 20px;
    background: var(--md-sys-color-primary);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.2);
}

/* Large Screens (1440px+) */
@media (min-width: 1440px) {
    .brands-container {
        gap: 32px;
        padding: 0 40px;
    }

    .brand-card {
        width: 260px;
        height: 240px;
        padding: 30px;
        border-radius: 24px;
    }

    .brand-logo-wrapper {
        height: 110px;
        margin-bottom: 20px;
    }

    .brand-card .btn-primary {
        font-size: 1em;
        padding: 12px 0;
    }

    .offer-box {
        max-width: 1200px;
        padding: 25px;
        gap: 20px;
    }

    .brand-logo-header img {
        width: 100px;
        height: 100px;
    }

    .offer-box h2 {
        font-size: 1.8em;
    }

    .offer-box p {
        font-size: 1.1em;
    }

    .offer-cta-btn {
        padding: 15px 30px;
        font-size: 0.9em;
    }
}

/* Ultra-Wide Screens (2560px+) */
@media (min-width: 2560px) {
    .brands-container {
        gap: 48px;
        padding: 0 60px;
    }

    .brand-card {
        width: 320px;
        height: 300px;
        padding: 40px;
        border-radius: 32px;
    }

    .brand-logo-wrapper {
        height: 140px;
        margin-bottom: 25px;
    }

    .brand-card .btn-primary {
        font-size: 1.1em;
        padding: 14px 0;
    }

    .offer-box {
        max-width: 1200px;
        padding: 60px;
    }

    .offer-box h2 {
        font-size: 3em;
    }

    .offer-box p {
        font-size: 1.5em;
    }

    .offer-cta-btn {
        padding: 24px 60px;
        font-size: 1.3em;
    }

    .offer-box {
        max-width: 1800px;
        padding: 50px;
        gap: 40px;
    }

    .brand-logo-header img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .brands-container {
        padding: 0 16px;
        gap: 16px;
    }

    .brand-card {
        width: 150px;
        height: 150px;
        padding: 15px;
        border-radius: 16px;
    }
    
    .brand-logo-wrapper {
        height: 55px;
        margin-bottom: 10px;
    }
    
    .brand-card .btn-primary {
        font-size: 0.75em;
        padding: 6px 0;
        border-radius: 6px;
    }

    .offer-container {
        margin-top: -20px;
    }
    
    .offer-box {
        padding: 24px;
        border-radius: 12px;
    }
    
    .offer-box h2 {
        font-size: 1.5em !important;
    }
    
    .brand-logo-header img {
        height: 70px !important;
    }

    .offer-box p {
        font-size: 1em;
    }

    .offer-cta-btn {
        padding: 10px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .brands-container {
        gap: 12px;
        padding: 0 12px;
    }

    .brand-card {
        width: 130px;
        height: 130px;
        padding: 12px;
        border-radius: 12px;
    }

    .brand-logo-wrapper {
        height: 45px;
        margin-bottom: 8px;
    }

    .brand-card .btn-primary {
        font-size: 0.7em;
        padding: 5px 0;
    }

    .offer-box h2 {
        font-size: 1.25em !important;
    }

    .offer-box p {
        font-size: 0.9em;
    }

    .offer-cta-btn {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}


/* .brand-banner-image {
    width: 90%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}
.brand-banner-item {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    scroll-snap-align: start;
    box-shadow: none;
    display: block;
    background-color: #fff;
    overflow: hidden;
    max-height: 400px;
}
.brand-banner-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    scroll-behavior: smooth;
    margin: 0 auto;
}


 */

 #redirectBar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.redirect-left {
  position: relative;
  width: 36px;
  height: 36px;
}

.redirect-left svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.redirect-left circle {
  fill: none;
  stroke-width: 6;
}

.redirect-left .bg {
  stroke: rgba(0,0,0,0.15);
}

.redirect-left .progress {
  stroke: var(--md-sys-color-primary);
  stroke-dasharray: 282.7;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

#countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--md-sys-color-primary);
}

.redirect-text {
  flex: 1;
  font-size: 14px;
  color: var(--md-sys-color-text-primary);
}

.redirect-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--md-sys-color-primary);
  text-decoration: none;
  white-space: nowrap;
}
