/* Global Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #8B4513;
    --accent-color: #D4AF37;
    --light-color: #F5F5F5;
    --dark-color: #333333;
    --text-color: #212529;
    --border-radius: 4px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Hide language elements by default */
[data-lang="en"] {
    display: none;
}

/* Show language elements based on active language */
body.lang-en [data-lang="es"] {
    display: none;
}

body.lang-en [data-lang="en"] {
    display: inline-block;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--light-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.language-toggle .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius);
}

.language-toggle .btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-cart {
    background-color: transparent;
    color: var(--light-color);
    border: none;
    font-size: 1.25rem;
    transition: var(--transition);
}

.btn-cart:hover {
    color: var(--accent-color);
}

.cart-count {
    font-size: 0.65rem;
    transform: translate(-50%, -50%);
}

/* Hero Carousel */
.hero-carousel {
    margin-top: 80px;
}

.carousel-item {
    height: 600px;
    background-color: var(--dark-color);
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 20%;
    text-align: left;
    max-width: 600px;
    left: 10%;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    background-color: var(--accent-color);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.carousel-caption .btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* Section Styles */
.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Categories */
.categories-container {
    overflow: hidden;
}

.categories-slider {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.categories-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    min-width: 150px;
    margin-right: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.category-item:hover,
.category-item.active {
    background-color: rgba(0, 0, 0, 0.05);
}

.category-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.5rem;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item h5 {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

/* Search and Filter */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Products Grid */
.products-grid {
    margin-top: 1rem;
}

.product-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-stock {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.in-stock {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

.product-price {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.current-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    width: 100%;
    transition: var(--transition);
    font-weight: 500;
}

.btn-add-cart:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* About Section */
.about-section {
    background-color: #f9f9f9;
}

.about-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.vision-mission {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.vision-box, .mission-box {
    flex: 1;
    min-width: 200px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.vision-box h3, .mission-box h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Testimonials Section */
.testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin: 1rem 2rem;
}

.testimonial-content {
    text-align: center;
}

.testimonial-rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Location Section */
.location-info h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.location-info h4 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.contact-list li i {
    width: 25px;
    color: var(--accent-color);
}

.contact-list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-list li a:hover {
    color: var(--accent-color);
}

.location-rating {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.location-rating .stars {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.location-rating .reviews {
    color: #6c757d;
    margin-left: 0.5rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-logo {
    max-height: 60px;
}

.footer h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent-color);
}

.footer-contact li i {
    width: 20px;
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.copyright {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float i {
    margin-right: 0.75rem;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
}

.whatsapp-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Shopping Cart Offcanvas */
.offcanvas {
    width: 350px;
}

.offcanvas-header {
    background-color: var(--primary-color);
    color: #fff;
}

.offcanvas-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.cart-items {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.cart-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 500;
    margin: 0 0.5rem;
}

.cart-item-remove {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #bd2130;
}

.empty-cart {
    padding: 2rem 0;
}

.empty-cart i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.cart-summary {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.cart-total, .cart-igv, .cart-total-amount {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-total-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-checkout:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Coffee Bean Animation */
#coffeeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption {
        bottom: 15%;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 0.5rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float i {
        margin-right: 0;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    .product-image {
        height: 200px;
    }
}