/* ESTILOS GLOBALES - ROYAAL */
:root {
    --primary-color: #DC1F27;
    --secondary-color: #333333;
    --bg-color: #F5F5F5;
    --white: #FFFFFF;
    --text-color: #333333;
    --gray-light: #e0e0e0;
    --border-radius: 4px;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Evita espacios extra debajo de la imagen */
}

/* Prevenir parpadeo en imágenes que cargan lento */
img:not([src]), img[src=""] {
    opacity: 0;
}

.container {
    width: 100% !important;
    max-width: 1920px !important; /* Ancho máximo panorámico */
    margin: 0 auto;
    padding: 0 50px;
}

/* El banner ocupa el 100% real sin el padding del container */
.banner-full-width {
    width: 100%;
    margin-bottom: 50px;
}

.banner-full-width .hero-slider {
    height: 700px; /* Banner más alto para PC */
    border-radius: 0;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: #b31920;
}

/* Grid de productos genérico */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* DISEÑO PROFESIONAL DE TARJETAS DE PRODUCTO */
.product-card {
    background: var(--white);
    padding: 0; /* Quitamos padding para que la imagen llegue a los bordes si es necesario */
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: rgba(220, 31, 39, 0.1);
}

.product-card .img-container {
    position: relative;
    padding: 20px;
    background-color: #fff;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    margin-bottom: 0;
}

.product-card:hover .img-container img {
    transform: scale(1.1);
}

/* Badges (Etiquetas) */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    color: white;
}

.badge-offer { background: #DC1F27; }
.badge-new { background: #2ecc71; }

/* Info del producto */
.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid #f9f9f9;
}

.product-card h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    height: 2.4em; /* Altura fija para 2 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.product-card .price {
    margin: 10px 0;
    display: flex;
    flex-direction: row; /* Precios en línea */
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.product-card .price .old-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

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

/* Estrellas */
.product-card .rating {
    color: #ffc107;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

/* Botones rápidos al hover */
.product-actions {
    position: absolute;
    bottom: -50px; /* Oculto inicialmente */
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.95);
    display: flex;
    gap: 8px;
    transition: bottom 0.3s ease;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.btn-quick-view, .btn-add-cart {
    flex: 1;
    padding: 8px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-quick-view {
    background: #f0f0f0;
    color: #333;
}

.btn-quick-view:hover {
    background: #e0e0e0;
}

.btn-add-cart {
    background: #DC1F27;
    color: white;
}

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

/* Secciones de la portada */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #DC1F27;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-nav button {
    background: white;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.carousel-nav button:hover {
    background: #DC1F27;
    color: white;
    border-color: #DC1F27;
}

/* LAYOUT DE DOS COLUMNAS (SIDEBAR + MAIN) */
.page-layout, .hero-layout, .shop-layout {
    display: flex;
    gap: 20px;
    padding: 30px 0;
}

.sidebar, .promotions-sidebar, .shop-sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.nosotros-content {
    flex: 1;
}

.sidebar-title {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promo-item {
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.3s ease;
}

.promo-item:last-child {
    border-bottom: none;
}

.promo-item:hover {
    background-color: #fff5f5;
}

.promo-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.promo-item:hover a {
    padding-left: 20px;
}

.promo-img {
    width: 45px;
    height: 45px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.promo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promo-info h5 {
    font-size: 0.75rem;
    color: #333;
    margin: 0;
    line-height: 1.3;
    font-weight: 500;
}

/* MAIN CONTENT ACERCA DE */
.nosotros-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.nosotros-hero-img {
    width: 100%;
    height: auto;
    background-color: #f0f0f0;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.nosotros-hero-img img {
    width: 100%;
    display: block;
}

.quienes-somos-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.section-red-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.quienes-somos-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.page-banner-placeholder {
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://via.placeholder.com/1200x400?text=Banner+Royaal') center/cover;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-banner-placeholder .image-box-future {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.section-red-title {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
}

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

.image-box-future {
    text-align: center;
    color: #999;
}

.image-box-future i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.mision-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.mision-box p, .vision-box p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Notificaciones Toast */
.royaal-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.royaal-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Card de producto (para relacionados) */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    height: 40px;
    overflow: hidden;
}

.product-info .price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.btn-add-cart-small {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none; /* Ocultar sidebar en móvil como en la imagen */
    }
}

/* ==========================================================================
   LIMPIEZA VISUAL GLOBAL (REGLA DE ORO)
   ========================================================================== */

/* 1. Limpieza Visual Global: Ocultar marca de agua 'ROYAAL' en todo el sitio */
.shop-header div, 
header.shop-header div,
.category-header div,
.shop-header::after,
header.shop-header::after,
.shop-header::before,
header.shop-header::before,
[class*="header"] div:contains("ROYAAL") {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    content: none !important;
}

/* Selector ultra-específico para el div de marca de agua que usa font-size: 8rem */
.shop-header div[style*="font-size: 8rem"],
header.shop-header div[style*="font-size: 8rem"],
.shop-header div[style*="font-size:8rem"],
header.shop-header div[style*="font-size:8rem"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 2. Unificación Global de Estilo de Cabecera (Regla de Oro) */
.shop-header, 
header.shop-header {
    background: #D32F2F !important;
    padding: 50px 40px !important;
    border-radius: 8px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important; /* Asegura que no se meta la barra blanca dentro */
}

.shop-header h1, 
header.shop-header h1 {
    color: #fff !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    border-left: 6px solid #fff !important;
    padding-left: 25px !important;
    font-family: 'Arial', sans-serif !important;
}

/* 3. Asegurar que los controles (barra blanca) estén siempre fuera y debajo del cuadro rojo */
.shop-controls, 
.shop-toolbar {
    margin-top: 20px !important;
    background: #fff !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}


/* .hero-layout ya está definido arriba con .page-layout */

@media (max-width: 992px) {
    .hero-layout, .page-layout, .shop-layout {
        flex-direction: column;
        gap: 20px;
    }
    .promotions-sidebar, .sidebar, .shop-sidebar {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* .promotions-sidebar ya está definido arriba con .sidebar */
.promotions-sidebar {
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.promotions-sidebar h3.sidebar-title {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 15px !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0;
}

.quote-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 28px;
    padding: 18px 18px;
    background: linear-gradient(135deg, rgba(211,47,47,1) 0%, rgba(179,35,35,1) 55%, rgba(119,17,17,1) 100%);
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.quote-cta__content h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.quote-cta__content p {
    margin: 8px 0 0;
    opacity: 0.95;
    line-height: 1.5;
}

.quote-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.05s ease, opacity 0.2s ease;
    white-space: nowrap;
}

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

.quote-cta__btn:hover {
    opacity: 0.95;
}

.quote-cta__btn:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .quote-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .quote-cta__btn {
        justify-content: center;
    }
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 600px;
    min-height: 400px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
}

.slide {
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Sección Promociones */
.promotions-section {
    margin-bottom: 30px;
}

.promotions-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: nowrap; /* Asegurar que no se baje la sidebar */
}

/* Ya no necesitamos este promotions-sidebar separado porque ahora está dentro del hero-layout */
/* .promotions-sidebar { ... } */

.promotions-sidebar ul {
    margin: 0;
    padding: 0;
}

.promotions-sidebar ul li {
    padding: 12px 15px;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.promotions-sidebar ul li:last-child {
    border-bottom: none;
}

.promotions-sidebar ul li:hover {
    background-color: #fff5f5;
    padding-left: 20px;
}

.promotions-sidebar ul li img {
    width: 40px;
    height: 40px;
    background-color: #fff;
    object-fit: contain;
}

.promotions-main {
    flex: 1;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    position: relative;
    width: 100%;
}

.img-container {
    height: 150px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card h4 {
    font-size: 0.9rem;
    height: 40px;
    overflow: hidden;
    margin-bottom: 5px;
    color: var(--text-color);
}

.product-card .price {
    color: var(--primary-color);
    font-weight: bold;
}

.product-card .rating {
    color: #f1c40f;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Sección Títulos */
.section-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.quote-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.quote-modal__dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: min(90vh, 860px);
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
    transform: translateY(14px) scale(0.985);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.quote-modal.is-open .quote-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.quote-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.quote-modal__title {
    display: grid;
    gap: 2px;
}

.quote-modal__title span:first-child {
    font-weight: 900;
    letter-spacing: 0.4px;
    color: #111;
    text-transform: uppercase;
}

.quote-modal__subtitle {
    font-size: 0.9rem;
    color: #666;
}

.quote-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.05s ease;
}

.quote-modal__close:hover {
    background: #f6f6f6;
}

.quote-modal__close:active {
    transform: translateY(1px);
}

.quote-modal__content {
    padding: 0;
    overflow: auto;
    max-height: calc(min(90vh, 860px) - 68px);
}

.quote-modal__loading {
    padding: 22px;
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .quote-modal {
        padding: 0;
    }

    .quote-modal__dialog {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .quote-modal__content {
        max-height: calc(100vh - 68px);
    }
}

.chatbot-float {
    position: fixed;
    right: 20px;
    bottom: 95px;
    z-index: 1400;
}

.chatbot-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D32F2F;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.22);
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chatbot-fab:hover {
    background: #b71c1c;
    box-shadow: 0 18px 34px rgba(0,0,0,0.26);
}

.chatbot-fab:active {
    transform: translateY(1px);
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 150px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(0,0,0,0.35);
    border: 1px solid rgba(0,0,0,0.08);
    transform: translateY(12px) scale(0.985);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.chatbot-float.is-open .chatbot-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.chatbot-header {
    background: linear-gradient(135deg, #D32F2F 0%, #9e1b1b 100%);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chatbot-brand {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.chatbot-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.chatbot-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.05s ease;
}

.chatbot-close:hover {
    background: rgba(255,255,255,0.18);
}

.chatbot-close:active {
    transform: translateY(1px);
}

.chatbot-body {
    padding: 12px;
    overflow: auto;
    background: #fafafa;
}

.chat-msg {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.chat-msg.is-user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 14px;
    line-height: 1.45;
    font-size: 0.95rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    color: #222;
    white-space: pre-wrap;
}

.chat-msg.is-user .chat-bubble {
    background: rgba(211,47,47,0.12);
    border-color: rgba(211,47,47,0.25);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-link-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-link-text {
    display: grid;
    gap: 2px;
}

.chat-link-title {
    font-weight: 900;
    color: #111;
    font-size: 0.95rem;
}

.chat-link-sub {
    color: #666;
    font-size: 0.85rem;
}

.chat-whatsapp-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
    transition: transform 0.05s ease, opacity 0.2s ease;
    flex: 0 0 auto;
}

.chat-whatsapp-link:hover {
    opacity: 0.92;
}

.chat-whatsapp-link:active {
    transform: translateY(1px);
}

.chat-whatsapp-link i {
    font-size: 1.35rem;
}

.chat-phone-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(0,0,0,0.14);
    transition: transform 0.05s ease, opacity 0.2s ease;
    flex: 0 0 auto;
}

.chat-phone-link:hover {
    opacity: 0.92;
}

.chat-phone-link:active {
    transform: translateY(1px);
}

.chat-phone-link i {
    font-size: 1.15rem;
}

.chat-option {
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.chat-option:hover {
    background: #f6f6f6;
    border-color: rgba(0,0,0,0.18);
}

.chat-option:active {
    transform: translateY(1px);
}

.chatbot-input {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

.chatbot-input input {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 0 12px;
    outline: none;
}

.chatbot-input input:focus {
    border-color: rgba(211,47,47,0.7);
    box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}

.chatbot-send {
    height: 44px;
    width: 44px;
    border-radius: 12px;
    border: none;
    background: #D32F2F;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.05s ease;
}

.chatbot-send:hover {
    background: #b71c1c;
}

.chatbot-send:active {
    transform: translateY(1px);
}

@media (max-width: 720px) {
    .chatbot-float {
        right: 16px;
        bottom: 92px;
    }

    .chatbot-panel {
        width: calc(100vw - 32px);
        height: 70vh;
        max-height: calc(100vh - 160px);
        bottom: 72px;
    }
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

/* Secciones de Carrusel */
.best-sellers-section,
.accessories-section,
.promotions-section {
    margin-bottom: 50px;
}

/* Carruseles de Productos */
.products-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    width: 100%;
}

.products-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.products-carousel .product-card {
    flex: 0 0 auto; /* Evitar que se encojan */
    width: 280px; /* Un poco más grande para pantallas panorámicas */
}

.carousel-nav button {
    background: #fff;
    border: 1px solid var(--gray-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.carousel-nav button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Grid de 5 para más vendidos */
.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* Notificaciones del carrito */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification .toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-notification .toast-content i {
    color: #25D366;
    font-size: 1.2rem;
}

.cart-notification a {
    background: #D32F2F;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background 0.3s;
}

.cart-notification a:hover {
    background: #b71c1c;
}

@media (max-width: 576px) {
    .cart-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* REGLA DE ORO: Ocultar marca de agua 'ROYAAL' en todo el sitio */
.shop-header div[style*="font-size: 8rem"],
.shop-header div[style*="font-size:8rem"],
header.shop-header div[style*="font-size: 8rem"],
header.shop-header div[style*="font-size:8rem"],
.shop-header div[style*="opacity: 0.1"],
.shop-header div[style*="opacity:0.1"],
[style*="font-size: 8rem"][style*="pointer-events: none"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* REGLA DE ORO: Unificar estilo de cabecera en todas las secciones (como en Nuestros Equipos) */
.shop-header, 
header.shop-header {
    margin-bottom: 30px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #D32F2F !important;
    padding: 45px 35px !important;
    display: block !important;
    width: 100% !important;
}

.shop-header h1,
header.shop-header h1 {
    color: #fff !important;
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    position: relative !important;
    z-index: 2 !important;
    padding-left: 25px !important;
    border-left: 6px solid #fff !important;
    line-height: 1.2 !important;
}

/* REGLA DE ORO: Estilo Unificado de Barra de Herramientas (Fuera de Cabecera) */
.shop-toolbar {
    background: #fff !important;
    margin-top: 10px !important;
    margin-bottom: 30px !important;
    padding: 15px 25px !important;
    border-radius: 4px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: 1px solid #eee !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}

/* Forzar ocultamiento de la marca de agua con selectores ultra-específicos */
.shop-header div[style*="font-size: 8rem"],
.shop-header div[style*="font-size:8rem"],
header.shop-header div[style*="font-size: 8rem"],
header.shop-header div[style*="font-size:8rem"],
.shop-header div[style*="opacity: 0.1"],
.shop-header div[style*="opacity:0.1"],
[style*="font-size: 8rem"][style*="pointer-events: none"],
[style*="font-size:8rem"][style*="pointer-events:none"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

.shop-toolbar p {
    color: #666 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}
