/* Import Source Sans 3 font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Logo Styles */
.nav-logo {
    flex-shrink: 0;
    flex: 0 0 auto;
}

.logo {
    height: 2.5rem;
    /* tuned to fit the header */
    align-items: center;
    justify-content: center;
    width: auto;
    cursor: pointer;
    /* margin-top: 10px; */
    /* transition: all 0.3s ease; */
    /* transform: scale(1); */
}



/* Search Bar Styles */
.nav-search {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

/* Header controls (toggle + search + icons) grouped to the right */
.nav-container>.mobile-menu-toggle,
.nav-container>.nav-icons {
    /* margin-left: 0.5rem; */
    justify-content: right;

    align-items: center;
}

/* Search bar should be centered, not margin-left */
.nav-container>.nav-search {
    margin-left: 0;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    display: none;
    /* hidden on desktop */
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Ensure hamburger sits above other elements to avoid click passing through */
.mobile-menu-toggle {
    position: relative;
    z-index: 1201;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 25px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.search-container:focus-within {
    border-color: #E40045;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input {
    flex: 1;
    padding: 0.9rem 0.9rem;
    width: 25rem;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    border-radius: 25px;
    color: #1A1A18;
}

.search-input::placeholder {
    color: #1A1A18;
    opacity: 0.7;
}

.search-btn {
    padding: 0.25rem;
    margin-right: 0.2rem;
    background: #E40045;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.12s ease;
}

.search-btn:hover {
    background: #E40045;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* Profile and Cart Icon Styles */
.nav-icons {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 1rem;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.nav-profile {
    flex-shrink: 0;
}

.profile-btn {
    position: relative;
    padding: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1A1A18;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.profile-btn:hover {
    color: #E40045;
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.profile-dropdown:hover .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #1A1A18;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background-color: #f8f9fa;
    color: #E40045;
}

.profile-menu-item svg {
    flex-shrink: 0;
}

.profile-welcome {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #E40045 !important;
    cursor: default;
}

.profile-welcome:hover {
    background-color: #f8f9fa;
}

.nav-cart {
    flex-shrink: 0;
}

.cart-btn {
    position: relative;
    padding: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1A1A18;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}

.cart-btn:hover {
    color: #E40045;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Ensure badge is not clipped by parent and sits above other header controls */
.cart-btn,
.nav-icons {
    overflow: visible;
}

.cart-count {
    z-index: 1300;
}

/* Navigation Links Styles */
.nav-Links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #E40045;
    height: 60px;
    width: 100%;
    padding: 0 1rem;
    font-weight: 700;

}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: color 0.2s ease;
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    margin-left: 20px;
}

.nav-link:hover {
    color: #f8f9fa;
    /* text-decoration: underline; */
}

/* Hide mobile-only navigation links on desktop */
.nav-link.mobile-only {
    display: none;
}

/* Categories Dropdown Styles */
.nav-categories {
    margin-left: 50px;
}

.categories-section {
    background-color: transparent;
}

.categories-container {
    padding: 0;
}

.categories-dropdown {
    position: relative;
    display: inline-block;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    background: rgba(153, 16, 41, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 50px;
    position: relative;
    overflow: hidden;
}

.categories-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.categories-btn:hover::before {
    left: 100%;
}

.categories-btn:hover {
    background: rgba(162, 50, 76, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.categories-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 0.5rem 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    color: #1A1A18;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    border-bottom: 1px solid #f8f9fa;
}

.category-item:hover {
    background-color: #f8f9fa;
    color: #E40045;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item.featured {
    color: #E40045;
    font-weight: 500;
}

.category-name {
    flex: 1;
}

.category-count {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.category-item:hover .category-count {
    color: #E40045;
}

/* Main content spacing */
.main-content {
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-color: #7d1b1b; */
    /* Hero background image - relative to the CSS file */
    /* background-image: url('../imgs/1.png'); */
    /* Provide a degraded overlay to keep text readable */
    background-blend-mode: overlay;
}

/* Background slides positioned behind hero content */
.hero-bg-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* behind content which uses z-index:2 on .hero-container */
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

/* Ensure hero content sits above slides */
.hero-container {
    position: relative;
    z-index: 2;
}

/* Controls for background carousel */
.hero-bg-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* allow underlying hover pause */
    z-index: 3;
}

.hero-bg-prev,
.hero-bg-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
}

.hero-bg-prev {
    left: 18px;
}

.hero-bg-next {
    right: 18px;
}

.hero-bg-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: auto;
}

/* slim horizontal line indicators with animated left->right fill */
.hero-bg-dot {
    width: 36px;
    height: 2px;
    /* very slim line */
    /* background: rgba(7, 6, 6, 0.897); */
    border-radius: 2px;
    cursor: pointer;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-bg-dot:hover {
    transform: translateY(-2px);
}

/* inner fill that animates via transform:scaleX */
.hero-bg-fill {
    display: none;
    /* hide animated fill while keeping dots and auto-advance JS intact */
}

@keyframes fillAnim {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (max-width: 600px) {

    .hero-bg-prev,
    .hero-bg-next {
        padding: 8px 10px;
        font-size: 18px;
    }

    .hero-bg-dots {
        bottom: 12px;
    }

    .hero-bg-dot {
        width: 24px;
        height: 2px;
    }

    .hero-bg-fill {
        height: 2px;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(115deg, rgba(255, 255, 255, 0.92) 10%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.65) 70%, rgba(255, 255, 255, 0.35) 100%); */
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 1;

}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    min-height: 60vh;
}

.hero-text {
    color: #F9B000;
    font-weight: 700;
    background-color: #ffffffe1;
    /* border: #dc35469c 2px solid; */
    border-radius: 10px;
    padding: 15px;
}

.hero-welcome {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: #E40045;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #F9B000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 176, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(249, 176, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
    color: #E40045;
}

.hero-cta-btn:hover svg {
    transform: translateX(5px);
}

.hero-cta-btn svg {
    transition: transform 0.3s ease;
}

.hero-cta-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.hero-products {
    position: relative;
    height: 500px;
    width: 100%;
}

.product-item {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    overflow: hidden;
    background: white;
    padding: 12px;
}

.product-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Product positioning to match the image layout */
.product-1 {
    top: 20px;
    right: 220px;
    width: 180px;
    height: 140px;
}

.product-2 {
    top: 80px;
    right: 20px;
    width: 160px;
    height: 160px;
}

.product-3 {
    top: 200px;
    right: 280px;
    width: 170px;
    height: 130px;
}

.product-4 {
    top: 280px;
    right: 80px;
    width: 150px;
    height: 150px;
}

.product-5 {
    top: 380px;
    right: 240px;
    width: 190px;
    height: 135px;
}

.product-6 {
    bottom: 20px;
    right: 40px;
    width: 160px;
    height: 160px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1A1A18;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Links */
.nav-Links {
    transition: all 0.3s ease;
}

.hero-cta-btn,
.btn,
button {
    min-height: 44px;
    /* Touch-friendly minimum */
    min-width: 44px;
    transition: all 0.2s ease;
}

.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #dc3545 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(220, 53, 69, 0.05) 50%, transparent 70%);
    transform: rotate(-45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

.feature-card:hover::before {
    transform: rotate(-45deg) translateX(100%);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
}

.feature-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1A18;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: #dc3545;
}

.feature-description {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1A1A18;
    margin: 0;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.feature-card:hover .feature-description {
    color: #1A1A18;
    opacity: 1;
}

.top-category-section {
    padding: 80px 40px;
    background: #ffffff;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.categories-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    /* Hide scrollbar for modern browsers */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers */
.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.categories-container {
    display: flex;
    gap: 24px;
    padding: 10px 0;
    /* Smooth scrolling animation */
    transition: transform 0.3s ease-out;
    /* Enable continuous scrolling */
    will-change: transform;
}

.category-card {
    flex: 0 0 240px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: visible;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #c82333);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.2);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.category-card:hover .category-image {
    border-color: #dc3545;
    transform: scale(1.05);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A1A18;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #dc3545;
}

.category-count {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    transition: color 0.3s ease;
}

.category-card:hover .category-count {
    color: #495057;
}

.category-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.category-card:hover .category-badge {
    transform: scale(1);
}

.footer {
    background: linear-gradient(135deg, #1A1A18 0%, #2c2c2a 100%);
    color: #ffffff;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo-img {
    height: 4rem;
    /* margin-top: -80px;
    margin-bottom: -80px;
    margin-left: -15px; */
    margin-bottom: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: #dc3545;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Source Sans 3', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #dc3545;
    transform: translateX(4px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-item svg {
    flex-shrink: 0;
    color: #dc3545;
}

.footer-bottom {
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.2);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #dc3545;
}

.profile-menu-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.profile-menu-item.admin-item {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    font-weight: 600;
}

.profile-menu-item.admin-item:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateX(3px);
}

.profile-menu-item.admin-item svg {
    stroke: white;
}

/* Admin Panel Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
}

.admin-content {
    margin-left: 280px;
    flex: 1;
    padding: 30px;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    margin: -30px -30px 30px -30px;
    border-radius: 12px 12px 0 0;
}

.admin-header h1 {
    margin: 0;
    color: #1A1A18;
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card h3 {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #dc3545;
    margin: 0;
}

.stat-card .stat-change {
    font-size: 0.85rem;
    margin-top: 8px;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

/* Sidebar Navigation */
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.sidebar-logo {
    max-width: 120px;
    height: auto;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: #f8f9fa;
    color: #dc3545;
    border-left-color: #dc3545;
    text-decoration: none;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    vertical-align: middle;
}

.nav-item span {
    font-weight: 500;
}

.admin-footer {
    grid-template-columns: 1fr 1fr 1fr;
}

.admin-footer .footer-section:first-child {
    max-width: none;
}

.admin-footer .footer-description {
    color: #8b8b8b;
    font-style: italic;
}

.featured-products-section {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
}

.featured-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #E40045 50%, transparent 100%);
}

.featured-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.featured-header h2 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A1A18;
    margin-bottom: 16px;
    position: relative;
}

.featured-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #E40045, #c82333);
    border-radius: 2px;
}

.featured-header p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.refresh-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #E40045, #c82333);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.refresh-products-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 0, 69, 0.3);
}

.refresh-products-btn svg {
    transition: transform 0.3s ease;
}

.refresh-products-btn:hover svg {
    transform: rotate(180deg);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.featured-product-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.featured-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E40045, #c82333);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(228, 0, 69, 0.15);
    border-color: rgba(228, 0, 69, 0.2);
}

.featured-product-card:hover::before {
    transform: scaleX(1);
}

.featured-product-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.featured-product-card:hover .featured-product-image {
    border-color: #E40045;
    transform: scale(1.05);
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.1);
}

.featured-product-name {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A1A18;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.featured-product-card:hover .featured-product-name {
    color: #E40045;
}

.featured-product-price {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #E40045;
    margin-bottom: 16px;
}

.featured-product-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.star {
    color: #ffc107;
    font-size: 1rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 8px;
}

.featured-product-btn {
    background: linear-gradient(135deg, #E40045, #c82333);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.featured-product-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(228, 0, 69, 0.3);
    color: white;
    text-decoration: none;
}

.featured-view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #E40045;
    border: 2px solid #E40045;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #E40045;
    transition: left 0.3s ease;
    z-index: -1;
}

.view-all-btn:hover::before {
    left: 0;
}

.view-all-btn:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(228, 0, 69, 0.3);
}

.view-all-btn svg {
    transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
    transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-us-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    ;
}

.why-choose-us-text {
    order: 1;
}

.why-choose-us-text h2 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A1A18;
    margin-bottom: 20px;
    line-height: 1.2;
}

.why-choose-us-text p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: #1A1A18;
    transition: transform 0.2s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
}

.benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #E40045, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(228, 0, 69, 0.1);
}

.logo-item img {
    height: 120px;
    width: auto;
    max-width: 100%;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #e9ecef;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.333);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(228, 0, 69, 0.1);
}

.stat-number {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #E40045;
    margin-bottom: 4px;
}

.stat-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.why-choose-us-visual {
    order: 2;
    position: relative;
    height: 500px;
    justify-content: center;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 100%;
}

.visual-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 16px;
}

.visual-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ========================================== */

/* Mobile Navigation Enhancements */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1A1A18;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    min-height: 44px;
    max-width: 20px;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.visual-item img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.visual-item:nth-child(1) {
    grid-row: 1 / 3;
}

.visual-item:nth-child(2) {
    grid-row: 1 / 2;
}

.visual-item:nth-child(3) {
    grid-row: 2 / 4;
}

.visual-item:nth-child(4) {
    grid-row: 3 / 4;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(228, 0, 69, 0.8), rgba(200, 35, 51, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-item:hover .visual-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    font-size: 2rem;
}


.nav-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* distribute space evenly for centered search */
    height: 80px;
    overflow: visible;
    font-weight: 600;
}

/* Keep the container as the positioning context so the search can be centered */
.nav-container {
    position: relative;
    align-items: center;
}

/* Center the search bar visually on desktop by absolute centering; mobile rules will override/hide this */
.nav-search {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(980px, 80%);
    max-width: 1100px;
    display: flex;
    justify-content: center;
    z-index: 1200;
}

/* CSS Custom Properties for Mobile */
:root {
    --vh: 1vh;
    --primary-color: #E40045;
    --text-color: #1A1A18;
    --bg-color: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --touch-target: 44px;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Hide scrollbars but keep scrolling functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbars for any scrollable element on index pages */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
    display: none;
}

/* Ensure all containers can still scroll but hide scrollbars */
* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none;
}

/* Navigation Bar Styles */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 0;
    font-weight: 600;
}

/* Responsive overrides (keeps desktop unchanged) */
@media (max-width: 1024px) {

    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Reduce logo size on tablets and smaller */
    .logo {
        height: 2rem;
        margin-top: 10px;

    }

    /* Make search take available space */
    .nav-search {
        max-width: none;
        margin: 0 0.5rem;
    }

    /* Show essential icons (cart) on tablets and smaller.
       Hide the profile button to save space but keep the cart visible
       so users have quick access on all screen sizes. */
    .nav-icons {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
    }

    /* Hide profile button on smaller screens to reduce header clutter */
    .nav-profile {
        display: none !important;
    }

    /* Ensure the cart button stays visible and compact */
    .nav-cart,
    .cart-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .cart-btn {
        padding: 0.5rem;
    }

    /* Put logo on the left and group the cart + hamburger on the right for tablet sizes */
    .nav-logo {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1202;
    }

    /* Place icons (cart) and the menu toggle at the right edge and keep them aligned.
       Use different `right` offsets so they don't overlap: the cart group sits left of the
       hamburger toggle. Increase touch target sizes slightly to avoid clipping. */
    .nav-icons {
        position: absolute !important;
        /* sit left of the hamburger */
        right: 3.25rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        gap: 0.5rem;
        align-items: center;
        z-index: 1203;
    }

    .mobile-menu-toggle {
        position: absolute !important;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1204;
        padding: 0.5rem;
        border-radius: 8px;
    }

    /* ensure cart touch target and badge don't get clipped */
    .cart-btn {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
        padding: 0.4rem;
    }

    /* Make nav links convert to a full-screen drawer controlled by JS (.active) */
    .nav-Links {
        position: fixed;
        top: 72px;
        /* account for header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        transform: translateX(-100%);
        transition: transform 280ms ease-in-out;
        background: linear-gradient(180deg, #E40045 0%, #c82333 100%);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 0.75rem;
        overflow-y: auto;
        z-index: 1150;
    }

    /* Class toggled by JS in mobile-utils.js */
    .nav-Links.active {
        transform: translateX(0);
    }

    .nav-Links .nav-link {
        color: #fff;
        font-size: 1.125rem;
        padding: 1rem 0.5rem;
        margin: 0.125rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link.mobile-only {
        display: block;
    }

    .nav-categories {
        margin-left: 0;
        padding: 0 0.5rem 1rem;
    }

    .categories-btn {
        width: 100%;
        justify-content: center;
    }

    /* Keep hero layout visually same on large screens but stack on small tablets */
    .hero-content {
        grid-template-columns: 1fr;
        /* stacks content on narrower widths */
        gap: 2rem;
    }



}

/* Mobile specific (phones) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 72px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Make logo bigger on small screens for stronger brand presence */
    .logo {
        height: 2rem !important;
        width: auto !important;
        max-height: 6.5rem;
        margin-top: 10px;

    }

    .nav-search {
        order: 2;
        flex: 1 1 auto;
        max-width: none;
    }

    /* Hide search bar on small screens to save space */
    .nav-search {
        display: none !important;
    }

    .mobile-menu-toggle {
        order: 3;
        background: none;
        border: none;
        padding: 6px;
    }

    /* Keep logo left and icons (cart + hamburger) on right for phones */
    .nav-logo {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1202;
    }

    /* On phones keep the cart group slightly left of the hamburger to avoid overlap */
    .nav-icons {
        position: absolute !important;
        right: 3.5rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        gap: 0.5rem;
        align-items: center;
        z-index: 1203;
    }

    .mobile-menu-toggle {
        position: absolute !important;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 1204;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .cart-btn {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
        padding: 0.4rem;
    }

    /* Make hero stack and reduce sizes on phones */
    .hero-section {
        min-height: 70vh;
    }


    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-welcome {
        font-size: 1.05rem;
    }

    .hero-cta-btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }

    /* Features & grids stack single column */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        padding: 0 0.75rem;
    }

    .featured-products-grid {
        grid-template-columns: 1fr !important;
        padding: 0 0.75rem;
        gap: 1rem;
    }

    .categories-container {
        gap: 12px;
        padding-left: 0.25rem;
    }

    .category-card {
        flex: 0 0 180px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
        padding: 0 0.75rem 1.5rem;
    }

    /* Why Choose Us: narrow right column with stacked stat cards next to text on phones */
    .why-choose-us-content {
        grid-template-columns: 1fr 160px;
        gap: 18px;
        align-items: start;
    }

    .why-choose-us-text {
        padding-right: 8px;
    }

    .why-choose-us-visual {
        order: 2;
        height: auto;
        display: flex;
        align-items: start;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 0;
    }

    .stat-item {
        padding: 12px 10px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.04);
        min-width: 140px;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    /* Restore categories button and present navigation as a vertical overlay like screenshot */
    .nav-categories {
        display: block !important;
        width: 100%;
        padding: 0 0.75rem 1rem;
    }

    .categories-btn {
        margin: 0 auto 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: calc(100% - 1.5rem);
        max-width: 520px;
    }

    /* Vertical full-height overlay for links (below header) */
    .nav-Links {
        flex-direction: column !important;
        align-items: flex-end;
        /* align link boxes to the right on small screens */
        justify-content: flex-start;
        padding: 1.25rem 1rem 1.25rem 0.75rem;
        /* extra right padding so items don't touch edge */
        height: calc(100vh - 72px);
        overflow-y: auto;
        white-space: normal;
    }

    /* Make each link a constrained-width box and right-aligned so the list sits on the right */
    .nav-Links .nav-link {
        display: block !important;
        width: auto;
        max-width: 520px;
        text-align: right;
        padding: 14px 0;
        margin: 6px 0;
        font-size: 1.125rem;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Mobile-only items (Sign In / Cart) centered with extra spacing */
    .nav-link.mobile-only {
        display: block !important;
        margin-top: 18px;
        font-weight: 700;
    }
}

/* Very small phones: stack content and show stats as a centered 2x2 grid below the text */
@media (max-width: 480px) {
    .why-choose-us-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-choose-us-visual {
        order: 2;
        width: 100%;
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 12px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-item {
        padding: 18px 12px;
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
        font-weight: 800;
    }
}