/* Global Styles */
:root {
    --primary-color: #D4AF37;
    --secondary-color: #B76E79;
    --dark-color: #333 ;
    --light-color: #f8f9fa;
    --danger-color: #dc3545;
    --success-color: #4B2E2E;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    width:100%;
}

/* Logo Styles - More specific selectors */
.navbar {
    background-color: rgba(0,0,0, 0.3);
    position: absolute;
    width: 100%;
    height: 80px;
    top: 30px;
    margin: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);          /* blur behind element */
    -webkit-backdrop-filter: blur(10px);  /* Safari support */
}

.navbar .container{
    margin: 20px !important;
    text-align: center !important;
}
     



.navbar .logo-container {
    padding: 0 !important;
    height: 70px !important; /* Increased from 60px */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.navbar .logo-container .header-logo {
    max-height: 100% !important;
    width: 300px !important;
    height: 100px !important;
    object-fit: contain !important;
    transform-origin: left center !important;
}

/* Override Bootstrap's navbar-brand styles */
.navbar-brand {
    height: 100px !important;
}






/* Responsive adjustments */
@media (max-width: 1199.98px) {

}

@media (max-width: 991px) {
    .navbar .logo-container {
        height: 50px !important;
    }
    
    .navbar .logo-container .header-logo {
        transform: scale(1.2) !important;
    }
    .navbar {
        height: 80px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .collapse {
    position: absolute;
    top: 80px;
    right: 0;
    height: 1500px;
    width: 50%;
    text-align: left;
    padding: 0 30px;
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(0,0,0, 0.7);
    backdrop-filter: blur(10px);          /* blur behind element */
    -webkit-backdrop-filter: blur(10px);  
    } 
    .collap {
        position:relative;
        top:0;
        right:0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        margin: 20px;
        width: 150px;
    }
}

@media (max-width: 767px) {
    .navbar .logo-container {
        height: 60px !important;
    }
    
    .navbar .logo-container .header-logo {
        transform: scale(1.5) !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .collep{
        display: flex;
        justify-content: right;
        align-items: center;
        padding: 10px;
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .navbar .logo-container {
        height: 50px !important;
    }
    
    .navbar .logo-container .header-logo {
        transform: scale(1.25) !important;
    }
    .collep{
        display: flex;
        justify-content: right;
        align-items: center;
        padding: 10px;
        width: 50%;
    }
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}



.section-padding {
    padding: 80px 0;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

/* Text Truncation */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.form-control {
    border-radius: 25px;
    padding-left: 20px;
}


.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--success-color);
    border-color: var(--success-color);
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.7);
    -webkit-text-stroke: 1px var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    -webkit-text-stroke: 1px var(--white-color);
}





.navbar-nav .nav-link {
    font-weight: 600;
    padding: 8px 10px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    color:#f1f1f1;
    -webkit-text-stroke: 0.2px var(--primary-color);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: url('../images/background-1.jpg') no-repeat center center/cover;
    padding: 140px 0;
    height: 600px;
    position: relative;
    text-align: center;
}

/* Hero Section */
.hero-section-1 {
    background: url('../images/background-1.jpg') no-repeat center center/cover;
    padding: 80px 0;
    height: 350px;
    position: relative;
    text-align: center;
}


.hero-content h1 {
    margin-top: 60px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--success-color);
    text-shadow: 
        3px 4px 10px rgba(120, 247, 247, 1);
    text-align: center;
    max-width: 90%;
    box-sizing: border-box;
    -webkit-text-stroke: 1px #000;
}

.hero-content p.lead {
    font-size: 1.4rem;
    color: var(--success-color);
    font-weight: 500;
    text-shadow: 
        1px 1px 5px rgba(245, 245, 245, 1);
    text-align: center;
}

.hero-btns .btn {
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.hero-btns .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}



/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 10px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Image Box */
.card-img-container {
    position: relative;
    padding: 0;
    width: 100%;
    height: 350px;
    background: #f8f9fa;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .card-img-container img {
    transform: scale(1.02);
}


/* Features Section */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    transition: var(--transition);
    margin-bottom: 30px;
}

.feature-box:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: rgba(139, 90, 43, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 30px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: var(--primary-color);
    color: #fff;
}


/* Featured Badge */
.product-badge, 
.badge.bg-warning {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Card Content */
.card-body {
    padding: 15px !important;
}

/* Product title */
.card-title a {
    font-size: 18px;
    font-weight: 600;
    color: #333 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--primary-color) !important;
}

/* Category (optional if needed) */
.product-category {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
    display: block;
}

/* Pricing */
.text-primary {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.old-price,
.text-decoration-line-through {
    color: #999 !important;
    font-size: 14px;
}

/* Badges */
.badge {
    padding: 6px 12px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
}

.bg-success {
    background: #e8f9ed !important;
    color: #1b8b3e !important;
}

.bg-danger {
    background: #ffe5e5 !important;
    color: #d9534f !important;
}

/* Add to Cart Button */
.add-to-cart {
    width: 100%;
    border-radius: 25px !important;
    padding: 10px 0 !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(199,160,82,0.4);
}

.share {
    width: 100%;
    border-radius: 25px !important;
    padding: 10px 0 !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: var(--transition);
}

.share:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(199,160,82,0.4);
}


/* Testimonials
.testimonial-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/testimonial-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: #fff;
    padding: 100px 0;
} */

.testimonial-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 5px;
    margin: 15px;
    position: relative;
}

.testimonial-item:before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.testimonial-author h5 {
    margin-bottom: 5px;
    color: #fff;
}

.testimonial-author p {
    margin: 0;
    font-size: 14px;
    color: #ddd;
}

/* Footer */
.footer-widget h5 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.footer-widget h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 5px;
    margin-right: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    z-index: 99;
    display: none;
    transition: var(--transition);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-nav {
        padding: 15px 0;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 160px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Background Slideshow */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: opacity 1s ease-in-out;
}



.main-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.9);
    min-height: 100vh;
}

/* Brand Slider */
.brands-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.brands-slider::before,
.brands-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-slider-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding: 10px 0;
    white-space: nowrap; /* prevent wrapping */
}

/* Ensure each group of logos lays out horizontally */
.brands-slider-track .brand-logos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}


.brand-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100px !important;
    min-width: 160px !important;
    padding: 15px !important;
    margin: 0 8px !important;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto; /* keep items on one line */
}


/* Ensure all logos maintain aspect ratio */
.brand-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 140px !important;
    max-height: 60px !important;
}

.brand-logo:hover img {
    transform: scale(1.15);
    opacity: 0.9;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.brands-slider:hover .brands-slider-track {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brands-slider {
        padding: 2px 0;
    }
    
    .brands-slider-track {
        animation-duration: 30s;
    }
    
    .brand-logo {
        min-width: 120px !important;
        height: 80px !important;
        padding: 10px !important;
        margin: 0 6px !important;
    }
    
    .brand-logo img {
        max-width: 100px !important;
        max-height: 45px !important;
    }
    
    /* Mobile-specific adjustments */
    .brand-logo[title*="Sleepwell"] img,
    .brand-logo[title*="sujata"] img {
        max-height: 40px !important;
    }
    
    .brand-logo[title*="raggee"] img,
    .brand-logo[title*="Gomati"] img {
        max-height: 35px !important;
    }
}
