/* ==========================================================================
   Blinds Curtains Outlet - Global Custom Style Engine
   ========================================================================== */


/* --- 1. Design Variables & Base Resets --- */

:root {
    --primary-color: #a11313;
    /* Crisp Bootstrap Blue */
    --primary-hover: #820e0e;
    /* Deep Accent Tone */
    --dark-neutral: #212529;
    /* Off-Black Body Text */
    --light-neutral: #f8f9fa;
    /* Pure Clean Backgrounds */
    --text-muted-gray: #6c757d;
    /* High-Contrast Accessible Muted Text */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --bs-light-rgb: 201, 202, 202;
}

.btn-primary {
    color: #ffffff;
    background-color: #a11313;
    border-color: #a11313;
    border-radius: 3rem;
}

.btn-primary:hover {
    background-color: #820e0e;
    border-color: #a11313;
}

.btn-primary:active {
    background-color: #820e0e;
    border-color: #a11313;
}

.btn-primary:disabled {
    background: #820e0e;
    border-color: #a11313;
}

.btn-outline-primary {
    color: #a11313;
    border-color: #a11313;
}

.btn-outline-primary:hover {
    background-color: #a11313;
    border-color: #a11313;
}

.btn-outline-primary:active :checked {
    color: #ffffff;
    background: #a11313;
    border-color: #a11313;
}

.btn-outline-primary:disabled {
    color: #ffffff;
    background: #a11313;
    border-color: #a11313;
}

.navbar-brand {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

.bi,
.text-primary {
    color: #cc0030 !important;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark-neutral);
    background-color: #ffffff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* --- 2. Global Section Utilities --- */

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }
}


/* --- 3. Header Overlay & Layouts --- */

.page-header {
    position: relative;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.page-header h1 {
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* --- 4. Component Card Refinements --- */

.card {
    transition: var(--transition-smooth);
    border-radius: 12px !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

.card-body i {
    display: inline-block;
    transition: var(--transition-smooth);
}

.card:hover .card-body i {
    transform: scale(1.1);
}


/* --- 5. Media Images & Visual Grid --- */

.product-image {
    transition: var(--transition-smooth);
    object-fit: cover;
    width: 100%;
    max-height: 450px;
}

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


/* --- 6. Custom Call-To-Action (CTA) Banner --- */

.cta-section {
    background-color: #1e293b;
    /* Premium slate architectural blue */
    color: #ffffff;
    padding: 5.5rem 1rem;
}

.cta-section .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.8rem 2.2rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.cta-section .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}


/* --- 7. Scroll to Top Button --- */

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.back-to-top i {
    color: #ffffff !important;
}


/* --- 7. Structural Footer Styling --- */

.footer {
    background-color: #0f172a;
    /* Extra deep charcoal accent slate */
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1rem 2.5rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: #ffffff;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline !important;
}

.footer p:first-of-type {
    margin-bottom: 0.5rem;
}


/* --- 8. Navigation Framework Fixes --- */

.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: -0.3px;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}


/* --- 9. Image Carousal --- */

.gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll 35s linear infinite;
}

.gallery-slider:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-card {
    flex-shrink: 0;
    width: 350px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.gallery-card img {
    width: 100%;
    height: 420px;
    /* Taller images */
    object-fit: cover;
    display: block;
}


/* --- 9. Promo Banner --- */

.promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 25px;
    line-height: 25px;
    /* Vertically center text */
    background-color: #a11313;
    /* Your brand red */
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
}

.promo-banner a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.promo-banner a:hover {
    text-decoration: underline;
}

.promo-banner svg {
    height: 18px;
    width: auto;
    color: #fff;
    flex-shrink: 0;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50%));
    }
}


/* Tablet */

@media (max-width: 992px) {
    .gallery-card {
        width: 280px;
    }
    .gallery-card img {
        height: 320px;
    }
}


/* Mobile */

@media (max-width: 576px) {
    .gallery-card {
        width: 220px;
    }
    .gallery-card img {
        height: 250px;
    }
}