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

:root {
    --primary-color: #232f3e;
    --secondary-color: #ff9900;
    --accent-color: #131921;
    --text-color: #0f1111;
    --text-light: #565959;
    --bg-light: #f3f3f3;
    --white: #ffffff;
    --border-color: #ddd;
    --success-color: #007600;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 10px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (min-width: 1400px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Header */
.header {
    background-color: var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    width: 100%;
}

/* Primera fila: Menú, Logo, Buscador, Usuario, Carrito */
.header-row-1 {
    padding: 8px 0;
    background-color: var(--accent-color);
}

.header-row-1-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.search-bar-desktop {
    flex: 1;
    min-width: 200px;
    max-width: 900px;
    margin: 0 15px;
    display: flex;
}

@media (max-width: 1024px) {
    .search-bar-desktop {
        max-width: 500px;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .search-bar-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-row-1 {
        padding: 6px 0;
    }
}

@media (max-width: 480px) {
    .header-row-1 {
        padding: 5px 0;
    }
}

/* Segunda fila: Barra de búsqueda (solo móvil) */
.header-row-2 {
    padding: 10px 0;
    background-color: var(--accent-color);
    display: none;
}

.search-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .header-row-2 {
        display: block;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .header-row-2 {
        padding: 6px 0;
    }
}

@media (max-width: 1200px) {
    .header-row-1-content {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .header-row-1-content {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header-row-1-content {
        gap: 8px;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 3px;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

.logo {
    flex-shrink: 0;
    margin-right: 10px;
    min-width: 0;
}

@media (max-width: 1200px) {
    .logo {
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    .logo {
        flex: 1;
        min-width: 0;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        margin-right: 5px;
    }
}

.logo a {
    text-decoration: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1;
    margin-left: 2px;
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
}

/* Sección de usuario */
.header-user-section {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
}

.header-account-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
    position: relative;
    white-space: nowrap;
}

.header-account-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.account-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.account-greeting {
    font-size: 12px;
    color: var(--white);
    opacity: 0.9;
}

.account-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.account-arrow {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 8px;
    align-self: flex-start;
}

.header-returns-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
    white-space: nowrap;
    margin-right: 0;
}

.header-returns-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.returns-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.returns-label {
    font-size: 12px;
    color: var(--white);
    opacity: 0.9;
}

.returns-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

@media (max-width: 1024px) {
    .header-user-section {
        margin-right: 5px;
    }
    
    .account-greeting,
    .returns-label {
        display: none;
    }
    
    .account-text,
    .returns-text {
        font-size: 12px;
    }
    
    .header-account-link,
    .header-returns-link {
        padding: 6px 8px;
    }
}

.account-icon-mobile {
    display: none !important;
}

.account-mobile-text {
    display: none !important;
}

@media (max-width: 768px) {
    .header-returns-link {
        display: none;
    }
    
    .account-info {
        display: none !important;
    }
    
    .account-arrow {
        display: none !important;
    }
    
    .account-icon-mobile {
        display: inline-block !important;
        font-size: 18px;
        color: var(--white);
        margin-right: 5px;
    }
    
    .account-mobile-text {
        display: inline-block !important;
        font-size: 13px;
        color: var(--white);
        font-weight: 500;
    }
    
    .header-account-link {
        padding: 6px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
}

/* Asegurar que en desktop el icono esté oculto */
@media (min-width: 769px) {
    .account-icon-mobile {
        display: none !important;
    }
    
    .account-mobile-text {
        display: none !important;
    }
}

/* Account Dropdown Menu */
.header-user-section {
    position: relative;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 350px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    margin-top: 5px;
    display: none;
    pointer-events: none;
}

@media (min-width: 769px) {
    .header-user-section:hover .account-dropdown,
    .account-dropdown:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
        pointer-events: auto;
    }
    
    /* Pequeño espacio entre el botón y el dropdown para facilitar el hover */
    .header-user-section::after {
        content: '';
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        height: 5px;
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    .account-dropdown {
        display: none !important;
    }
}

.dropdown-header {
    background-color: var(--accent-color);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.dropdown-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.dropdown-user i {
    font-size: 20px;
}

.dropdown-user span {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.dropdown-section {
    padding: 15px 0;
}

.dropdown-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    padding: 0 20px;
    margin-bottom: 10px;
}

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

.dropdown-menu-list li {
    margin: 0;
}

.dropdown-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-menu-list a:hover {
    background-color: var(--bg-light);
}

.dropdown-menu-list a i {
    color: var(--text-light);
    font-size: 12px;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}

/* Scrollbar para el dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.header-cart-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding: 6px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.header-cart-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.header-cart-link i {
    font-size: 24px;
    flex-shrink: 0;
}

.cart-text {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .cart-text {
        display: none;
    }
    
    .header-cart-link {
        padding: 6px 8px;
    }
}

.search-bar {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: stretch;
    height: 40px;
    width: 100%;
}

.search-bar-desktop .search-bar {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .search-bar-desktop .search-bar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .search-bar {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        height: 36px;
    }
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-size: 14px;
    outline: none;
    background-color: var(--white);
    min-width: 0;
    border-radius: 4px 0 0 4px;
}

.search-input::placeholder {
    color: #999;
}

@media (max-width: 768px) {
    .search-input {
        padding: 9px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 8px 10px;
        font-size: 12px;
    }
}

.search-btn {
    background-color: var(--secondary-color);
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: var(--white);
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    flex-shrink: 0;
    border-left: none;
}

.search-btn:hover {
    background-color: #e68900;
}

.search-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .search-btn {
        padding: 0 18px;
        min-width: 48px;
    }
    
    .search-btn i {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .search-btn {
        padding: 0 15px;
        min-width: 45px;
    }
    
    .search-btn i {
        font-size: 14px;
    }
}

/* Autocompletado de búsqueda */
.search-bar {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 2px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--bg-light);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: var(--bg-light);
}

.suggestion-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.suggestion-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    box-sizing: border-box;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 4px;
    font-weight: 500;
    word-wrap: break-word;
}

.suggestion-name strong {
    font-weight: 700;
    color: var(--secondary-color);
}

.suggestion-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

@media (max-width: 768px) {
    .search-suggestions {
        max-height: 300px;
    }
    
    .suggestion-item {
        padding: 10px 12px;
    }
    
    .suggestion-icon {
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .suggestion-name {
        font-size: 13px;
    }
    
    .suggestion-price {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .search-suggestions {
        max-height: 250px;
    }
    
    .suggestion-item {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .suggestion-icon {
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
    
    .suggestion-name {
        font-size: 12px;
    }
    
    .suggestion-price {
        font-size: 14px;
    }
}


.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
    .badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        min-width: 18px;
        top: -4px;
        right: -4px;
    }
}

/* Navigation Bar */
.nav-bar {
    background-color: var(--primary-color);
    padding: 10px 0;
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        padding: 6px 0;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 10px;
        padding: 5px 0;
    }
    
    .nav-menu a {
        font-size: 13px;
        padding: 5px 8px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 8px;
        padding: 4px 0;
    }
    
    .nav-menu a {
        font-size: 12px;
        padding: 4px 6px;
    }
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.1);
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    overflow: visible;
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    min-height: 300px;
    padding-bottom: 45px;
    z-index: 1;
}

/* Banner Navideño - Fondo Rojo */
.banner-slide-navidad {
    background: transparent;
}

/* El fondo del slider se cambia dinámicamente con JavaScript */

.banner-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 300px;
    padding: 25px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.banner-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
    min-height: 300px;
    position: relative;
}

.banner-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s;
    position: relative;
    z-index: 1;
}

.banner-link:hover {
    opacity: 0.95;
}

.banner-link:active {
    opacity: 0.9;
}

.banner-text {
    flex: 1;
    color: var(--white);
    z-index: 3;
    position: relative;
    padding-top: 0;
    max-width: 600px;
}

.banner-text h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-offers {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.banner-offers span {
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-shipping {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.banner-shipping span {
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.banner-validity {
    font-size: 12px;
    opacity: 0.9;
}

.banner-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 400px;
    overflow: visible;
    position: relative;
    width: 50%;
    z-index: 1;
    pointer-events: none;
}

.banner-image img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 90%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.btn-banner {
    background-color: #198754;
    color: var(--white);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

.btn-banner:hover {
    background-color: #157347;
    transform: translateY(-2px);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 15;
    transition: background-color 0.3s;
}

.banner-nav:active,
.banner-nav:focus {
    outline: none;
}

.banner-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.banner-nav-prev {
    left: 20px;
}

.banner-nav-next {
    right: 20px;
}

.banner-indicators {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 25;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 0;
}

.banner-indicator.active {
    background: var(--white);
}

@media (max-width: 1024px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
        position: relative;
    }
    
    .banner-text {
        text-align: left;
        padding-top: 0;
        z-index: 3;
        position: relative;
        max-width: 100%;
    }
    
    .banner-image {
        position: relative;
        width: 100%;
        max-height: 250px;
        min-height: 180px;
        margin-top: 0;
        z-index: 1;
        overflow: visible;
    }
    
    .banner-image img {
        width: auto;
        height: auto;
        max-width: 75%;
        max-height: 90%;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .banner-slider {
        min-height: 260px;
        padding-bottom: 35px;
    }
    
    .banner-slide {
        min-height: 260px;
        padding: 18px 15px;
    }
    
    .banner-content {
        min-height: 260px;
        gap: 0;
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }
    
    .banner-text {
        order: 1;
        text-align: left;
        z-index: 3;
        position: relative;
        padding-top: 0;
    }
    
    .banner-text h2 {
        font-size: 24px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .banner-offers {
        gap: 12px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    
    .banner-offers span {
        font-size: 15px;
    }
    
    .banner-shipping {
        margin-bottom: 15px;
    }
    
    .banner-shipping span {
        font-size: 13px;
    }
    
    .banner-validity {
        font-size: 11px;
        margin-top: 5px;
    }
    
    .banner-image {
        order: 2;
        position: relative;
        width: 100%;
        max-height: 200px;
        min-height: 150px;
        margin-top: 0;
        z-index: 1;
        overflow: visible;
    }
    
    .banner-image img {
        width: auto;
        height: auto;
        max-width: 70%;
        max-height: 90%;
        object-fit: contain;
    }
    
    .banner-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .banner-nav-prev {
        left: 8px;
    }
    
    .banner-nav-next {
        right: 8px;
    }
    
    .banner-indicators {
        bottom: 35px;
        z-index: 25;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        min-height: 240px;
        padding-bottom: 32px;
    }
    
    .banner-slide {
        min-height: 240px;
        padding: 15px 12px;
    }
    
    .banner-content {
        min-height: 240px;
        gap: 0;
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }
    
    .banner-text {
        order: 1;
        text-align: left;
        z-index: 3;
        position: relative;
        padding-top: 0;
    }
    
    .banner-text h2 {
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .banner-offers {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .banner-offers span {
        font-size: 13px;
    }
    
    .banner-shipping {
        margin-bottom: 12px;
    }
    
    .banner-shipping span {
        font-size: 12px;
    }
    
    .banner-validity {
        font-size: 10px;
        margin-top: 4px;
    }
    
    .banner-image {
        order: 2;
        position: relative;
        width: 100%;
        max-height: 180px;
        min-height: 140px;
        margin-top: 0;
        z-index: 1;
        overflow: visible;
    }
    
    .banner-image img {
        width: auto;
        height: auto;
        max-width: 65%;
        max-height: 90%;
        object-fit: contain;
    }
}

@media (max-width: 360px) {
    .banner-slider {
        min-height: 260px;
        padding-bottom: 32px;
    }
    
    .banner-slide {
        min-height: 260px;
        padding: 15px 10px;
    }
    
    .banner-content {
        min-height: 260px;
    }
    
    .banner-image {
        position: relative;
        width: 100%;
        max-height: 160px;
        min-height: 120px;
        margin-top: 0;
        overflow: visible;
    }
    
    .banner-image img {
        width: auto;
        height: auto;
        max-width: 60%;
        max-height: 90%;
        object-fit: contain;
    }
    
    .banner-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .banner-nav-prev {
        left: 5px;
    }
    
    .banner-nav-next {
        right: 5px;
    }
    
    .banner-indicators {
        bottom: 32px;
        z-index: 25;
    }
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #e68900;
}

/* Products Section */
.products-section {
    padding: 40px 0;
}

@media (min-width: 1200px) {
    .products-section {
        padding: 50px 0;
    }
}

/* Secciones que se superponen sobre el slider */
.sections-overlap {
    margin-top: -100px;
    position: relative;
    z-index: 5;
    padding-top: 80px;
    pointer-events: none;
}

.sections-overlap > * {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .sections-overlap {
        margin-top: -70px;
        padding-top: 50px;
    }
}

@media (max-width: 480px) {
    .sections-overlap {
        margin-top: -50px;
        padding-top: 40px;
    }
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Grid de secciones compactas */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    align-items: start;
    min-width: 0;
}

.section-compact {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    min-width: 0;
}

.section-title-compact {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.products-grid-compact {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
    width: 100%;
    min-width: 0;
    grid-auto-flow: row;
}

@media (max-width: 1200px) {
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-compact:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-compact {
        padding: 15px;
    }
}

.products-grid-compact .product-card {
    margin: 0;
    padding: 15px;
}

.products-grid-compact .product-image {
    height: 180px;
    margin-bottom: 12px;
}

.products-grid-compact .product-info {
    padding: 0;
}

.products-grid-compact .product-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.products-grid-compact .product-rating {
    font-size: 12px;
    margin-bottom: 8px;
}

.products-grid-compact .price-current {
    font-size: 18px;
}

.products-grid-compact .product-delivery {
    font-size: 11px;
}

@media (max-width: 1200px) {
    .products-grid-compact .product-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .products-grid-compact {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .products-grid-compact .product-image {
        height: 150px;
    }
    
    .section-title-compact {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid-compact {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .products-grid-compact .product-image {
        height: 120px;
    }
    
    .products-grid-compact .product-info {
        padding: 10px;
    }
    
    .products-grid-compact .product-title {
        font-size: 13px;
    }
    
    .products-grid-compact .price-current {
        font-size: 16px;
    }
    
    .section-compact {
        padding: 12px;
    }
    
    .section-title-compact {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    height: 250px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #999;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .product-image {
        height: 200px;
        font-size: 50px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 150px;
        font-size: 40px;
        padding: 5px;
    }
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@media (max-width: 480px) {
    .product-info {
        padding: 10px;
    }
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

@media (max-width: 480px) {
    .product-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-rating .reviews-link {
    text-decoration: none;
    color: inherit;
}

.product-rating .reviews-count {
    color: #565959;
    cursor: pointer;
}

.product-rating .reviews-count:hover {
    text-decoration: underline;
}

.stars {
    color: #ffa41c;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-color);
}

@media (max-width: 480px) {
    .price-current {
        font-size: 18px;
    }
}

.price-original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background-color: #cc0c39;
    color: var(--white);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-delivery {
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
}

.prime-badge {
    color: #007600;
    font-weight: 500;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

.category-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Product Page */
.product-page {
    padding: 40px 0;
}

@media (max-width: 768px) {
    .product-page {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .product-page {
        padding: 15px 0;
    }
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-container {
        gap: 15px;
        margin-bottom: 20px;
    }
}

/* Sección de productos relacionados */
.related-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.related-products-section .section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .related-products-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .related-products-section .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .related-products-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .related-products-section .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

.product-images {
    grid-column: 1;
}

@media (max-width: 768px) {
    .product-images {
        grid-column: 1;
    }
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: #999;
    max-width: 100%;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    padding: 10px;
}

@media (max-width: 768px) {
    .main-image {
        height: 400px;
        font-size: 80px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .main-image img {
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .main-image {
        height: 350px;
        min-height: 350px;
        font-size: 50px;
        margin-bottom: 10px;
        border-radius: 4px;
    }
    
    .main-image img {
        object-fit: contain;
        object-position: center;
    }
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 5px;
}

@media (max-width: 480px) {
    .thumbnail-images {
        gap: 8px;
        padding-bottom: 3px;
    }
}

.thumbnail-images::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    font-size: 30px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    padding: 5px;
}

@media (max-width: 480px) {
    .thumbnail {
        width: 60px;
        height: 60px;
        border-radius: 3px;
    }
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
}

.product-details {
    grid-column: 2;
}

@media (max-width: 768px) {
    .product-details {
        grid-column: 1;
    }
}

.product-title-large {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.3;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .product-title-large {
        font-size: 24px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .product-title-large {
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 1.2;
    }
}

.product-brand {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .product-brand {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-rating-large .rating-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.product-rating-large .reviews-count {
    color: #007185;
    cursor: pointer;
}

.product-rating-large .reviews-count:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .product-rating-large {
        gap: 8px;
        margin-bottom: 15px;
        font-size: 13px;
    }
}

.rating-stars {
    color: #ffa41c;
    font-size: 20px;
}

@media (max-width: 480px) {
    .rating-stars {
        font-size: 16px;
    }
}

.product-price-large {
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .product-price-large {
        margin-bottom: 15px;
    }
}

.price-large {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .price-large {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .price-large {
        font-size: 24px;
    }
}

.price-info {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

@media (max-width: 480px) {
    .price-info {
        font-size: 12px;
        margin-top: 4px;
    }
}

.product-features {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .product-features {
        margin: 15px 0;
        padding: 15px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .product-features {
        margin: 12px 0;
        padding: 12px;
        border-radius: 4px;
    }
}

.product-features h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .product-features h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 8px 0;
    font-size: 14px;
}

@media (max-width: 480px) {
    .product-features li {
        padding: 6px 0;
        font-size: 13px;
        line-height: 1.4;
    }
}

.product-features li:before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 8px;
}

.product-description {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .product-description {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .product-description {
        margin-top: 15px;
    }
}

.product-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .product-description h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .product-description h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

.product-description p {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 480px) {
    .product-description p {
        font-size: 13px;
        line-height: 1.6;
    }
}

.purchase-box {
    grid-column: 3;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 100%;
}

@media (max-width: 1024px) {
    .purchase-box {
        grid-column: 1 / -1;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .purchase-box {
        grid-column: 1;
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    .purchase-box {
        padding: 12px;
        border-radius: 6px;
    }
}

.price-box {
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .price-box {
        margin-bottom: 15px;
    }
}

.delivery-info {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 4px;
}

@media (max-width: 480px) {
    .delivery-info {
        margin: 15px 0;
        padding: 12px;
        border-radius: 3px;
    }
}

.delivery-info p {
    margin: 5px 0;
    font-size: 14px;
}

@media (max-width: 480px) {
    .delivery-info p {
        margin: 4px 0;
        font-size: 12px;
        line-height: 1.4;
    }
}

.stock-info {
    color: #cc0c39;
    font-weight: 500;
    margin: 15px 0;
    font-size: 14px;
}

@media (max-width: 480px) {
    .stock-info {
        margin: 12px 0;
        font-size: 13px;
    }
}

.size-selector {
    margin: 20px 0;
}

@media (max-width: 480px) {
    .size-selector {
        margin: 15px 0;
    }
}

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

@media (max-width: 480px) {
    .size-selector label {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

.size-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s;
}

.size-selector select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.1);
}

.size-selector select:invalid {
    border-color: #cc0c39;
}

@media (max-width: 480px) {
    .size-selector select {
        padding: 8px;
        font-size: 13px;
        border-radius: 3px;
    }
}

.quantity-selector {
    margin: 20px 0;
}

@media (max-width: 480px) {
    .quantity-selector {
        margin: 15px 0;
    }
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .quantity-selector label {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

.quantity-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .quantity-selector select {
        padding: 8px;
        font-size: 13px;
        border-radius: 3px;
    }
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .action-buttons {
        gap: 8px;
        margin-top: 15px;
    }
}

.btn-add-cart {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    min-height: 44px;
}

.btn-add-cart:hover {
    background-color: #e68900;
}

@media (max-width: 480px) {
    .btn-add-cart {
        padding: 12px;
        font-size: 15px;
        border-radius: 3px;
        min-height: 48px;
    }
}

.btn-buy-now {
    background-color: #ff9900;
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    min-height: 44px;
}

.btn-buy-now:hover {
    background-color: #e68900;
}

@media (max-width: 480px) {
    .btn-buy-now {
        padding: 12px;
        font-size: 15px;
        border-radius: 3px;
        min-height: 48px;
    }
}

.btn-wishlist {
    background-color: transparent;
    color: var(--text-color);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.btn-wishlist:hover {
    background-color: var(--bg-light);
}

.btn-wishlist.active {
    background-color: #ffe6e6;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

@media (max-width: 480px) {
    .btn-wishlist {
        padding: 10px;
        font-size: 14px;
        border-radius: 3px;
        min-height: 44px;
        gap: 6px;
    }
    
    .btn-wishlist i {
        font-size: 16px;
    }
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
}

@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.cart-items {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 10px;
        padding: 15px 0;
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100%;
    height: 150px;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #999;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    padding: 5px;
}

@media (max-width: 768px) {
    .cart-item-image {
        height: 120px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .cart-item-image {
        height: 80px;
        font-size: 25px;
    }
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.cart-item-size {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

@media (max-width: 480px) {
    .cart-item-size {
        font-size: 13px;
        margin-top: 4px;
    }
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .cart-item-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
    width: fit-content;
    min-width: 100px;
}

@media (max-width: 480px) {
    .quantity-controls {
        width: 100%;
        justify-content: space-between;
    }
}

.quantity-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-color);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #cc0c39;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    padding: 5px 0;
}

.remove-btn:hover {
    text-decoration: underline;
}

.cart-summary {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
    width: 100%;
}

@media (max-width: 1024px) {
    .cart-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    .cart-summary {
        padding: 15px;
    }
}

.summary-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.summary-total {
    font-size: 20px;
    font-weight: bold;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.checkout-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #e68900;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Wishlist Page */
.wishlist-page {
    padding: 40px 0;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wishlist-title {
    font-size: 32px;
    color: var(--text-color);
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

.wishlist-item {
    position: relative;
}

.remove-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 10;
    color: #cc0c39;
    font-size: 18px;
    transition: background-color 0.3s;
}

.remove-wishlist:hover {
    background-color: #ffe6e6;
}

.empty-wishlist {
    text-align: center;
    padding: 60px 20px;
}

.empty-wishlist-icon {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-wishlist h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.empty-wishlist p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Categories Page */
.categories-page {
    padding: 40px 0;
}

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

.category-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-count {
    color: var(--text-light);
    font-size: 14px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

@media (max-width: 480px) {
    .filters {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

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

/* Sidebar Menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para móviles */
    background-color: var(--white);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

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

.sidebar-header {
    background-color: var(--accent-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.sidebar-user i {
    font-size: 20px;
}

.sidebar-user span {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.sidebar-close:hover {
    opacity: 0.7;
}

.sidebar-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 40px; /* Espacio suficiente para que el último elemento sea visible */
    min-height: 0; /* Permite que el flex funcione correctamente */
}

.sidebar-section {
    padding: 20px 0;
}

.sidebar-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    padding: 0 20px;
    margin-bottom: 10px;
}

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

.sidebar-menu-list li {
    margin: 0;
}

.sidebar-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    min-height: 44px; /* Tamaño mínimo de toque recomendado para accesibilidad */
    box-sizing: border-box;
}

.sidebar-menu-list a:hover {
    background-color: var(--bg-light);
}

.sidebar-menu-list a i {
    color: var(--text-light);
    font-size: 12px;
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0;
}

/* Asegurar que la última sección tenga suficiente espacio */
.sidebar-section:last-child {
    padding-bottom: 20px;
}

/* Mejorar el último elemento del menú para mejor accesibilidad */
.sidebar-menu-list li:last-child a {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .sidebar-menu {
        width: 300px;
        max-width: 90vw;
        height: 100dvh; /* Asegurar altura dinámica en móviles pequeños */
    }
    
    .sidebar-content {
        padding-bottom: 50px; /* Más padding en móviles para asegurar visibilidad */
    }
    
    .sidebar-menu-list a {
        padding: 14px 20px; /* Ligeramente más padding en móviles para mejor usabilidad */
        font-size: 15px; /* Texto ligeramente más grande para mejor legibilidad */
        min-height: 48px; /* Tamaño mínimo de toque recomendado */
        display: flex;
        align-items: center;
    }
    
    .sidebar-section-title {
        font-size: 17px; /* Título más grande para mejor legibilidad */
        padding: 0 20px;
        margin-bottom: 12px;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* Animaciones y transiciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.3s ease;
}

/* Mejoras visuales */
.product-card:active {
    transform: scale(0.98);
}

.btn-primary:active,
.btn-add-cart:active,
.btn-buy-now:active {
    transform: scale(0.95);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Prevenir desbordamiento horizontal */
* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Asegurar que el contenido del producto no se desborde */
.product-container > * {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Mejorar el espaciado en móviles muy pequeños */
@media (max-width: 360px) {
    .product-page {
        padding: 10px 0;
    }
    
    .product-container {
        gap: 12px;
    }
    
    .main-image {
        height: 220px;
        font-size: 40px;
    }
    
    .product-title-large {
        font-size: 18px;
    }
    
    .price-large {
        font-size: 22px;
    }
    
    .purchase-box {
        padding: 10px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .purchase-box {
        grid-column: 1 / -1;
        position: relative;
        top: 0;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .header-row-1-content {
        flex-wrap: nowrap;
        align-items: center;
        padding: 6px 0;
        gap: 8px;
    }
    
    .menu-toggle {
        order: 1;
        flex-shrink: 0;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
        margin-right: 8px;
        order: 2;
        overflow: hidden;
    }
    
    .logo a {
        align-items: flex-start;
    }
    
    .logo h1 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .header-user-section {
        order: 3;
        margin-left: auto;
        margin-right: 5px;
        flex-shrink: 0;
    }
    
    .header-cart-link {
        order: 4;
        flex-shrink: 0;
    }
    
    .search-bar-desktop {
        display: none;
    }
    
    .search-bar {
        width: 100%;
        max-width: 100%;
        height: 38px;
    }
    
    .nav-menu {
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .hero-banner {
        padding: 50px 20px;
    }
    
    .banner-content h2 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-image {
        height: 350px;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }
    
    .cart-item-image {
        height: 120px;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
    
    .product-details {
        padding: 0;
    }
    
    .product-features {
        padding: 15px;
    }
    
    .thumbnail-images {
        gap: 8px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-images {
        grid-column: 1;
    }
    
    .product-details {
        grid-column: 1;
    }
    
    .purchase-box {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 10px;
    }
    
    .header-row-1 {
        padding: 5px 0;
    }
    
    .header-row-1-content {
        gap: 6px;
        padding: 5px 0;
    }
    
    .menu-toggle {
        padding: 6px 10px;
        font-size: 18px;
    }
    
    .logo {
        margin-right: 5px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .logo-subtitle {
        font-size: 9px;
    }
    
    .header-user-section {
        gap: 5px;
        margin-right: 5px;
    }
    
    .header-user-link,
    .header-account-link,
    .header-cart-link {
        padding: 5px 6px;
    }
    
    .user-location {
        font-size: 12px;
    }
    
    .header-account-link i {
        font-size: 16px;
    }
    
    .header-cart-link i {
        font-size: 20px;
    }
    
    .badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        min-width: 16px;
        top: -4px;
        right: -4px;
    }
    
    .header-row-2 {
        padding: 5px 0;
    }
    
    .search-bar {
        height: 36px;
    }
    
    .search-input {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .search-btn {
        padding: 0 12px;
        min-width: 42px;
    }
    
    .search-btn i {
        font-size: 14px;
    }
    
    .nav-bar {
        padding: 8px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .product-image {
        height: 150px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .hero-banner {
        padding: 30px 15px;
    }
    
    .banner-content h2 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .banner-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .products-section {
        padding: 30px 0;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
    }
    
    .cart-item-image {
        height: 80px;
        font-size: 25px;
    }
    
    .cart-item-title {
        font-size: 16px;
    }
    
    .cart-item-price {
        font-size: 16px;
    }
    
    .product-title-large {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .main-image {
        height: 250px;
    }
    
    .price-large {
        font-size: 24px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        padding: 12px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .btn-wishlist {
        padding: 10px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .product-images,
    .product-details,
    .purchase-box {
        grid-column: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .wishlist-title {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 13px;
        margin-bottom: 15px;
        padding: 8px 0;
    }
    
    .breadcrumb .separator {
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        margin-bottom: 12px;
        padding: 6px 0;
    }
    
    .breadcrumb .separator {
        margin: 0 5px;
    }
}

/* Sistema de Popups Personalizado */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.custom-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-popup-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.custom-popup-container.active {
    transform: scale(1) translateY(0);
}

.custom-popup-content {
    padding: 30px;
    text-align: center;
}

.custom-popup-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
    color: var(--white);
}

.custom-popup-icon.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.custom-popup-icon.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.custom-popup-icon.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.custom-popup-icon.info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.custom-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.custom-popup-message {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    word-wrap: break-word;
}

.custom-popup-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-popup-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-popup-btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e68900 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.custom-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.custom-popup-btn-primary:active {
    transform: translateY(0);
}

.custom-popup-btn-confirm {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e68900 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.custom-popup-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.custom-popup-btn-confirm:active {
    transform: translateY(0);
}

.custom-popup-btn-cancel {
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.custom-popup-btn-cancel:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

.custom-popup-btn-cancel:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .custom-popup-container {
        max-width: 90%;
        border-radius: 10px;
    }
    
    .custom-popup-content {
        padding: 25px 20px;
    }
    
    .custom-popup-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 18px;
    }
    
    .custom-popup-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .custom-popup-message {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .custom-popup-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-popup-btn {
        width: 100%;
        min-width: 0;
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .custom-popup-overlay {
        padding: 15px;
    }
    
    .custom-popup-container {
        max-width: 95%;
        border-radius: 8px;
    }
    
    .custom-popup-content {
        padding: 20px 15px;
    }
    
    .custom-popup-icon {
        width: 55px;
        height: 55px;
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .custom-popup-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .custom-popup-message {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .custom-popup-btn {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* Estilos para imágenes de pedidos y comprar de nuevo */
.order-item-image,
.buy-again-image {
    width: 100%;
    height: 120px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #999;
    overflow: hidden;
}

.order-item-image img,
.buy-again-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .order-item-image,
    .buy-again-image {
        height: 100px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .order-item-image,
    .buy-again-image {
        height: 80px;
        font-size: 25px;
    }
}

