* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #FF69B4;
    --secondary-pink: #FFB6C1;
    --dark-pink: #FF1493;
    --light-pink: #FFC0CB;
    --fuschia: #FF00FF;
    --bg-color: #FFF5F7;
    --text-dark: #333;
    --text-light: #666;
    --white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mejoras para touch en móvil */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

button, .btn, .size-option {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-pink), var(--fuschia));
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
}

.search-btn {
    padding: 12px 25px;
    background-color: var(--dark-pink);
    border: none;
    border-radius: 0 25px 25px 0;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #C71585;
}

.cart-btn {
    position: relative;
    background-color: var(--white);
    color: var(--primary-pink);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--dark-pink);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.main-content .container {
    display: flex;
    gap: 30px;
}

/* Filters */
.filters {
    width: 250px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(255,105,180,0.1);
    height: fit-content;
    sticky: top;
}

.filters h3 {
    color: var(--primary-pink);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.filter-group label:hover {
    background-color: var(--light-pink);
}

.filter-group input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary-pink);
}

/* Products Section */
.products-section {
    flex: 1;
}

.products-section h2 {
    color: var(--primary-pink);
    margin-bottom: 25px;
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255,105,180,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,105,180,0.25);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: var(--light-pink);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--dark-pink);
    font-weight: bold;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-pink);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-pink);
}

.btn-secondary {
    background-color: var(--secondary-pink);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--light-pink);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    background: linear-gradient(135deg, var(--primary-pink), var(--fuschia));
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--light-pink);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-size {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--dark-pink);
    font-weight: bold;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-item-remove:hover {
    color: var(--dark-pink);
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--light-pink);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-pink);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-pink), var(--fuschia));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.checkout-btn:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--dark-pink);
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-image {
    width: 100%;
    border-radius: 15px;
}

.modal-details h2 {
    color: var(--primary-pink);
    margin-bottom: 15px;
}

.modal-price {
    font-size: 2rem;
    color: var(--dark-pink);
    font-weight: bold;
    margin-bottom: 20px;
}

.size-selector {
    margin-bottom: 20px;
}

.size-selector h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    padding: 10px 20px;
    border: 2px solid var(--secondary-pink);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option:hover {
    border-color: var(--primary-pink);
    background-color: var(--light-pink);
}

.size-option.selected {
    background-color: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo {
        flex: 1;
        min-width: 120px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .search-bar input {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .search-btn {
        padding: 10px 20px;
    }
    
    .cart-btn {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .main-content .container {
        flex-direction: column;
        padding: 0 15px;
    }
    
    /* OCULTAR FILTROS EN MÓVIL */
    .filters {
        display: none;
    }
    
    .products-section {
        width: 100%;
    }
    
    .products-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-header h3 {
        font-size: 1.2rem;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
    }
    
    .cart-item-size {
        font-size: 0.8rem;
    }
    
    .cart-total {
        font-size: 1.3rem;
    }
    
    .checkout-btn {
        padding: 12px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .modal-product {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-details h2 {
        font-size: 1.3rem;
    }
    
    .size-selector h4 {
        font-size: 1rem;
    }
    
    .size-options {
        gap: 8px;
    }
    
    .size-option {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .close-modal {
        font-size: 1.5rem;
        right: 15px;
        top: 15px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-image {
        height: 250px;
    }
}
