/* Header */
header {
    position: sticky; top: 0; background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 60px; display: flex; align-items: center;
}
.navbar {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-weight: 600; font-size: 1.3rem; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 8px;
}
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-size: 0.9rem; color: var(--text-light); transition: 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.cart-icon-wrap { position: relative; cursor: pointer; padding: 5px; }
.cart-count {
    position: absolute; top: -2px; right: -5px; background: var(--danger); color: white;
    font-size: 0.7rem; width: 16px; height: 16px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-weight: 600;
}

/* Hero */
.hero {
    position: relative; height: 85vh; background: #000;
    overflow: hidden; margin-bottom: 40px;
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s;
    display: flex; align-items: center; justify-content: center;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); position: absolute; }
.slide-content { position: relative; z-index: 2; color: white; text-align: center; }
.slide-content h2 { font-size: 4rem; margin-bottom: 10px; font-weight: 700; }
.slide-content p { font-size: 1.5rem; font-weight: 300; }

/* Productos */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px; padding-bottom: 60px;
}
.product-card {
    background: var(--bg-card); border-radius: 18px; padding: 25px;
    text-align: center; transition: 0.3s; cursor: pointer; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; justify-content: space-between;
    height: 100%; border: 1px solid transparent; position: relative; overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg);
    border-color: rgba(0,0,0,0.05);
}
.product-card img {
    height: 200px; width: 100%; object-fit: contain;
    margin-bottom: 20px; transition: transform 0.4s;
}
.product-card:hover img { transform: scale(1.05); }
.product-card h3 { font-size: 1.1rem; margin-bottom: 5px; font-weight: 600; }

/* Etiquetas */
.category-tag {
    font-size: 0.75rem; color: var(--accent); background: #f0f8ff;
    padding: 4px 8px; border-radius: 10px; display: inline-block; margin-bottom: 8px;
}
.discount-badge { 
    position: absolute; top: 15px; left: 15px; background: var(--danger);
    color: white; font-size: 0.8rem; font-weight: 700;
    padding: 4px 8px; border-radius: 6px; z-index: 10;
}
.price-container { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.old-price { text-decoration: line-through; color: var(--text-light); font-size: 0.9rem; }
.current-price { font-weight: 600; font-size: 1.1rem; color: var(--text-main); }

/* Cupón Area (En sidebar) */
.coupon-area { margin-bottom: 20px; padding: 15px; background: #f5f5f7; border-radius: 12px; }
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid #ddd; }
.coupon-msg { font-size: 0.8rem; margin-top: 5px; display: block; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }

/* Modal Producto Grande */
.modal-image-col {
    flex: 1.2; background: #fbfbfd; display: flex; align-items: center; justify-content: center;
    padding: 40px; position: relative;
}
.modal-image-col img { max-height: 450px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.modal-info-col {
    flex: 1; padding: 50px; display: flex; flex-direction: column;
    justify-content: center; position: relative; overflow-y: auto;
}
.modal-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; line-height: 1.1; }
.modal-price { font-size: 1.8rem; font-weight: 600; margin-bottom: 25px; color: var(--text-main); }
.modal-desc { color: var(--text-light); line-height: 1.6; margin-bottom: 40px; font-size: 1rem; white-space: pre-wrap; }
.modal-actions .btn-primary { width: 100%; padding: 18px; font-size: 1.1rem; border-radius: 12px; }

/* --- NUEVO: ESTILOS PÁGINA PRODUCTO --- */
.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }

.product-detail-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px;
    background: white; padding: 40px; border-radius: 24px; box-shadow: var(--shadow-sm);
    min-height: 500px; margin-bottom: 60px;
}

/* Galería */
.product-gallery { display: flex; gap: 20px; height: 500px; }
.gallery-thumbs { 
    display: flex; flex-direction: column; gap: 10px; width: 80px; 
    overflow-y: auto; padding-right: 5px; 
}
.thumb-img { 
    width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid #eee; 
    border-radius: 8px; cursor: pointer; transition: 0.2s; 
}
.thumb-img:hover, .thumb-img.active { border-color: var(--accent); }
.main-image-container { 
    flex: 1; display: flex; align-items: center; justify-content: center; 
    background: #fbfbfd; border-radius: 16px; overflow: hidden;
}
.main-image-container img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* Info Producto */
.product-info-col { display: flex; flex-direction: column; }
.pd-category { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.pd-title { font-size: 2.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 15px; }
.pd-price { font-size: 2rem; font-weight: 600; color: var(--text-main); margin-bottom: 20px; }
.pd-stock { margin-bottom: 20px; font-size: 0.9rem; }
.pd-stock.ok { color: var(--success); }
.pd-stock.no { color: var(--danger); }

.pd-colors { margin-bottom: 30px; }
.pd-colors label { font-weight: 600; display: block; margin-bottom: 8px; font-size: 0.9rem; }
.color-options { display: flex; gap: 10px; }
.color-circle { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; cursor: pointer; transition: 0.2s; }
.color-circle:hover { transform: scale(1.1); }

.pd-actions { display: flex; gap: 15px; margin-bottom: 30px; }
.pd-actions button { flex: 1; }

.pd-description { 
    margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; 
    color: var(--text-light); line-height: 1.6; 
}

@media (max-width: 768px) {
    .product-detail-grid { grid-template-columns: 1fr; padding: 20px; }
    .product-gallery { flex-direction: column-reverse; height: auto; }
    .gallery-thumbs { flex-direction: row; width: 100%; height: 80px; overflow-x: auto; }
    .main-image-container { height: 300px; }
    .modal-content { flex-direction: column; height: auto; overflow-y: scroll; padding: 0; }
    .modal-image-col { padding: 20px; }
    .modal-image-col img { max-height: 250px; }
    .modal-info-col { padding: 30px; }
    .hero h1 { font-size: 2.5rem; }
    .navbar { padding: 0 15px; }
}
