/* eStore Template Styles */

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.header-area {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-header {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-header a {
    transition: color 0.3s ease;
}

.top-header a:hover {
    color: #007bff !important;
}

.main-header {
    border-bottom: 1px solid #eee;
}

.logo h2 {
    font-weight: 700;
    letter-spacing: -1px;
}

.search-form .form-control {
    border: 2px solid #eee;
    padding: 12px 15px;
    font-size: 14px;
}

.search-form .form-select {
    border: 2px solid #eee;
    border-left: none;
    border-right: none;
}

.search-form .btn {
    border: 2px solid #007bff;
    padding: 12px 20px;
}

.header-right .btn {
    padding: 10px 15px;
    font-weight: 500;
}

/* Navigation */
.navbar {
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 100px;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 90px;
}

.navbar-brand img {
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: #8B4513 !important;
    font-weight: 700;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #C19A4A !important;
    background: rgba(193, 154, 74, 0.15);
    transform: translateY(-2px);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link i {
    margin-right: 5px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
}

.hero-slide {
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-content h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-content .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.hero-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

/* Services Section */
.services-section {
    background: #f8f9fa;
}

.service-item {
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon i {
    transition: all 0.3s ease;
}

.service-item:hover .service-icon i {
    transform: scale(1.1);
    color: #007bff !important;
}

.service-item h5 {
    color: #333;
    margin-bottom: 10px;
}

/* Categories Section */
.categories-section {
    background: #fff;
}

.section-title h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

.category-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-10px);
}

.category-image img {
    transition: all 0.3s ease;
    border: 3px solid #f8f9fa;
}

.category-item:hover .category-image img {
    border-color: #007bff;
    transform: scale(1.05);
}

.category-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Product Cards */
.product-item {
    margin-bottom: 30px;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-image {
    overflow: hidden;
    position: relative;
}

.product-image img {
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-actions .btn:hover {
    transform: translateY(-2px);
}

.product-content {
    padding: 20px;
}

.product-title a {
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #007bff !important;
}

.product-rating {
    font-size: 14px;
}

.product-price .current-price {
    font-size: 18px;
    font-weight: normal;
    color: #C19A4A !important;
    font-family: sans-serif;
}

.product-price .original-price {
    font-size: 14px;
}

/* Rating Stars */
.rating .fas.fa-star,
.rating .far.fa-star {
    font-size: 0.875rem;
}

/* Price Styling */
.price {
    font-weight: 600;
}

.price .h6,
.price .h5,
.price .text-primary {
    color: #C19A4A !important;
    font-family: sans-serif;
    font-weight: normal;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Footer */
footer {
    background-color: #212529 !important;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background-color: #007bff;
    transform: translateY(-2px);
}

/* Product Details Page */
.product-images .thumbnail-images img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.product-images .thumbnail-images img:hover {
    opacity: 1;
}

.stock-status {
    font-weight: 500;
}

/* Section Backgrounds */
.featured-products {
    background: #f8f9fa;
}

.best-sellers {
    background: #fff;
}

.special-offers {
    background: #f8f9fa;
}

/* Special Offers */
.offer-banner {
    transition: all 0.3s ease;
}

.offer-banner:hover {
    transform: translateY(-5px);
}

.offer-banner h3 {
    font-size: 24px;
}

.offer-banner .btn {
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 25px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        padding: 50px 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-form {
        margin: 20px 0;
    }
    
    .header-right {
        margin-top: 15px;
        justify-content: center !important;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .service-item {
        margin-bottom: 30px;
    }
    
    .category-item {
        margin-bottom: 30px;
    }
    
    /* Collections mobile layout - 2 columns */
    .collections-grid .collection-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .collections-grid .collection-item .product-content {
        padding: 10px 5px;
    }
    
    .collections-grid .collection-item .product-title {
        font-size: 12px;
    }
    
    .collections-grid .collection-item .product-image img {
        height: 120px;
    }
    
    /* Best Sellers mobile layout - 2 columns */
    .best-sellers-grid .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .best-sellers-grid .col-4 .product-content {
        padding: 10px 5px;
    }
    
    .best-sellers-grid .col-4 .product-title {
        font-size: 12px;
    }
    
    .best-sellers-grid .col-4 .product-image img {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero-content .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .top-header {
        text-align: center;
    }
    
    .top-header .col-md-6 {
        margin-bottom: 10px;
    }
    
    .search-form .input-group {
        flex-direction: column;
    }
    
    .search-form .form-control,
    .search-form .form-select,
    .search-form .btn {
        border-radius: 5px !important;
        border: 2px solid #eee !important;
        margin-bottom: 10px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

.whatsapp-float i {
    margin: 0;
}

/* Mobile Cart Icon */
.d-lg-none .fas.fa-shopping-cart {
    font-size: 1.2rem;
    color: #8B4513;
}

.d-lg-none .badge {
    font-size: 0.7rem;
}

/* Dropdown Submenus */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
    float: right;
    margin-top: 8px;
}

/* Mobile Sidebar */
#navbarOffcanvas .offcanvas-body {
    padding: 0;
}

#navbarOffcanvas .nav-link {
    color: #333 !important;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

#navbarOffcanvas .nav-link:hover {
    background-color: #f8f9fa;
    color: #8B4513 !important;
}

#navbarOffcanvas .nav-link i {
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    /* Mobile navbar layout */
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .navbar-toggler {
        position: absolute;
        left: 15px;
        z-index: 10;
    }
    
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    
    .nav-link.d-lg-none {
        position: absolute;
        right: 15px;
        z-index: 10;
    }
}

@media (min-width: 992px) {
    /* Desktop navbar layout - logo a la izquierda */
    .navbar-brand {
        position: static !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
    }
}