/* Banner Cement Section */
.banner-cement-section {
    padding: 20px 0;
    background: #f5f5f5;
}

/* Brands Section Compact */
.brands-section-compact {
    padding: 30px 0;
    background: white;
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.brands-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.view-all-btn {
    background: #007bff;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.brands-grid-compact {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.brand-item-compact {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.brand-item-compact:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.brand-item-compact img {
    width: 100%;
    height: 60px;
    object-fit: contain;
}

/* Products with Sidebar Layout */
.products-with-sidebar-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.products-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.main-products-area {
    background: white;
    padding: 25px;
    border-radius: 10px;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.section-header-inline h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.product-filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-tab.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.filter-tab:hover {
    border-color: #ff6b35;
}

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: block;
}

.products-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card-compact {
    position: relative;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card-compact:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.sale-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    z-index: 5;
    letter-spacing: 0.3px;
}

.product-img-compact {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-img-compact img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details-compact {
    padding: 15px;
}

.product-details-compact h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    min-height: 40px;
    line-height: 1.3;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.new-price {
    color: #28a745;
    font-size: 18px;
    font-weight: 700;
}

/* Sidebar Featured */
.sidebar-featured {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.sidebar-featured h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.featured-item-sidebar {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.featured-item-sidebar:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.featured-item-sidebar a {
    display: flex;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
}

.featured-item-sidebar img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 5px;
}

.featured-info-sidebar h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.price-sidebar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.old-price-small {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.new-price-small {
    color: #28a745;
    font-size: 16px;
    font-weight: 700;
}

.sidebar-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    padding: 15px;
    color: white;
    transition: all 0.3s ease;
}

.sidebar-banner:hover .banner-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
}

.banner-overlay h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.banner-overlay p {
    font-size: 13px;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

/* Reviews Section Home */
.reviews-section-home {
    padding: 50px 0;
    background: white;
}

.section-title-center {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

.reviews-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

.review-card-home {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.review-header {
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.reviewer-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.review-card-home p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Features Section */
.features-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.feature-icon i {
    color: #ffffff !important;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .products-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brands-grid-compact {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .brands-grid-compact {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .reviews-grid-home {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-filter-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .products-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .brands-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


/* Hero Banner Section */
.hero-banner-section {
    padding: 20px 0;
    background: #f5f5f5;
}

.hero-banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.main-hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1200&h=400&fit=crop');
    background-size: cover;
    background-position: center;
}

.main-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.hero-content-overlay {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content-overlay h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content-overlay p {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-shop-btn {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    max-width: 200px;
    text-align: center;
}

.hero-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

.side-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 10px;
    height: 190px;
    padding: 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.side-banner-item:nth-child(2) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.side-banner-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.side-banner-item p {
    font-size: 16px;
    opacity: 0.95;
}

/* Cement Banner */
.banner-cement-section .cement-bags-slider {
    background: linear-gradient(to right, #ff6b35, #f7931e);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.banner-cement-section .cement-bags-slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0.9;
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-banner-grid {
        grid-template-columns: 1fr;
    }
    
    .main-hero-banner {
        height: 350px;
    }
    
    .side-banners {
        flex-direction: row;
    }
    
    .side-banner-item {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .hero-content-overlay {
        padding: 40px 30px;
    }
    
    .hero-content-overlay h1 {
        font-size: 32px;
    }
    
    .hero-content-overlay p {
        font-size: 18px;
    }
    
    .main-hero-banner {
        height: 300px;
    }
    
    .side-banners {
        flex-direction: column;
    }
    
    .side-banner-item {
        height: 120px;
        padding: 20px;
    }
    
    .side-banner-item h3 {
        font-size: 20px;
    }
    
    .side-banner-item p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-banner-section {
        padding: 10px 0;
    }
    
    .hero-banner-grid {
        gap: 10px;
    }
    
    .main-hero-banner {
        height: 280px;
        border-radius: 8px;
    }
    
    .hero-content-overlay {
        padding: 30px 20px;
    }
    
    .hero-content-overlay h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .hero-content-overlay p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-shop-btn {
        padding: 10px 25px;
        font-size: 13px;
        border-radius: 20px;
        color: white;
    }
    
    .side-banners {
        gap: 10px;
    }
    
    .side-banner-item {
        height: 100px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .side-banner-item h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .side-banner-item p {
        font-size: 12px;
    }
}


/* Mobile Specific Styles */
@media (max-width: 480px) {
    /* Container Mobile */
    .container {
        padding: 0 10px;
    }
    
    /* Cement Banner Mobile */
    .banner-cement-section {
        padding: 10px 0;
        display: none; /* Hide on mobile for cleaner look */
    }
    
    /* Brands Section Mobile */
    .brands-section-compact {
        padding: 25px 0;
        background: white;
    }
    
    .brands-header {
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .brands-header h2 {
        font-size: 18px;
        font-weight: 700;
    }
    
    .view-all-btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 4px;
    }
    
    .brands-grid-compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .brand-item-compact {
        padding: 8px;
        border-radius: 6px;
        background: #fafafa;
    }
    
    .brand-item-compact img {
        height: 45px;
    }
    
    /* Products Section Mobile */
    .products-with-sidebar-section {
        padding: 25px 0;
        background: #f5f5f5;
    }
    
    .products-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-products-area {
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .section-header-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }
    
    .section-header-inline h2 {
        font-size: 17px;
        font-weight: 700;
        color: #222;
    }
    
    .product-filter-tabs {
        width: 100%;
        display: flex;
        gap: 6px;
    }
    
    .filter-tab {
        padding: 7px 0;
        font-size: 11px;
        flex: 1;
        text-align: center;
        border-radius: 6px;
        font-weight: 600;
        transition: all 0.2s;
    }
    
    .filter-tab.active {
        background: #ff6b35;
        color: white;
        border-color: #ff6b35;
        box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
    }
    
    .products-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-card-compact {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        background: white;
    }
    
    .product-card-compact:active {
        transform: scale(0.98);
    }
    
    .sale-tag {
        top: 5px;
        left: 5px;
        padding: 2px 5px;
        font-size: 8px;
        font-weight: 700;
        border-radius: 2px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    
    .product-img-compact {
        height: 140px;
        padding: 8px;
        background: #fafafa;
    }
    
    .product-img-compact img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .product-details-compact {
        padding: 8px;
    }
    
    .product-details-compact h3 {
        font-size: 12px;
        min-height: 32px;
        margin-bottom: 6px;
        line-height: 1.3;
        font-weight: 600;
        color: #333;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .price-row {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .old-price {
        font-size: 10px;
        color: #999;
    }
    
    .new-price {
        font-size: 15px;
        font-weight: 700;
        color: #28a745;
    }
    
    /* Sidebar Mobile */
    .sidebar-featured {
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .sidebar-featured h3 {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 12px;
        color: #222;
    }
    
    .featured-list {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .featured-item-sidebar {
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .featured-item-sidebar a {
        padding: 8px;
        gap: 8px;
    }
    
    .featured-item-sidebar img {
        width: 65px;
        height: 65px;
        border-radius: 4px;
    }
    
    .featured-info-sidebar h4 {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }
    
    .old-price-small {
        font-size: 10px;
    }
    
    .new-price-small {
        font-size: 13px;
        font-weight: 700;
    }
    
    .sidebar-banner {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    
    .banner-overlay {
        padding: 12px;
    }
    
    .banner-overlay h4 {
        font-size: 14px;
        font-weight: 600;
    }
        font-size: 16px;
        font-weight: 700;
    }
    
    .banner-overlay p {
        font-size: 12px;
    }
    
    /* Reviews Section Mobile */
    .reviews-section-home {
        padding: 25px 0;
        background: white;
    }
    
    .section-title-center {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #222;
    }
    
    .reviews-grid-home {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .review-card-home {
        padding: 15px;
        border-radius: 8px;
        background: #fafafa;
        border: 1px solid #e8e8e8;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .review-header {
        margin-bottom: 12px;
    }
    
    .reviewer-avatar {
        width: 38px;
        height: 38px;
        font-size: 16px;
        font-weight: 700;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .reviewer-info h4 {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 3px;
    }
    
    .stars {
        font-size: 11px;
        letter-spacing: 1px;
    }
    
    .review-card-home p {
        font-size: 12px;
        line-height: 1.5;
        color: #555;
    }
    
    /* Features Section Mobile */
    .features-section {
        padding: 25px 0;
        background: #f5f5f5;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feature-item {
        padding: 15px 10px;
        border-radius: 8px;
        background: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 10px;
        background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
        color: #ffffff;
        box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    }
    
    .feature-icon i {
        color: #ffffff !important;
    }
    
    .feature-item h3 {
        font-size: 11px;
        margin-bottom: 5px;
        font-weight: 700;
        color: #222;
        line-height: 1.3;
    }
    
    .feature-item p {
        font-size: 10px;
        line-height: 1.4;
        color: #666;
    }
}


/* Force Order Now button on mobile - Remove any Add to Cart */
@media (max-width: 768px) {
    /* Hide any add to cart buttons */
    .btn-add-to-cart,
    button[onclick*="addToCart"],
    a[onclick*="addToCart"] {
        display: none !important;
    }
    
    /* Ensure Order Now button is visible */
    .btn-order-now {
        display: flex !important;
        width: 100%;
        padding: 10px 16px;
        background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
    }
    
    .product-card-compact .btn-order-now {
        margin: 0 8px 8px 8px;
    }
}
