/* ===========================================
   CLEAN MOBILE-RESPONSIVE STYLES
   =========================================== */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Hero section - no white space */
.hero {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero section {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any spacing from elements after hero */
.hero + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any spacing from all hero child elements */
.hero * {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove spacing from picture elements */
picture, picture * {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero__image {
    margin: 0 !important;
    padding: 0 !important;
}

.hero__image * {
    margin: 0 !important;
    padding: 0 !important;
}

/* Offer banner */
.offer-banner {
    margin: 0 !important;
    padding: 15px 0;
    background: #000;
    color: white;
    text-align: center;
}

/* Product cards */
.product-card {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card .image-container {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .image-container img {
    transform: scale(1.05);
}

/* Container spacing */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-md-3, .col-6, .col-12 {
    padding-left: 15px;
    padding-right: 15px;
    flex: 1;
    min-width: 0;
}

/* Product grid spacing */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.product-grid .product-card {
    margin-bottom: 0;
}

/* Bootstrap grid spacing */
.row > [class*="col-"] {
    margin-bottom: 20px;
}

/* Product card spacing in different layouts */
.products-container .product-card {
    margin-bottom: 20px;
}

.products-container .row {
    margin-bottom: 20px;
}

/* Ensure consistent spacing */
.product-item {
    margin-bottom: 20px;
    padding: 0 10px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Mobile container and spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
        gap: 20px;
    }
    
    .col-md-3, .col-6, .col-12 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Mobile body improvements */
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1.6;
        color: #333;
    }
    
    /* Mobile hero section - Enhanced white space removal */
    .hero {
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        position: relative;
        overflow: hidden;
        display: block;
    }
    
    .hero__image {
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        display: block;
    }
    
    .hero__image * {
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero img {
        max-height: 400px;
        object-fit: cover;
        width: 100%;
        border-radius: 0;
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        display: block;
    }
    
    /* Remove any spacing from elements immediately after hero */
    .hero + * {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove spacing from categories section that follows hero */
    .categories-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remove spacing from any section that follows hero */
    section:not(.hero) {
        margin-top: 0 !important;
    }
    
    /* Ensure picture elements have no spacing */
    picture {
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        display: block;
    }
    
    picture * {
        margin: 0 !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Mobile product cards */
    .product-card {
        margin-bottom: 25px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        background: white;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }
    
    .product-card .image-container {
        height: 220px;
        position: relative;
        overflow: hidden;
    }
    
    .product-card .image-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(138, 7, 7, 0.1), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .product-card:hover .image-container::after {
        opacity: 1;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 0;
    }
    
    .row > [class*="col-"] {
        margin-bottom: 20px;
    }
    
    .products-container .product-card {
        margin-bottom: 20px;
    }
    
    .products-container .row {
        margin-bottom: 20px;
    }
    
    .product-item {
        margin-bottom: 20px;
        padding: 0 7.5px;
    }
    
    /* Mobile category section */
    .category-section {
        padding: 40px 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        position: relative;
    }
    
    .category-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #8A0707, transparent);
    }
    
    .category-button {
        width: 100%;
        padding: 18px 25px;
        background: linear-gradient(135deg, #8A0707, #a50909);
        color: white;
        border: none;
        border-radius: 30px;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 25px rgba(138, 7, 7, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .category-button:hover {
        background: linear-gradient(135deg, #6d0505, #8A0707);
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(138, 7, 7, 0.4);
    }
    
    .category-button::after {
        content: '→';
        font-size: 20px;
        transition: transform 0.3s ease;
    }
    
    .category-button:hover::after {
        transform: translateX(5px);
    }
    
    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .category-item {
        text-align: center;
        padding: 25px 15px 20px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .category-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(138, 7, 7, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .category-item:hover::before {
        left: 100%;
    }
    
    .category-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        color: white;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .category-item:hover .category-icon {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    
    .category-name {
        font-size: 14px;
        font-weight: 700;
        color: #333;
        margin-top: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.3;
        height: auto;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    /* Mobile section headings */
    .section-heading {
        text-align: center;
        margin: 50px 0 40px;
        padding: 0 20px;
        position: relative;
    }
    
    .section-heading h2 {
        font-size: 28px;
        font-weight: 800;
        color: #8A0707;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
    }
    
    .section-heading h2::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #8A0707, #ff5757);
        border-radius: 2px;
    }
    
    .section-heading .underline {
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #8A0707, #ff5757);
        margin: 0 auto;
        border-radius: 2px;
        box-shadow: 0 2px 8px rgba(138, 7, 7, 0.3);
    }
    
    /* Mobile buttons */
    .btn, button {
        min-height: 52px;
        padding: 15px 30px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 30px;
        border: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .btn:hover, button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #8A0707, #a50909);
        color: white;
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #6d0505, #8A0707);
        box-shadow: 0 8px 25px rgba(138, 7, 7, 0.3);
    }
    
    /* Mobile text */
    h1, h2, h3 {
        line-height: 1.2;
        margin-bottom: 20px;
        font-weight: 700;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    p {
        line-height: 1.7;
        margin-bottom: 20px;
        font-size: 16px;
        color: #555;
    }
    
    /* Mobile animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .fade-in-up {
        animation: fadeInUp 0.6s ease-out;
    }
    
    /* Mobile scroll behavior */
    html {
        scroll-behavior: smooth;
    }
    
    /* Mobile focus states */
    *:focus {
        outline: 2px solid #8A0707;
        outline-offset: 2px;
    }
    
    /* Extra small screens adjustments */
    @media (max-width: 480px) {
        /* Ultra-aggressive hero white space removal for small screens */
        .hero {
            margin: 0 !important;
            padding: 0 !important;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
            border: none !important;
            outline: none !important;
        }
        
        .hero__image {
            margin: 0 !important;
            padding: 0 !important;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
            border: none !important;
            outline: none !important;
        }
        
        .hero img {
            margin: 0 !important;
            padding: 0 !important;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
            border: none !important;
            outline: none !important;
            vertical-align: top;
        }
        
        picture {
            margin: 0 !important;
            padding: 0 !important;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
            border: none !important;
            outline: none !important;
            display: block;
        }
        
        picture * {
            margin: 0 !important;
            padding: 0 !important;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
            border: none !important;
            outline: none !important;
        }
        
        /* Force remove spacing from any element after hero */
        .hero + * {
            margin-top: 0 !important;
            padding-top: 0 !important;
            border-top: none !important;
        }
        
        .category-item {
            min-height: 160px;
            padding: 20px 10px 15px;
        }
        
        .category-icon {
            width: 60px;
            height: 60px;
            font-size: 24px;
        }
        
        .category-name {
            font-size: 13px;
            min-height: 32px;
            line-height: 1.2;
        }
        
        .category-grid {
            gap: 15px;
            padding: 0 10px;
        }
    }
}

/* Buttons */
.btn, button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Forms */
input, select, textarea {
    font-size: 16px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

/* Text */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Links */
a {
    color: #8A0707;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6d0505;
}
