/* home.css */
:root {
    --red: #86191b;
    --gold: #b8860b;
    --dark-red: #6d1416;
    --primary-color: #761214;
    --secondary-color: #010101;
    --accent-color: #f8f9fa;
    --text-light: #ffffff;
    --text-dark: #333333;
    --border-radius: 15px;
}

body, html {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-dark);
    overflow-x: hidden;
}


/* Header Styles */
.professional-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a1a1c 100%);
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(118, 18, 20, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
}


.header-top-bar {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
}

.navbar {
    background: transparent;
}

.navbar-nav .nav-link {
    color: var(--text-light);
}

.navbar-nav .nav-link:hover {
    color: #ffd6d6;
    background: rgba(255,255,255,0.12);
    border-radius: var(--border-radius);
}

.navbar-brand {
    color: var(--text-light) !important;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Banner Section with Image Overlay */
.banner-section {
    position: relative;
    min-height: 85vh;
    height: 80vh;
    background: linear-gradient(rgba(118,18,20,0.75), rgba(118,18,20,0.75)),
    url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner-bg.jpg') center/cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}

.saree-texture-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(165,42,42,0.15) 8px, rgba(165,42,42,0.15) 9px),
        repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(184,134,11,0.12) 8px, rgba(184,134,11,0.12) 9px);
    z-index: 2;
}

.banner-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.banner-content {
    max-width: 90%;
    padding: 2rem;
    text-align: center;
    color: white;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.banner-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-shadow: 0 6px 20px rgba(0,0,0,0.7);
    letter-spacing: 3px;
}

.banner-content p {
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0.95;
}

.banner-content .btn-warning {
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
    border-radius: 50px;
    font-weight: 700;
}

.banner-content .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

/* Scroll Banner */
.scroll-banner {
    height: 140px;
    background: url('/img/designfr.png') repeat-x;
    background-size: auto 100%;
    animation: scrollBg 35s linear infinite;
}
@keyframes scrollBg { 0% { background-position: 0 0; } 100% { background-position: -1200px 0; } }





/* Product Card */
.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(118,18,20,0.18);
}

.product-image {
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price Container */
.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9em;
    font-weight: 500;
}

.current-price {
    font-size: 1.4rem;
    color: var(--red);
}

.discount-badge {
    background: #ff4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Cart Button */
.CartBtn {
    width: 160px;
    height: 45px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    margin: 0 auto;
}

.CartBtn:hover {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.IconContainer {
    position: absolute;
    left: -50px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.4s ease;
    z-index: 2;
}

.text {
    color: #111;
    z-index: 1;
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 0;
    transition: all 0.4s ease;
    padding: 0 12px;
}

.CartBtn:hover .IconContainer {
    transform: translateX(65px);
    border-radius: 40px;
}

.CartBtn:hover .text {
    transform: translateX(10px);
}

.CartBtn:active {
    transform: scale(0.95);
}

/* Latest Products Section */
.latest-products-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Filter Styling */
.filter-heading {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.filter-heading i {
    transition: transform 0.3s ease;
}

.filter-heading[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.filter-heading[aria-expanded="false"] i {
    transform: rotate(0deg);
}

.form-check-input {
    border-color: #ccc;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--red);
    border-color: var(--red);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(134, 25, 27, 0.25);
}

.form-check-label {
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s;
}

.form-check-label:hover {
    color: var(--red);
}

/* Product Grid for Our Products Section */
.row.g-4 {
    row-gap: 1.5rem !important;
}

/* Mobile: 2 products per row */
.col-6 {
    padding: 0 10px;
}

/* Tablet: 3 products per row */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Desktop: 4 products per row */
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Offcanvas Filter for Mobile */
.offcanvas-start.border-danger {
    border-color: #86191b !important;
    width: 300px !important;
}

.btn-outline-danger {
    border-width: 2px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

/* Footer Section */
.footer-section {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 5px solid var(--red);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffd700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    border-radius: 4px;
}

.footer-link:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
    transform: translateX(5px);
}

.newsletter-form input.form-control {
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--red);
    box-shadow: 0 0 0 0.25rem rgba(134, 25, 27, 0.25);
}

.newsletter-form button {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
    color: #212529;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-section small {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .product-image {
        height: 220px;
    }
}

@media (max-width: 1200px) {
    .banner-content h1 {
        font-size: 3rem;
    }

    .product-image {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .banner-section {
        min-height: 60vh;
        height: 60vh;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-content p {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-image {
        height: 180px;
    }

    .col-lg-3 {
        display: none !important;
    }

    .col-lg-9 {
        width: 100%;
        padding: 2rem !important;
    }

    .banner-content {
        max-width: 95%;
        padding: 3rem 1rem;
    }


}

@media (max-width: 768px) {
    .banner-section {
        min-height: 50vh;
        height: 50vh;
        background-attachment: scroll;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.1rem;
    }

    .banner-content .btn-warning {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .product-image {
        height: 160px;
    }

    .scroll-banner {
        display: none;
    }



    .product-title {
        font-size: 0.95rem;
        min-height: 2.6rem;
    }

    .CartBtn {
        width: 140px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .banner-section {
        min-height: 40vh;
        height: 40vh;
    }

    .banner-content h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .banner-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .banner-content {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .CartBtn {
        width: 120px;
        height: 36px;
    }

    .text {
        font-size: 0.9em;
    }

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 1.5rem;
        text-align: center;
    }
    .product-title {
        font-size: 0.9rem;
        min-height: 2.4rem;
    }

    .current-price {
        font-size: 1.1em;
    }

    .footer-section .col-md-4,
    .footer-section .col-md-3,
    .footer-section .col-md-2 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }


}

@media (max-width: 400px) {
    .banner-section {
        min-height: 35vh;
        height: 35vh;
    }

    .banner-content h1 {
        font-size: 1.4rem;
    }

    .product-image {
        height: 120px;
    }

    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }


}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .col-6, .col-md-4, .col-lg-3 {
        padding-left: 8px;
        padding-right: 8px;
    }

    .product-card {
        margin-bottom: 1rem;
    }
}

/* Loading animation for images */
.product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hide loading animation when image is loaded */
.product-image.loaded {
    background: none;
    animation: none;
}

/* Accessibility improvements */
:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .banner-section,
    .scroll-banner,

    .CartBtn,
    .btn-outline-danger,
    .newsletter-form,
    .footer-section {
        display: none !important;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
