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

/* Reset específico para botones */
button {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* Banda Promocional */
.promo-banner {
    background: #a4cc94;
    color: rgb(0, 0, 0);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 101;
}

.promo-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-text 30s linear infinite;
}

.promo-text {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animación al hacer hover */
.promo-banner:hover .promo-text {
    animation-play-state: paused;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
header {
    background: white;
    color: #333;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 200px;
    transition: min-height 0.3s ease, padding 0.3s ease;
    will-change: min-height, padding;
    transform: translateZ(0);
}

header.scrolled {
    min-height: 60px;
    height: auto;
    padding: 0.5rem 0;
    transform: translateZ(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transition: padding 0.3s ease, gap 0.3s ease;
}

header.scrolled .header-content {
    justify-content: space-between;
    gap: 20px;
    padding: 0 25px;
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 60px;
    position: relative;
}

/* Cuando el header está scrolleado, reorganizar el layout */
header.scrolled .header-search {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    z-index: 10;
    pointer-events: auto;
    margin: 0;
}

header.scrolled .header-search .container {
    padding: 0;
    margin: 0;
    width: auto;
}

header.scrolled .header-search .search-container {
    max-width: 400px;
    gap: 12px;
    margin: 0;
    height: 50px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 15;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    width: 400px;
    min-width: 400px;
    box-sizing: border-box;
    margin: 0 auto;
    flex: 0 0 auto;
    transform: translateZ(0);
    will-change: transform;
    transition: all 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -ms-box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -webkit-display: flex;
    -webkit-flex-direction: row;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    -webkit-flex-shrink: 0;
    -webkit-overflow: hidden;
    -webkit-margin: 0 auto;
    -webkit-flex: 0 0 auto;
    -webkit-transform: translateZ(0);
    -webkit-will-change: transform;
    -webkit-backface-visibility: hidden;
}

.header-left {
    display: flex;
    align-items: center;
    order: 1;
    transition: gap 0.3s ease;
    gap: 10px;
}

header.scrolled .header-left {
    order: 1;
    flex: 0 0 auto;
    margin-right: 0;
    gap: 15px;
    align-items: center;
    height: auto;
    display: flex;
    z-index: 20;
}

.menu-toggle,
.filters-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: font-size 0.3s ease, padding 0.3s ease;
}

header.scrolled .menu-toggle,
header.scrolled .filters-toggle {
    font-size: 1.5rem;
    padding: 10px;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    flex: 1;
    padding: 20px;
    border-radius: 15px;
    min-height: 120px;
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    will-change: opacity, transform, width, height;
}

header.scrolled .logo {
    opacity: 0;
    transform: scale(0.8) translateZ(0);
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    flex: 0;
    order: 0;
    position: absolute;
    visibility: hidden;
}

.logo-img {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    z-index: 2;
    position: relative;
}

.logo-img:hover {
    transform: scale(1.05) translateZ(0);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.cart-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
    order: 3;
    color: #333;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

header.scrolled .cart-icon {
    order: 3;
    flex: 0 0 auto;
    margin-left: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 10px;
    border-radius: 50%;
}

.cart-icon:hover {
    transform: scale(1.1) translateZ(0);
}

.cart-icon i {
    font-size: 1.5rem;
    transition: font-size 0.3s ease;
}

header.scrolled .cart-icon i {
    font-size: 1.5rem;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease, top 0.3s ease, right 0.3s ease;
}

header.scrolled .cart-count {
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    top: -2px;
    right: -2px;
    z-index: 25;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

/* Catalog Section */
.catalog {
    padding: 4rem 0;
}

.catalog h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.filters input:focus,
.filters select:focus {
    border-color: #667eea;
}

.filters input {
    min-width: 300px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #e1e8ed;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-description {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-details {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-category {
    display: inline-block;
    background-color: #e8f5e8;
    color: #27ae60;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.product-brand {
    display: inline-block;
    background-color: #f0f8ff;
    color: #4169e1;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    background: #a4cc94;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-to-cart:hover {
    transform: scale(1.05) translateZ(0);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: linear-gradient(135deg, #a4cc94 0%, #004c22 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

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

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: bold;
}

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

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #e1e8ed;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e1e8ed;
    background: #f8f9fa;
}

.cart-total {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.btn-whatsapp,
.btn-clear {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    transform: scale(1.02) translateZ(0);
}

.btn-clear {
    background: #e74c3c;
    color: white;
}

.btn-clear:hover {
    transform: scale(1.02) translateZ(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Menú Principal Sidebar */
.main-menu-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.main-menu-sidebar.open {
    left: 0;
}

.main-menu-header {
    background: white;
    color: #333;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e1e8ed;
}

.main-menu-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.close-main-menu {
    background: none;
    border: none;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-main-menu:hover {
    background-color: #f8f9fa;
}

.main-menu-content {
    flex: 1;
    padding: 0;
}

.menu-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

.menu-item-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 15px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.rewards-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
}

.gift-icon {
    background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
}

.facial-icon {
    background: linear-gradient(135deg, #f0e68c 0%, #f5deb3 100%);
    color: #8b4513;
}

.corporal-icon {
    background: linear-gradient(135deg, #ffb6c1 0%, #f0e68c 100%);
    color: #8b4513;
}

.sun-icon {
    background: linear-gradient(135deg, #ffa500 0%, #87ceeb 100%);
    color: white;
}

.nutricosmetic-icon {
    background: linear-gradient(135deg, #dda0dd 0%, #98fb98 100%);
    color: #4b0082;
}

.hair-icon {
    background: linear-gradient(135deg, #f5deb3 0%, #f0e68c 100%);
    color: #8b4513;
}

.tech-icon {
    background: linear-gradient(135deg, #87ceeb 0%, #f0f8ff 100%);
    color: #4169e1;
}

.nutrition-icon {
    background: linear-gradient(135deg, #98fb98 0%, #f0e68c 100%);
    color: #228b22;
}

.menu-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.expand-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-btn:hover {
    background-color: #e1e8ed;
}

.main-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.main-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Estilos para submenús expandidos */
.menu-item.expanded {
    background-color: #f8f9fa;
}

.menu-item.expanded .expand-btn {
    background-color: #e1e8ed;
}

/* Responsive para el menú principal */
@media (max-width: 768px) {
    .main-menu-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .main-menu-sidebar.open {
        left: 0;
    }
}

/* Filtros Sidebar */
.filters-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.filters-sidebar.open {
    right: 0;
}

.filters-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filters-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.close-filters {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.filters-content {
    padding: 1.5rem;
    flex: 1;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filters-content input,
.filters-content select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    background: white;
}

.filters-content input:focus,
.filters-content select:focus {
    border-color: #667eea;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e8ed;
    outline: none;
    -webkit-appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.price-range input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

#priceValue {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.btn-clear-filters {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn-clear-filters:hover {
    background-color: #c0392b;
}

.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.filters-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    background: #757575;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #a4cc94;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section i {
    margin-right: 10px;
    color: #a4cc94;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    text-align: center;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Botón flotante para volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #a4cc94 0%, #027228 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.back-to-top.show {
    display: flex;
}

/* Buscador del Header */
.header-search {
    background: #f8f9fa;
    padding: 1rem 0;
    border-top: 1px solid #e1e8ed;
    transition: padding 0.3s ease, background 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    will-change: padding, height, opacity;
}

header.scrolled .header-search {
    padding: 0;
    background: white;
    border-top: none;
    height: 60px;
    overflow: visible;
    opacity: 1;
    margin: 0;
    flex: 1;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
    transition: max-width 0.3s ease, gap 0.3s ease;
}

header.scrolled .search-container {
    max-width: 300px;
    gap: 8px;
}

.header-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: padding 0.3s ease, font-size 0.3s ease, border-radius 0.3s ease;
    background: white;
}

header.scrolled .header-search-input {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    height: 40px;
    border: 2px solid #e1e8ed;
}

.header-search-input:focus {
    border-color: #667eea;
}

.header-search-btn {
    background: #a4cc94;
    color: rgb(255, 255, 255);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: padding 0.3s ease, font-size 0.3s ease, border-radius 0.3s ease, min-width 0.3s ease;
    min-width: 50px;
}

header.scrolled .header-search-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    min-width: 44px;
    height: 40px;
    border: none;
}

.header-search-btn:hover {
    transform: scale(1.05) translateZ(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 15px;
    }
    
    .header-left {
        order: 1;
        align-self: flex-start;
        gap: 15px;
    }
    
    .logo {
        order: 2;
        justify-content: center;
        flex: none;
        min-height: 100px;
        padding: 15px;
    }
    
    .cart-icon {
        order: 3;
        align-self: flex-end;
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .filters-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Estilos para scroll en móviles */
    header.scrolled .header-content {
        flex-direction: row;
        gap: 0;
        padding: 0 15px;
        align-items: center;
        height: 60px;
        min-height: 60px;
    }
    
    header.scrolled .logo {
        display: none;
        position: absolute;
        visibility: hidden;
    }
    
    header.scrolled .header-search {
        display: flex;
        padding: 0;
        flex: 1;
        order: 2;
        height: 60px;
        align-items: center;
        justify-content: center;
    }
    
    header.scrolled .header-left {
        order: 1;
        flex: 0 0 auto;
        gap: 10px;
        height: 60px;
        align-items: center;
        display: flex;
    }
    
    header.scrolled .cart-icon {
        order: 3;
        flex: 0 0 auto;
        height: 60px;
        align-items: center;
        justify-content: center;
    }
    
    header.scrolled {
        min-height: 60px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 10px;
    }
}
