@charset "UTF-8";
/* CSS Document - MilaFlowers Unified Stylesheet */

/* ==========================================================================
   1. Reglas Globales y Base
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #1A1A1A;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Structural Wrappers */
.catalog-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   2. Componentes de Cabecera (Headers & Logo)
   ========================================================================== */
.catalog-header, 
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #EAEAEA;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Area (Compartido) */
.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    margin: 0;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8A8A8A;
    margin-top: 4px;
}

/* Elementos de Navegación del Catálogo */
.user-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 0 16px 0 0;
    border-right: 1px solid #EAEAEA;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #1A1A1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i { 
    color: white; 
    font-size: 1rem; 
}

.user-details { 
    text-align: right; 
    margin-right: 8px; 
}

.user-name { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: #1A1A1A; 
}

.user-email { 
    font-size: 0.7rem; 
    color: #8A8A8A; 
}

.btn-login-header, 
.btn-logout-header {
    background: none;
    border: 1px solid #1A1A1A;
    padding: 8px 20px;
    border-radius: 0px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1A1A1A;
}

.btn-login-header:hover, 
.btn-logout-header:hover {
    background: #1A1A1A;
    color: white;
}

.header-buttons {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.btn-nav {
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1A1A1A;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    padding: 4px 0;
}

.btn-nav:hover { 
    border-bottom-color: #1A1A1A; 
}

/* Botón Regresar (Detalle) */
.btn-back {
    background: none;
    border: 1px solid #1A1A1A;
    padding: 8px 20px;
    border-radius: 0px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #1A1A1A;
    color: white;
}

/* Breadcrumb (Detalle) */
.breadcrumb {
    margin-bottom: 32px;
    font-size: 0.7rem;
    color: #8A8A8A;
}

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

.breadcrumb a:hover {
    color: #1A1A1A;
}

/* ==========================================================================
   3. Vista de Catálogo (Filtros y Grid Masonry)
   ========================================================================== */
.filters-card {
    background: transparent;
    padding: 0 0 24px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid #EAEAEA;
}

.filters-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.search-input, 
.filter-select select, 
.custom-select select {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0px;
    padding: 10px 16px;
    font-size: 0.8rem;
    font-family: inherit;
}

.search-input:focus, 
.filter-select select:focus, 
.custom-select select:focus {
    border-color: #1A1A1A;
    outline: none;
}

/* Grid Estilo Pinterest / Masonry */
.products-grid {
    column-count: 4;
    column-gap: 32px;
    margin-bottom: 60px;
}

.product-card {
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 32px;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 100%;
}

.product-card:hover { 
    transform: translateY(-4px); 
}

.product-image-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    background: #F5F5F5;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.product-badge-destacado {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1A1A1A;
    color: white;
    padding: 4px 12px;
    font-size: 0.6rem;
    font-weight: 500;
    z-index: 5;
}

.product-badge-descuento {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #D32F2F;
    color: white;
    padding: 4px 12px;
    font-size: 0.6rem;
    font-weight: 500;
    z-index: 5;
}

.btn-add-cart-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px; /* Completado para evitar cortes visuales */
}

/* ==========================================================================
   4. Vista de Detalle de Producto
   ========================================================================== */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F5F5F5;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: #F5F5F5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail.active {
    border-color: #1A1A1A;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detalle {
    padding: 0;
}

.product-title-detalle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.product-price-detalle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.price-original-detalle {
    text-decoration: line-through;
    color: #8A8A8A;
    font-size: 1rem;
    margin-right: 12px;
}

.price-promo-detalle {
    color: #D32F2F;
}

.promo-range {
    background: #F8F8F8;
    padding: 10px 16px;
    margin-bottom: 24px;
    font-size: 0.75rem;
    color: #D32F2F;
    border-left: 2px solid #D32F2F;
}

.promo-range i {
    margin-right: 8px;
    color: #D32F2F;
}

.product-type-detalle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5F5F5;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 24px;
}

.product-type-detalle i {
    font-size: 0.8rem;
}

/* Bloques de Información */
.info-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #EAEAEA;
}

.info-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A1A;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section h4 i {
    color: #8A8A8A;
    font-size: 0.8rem;
}

.info-section-content {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4A4A4A;
}

.cuidados-section {
    background: #F8F9FA;
    padding: 20px;
    margin: 20px 0;
    border-left: 2px solid #0FC2C0;
}

.cuidados-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A1A;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cuidados-section h4 i {
    color: #0FC2C0;
}

.cuidados-section p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #4A4A4A;
}

.flores-list, 
.ocasiones-list, 
.especificaciones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flor-item, 
.ocasion-item, 
.especificacion-item {
    background: #F5F5F5;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: #1A1A1A;
}

.especificacion-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Botones de Acción Detalle */
.btn-add-cart-detalle {
    width: 100%;
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart-detalle:hover {
    background: #333333;
}

.btn-whatsapp-detalle {
    width: 100%;
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-whatsapp-detalle:hover {
    background: #333333;
}

.stock-info {
    margin: 16px 0;
    padding: 12px;
    background: #F8F8F8;
    text-align: center;
    font-size: 0.75rem;
}

.stock-info i {
    margin-right: 6px;
}

.stock-disponible { color: #48bb78; }
.stock-consultar { color: #f59e0b; }

/* Productos Relacionados */
.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #EAEAEA;
}

.related-products h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
}

.related-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F5F5F5;
    overflow: hidden;
    margin-bottom: 12px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.03);
}

.related-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.related-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1A1A1A;
}

/* ==========================================================================
   5. Componentes Globales Dinámicos (Carrito y Chatbot Flotantes)
   ========================================================================== */
/* Carrito Flotante y Panel */
.cart-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1A1A1A;
    width: 55px;
    height: 55px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    transition: transform 0.2s;
}

.cart-button:hover { transform: scale(1.05); }
.cart-button i { font-size: 1.3rem; color: white; }

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #D32F2F;
    color: white;
    font-size: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -550px;
    width: 550px;
    height: 100vh;
    background: white;
    z-index: 300;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid #EAEAEA;
}

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

.cart-header {
    padding: 14px 20px;
    background: #1A1A1A;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

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

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #F0F0F0;
    align-items: center;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    background: #F5F5F5;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details { flex: 1; }
.cart-item-title { font-size: 0.8rem; font-weight: 600; }
.cart-item-price { font-size: 0.7rem; color: #1A1A1A; margin: 4px 0; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-qty-btn { width: 24px; height: 24px; background: #F5F5F5; border: none; cursor: pointer; font-weight: bold; }
.cart-remove { color: #D32F2F; cursor: pointer; font-size: 0.7rem; margin-left: 8px; }

.cart-footer { padding: 16px; border-top: 1px solid #EAEAEA; background: white; }
.cart-subtotal, .cart-total { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.85rem; }
.cart-total { font-weight: 700; font-size: 1rem; margin-top: 8px; padding-top: 8px; border-top: 1px solid #EAEAEA; }
.cart-empty { text-align: center; padding: 40px; color: #8A8A8A; }

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 250;
    display: none;
}
.cart-overlay.show { display: block; }

/* Chatbot Inteligente */
.chat-widget-button {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 55px;
    height: 55px;
    background: #1A1A1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    border: 2px solid white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chat-widget-button:hover { transform: scale(1.05); background: #333333; }
.chat-widget-button i { font-size: 1.3rem; color: white; }

.chat-widget-panel {
    position: fixed;
    bottom: 90px;
    left: 25px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 250;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #EAEAEA;
}

.chat-widget-panel.open { display: flex; }
.chat-widget-header { background: #1A1A1A; color: white; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-widget-header h3 { font-size: 0.9rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.chat-widget-header h3 i { color: white; font-size: 1rem; }

.chat-widget-close { background: none; border: none; color: white; cursor: pointer; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.chat-widget-close:hover { background: rgba(255,255,255,0.2); }
.chat-widget-close i { font-size: 1rem; color: white; }

.chat-widget-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #F8F8F8; }
.chat-widget-message { display: flex; gap: 10px; max-width: 85%; }
.chat-widget-message.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-widget-message.bot { align-self: flex-start; }

.chat-widget-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-widget-message.user .chat-widget-avatar { background: #1A1A1A; }
.chat-widget-message.bot .chat-widget-avatar { background: #8A8A8A; }
.chat-widget-avatar i { font-size: 0.9rem; color: white; }

.chat-widget-bubble { background: white; padding: 10px 14px; border-radius: 18px; font-size: 0.75rem; line-height: 1.4; color: #1A1A1A; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.chat-widget-message.user .chat-widget-bubble { background: #1A1A1A; color: white; border-radius: 18px 18px 4px 18px; }
.chat-widget-message.bot .chat-widget-bubble { border-radius: 18px 18px 18px 4px; border: 1px solid #EAEAEA; }

.chat-widget-time { font-size: 0.55rem; color: #8A8A8A; margin-top: 4px; display: block; }

/* Animación de Escritura (Typing) */
.chat-widget-typing { display: flex; gap: 4px; padding: 10px 14px; background: white; border: 1px solid #EAEAEA; border-radius: 18px; }
.chat-widget-typing span { width: 6px; height: 6px; background: #8A8A8A; border-radius: 50%; animation: typing 1.4s infinite; }
.chat-widget-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-widget-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-widget-input-area { padding: 12px; border-top: 1px solid #EAEAEA; display: flex; gap: 10px; background: white; }
.chat-widget-input-area input { flex: 1; padding: 10px 14px; border: 1px solid #E0E0E0; border-radius: 30px; font-size: 0.75rem; font-family: 'Inter', sans-serif; outline: none; }
.chat-widget-input-area input:focus { border-color: #1A1A1A; }
.chat-widget-input-area button { background: #1A1A1A; border: none; width: 38px; height: 38px; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.chat-widget-input-area button i { font-size: 0.9rem; color: white; margin: 0; }
.chat-widget-input-area button:hover { background: #333333; transform: scale(1.02); }

.chat-widget-suggestions { padding: 10px 12px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid #EAEAEA; background: white; }
.suggestion-chip { background: #F5F5F5; padding: 6px 12px; font-size: 0.65rem; cursor: pointer; color: #1A1A1A; border: none; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.suggestion-chip i { font-size: 0.65rem; }
.suggestion-chip:hover { background: #1A1A1A; color: white; }
.suggestion-chip:hover i { color: white; }

.chat-vote-buttons { display: flex; gap: 12px; margin-top: 8px; }
.vote-btn { background: transparent; border: 1px solid #E0E0E0; cursor: pointer; font-size: 0.6rem; padding: 4px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; color: #8A8A8A; transition: all 0.2s; }
.vote-btn i { font-size: 0.6rem; }
.vote-btn:hover { background: #F5F5F5; }
.vote-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vote-positive:hover { border-color: #48bb78; color: #48bb78; }
.vote-negative:hover { border-color: #f56565; color: #f56565; }

.chat-notification { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; background: #f56565; border-radius: 50%; border: 2px solid white; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Estado de Carga / Errores */
.loader-container, 
.error-container {
    text-align: center;
    padding: 60px;
}

/* ==========================================================================
   6. Footer (Compartido)
   ========================================================================== */
.catalog-footer {
    text-align: center;
    padding: 40px 20px 30px;
    margin-top: 60px;
    border-top: 1px solid #EAEAEA;
}

.footer-notes {
    max-width: 800px;
    margin: 0 auto 24px auto;
    padding: 20px;
    background: #F8F8F8;
}

.footer-notes h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: #1A1A1A;
}

.footer-notes-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-note-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #6C6C6C;
}

.footer-note-item i {
    color: #8A8A8A;
    font-size: 0.8rem;
}

.footer-copyright {
    font-size: 0.65rem;
    color: #8A8A8A;
}


/* ==========================================================================
   7. Estilos específicos del Catálogo (no estaban en el CSS original)
   ========================================================================== */

/* Productos - Grid Masonry */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.products-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1A1A1A;
}

.product-counter {
    background: transparent;
    font-size: 0.7rem;
    color: #8A8A8A;
}

/* Tarjeta de producto */
.product-info {
    padding: 0;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 4px;
    text-decoration: none;
}

.product-title a {
    text-decoration: none;
    color: #1A1A1A;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #8A8A8A;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.price-original {
    text-decoration: line-through;
    color: #8A8A8A;
    font-size: 0.8rem;
    margin-right: 8px;
}

.price-promo {
    color: #D32F2F;
}

.product-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 400;
    color: #8A8A8A;
    margin-bottom: 12px;
    border: none;
}

.product-type-tag i {
    font-size: 0.8rem;
    color: #8A8A8A;
}

/* Promo date badge */
.promo-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    padding: 0;
    font-size: 0.6rem;
    font-weight: 400;
    color: #8A8A8A;
    margin-bottom: 8px;
    border: none;
}

.promo-date-badge i {
    color: #D32F2F;
    font-size: 0.7rem;
}

/* Sección de flores */
.product-flores-section {
    margin: 12px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.section-header i {
    color: #8A8A8A;
    font-size: 0.7rem;
}

.section-header span {
    font-size: 0.6rem;
    color: #8A8A8A;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flores-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.flor-tag {
    background: #F5F5F5;
    padding: 4px 10px;
    font-size: 0.6rem;
    color: #1A1A1A;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flor-tag i {
    font-size: 0.7rem;
    color: #8A8A8A;
}

/* Sección de ocasiones (Ideal para) */
.product-occasions {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid #EAEAEA;
    border-bottom: 1px solid #EAEAEA;
}

.product-occasions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-occasions-header i {
    color: #f59e0b;
    font-size: 0.7rem;
}

.product-occasions-header span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-occasions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.occasion-chip {
    background: #F5F5F5;
    padding: 5px 12px;
    font-size: 0.7rem;
    color: #1A1A1A;
    border-radius: 0px;
    font-weight: 500;
}

/* Descripción y meta */
.product-description {
    font-size: 0.75rem;
    color: #6C6C6C;
    line-height: 1.4;
    margin: 12px 0;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #EAEAEA;
    padding-top: 12px;
    margin-top: 8px;
}

.product-stock {
    font-size: 0.6rem;
    color: #8A8A8A;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-stock i {
    font-size: 0.7rem;
}

.btn-whatsapp {
    background: #1A1A1A;
    color: white;
    border-radius: 0px;
    padding: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    display: block;
    text-decoration: none;
    margin-top: 12px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-whatsapp:hover {
    background: #333333;
}

/* Overlay del botón agregar al carrito */
.btn-add-cart-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    border: 1px solid #EAEAEA;
    z-index: 10;
}

.product-card:hover .btn-add-cart-overlay {
    opacity: 1;
    transform: translateY(0);
}

.btn-add-cart-overlay i {
    color: #1A1A1A;
    font-size: 1rem;
}

.btn-add-cart-overlay:hover {
    background: #1A1A1A;
}

.btn-add-cart-overlay:hover i {
    color: white;
}

/* Delivery Form */
.delivery-form {
    padding: 16px;
    background: #F8F8F8;
    border-top: 1px solid #EAEAEA;
    display: none;
}

.delivery-option {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.delivery-option label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.delivery-fields, .pickup-fields {
    display: none;
    margin-top: 12px;
}

.delivery-fields.active, .pickup-fields.active {
    display: block;
}

.delivery-fields input, .delivery-fields textarea,
.pickup-fields input, .pickup-fields textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #E0E0E0;
    font-family: inherit;
    font-size: 0.75rem;
}

.envio-mensaje {
    font-size: 0.7rem;
    background: #FFF3E0;
    padding: 10px;
    margin: 12px 0;
    text-align: center;
    display: none;
}

/* Modal de autenticación */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 28px;
    max-width: 450px;
    width: 90%;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.modal-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #EAEAEA;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #8A8A8A;
    font-weight: 500;
}

.tab-btn.active {
    color: #1A1A1A;
    border-bottom: 2px solid #1A1A1A;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    font-family: inherit;
    font-size: 0.8rem;
}

.btn-modal {
    width: 100%;
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    margin-top: 8px;
    font-weight: 600;
}

.error-msg {
    color: #D32F2F;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 12px;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 60px;
    color: #8A8A8A;
    grid-column: 1 / -1;
}

.loader-container {
    text-align: center;
    padding: 60px;
    grid-column: 1 / -1;
}

/* Iconos del chatbot */
.chat-widget-avatar i {
    font-size: 0.9rem;
    color: white;
}

.chat-widget-close i {
    font-size: 1rem;
    color: white;
}

.chat-widget-input-area button i {
    font-size: 0.9rem;
    color: white;
}

/* ==========================================================================
   9. Estilos para Reseñas y Calificaciones
   ========================================================================== */

/* Estrellas de calificación */
.rating-stars {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.rating-stars i {
    font-size: 0.8rem;
    color: #f59e0b;
}

.rating-stars i.empty {
    color: #E0E0E0;
}

.rating-average {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.rating-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A1A;
}

.rating-count {
    font-size: 0.7rem;
    color: #8A8A8A;
}

/* Sección de reseñas en detalle de producto */
.resenas-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #EAEAEA;
}

.resenas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.resenas-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1A1A1A;
}

.btn-escribir-resena {
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-escribir-resena:hover {
    background: #333333;
}

/* Lista de reseñas */
.resenas-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.resena-item {
    background: #F8F8F8;
    padding: 20px;
    border: 1px solid #EAEAEA;
}

.resena-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EAEAEA;
}

.resena-cliente {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resena-avatar {
    width: 36px;
    height: 36px;
    background: #F5F5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resena-avatar i {
    font-size: 1rem;
    color: #8A8A8A;
}

.resena-cliente-info {
    display: flex;
    flex-direction: column;
}

.resena-cliente-nombre {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1A1A1A;
}

.resena-fecha {
    font-size: 0.6rem;
    color: #8A8A8A;
}

.resena-rating {
    display: flex;
    gap: 3px;
}

.resena-rating i {
    font-size: 0.7rem;
    color: #f59e0b;
}

.resena-rating i.empty {
    color: #E0E0E0;
}

.resena-comentario {
    font-size: 0.8rem;
    color: #4A4A4A;
    line-height: 1.5;
    margin-bottom: 12px;
}

.resena-respuesta {
    margin-top: 12px;
    padding: 12px;
    background: #FFFFFF;
    border-left: 2px solid #1A1A1A;
}

.resena-respuesta .respuesta-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #8A8A8A;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.resena-respuesta .respuesta-texto {
    font-size: 0.75rem;
    color: #4A4A4A;
    font-style: italic;
}

.resena-respuesta .respuesta-fecha {
    font-size: 0.55rem;
    color: #8A8A8A;
    margin-top: 6px;
}

.empty-resenas {
    text-align: center;
    padding: 40px;
    background: #F8F8F8;
    color: #8A8A8A;
    font-size: 0.8rem;
}

/* Modal para escribir reseña */
.resena-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.resena-modal.active {
    display: flex;
}

.resena-modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    padding: 32px;
    border: 1px solid #EAEAEA;
}

.resena-modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.rating-input {
    margin-bottom: 20px;
}

.rating-input label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8A8A8A;
    margin-bottom: 8px;
}

.stars-input {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.stars-input i {
    font-size: 1.5rem;
    color: #E0E0E0;
    transition: color 0.2s;
    cursor: pointer;
}

.stars-input i.active {
    color: #f59e0b;
}

.resena-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    resize: vertical;
    margin-bottom: 20px;
}

.resena-modal textarea:focus {
    outline: none;
    border-color: #1A1A1A;
}

.resena-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-submit-resena {
    background: #1A1A1A;
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-submit-resena:hover {
    background: #333333;
}

.btn-cancel-resena {
    background: transparent;
    border: 1px solid #E0E0E0;
    color: #8A8A8A;
    padding: 10px 24px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-cancel-resena:hover {
    background: #F5F5F5;
}

/* Estrella en catálogo */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.product-rating-stars {
    display: inline-flex;
    gap: 2px;
}

.product-rating-stars i {
    font-size: 0.65rem;
    color: #f59e0b;
}

.product-rating-stars i.empty {
    color: #E0E0E0;
}

.product-rating-count {
    font-size: 0.6rem;
    color: #8A8A8A;
}

@media (max-width: 768px) {
    .resenas-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resena-item-header {
        flex-direction: column;
    }
    
    .stars-input i {
        font-size: 1.2rem;
    }
}




/* ==========================================================================
   10. Media Queries (Responsividad Integrada)
   ========================================================================== */


@media (max-width: 1400px) {
    .products-grid { column-count: 3; }
}

@media (max-width: 1024px) {
    .products-grid { column-count: 2; }
}

@media (max-width: 768px) {
    /* Elementos Estructurales */
    .detail-wrapper { padding: 0 20px; }
    .products-grid { column-count: 1; }
    
    /* Headers */
    .detail-header,
    .catalog-header { flex-direction: column; text-align: center; }
    .logo-area { justify-content: center; }
    
    /* Grid de detalle y relacionados */
    .product-main { grid-template-columns: 1fr; gap: 32px; }
    .product-gallery { position: relative; top: 0; } /* Desactiva sticky en móvil */
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .thumbnail { width: 60px; height: 60px; }
    
    /* Modificaciones de Texto */
    .product-title-detalle { font-size: 1.5rem; }
    .product-price-detalle { font-size: 1.2rem; }
    
    /* Ajustes Flotantes en Móvil */
    .cart-button { bottom: 15px; right: 15px; width: 50px; height: 50px; }
    .chat-widget-button { bottom: 15px; left: 15px; width: 50px; height: 50px; }
    .cart-panel { width: 100%; right: -100%; }
    .chat-widget-panel { width: calc(100vw - 30px); left: 15px; bottom: 75px; height: 500px; }
    
    /* Footer */
    .footer-notes-grid { flex-direction: column; align-items: center; gap: 12px; }
}

@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
}