/* Estilos base para Perfumeria Velez */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* Header con estructura horizontal específica */
header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #FFD700;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
}

/* Menú lateral (ícono) */
.sidebar-toggle {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.sidebar-toggle:hover {
    color: #ffffff;
}

/* Navegación Inicio y Todos los perfumes */
.nav-inicio a,
.nav-perfumes a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-inicio a:hover,
.nav-perfumes a:hover {
    color: #ffffff;
}

/* Carrito (ícono) */
.cart-toggle {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.cart-toggle:hover {
    color: #ffffff;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Buscador */
.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 300px;
}

#search-input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid #FFD700;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

/* Logo y nombre */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Sidebar de filtros */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-content {
    padding: 2rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #FFD700;
}

.sidebar-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.filter-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.filter-title {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.filter-title:hover {
    color: #FFD700;
}

.filter-title i {
    transition: transform 0.3s ease;
}

.filter-title.active i {
    transform: rotate(180deg);
}

.filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-options.active {
    max-height: 300px;
    padding-top: 0.5rem;
}

.filter-options label {
    display: block;
    margin: 0.5rem 0;
    cursor: pointer;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.filter-options label:hover {
    color: #FFD700;
}

.filter-options input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #FFD700;
}

/* Precio slider */
.price-range {
    padding: 1rem 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.price-slider {
    position: relative;
    margin: 1rem 0;
}

.price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

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

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

.filter-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-secondary:hover {
    border-color: #FFD700;
    color: #FFD700;
}

/* Carrito lateral derecho */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

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

.cart-sidebar-content {
    padding: 2rem;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #FFD700;
}

.cart-sidebar-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
}

.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    margin-bottom: 2rem;
}

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

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

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: #FFD700;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.cart-item-quantity button {
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.3rem;
}

.cart-total {
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cart-total-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.checkout-form {
    margin-top: 1rem;
}

.checkout-form h4 {
    margin-bottom: 1rem;
    color: #333;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.checkout-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main content */
main {
    margin-top: 80px;
    padding-top: 2rem;
}

/* Hero Section - Carrusel principal */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFD700;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.8);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: #FFD700;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 2rem;
}

.carousel-nav.next {
    right: 2rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #FFD700;
    transform: scale(1.2);
}

/* Catálogo */
#catalogo {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#catalogo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.products-carousel {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.products-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease;
    padding: 1rem 0;
}

.product-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-brand {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-volume {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price-container {
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
}

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

.product-availability {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.available {
    color: #28a745;
}

.out-of-stock {
    color: #dc3545;
}

.add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.add-to-cart.out-of-stock {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.add-to-cart.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

/* Modal de producto */
.modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1004;
}

.close:hover {
    color: #333;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #FFD700;
    text-decoration: none;
}

.notes-section {
    margin: 2rem 0;
}

.notes-toggle button {
    background: none;
    border: none;
    color: #FFD700;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notes-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.notes-content.active {
    max-height: 300px;
    padding-top: 1rem;
}

.notes-categories {
    display: grid;
    gap: 1rem;
}

.note-category h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.note-category p {
    color: #666;
    font-style: italic;
}

.quantity-section {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.quantity-controls input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
}

.whatsapp-contact {
    margin-top: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.whatsapp-contact a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

/* Productos relacionados */
.related-products {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-products h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.related-products-carousel {
    position: relative;
    overflow: hidden;
}

.related-products-grid {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.related-products-grid .product-card {
    flex: 0 0 250px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

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

.footer-column a:hover {
    color: #FFD700;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

.legal-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 1rem;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav.prev {
        left: 1rem;
    }
    
    .carousel-nav.next {
        right: 1rem;
    }
    
    .products-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1rem;
        width: calc(100% - 2rem);
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    #catalogo {
        padding: 2rem 1rem;
    }
    
    #catalogo h2 {
        font-size: 2rem;
    }
}


/* Vista de productos en columnas (3 columnas) */
.products-grid-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .products-grid-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

/* Asegurar que las tarjetas de producto se vean bien en ambas vistas */
.products-grid-columns .product-card {
    width: 100%;
    max-width: none;
}

