/* Root Variables */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #F4A460;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #FFF8F0;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Main Carousel (top of page) */
.main-carousel-slide {
    height: 90vh;
    min-height: 560px;
    padding-top: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 10, 5, 0.75) 0%, rgba(20, 10, 5, 0.45) 55%, rgba(20, 10, 5, 0.15) 100%);
}

.main-carousel-slide .container {
    position: relative;
    z-index: 2;
}

.main-carousel-slide h1 {
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-carousel-slide p {
    animation: fadeInUp 1.2s ease;
}

.main-carousel-slide .btn {
    animation: fadeInUp 1.4s ease;
}

#mainCarousel .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

#mainCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

#mainCarousel .carousel-indicators button.active {
    background-color: var(--accent-color);
}

#mainCarousel .carousel-control-prev-icon,
#mainCarousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    padding: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    background-size: 60%;
}

#mainCarousel .carousel-control-prev,
#mainCarousel .carousel-control-next {
    width: 8%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Banner / Offer Carousel Section */
.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-slide {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.banner-slide-alt2 {
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 100%);
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.banner-slide::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

#offerCarousel .carousel-indicators {
    bottom: 8px;
    margin-bottom: 0;
}

#offerCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
}

#offerCarousel .carousel-indicators button.active {
    background-color: #fff;
}

#offerCarousel .carousel-control-prev,
#offerCarousel .carousel-control-next {
    width: 5%;
}

#offerCarousel .carousel-control-prev-icon,
#offerCarousel .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.banner-subtitle {
    font-size: 1.05rem;
    opacity: 0.95;
}

.coupon-box {
    background: rgba(255, 255, 255, 0.12);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.coupon-code-wrapper {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    background: #fff;
    border: none;
}

.copy-btn {
    white-space: nowrap;
    font-weight: 600;
}

.countdown-wrapper {
    text-align: center;
    font-size: 0.9rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.count-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    min-width: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count-item span {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.count-item small {
    font-size: 0.7rem;
    opacity: 0.85;
}

/* Trust Bar */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

/* Shop by Category */
.category-card {
    position: relative;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.25);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.25rem;
}

.category-overlay h5 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Product Badges & Ratings */
.product-image {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #FFB300;
    font-size: 0.9rem;
}

/* Filter Buttons */
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Best Seller Carousel */
#bestSellerCarousel .carousel-control-prev,
#bestSellerCarousel .carousel-control-next {
    width: 5%;
}

#bestSellerCarousel .carousel-control-prev-icon,
#bestSellerCarousel .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 1.1rem;
    width: 2.25rem;
    height: 2.25rem;
    background-size: 55%;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 4px solid var(--bg-light);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.testimonial-indicators {
    position: static;
    margin-top: 1.5rem;
}

.testimonial-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(139, 69, 19, 0.3);
    border: none;
}

.testimonial-indicators button.active {
    background-color: var(--primary-color);
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 220px;
}

/* Footer */
.footer-main {
    background-color: #2b1a10;
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    background-color: #1c1109;
    color: rgba(255, 255, 255, 0.6);
}

/* Cart */
.cart-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#cartItemsBody .cart-item {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 0.75rem;
}

#cartItemsBody .cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* Ads / Video Section */
.video-card {
    cursor: pointer;
    text-align: center;
}

.video-thumbnail {
    position: relative;
    height: 160px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-card:hover .video-thumbnail {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.25);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.video-caption {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-light);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-body {
    padding: 1.5rem;
}

.product-body h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Gallery */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    font-weight: 600;
}

/* Contact Section */
.contact-info .info-item {
    text-align: center;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.social-links a {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    margin-top: 3rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-carousel-slide {
        text-align: center;
        height: 70vh;
        min-height: 420px;
    }

    .main-carousel-slide h1 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .product-image {
        height: 150px;
    }

    .gallery-item img {
        height: 200px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .main-carousel-slide h1 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
