:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --whatsapp-color: #25D366;
    --whatsapp-dark: #128C7E;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    --shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,0.175);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-color);
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    border-color: var(--whatsapp-color);
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
    color: white;
    transform: translateY(-2px);
}

.main-header .navbar {
    box-shadow: var(--shadow);
}

.main-header .navbar-brand img {
    max-height: 45px;
    filter: brightness(0) invert(1);
}

.main-header .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.main-header .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.main-header .nav-link.active {
    background-color: rgba(255,255,255,0.2);
    border-radius: 5px;
}

.search-form .form-control {
    border-radius: 20px 0 0 20px;
    border: none;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-card .card-img-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-card .card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.product-card .badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.product-card .badge {
    display: block;
    margin-bottom: 5px;
    font-size: 0.75rem;
    padding: 5px 10px;
}

.product-card .badge-new {
    background-color: var(--primary-color);
}

.product-card .badge-featured {
    background-color: #ffc107;
    color: #333;
}

.product-card .badge-free-shipping {
    background-color: var(--success-color);
}

.product-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-category {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .product-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.product-card .product-title a:hover {
    color: var(--primary-color);
}

.product-card .price-wrapper {
    margin-bottom: 1rem;
    margin-top: auto;
}

.product-card .price-usd {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card .price-cup {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.product-card .price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.product-card .card-footer {
    padding: 1rem 1.25rem;
    background: transparent;
    border-top: 1px solid var(--border-color);
}

.product-card .btn-order {
    width: 100%;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h5 {
    color: var(--dark-color);
    margin-bottom: 0;
}

.filters-sidebar {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
}

.filters-sidebar h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.filter-list a:hover,
.filter-list a.active {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.filter-list .count {
    background: var(--light-color);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 2px;
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-dark);
    color: white;
    transform: scale(1.1);
}

.main-footer {
    background-color: var(--dark-color) !important;
}

.main-footer a {
    color: white;
    text-decoration: none;
}

.main-footer a:hover {
    color: var(--primary-color);
}

#orderModal .modal-header {
    border-bottom: none;
}

#orderModal .product-summary {
    border-left: 4px solid var(--primary-color);
}

#orderModal .order-summary {
    border: 2px solid var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--secondary-color);
}

.breadcrumb-section {
    background: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-detail-img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.product-detail-img img {
    width: 100%;
    height: auto;
}

.product-detail-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.product-detail-info .category {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-detail-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-detail-info .price .cup {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: normal;
}

.variation-selector {
    margin-bottom: 1.5rem;
}

.variation-selector label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variation-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.variation-option:hover {
    border-color: var(--primary-color);
}

.variation-option.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 991px) {
    .search-form {
        width: 100%;
        margin: 1rem 0;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .product-card .price-usd {
        font-size: 1.1rem;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}
