/* assets/css/style.css */

/* ==========================================
   1. DESIGN SYSTEM & ROOT VARIABLES (Rose & Pink Theme)
   ========================================== */
:root {
    --primary-color: #db2777;       /* Logo Pink/Rose */
    --primary-hover: #be185d;       /* Darker Pink */
    --primary-light: #fbcfe8;       /* Very Light Pink */
    --secondary-color: #0f172a;     /* Slate Dark */
    --accent-color: #ec4899;        /* Vibrant Rose Accent */
    --whatsapp-color: #25d366;      /* Official WhatsApp Green */
    --whatsapp-hover: #128c7e;      /* WhatsApp dark teal */
    
    --bg-light: #fff5f7;            /* Pink-tinted very light background */
    --bg-white: #ffffff;
    --border-color: #fbcfe8;        /* Light pink border */
    
    --text-main: #334155;
    --text-muted: #64748b;
    --text-white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 1px 2px 0 rgba(219, 39, 119, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(219, 39, 119, 0.08), 0 2px 4px -1px rgba(219, 39, 119, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(219, 39, 119, 0.1), 0 4px 6px -2px rgba(219, 39, 119, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(219, 39, 119, 0.15), 0 10px 10px -5px rgba(219, 39, 119, 0.1);
}

/* ==========================================
   2. RESET, BASE STYLES & ENTRY ANIMATIONS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Smooth page load animation */
    animation: fadeInPage 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 80px 0;
    position: relative;
    /* Entry animation trigger */
    animation: fadeInUpSection 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpSection {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-center {
    text-align: center;
}

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

.hidden {
    display: none !important;
}

/* ==========================================
   3. REUSABLE BUTTONS & COMPONENTS (Rounded style)
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px; /* Fully rounded buttons */
    font-weight: 600;
    transition: var(--transition-slow);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 15px rgba(219, 39, 119, 0.4);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px) scale(1.03);
}

.btn-outline-white {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    background: transparent;
}

.btn-outline-white:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.03);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

/* ==========================================
   4. TOP PROMO BAR & NAVIGATION HEADER
   ========================================== */
.top-bar {
    background-color: var(--primary-color); /* Pink Topbar */
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    z-index: 105;
    position: relative;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%; /* Rounded Logo */
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-color);
    transition: transform 0.5s ease;
}

.brand-logo:hover img {
    transform: rotate(360deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color); /* Pink Logo */
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.05rem;
    padding: 6px 0;
    position: relative;
    transition: var(--transition-normal);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-slow);
    border-radius: 10px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Header Live Search (Rounded) */
.search-wrapper {
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #fff1f2;
    border: 1.5px solid var(--border-color);
    border-radius: 25px; /* Rounded search box */
    padding: 4px 6px 4px 18px;
    width: 260px;
    transition: var(--transition-slow);
}

.search-box:focus-within {
    background-color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.15);
    width: 300px;
}

.search-box input {
    background: transparent;
    width: 100%;
    color: var(--text-main);
}

.search-box input::placeholder {
    color: #cca6b6;
}

.search-btn {
    color: var(--primary-color);
    padding: 6px 12px;
    transition: var(--transition-fast);
}

.search-btn:hover {
    transform: scale(1.1);
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1.5px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
    z-index: 110;
    padding: 10px;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background-color: #fff1f2;
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-info {
    flex-grow: 1;
}

.search-result-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-info .price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
}

.search-result-info .category {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Cart Toggle Button */
.cart-toggle-btn {
    position: relative;
    font-size: 1.3rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff1f2;
    transition: var(--transition-slow);
    border: 1.5px solid var(--border-color);
}

.cart-toggle-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.08) rotate(-10deg);
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--accent-color);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-white);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* ==========================================
   5. LARGER HERO SLIDER SECTION (inicio.php)
   ========================================== */
.hero-slider-container {
    position: relative;
    height: 750px; /* Slider más grande */
    overflow: hidden;
    background-color: var(--secondary-color);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    color: var(--text-white);
    max-width: 700px;
    transform: translateY(40px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-subtitle {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-white);
    margin-bottom: 20px;
    background-color: rgba(219, 39, 119, 0.85); /* Pink tag background */
    padding: 6px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

.slide-title {
    font-size: 4.5rem; /* Título más grande */
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slide-text {
    font-size: 1.3rem; /* Texto más grande */
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slide-actions {
    display: flex;
    gap: 15px;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    border-radius: 50%;
    z-index: 10;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
}

.slider-control:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 30px;
}

.slider-control.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-slow);
}

.slider-dots .dot.active {
    background-color: var(--primary-color);
    transform: scale(1.4);
    width: 24px;
    border-radius: 10px; /* Pill active dot */
}

/* ==========================================
   6. VALUE PROPOSITION BENEFITS SECTION
   ========================================== */
.benefits-section {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition-slow);
    border-radius: 16px;
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-8px);
    background-color: #fff1f2;
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15) rotate(5deg);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   7. CATEGORIES GRID SECTION
   ========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.1) 60%);
    z-index: 1;
    transition: var(--transition-slow);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(219, 39, 119, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%);
}

.category-info {
    position: relative;
    z-index: 2;
    color: var(--text-white);
}

.category-info h3 {
    color: var(--text-white);
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.category-info span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.category-card:hover .category-info span {
    opacity: 1;
    transform: translateX(6px);
}

/* Span categories in grid dynamically */
.category-card:nth-child(1) { grid-column: span 3; }
.category-card:nth-child(2) { grid-column: span 3; }
.category-card:nth-child(3) { grid-column: span 2; }
.category-card:nth-child(4) { grid-column: span 2; }
.category-card:nth-child(5) { grid-column: span 2; }

/* ==========================================
   8. PRODUCT LISTINGS - 3 COLUMNS GRID (Mas grande)
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columnas por defecto para mayor tamaño */
    gap: 35px; /* Espaciado cómodo */
    margin-bottom: 50px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    /* Entrance Animation */
    animation: fadeInUpCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpCard {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: var(--shadow-sm);
}

.product-image {
    position: relative;
    aspect-ratio: 1.1/1; /* Ligeramente más ancho */
    background-color: #f8fafc;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quickview {
    width: 52px;
    height: 52px;
    background-color: var(--bg-white);
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 1.25rem;
    transition: var(--transition-slow);
}

.btn-quickview:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.15) rotate(90deg);
}

.product-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.1rem; /* Más compacto y elegante */
    font-weight: 500;   /* Estilo más fino (Medium en lugar de Bold) */
    line-height: 1.4;   /* Más espaciado entre líneas */
    margin-bottom: 10px;
    color: var(--secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.1rem;
}

.product-price {
    font-size: 1.5rem; /* Precio más grande */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    align-items: center; /* Centrar elementos verticalmente */
    gap: 12px;
    margin-top: auto;
    width: 100%;
}

.btn-add-cart {
    flex-grow: 1;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 50px;
}

/* WhatsApp icon en catálogo: redondo y sin cortar */
.btn-whatsapp-icon {
    width: 46px !important;      /* Tamaño fijo y estable */
    height: 46px !important;     /* Redondo perfecto */
    padding: 0 !important;       /* Eliminar padding heredado del .btn */
    flex-shrink: 0 !important;   /* Evita que flex lo aplaste */
    background-color: var(--whatsapp-color) !important;
    color: var(--text-white) !important;
    border-radius: 50% !important; /* Totalmente Redondo */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    transition: var(--transition-slow) !important;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2) !important;
    border: none !important;
}

.btn-whatsapp-icon:hover {
    background-color: var(--whatsapp-hover) !important;
    transform: scale(1.15) rotate(15deg) !important;
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3) !important;
}

/* ==========================================
   9. CALL TO ACTION BANNER (inicio.php)
   ========================================== */
.cta-banner {
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.3);
    z-index: 1;
}

.cta-container {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    color: var(--text-white);
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================
   10. SHOP PAGE LAYOUT & FILTERS (tienda.php)
   ========================================== */
.shop-hero-banner, .about-hero-banner, .contact-hero-banner {
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.shop-hero-banner::before, .about-hero-banner::before, .contact-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(219, 39, 119, 0.5));
    z-index: 1;
}

.shop-hero-banner .container, .about-hero-banner .container, .contact-hero-banner .container {
    position: relative;
    z-index: 2;
}

.shop-hero-banner h1, .about-hero-banner h1, .contact-hero-banner h1 {
    color: var(--text-white);
    font-size: 3.2rem;
    margin-bottom: 10px;
}

.shop-hero-banner p, .about-hero-banner p, .contact-hero-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.shop-sidebar {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.filter-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search input {
    background-color: #fff1f2;
    border: 1.5px solid var(--border-color);
    border-radius: 25px; /* Rounded input */
    padding: 12px 36px 12px 18px;
    width: 100%;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.sidebar-search input:focus {
    background-color: var(--bg-white);
    border-color: var(--primary-color);
}

.sidebar-search i {
    position: absolute;
    right: 16px;
    color: var(--primary-color);
}

.category-filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Mayor separación entre categorías */
}

.filter-category-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 12px 20px; /* Más padding interno */
    border-radius: 30px; /* Botones más redondeados */
    color: var(--text-main);
    background-color: var(--bg-white); /* Fondo blanco por defecto */
    border: 1.5px solid var(--border-color); /* Borde rosa suave */
    font-weight: 600;
    transition: var(--transition-slow);
    box-shadow: var(--shadow-sm);
}

.filter-category-btn:hover {
    background-color: #fff1f2;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-category-btn.active {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.25);
}

.count-tag {
    background-color: #fff1f2;
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.filter-category-btn.active .count-tag {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.price-range-wrapper input {
    width: 100%;
    margin-bottom: 10px;
    accent-color: var(--primary-color);
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

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

.shop-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.shop-sorting select {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 25px; /* Rounded Select */
    color: var(--text-main);
}

.no-products-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-products-found i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-products-found h3 {
    margin-bottom: 10px;
}

.no-products-found p {
    margin-bottom: 25px;
}

/* ==========================================
   11. SHOPPING CART DRAWER (partials/header.php)
   ========================================== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998; /* Z-Index extremadamente alto para evitar solapamientos */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-xl);
    z-index: 99999; /* Siempre al frente de toda la web */
    display: flex;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1.5px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.cart-close-btn {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.cart-close-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty-message {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.cart-empty-message i {
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.cart-empty-message p {
    margin-bottom: 25px;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

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

.cart-item-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
}

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

.cart-item-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    padding-right: 25px;
    color: var(--secondary-color);
}

.cart-item-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

.cart-item-qty-selector button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #fff1f2;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.cart-item-qty-selector button:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.cart-item-qty-selector span {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 15px;
    text-align: center;
}

.cart-item-remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

.cart-item-remove-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1.5px solid var(--border-color);
    background-color: #fff1f2;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.summary-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.cart-checkout-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 15px;
}

/* ==========================================
   12. PRODUCT DETAILS MODAL (Shared)
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    padding: 20px;
}

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

.modal-content {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background-color: #fff1f2;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    z-index: 10;
}

.modal-close-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1) rotate(90deg);
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image-col {
    background-color: #f8fafc;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details-col {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details-col h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-details-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.modal-quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-quantity-selector .label {
    font-weight: 600;
    color: var(--secondary-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 20px; /* Rounded quantity controls */
    background-color: #fff1f2;
    overflow: hidden;
}

.quantity-controls button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.quantity-controls button:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.quantity-controls span {
    font-weight: 700;
    width: 32px;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-actions .btn {
    flex-grow: 1;
}

/* ==========================================
   13. WHATSAPP FLOATING WIDGET (partials/whatsapp.php)
   ========================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-toggle-btn {
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    transition: var(--transition-normal);
    position: relative;
    animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-toggle-btn:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
}

.whatsapp-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-color);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

.whatsapp-chat-window {
    width: 360px;
    background-color: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 15px;
    border: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    animation: modalScaleUp 0.3s ease;
}

.whatsapp-chat-header {
    background-color: var(--whatsapp-color);
    color: var(--text-white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.whatsapp-chat-avatar {
    position: relative;
    width: 48px;
    height: 48px;
}

.whatsapp-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--text-white);
}

.active-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--whatsapp-color);
}

.whatsapp-chat-title h5 {
    color: var(--text-white);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.whatsapp-chat-title span {
    font-size: 0.75rem;
    opacity: 0.85;
}

.whatsapp-chat-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-white);
    font-size: 1.1rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.whatsapp-chat-close-btn:hover {
    opacity: 1;
}

.whatsapp-chat-body {
    background-color: #efeae2;
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.whatsapp-message.received {
    background-color: var(--bg-white);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.whatsapp-message .sender-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 4px;
}

.whatsapp-message .message-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    float: right;
    margin-top: 4px;
}

.whatsapp-chat-footer {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}

.whatsapp-chat-footer input {
    flex-grow: 1;
    background-color: #fff1f2;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.whatsapp-chat-footer input:focus {
    background-color: var(--bg-white);
    border-color: var(--whatsapp-color);
}

.whatsapp-chat-send-btn {
    width: 38px;
    height: 38px;
    background-color: var(--whatsapp-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.whatsapp-chat-send-btn:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.05);
}

/* ==========================================
   14. MOBILE NAVIGATION DRAWER (Shared)
   ========================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 180;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-xl);
    z-index: 190;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-nav-header img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
}

.mobile-nav-close-btn {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--primary-color);
}

/* ==========================================
   15. NOSOTROS & CONTACTO STYLING DETAILS
   ========================================== */
/* About Us */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-image-col img {
    width: 100%;
    border-radius: 16px;
    border: 1.5px solid var(--border-color);
}

.stat-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.stat-box:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-card {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.icon-circle {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.value-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Us */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-cards-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 16px;
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    align-items: center;
    transition: var(--transition-slow);
}

.contact-info-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-white);
}

.card-icon.whatsapp { background-color: var(--whatsapp-color); }
.card-icon.email { background-color: var(--primary-color); }
.card-icon.location { background-color: var(--secondary-color); }

.card-details h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.card-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-link {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 4px;
    display: inline-block;
}

.card-link:hover {
    text-decoration: underline;
}

.form-wrapper-card {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-wrapper-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-wrapper-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.form-group label .required {
    color: var(--accent-color);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 25px; /* Rounded form elements */
    background-color: #fff1f2;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-group textarea {
    border-radius: 16px; /* Textareas slightly less rounded but organic */
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(219, 39, 119, 0.1);
}

/* ==========================================
   16. MAIN FOOTER SECTION
   ========================================== */
.main-footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 80px 0 0 0;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2.5px;
    background-color: var(--primary-color);
}

.brand-col .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-col .footer-logo img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
}

.brand-col .logo-title {
    color: var(--text-white);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px) scale(1.08);
}

.social-link.facebook:hover { background-color: #1877f2; }
.social-link.instagram:hover { background-color: #e1306c; }
.social-link.tiktok:hover { background-color: #000000; }
.social-link.whatsapp:hover { background-color: var(--whatsapp-color); }

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-contact-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    font-size: 0.85rem;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.payment-badge-yape, .payment-badge-plin {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-badge-yape { color: #00d3b6; border-color: #00d3b6; }
.payment-badge-plin { color: #00d0fc; border-color: #00d0fc; }

/* ==========================================
   17. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .hero-slider-container { height: 600px; }
    .slide-title { font-size: 3rem; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .category-card:nth-child(1) { grid-column: span 2; }
    .category-card:nth-child(2) { grid-column: span 2; }
    .category-card:nth-child(3) { grid-column: span 2; }
    .category-card:nth-child(4) { grid-column: span 2; }
    .category-card:nth-child(5) { grid-column: span 4; }
    .products-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columns on tablet */
    .shop-layout { grid-template-columns: 260px 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: block; text-align: center; } /* Keep topbar but stack info */
    .top-bar-content { flex-direction: column; gap: 4px; }
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .search-box { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; margin-bottom: 30px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slider-container { height: 500px; }
    .slide-title { font-size: 2.2rem; }
    .slide-text { font-size: 1rem; margin-bottom: 25px; }
    .slider-control { display: none; }
    .about-intro-grid { grid-template-columns: 1fr; gap: 30px; }
    .mission-vision-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .modal-body-grid { grid-template-columns: 1fr; }
    .modal-details-col { padding: 25px; }
    .whatsapp-chat-window { width: 310px; }
    .cart-drawer { width: 100%; right: -100%; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; } /* 1 column on mobile */
    .categories-grid { grid-template-columns: 1fr; }
    .category-card { grid-column: span 1 !important; height: 180px; }
    .hero-slider-container { height: 450px; }
    .slide-title { font-size: 1.8rem; }
    .slide-actions { flex-direction: column; gap: 10px; width: 100%; }
    .slide-actions .btn { width: 100%; }
    .values-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .bottom-content { flex-direction: column; text-align: center; }
    .form-wrapper-card { padding: 20px; }
}

/* ==========================================
   18. PRODUCT DETAILS PAGE (producto.php)
   ========================================== */
.breadcrumbs-bar {
    background-color: #fff1f2;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs-bar a {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumbs-bar a:hover {
    color: var(--primary-color);
}

.breadcrumbs-bar i {
    font-size: 0.75rem;
    margin: 0 8px;
    opacity: 0.5;
}

.breadcrumbs-bar span {
    color: var(--secondary-color);
    font-weight: 600;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 60px;
}

.product-gallery-col .main-image-wrapper {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1.1/1;
}

.product-gallery-col .main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-gallery-col .main-image-wrapper:hover img {
    transform: scale(1.06);
}

.product-category-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-hover);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.product-detail-title {
    font-size: 2.2rem; /* Tamaño más balanceado */
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 600;   /* Semibold en lugar de Extra Bold 800 */
}

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

.product-rating .stars {
    color: #eab308; /* Star gold */
    font-size: 1.1rem;
}

.product-rating .rating-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-detail-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 15px;
}

.product-detail-desc {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.7;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.stock-status.in-stock {
    color: var(--whatsapp-color);
}

.product-detail-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.product-detail-quantity .qty-label {
    font-weight: 700;
    color: var(--secondary-color);
}

.rounded-qty {
    border: 1.5px solid var(--border-color);
    background-color: #fff1f2;
    border-radius: 30px; /* Fully rounded quantity control */
    overflow: hidden;
}

.product-detail-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 30px;
}

.brand-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bullet-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.bullet-item i {
    width: 44px;
    height: 44px;
    background-color: #fff1f2;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bullet-item div strong {
    display: block;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.bullet-item div span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive details page */
@media (max-width: 900px) {
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-detail-title {
        font-size: 2.2rem;
    }
}

/* ============================================================
   CART TOAST & BADGE ANIMATIONS
   ============================================================ */
.cart-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.cart-toast {
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: auto;
    transform: translateY(-50px);
    opacity: 0;
    transition: var(--transition-slow);
    border-left: 4px solid var(--primary-color);
}

.cart-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.cart-toast i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cart-count-badge.bounce {
    animation: bounceBadge 0.5s ease-out;
}

@keyframes bounceBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

