/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #063801;
    --text-color: #333;
    --border-color: #e0e0e0;
    --hover-color: #f5f5f5;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fafafa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header principal */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.left-icons,
.right-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.icon-btn.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.user-name {
    position: absolute;
    top: 100%;
    right: 0;
    font-size: 10px;
    color: var(--text-color);
    white-space: nowrap;
    margin-top: 2px;
    font-weight: 600;
}

.menu-btn:hover,
.icon-btn:hover {
    background: var(--hover-color);
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* ============================================
   MENÚ LATERAL IZQUIERDO
   ============================================ */

.side-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    animation: fadeIn 0.3s ease;
}

.side-menu-overlay.active {
    display: block;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.side-menu-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
}

.close-side-menu {
    background: none;
    border: none;
    font-size: 36px;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-side-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.side-menu-body {
    flex: 1;
    padding: 20px 0;
}

.side-menu-section {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.side-menu-section:last-child {
    border-bottom: none;
}

/* Usuario en el menú */
.side-menu-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--hover-color);
    border-radius: 8px;
}

.side-menu-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.side-menu-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

#sideMenuUserName {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
    text-align: left;
}

.side-menu-login-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.side-menu-login-link:hover {
    color: #094d02;
    text-decoration: underline;
}

/* Títulos de sección */
.side-menu-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #999;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

/* Lista de enlaces */
.side-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu-list li {
    margin-bottom: 5px;
}

.side-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    gap: 10px;
}

.side-menu-link:hover {
    background: var(--hover-color);
    color: var(--accent-color);
    transform: translateX(5px);
}

.side-menu-link:active {
    transform: translateX(5px) scale(0.98);
}

/* Información de contacto */
.side-menu-contact {
    margin-bottom: 20px;
}

.side-menu-contact p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Redes sociales */
.side-menu-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hover-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Botón cerrar sesión */
.side-menu-logout-btn {
    width: 100%;
    padding: 15px;
    background: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.side-menu-logout-btn:hover {
    background: #fee;
    transform: translateY(-2px);
}

/* Responsive del menú lateral */
@media (max-width: 480px) {
    .side-menu {
        width: 85%;
        left: -85%;
    }
}

.country {
    font-size: 13px;
    color: #666;
}

.logo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 3px;
    color: var(--primary-color);
}

.logo span {
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 500;
    margin-left: 8px;
    align-self: flex-end;
}

/* Menú inferior */
.bottom-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 15px;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.bottom-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.bottom-menu a:hover,
.bottom-menu a.active {
    color: var(--accent-color);
}

.bottom-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.bottom-menu a:hover::after,
.bottom-menu a.active::after {
    width: 100%;
}

/* ============================================
   SISTEMA DE BÚSQUEDA
   ============================================ */

/* Overlay de búsqueda */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2500;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    animation: fadeIn 0.3s ease;
}

.search-container {
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-color);
}

#searchInput {
    flex: 1;
    border: none;
    font-size: 20px;
    padding: 10px;
    outline: none;
    font-weight: 500;
}

#searchInput::placeholder {
    color: #ccc;
}

.close-search {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-left: 15px;
}

.close-search:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.search-filters {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

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

.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.search-suggestions {
    text-align: center;
    padding: 60px 20px;
}

.search-hint {
    color: #999;
    font-size: 16px;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.search-no-results p:first-child {
    font-size: 64px;
    margin-bottom: 20px;
}

.search-no-results h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.results-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.results-count strong {
    color: var(--accent-color);
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: var(--hover-color);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.search-result-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.result-info {
    flex: 1;
}

.result-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.result-info h4 mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.result-category {
    font-size: 12px;
    color: #666;
    text-transform: capitalize;
    margin-bottom: 8px;
}

.result-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.result-stock {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

.result-out-stock {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
}

/* ============================================
   CATÁLOGO CON FILTROS
   ============================================ */

.catalog-header {
    margin-bottom: 30px;
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.sort-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: var(--primary-color);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

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

.category-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.products-count {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--hover-color);
    border-radius: 6px;
}

.products-count strong {
    color: var(--accent-color);
    font-weight: 700;
}

.no-results {
    text-align: center;
    padding: 100px 20px;
    color: #999;
}

.no-results p:first-child {
    font-size: 80px;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.no-results p:last-of-type {
    font-size: 16px;
    margin-bottom: 30px;
}

.reset-filters-btn {
    padding: 15px 35px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn:hover {
    background: #094d02;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(/imagenes/Fondo8.jpg) no-repeat center center/cover;
    background-attachment: scroll; /* Better for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    width: 100%;
    overflow: hidden;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

/* Reduce size of the hero content box without changing font sizes */
.hero-content {
    max-width: 760px; /* narrower box */
    padding: 18px 28px; /* reduce internal spacing */
    box-sizing: border-box;
}

.hero-content h2 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 45px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.cta-button:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Productos Section */
.products-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #f5f5f5;
    width: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease, opacity 0.25s ease;
    will-change: opacity, transform;
    display: block; /* Removes bottom gap */
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    padding: 12px 30px;
    background: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.quick-view:hover {
    background: var(--accent-color);
    color: white;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-info .price {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.stock-info {
    font-size: 13px;
    color: #666;
    margin: 5px 0 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.add-to-cart-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.add-to-cart-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.add-to-cart-btn.disabled:hover {
    background: #ccc;
    transform: none;
}

/* Badge Próximamente */
.coming-soon-badge {
    position: relative;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 10;
}

.badge.out-of-stock {
    background: #e74c3c;
}

.badge.low-stock {
    background: #f39c12;
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Custom Banner */
.custom-banner {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--accent-color), #094d02);
    text-align: center;
    color: white;
}

.banner-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.banner-btn {
    display: inline-block;
    padding: 15px 45px;
    background: white;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Coming Soon Section */
.coming-soon {
    padding: 80px 0;
    background: #f9f9f9;
}

/* Newsletter */
.newsletter {
    padding: 80px 20px;
    background: var(--primary-color);
    text-align: center;
    color: white;
}

.newsletter h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 2px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 40px;
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.newsletter-form button:hover {
    background: #094d02;
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-section h4 {
    font-size: 16px;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-section .verse {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* ============================================
   MODALES
   ============================================ */

/* Modal Carrito */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: flex-end;
    animation: fadeIn 0.3s ease;
}

.cart-modal-content {
    background: white;
    width: 450px;
    max-width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-cart p:first-child {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    position: relative;
    transition: background 0.3s ease;
}

.cart-item:hover {
    background: var(--hover-color);
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.cart-item-info .size {
    font-size: 12px;
    color: #666;
    margin: 3px 0;
}

.cart-item-info .item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 5px 0 0 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-footer {
    border-top: 2px solid var(--border-color);
    padding: 25px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.checkout-btn,
.clear-cart-btn {
    width: 100%;
    padding: 15px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 4px;
}

.checkout-btn {
    background: var(--accent-color);
    color: white;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: #094d02;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.clear-cart-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

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

/* Modal Producto */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.product-modal-content {
    background: white;
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-image {
    position: relative;
}

.modal-image img {
    width: 100%;
    border-radius: 8px;
}

.modal-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.description {
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

.stock-indicator {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 25px;
}

.in-stock {
    color: #27ae60;
    font-weight: 600;
}

.out-stock {
    color: #e74c3c;
    font-weight: 600;
}

.size-selector,
.quantity-selector {
    margin-bottom: 25px;
}

.size-selector label,
.quantity-selector label {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
}

.sizes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 14px;
}

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

.size-btn.selected {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-controls input {
    width: 80px;
    padding: 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
}

.add-to-cart-modal-btn {
    width: 100%;
    padding: 18px;
    background: var(--accent-color);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    border-radius: 4px;
}

.add-to-cart-modal-btn:hover {
    background: #094d02;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.add-to-cart-modal-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.add-to-cart-modal-btn.disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* ============================================
   MODAL DE AUTENTICACIÓN
   ============================================ */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal-content {
    background: white;
    width: 500px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    margin: 0;
}

.auth-tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab:hover {
    background: var(--hover-color);
}

.auth-tab.active {
    color: var(--accent-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
}

.auth-form-container {
    padding: 40px;
}

.auth-form-container h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--primary-color);
}

.auth-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #094d02;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn span {
    font-size: 18px;
    font-weight: 700;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: var(--hover-color);
    transform: translateY(-2px);
}

.social-btn.google span {
    color: #DB4437;
}

.social-btn.facebook span {
    color: #4267B2;
}

/* Panel de Usuario */
.user-panel {
    padding: 40px;
}

.user-info {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.user-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: var(--primary-color);
}

.user-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-menu-item {
    width: 100%;
    padding: 15px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu-item:hover {
    border-color: var(--accent-color);
    background: var(--hover-color);
    transform: translateX(5px);
}

.user-menu-item.logout {
    color: #e74c3c;
    border-color: #e74c3c;
    margin-top: 20px;
}

.user-menu-item.logout:hover {
    background: #fee;
    border-color: #e74c3c;
}

/* ============================================
   NOTIFICACIONES
   ============================================ */

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 18px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-weight: 600;
    min-width: 280px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 5px solid #27ae60;
    color: #27ae60;
}

.notification-error {
    border-left: 5px solid #e74c3c;
    color: #e74c3c;
}

.notification-info {
    border-left: 5px solid #3498db;
    color: #3498db;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Disable page zoom on tablets and mobile */
    html {
        zoom: 1 !important;
    }
    
    body {
        transform: none !important;
        width: 100% !important;
    }

    .main-header {
        padding: 15px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }
    
    .logo img {
        height: 50px;
    }

    .country {
        display: none;
    }

    .bottom-menu {
        gap: 25px;
        flex-wrap: wrap;
        padding: 10px;
    }

    .bottom-menu a {
        font-size: 12px;
    }
    
    .hero-section {
        height: 400px;
        background-image: url(/imagenes/Fondo8.jpg);
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    .hero-content {
        max-width: 90%;
        padding: 15px 20px;
    }

    .hero-content h2 {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }

    .banner-content h2 {
        font-size: 28px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cart-modal-content {
        width: 100%;
        max-width: 100%;
    }

    .modal-product-details {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cart-item img {
        width: 60px;
        height: 75px;
    }

    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .search-container {
        width: 95%;
        max-height: 80vh;
    }

    #searchInput {
        font-size: 16px;
    }

    .search-filters {
        padding: 15px;
    }

    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-select {
        width: 100%;
    }

    .category-filters {
        justify-content: center;
    }

    .search-result-item img {
        width: 60px;
        height: 75px;
    }

    .auth-modal-content {
        width: 95%;
        padding: 0;
    }

    .auth-form-container {
        padding: 25px;
    }

    .social-login {
        flex-direction: column;
    }

    .user-panel {
        padding: 25px;
    }
}

/* Mobile optimization for small devices */
@media (max-width: 480px) {
    /* Ensure no zoom on mobile phones */
    html {
        zoom: 1 !important;
    }
    
    body {
        transform: none !important;
        width: 100% !important;
    }
    
    .hero-section {
        height: 300px;
        background-image: url(/imagenes/Fondo8.jpg);
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }
    
    .hero-content h2 {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .products-section {
        padding: 40px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }
    
    .product-card {
        font-size: 14px;
    }
    
    .product-info h3 {
        font-size: 13px;
    }
    
    .product-info .price {
        font-size: 14px;
    }
    
    .add-to-cart-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .quick-view {
        padding: 8px 20px;
        font-size: 11px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    /* Ensure images are fully visible on mobile */
    .product-image {
        aspect-ratio: 4/5;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
