:root {
    --primary-color: #8cc5d9;
    /* Updated primary blue */
    --accent-color: #f53003;
    --bg-light: #FDFDFC;
    --bg-white: #ffffff;
    --text-main: #1b1b18;
    --text-muted: #706f6c;
    --border-color: #e3e3e0;
    --card-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 80px;
    /* Adjusted for only main-header */
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
}

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

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.slider-nav span {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

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

/* Sticky Header */
.sticky-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Topbar */
.topbar {
    background-color: #8cc5d9;
    /* Updated to requested color */
    color: white;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.topbar-links a {
    margin-left: 20px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #fce863;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.logo img {
    height: 40px;
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    color: white;
}

.main-nav ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions .icon {
    display: block;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: all 0.2s;
}

.header-actions a:hover .icon {
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

.badge.highlight {
    background: var(--accent-color);
}

.header-actions a {
    position: relative;
}

/* Search Bar Styles - Redesigned for Central Layout */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 5px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-wrapper:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-main);
}

.search-button {
    background: none;
    border: none;
    padding: 0;
    margin-left: 10px;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

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

.search-button .icon {
    color: var(--primary-color) !important;
    filter: none !important;
    /* No shadow needed on white search BG */
}

/* Hero Slider - Base (Pantallas > 768px - Usa imagen Desktop 1920x615) */
.hero-slider {
    width: 100%;
    aspect-ratio: 1920 / 615;
    max-height: 615px;
    min-height: 300px;
    /* Reducido para permitir escalado en tablets */
    background-color: #f0f0e8;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
    /* Ajustado para que las cabezas y logos superiores nunca se corten */
}

/* Removed overlay for full background clarity */
.hero-slide::before {
    display: none;
}

.hero-content {
    max-width: 500px;
    z-index: 3;
}

.hero-content .subtitle {
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.hero-content h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
}

.hero-content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.7s;
}

.hero-slide.active .hero-content .subtitle,
.hero-slide.active .hero-content h1,
.hero-slide.active .hero-content .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Image (Option A) */
.hero-image {
    position: absolute;
    right: 120px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 350px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Removed extra filter as user images likely already have it */
    transition: transform 0.8s ease;
}

.hero-slide.active .hero-image img {
    transform: scale(1.05);
    /* Slight zoom in on active slide */
}

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

.dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

.hero-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    z-index: 4;
}

.hero-nav span {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-nav span:hover {
    background: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #40808f;
    color: white;
}

.btn-secondary {
    background: #40808f;
    color: white;
}

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

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

/* Category Grid */
.categories .category-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
}

/* Slider styles with high specificity to override grid */
.category-grid[id="category-slider"],
.product-grid.featured-grid-slider {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 20px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    cursor: grab !important;
    user-select: none !important;
    padding-bottom: 20px !important;
}

.category-grid[id="category-slider"]::-webkit-scrollbar,
.product-grid.featured-grid-slider::-webkit-scrollbar {
    display: none !important;
}

.category-grid[id="category-slider"] .category-card {
    flex: 0 0 250px !important;
    text-align: center !important;
}

.category-grid[id="category-slider"] .category-card img,
.product-grid.featured-grid-slider .product-card img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
}

.product-grid.featured-grid-slider .product-card {
    flex: 0 0 280px !important;
    width: 280px !important;
}

.category-grid:active,
.product-grid.featured-grid-slider:active {
    cursor: grabbing !important;
}

.category-img {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
    background: #f9f9f9;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
}

.category-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Promotional Banners */
.banners-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.banners.secondary .banners-grid {
    grid-template-columns: 1fr 1fr;
}

.banner-large,
.banner-small,
.banner-half {
    background: #f7f7f7;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.banner-large {
    height: 350px;
}

.banner-content {
    align-items: flex-start;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content .btn {
    width: max-content;
    min-width: 160px;
    text-align: center;
}

.banner-content .discount {
    color: var(--text-muted);
    font-size: 14px;
}

.banner-content h2 {
    font-size: 28px;
    margin: 10px 0 20px;
}

.banner-content h3 {
    font-size: 20px;
    margin: 5px 0 15px;
}

.banner-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-small {
    height: calc(175px - 10px);
}

.banner-small.highlight,
.banner-half.highlight {
    background: #f0f0e8;
}

.shop-now {
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

/* Product Tabs */
.tabs-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 40px;
}

.tabs li {
    padding-bottom: 10px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.tabs li.active {
    color: var(--primary-color);
}

.tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.product-img {
    height: 250px;
    background: #fdfdfd;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s ease;
}

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

.tag-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating {
    color: #ffcc00;
    font-size: 12px;
    margin-bottom: 10px;
}

.price {
    font-weight: 600;
    margin-bottom: 15px;
}

.product-info .btn-outline {
    width: 100%;
    padding: 8px;
}

/* Second Banners Row */
.banners.secondary {
    grid-template-columns: 1fr 1fr;
}

.banner-half {
    height: 200px;
}

/* Deal of the Day */
.deal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.deal-card {
    display: flex;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    gap: 20px;
}

.deal-img {
    width: 280px;
    height: 280px;
    background: #fdfdfd;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}

.deal-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.5s ease;
}

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

.deal-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.stock-warning {
    font-size: 13px;
    margin: 15px 0;
    color: #e6683c;
}

.countdown {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.countdown-item {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.countdown-item span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    background: #f4f4f4;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 5px;
    min-width: 50px;
}

/* Floating Buttons Area */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
    /* Transición suave para que "escolte" al menú */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-container.active {
    transform: translateX(-280px);
}

.mobile-menu.active~.floating-container {
    transform: translateX(-280px);
    /* Lo movemos a la izquierda el ancho del sidebar */
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

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

.floating-btn.whatsapp {
    background-color: #25D366;
}

.floating-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.floating-btn.scroll-top {
    background-color: #40808f;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-btn svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.floating-btn.scroll-top svg {
    fill: none;
    stroke: white;
    width: 24px;
    height: 24px;
}

/* Banner Image Styles */
.banner-image {
    flex: 1;
    overflow: hidden;
    background: #f0f0f0;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cambiamos a cover para asegurar que llene todo el div sin huecos */
    transition: transform 0.5s ease;
}

.banner-large:hover .banner-image img,
.banner-small:hover .banner-image img,
.banner-half:hover .banner-image img {
    transform: scale(1.05);
}

/* Secondary Banners Section */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.banner-half {
    display: flex;
    align-items: stretch;
    /* Estiramos para que imagen y texto tengan la misma altura */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 250px;
}

.banner-half:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.banner-half .banner-content {
    flex: 1;
    padding: 30px;
    z-index: 2;
}

.banner-half .banner-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.banner-half .discount {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.banner-half h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-main);
}

/* Banner Visibility Controls */
.banners-mobile {
    display: none;
}

.banners-desktop {
    display: block;
}

/* Mobile Banner Styles */
.banners-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.banner-mobile {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.banner-mobile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.banner-mobile .banner-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #fff;
}

.banner-mobile .banner-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Cambiado de cover a contain para evitar recortes */
}

.banner-mobile .banner-content {
    padding: 30px 20px;
    text-align: center;
}

.banner-mobile .discount {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.banner-mobile h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 600;
}

.banner-mobile .btn-secondary {
    padding: 12px 30px;
    font-size: 15px;
    margin-top: 10px;
}


/* Site Footer */
.site-footer {
    background-color: #8cc5d9;
    color: #fff;
    padding: 80px 0 30px;

}

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

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col.brand p {
    font-size: 14px;
    line-height: 1.8;
    margin: 20px 0;
    color: #fff;
}

.footer-logo img {
    height: 35px;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    color: #fff;
}

.social-links a:hover {
    background: #fff;
    color: #8cc5d9;
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #fff;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #fff;
    border-radius: 4px;
    color: #8cc5d9;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #8cc5d9;
    opacity: 0.6;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #8cc5d9;
    border: none;
    color: white;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #40808f;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-icon {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.deal-popup {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .deal-popup {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

.popup-inner {
    display: flex;
}

.popup-image {
    flex: 1;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.popup-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.popup-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-tag {
    color: #f53003;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.popup-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1b1b18;
}

.popup-product {
    font-size: 16px;
    color: #706f6c;
    margin-bottom: 20px;
}

.popup-price {
    margin-bottom: 25px;
}

.popup-price .old-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #999;
    margin-right: 15px;
}

.popup-price .current-price {
    font-size: 28px;
    font-weight: 700;
    color: #40808f;
}

.popup-timer {
    margin-bottom: 30px;
    justify-content: flex-start;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 15px;
}

@media (max-width: 768px) {

    /* Toggle Banner Sections */
    .banners-desktop {
        display: none !important;
    }

    .banners-mobile {
        display: block !important;
    }

    /* Secondary Banners - Mobile Vertical Layout */
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-half {
        flex-direction: column;
        min-height: auto;
        max-width: 100%;
    }

    .banner-half .banner-image {
        width: 100%;
        height: 250px;
        min-height: 250px;
        order: 1;
    }

    .banner-half .banner-content {
        padding: 30px 20px;
        text-align: center;
        order: 2;
    }

    .banner-half h2 {
        font-size: 22px;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .banner-half .discount {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 12px;
    }

    .banner-half .btn-secondary {
        padding: 12px 30px;
        font-size: 15px;
        margin-top: 10px;
    }

    .popup-overlay {
        align-items: center;
        padding: 20px 10px;
        overflow-y: auto;
    }

    .deal-popup {
        width: 95%;
        max-height: none;
        margin-top: 0;
    }

    .popup-inner {
        flex-direction: column;
    }

    .popup-image {
        padding: 5px;
        height: 130px !important;
        background: #fdfdfd !important;
    }

    .popup-image img {
        max-height: 120px !important;
        width: auto !important;
        margin: 5px auto;
    }

    .popup-content {
        padding: 10px 15px !important;
        text-align: center;
        align-items: center;
    }

    .popup-content h2 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }

    .popup-product {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .popup-tag {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }

    .popup-timer {
        justify-content: center !important;
        transform: scale(0.75);
        margin-bottom: 15px !important;
        margin-top: -5px;
    }

    .popup-price {
        margin-bottom: 15px !important;
    }

    .popup-price .current-price {
        font-size: 20px !important;
    }

    .popup-price .old-price {
        font-size: 14px !important;
    }

    .btn-block {
        padding: 10px !important;
        font-size: 14px !important;
    }

    .popup-close {
        top: 10px;
        right: 15px;
        background: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        font-size: 24px;
        color: #333;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */

/* Default Hide for Mobile Elements (Desktop First) */
.mobile-actions,
.mobile-menu,
.menu-overlay {
    display: none;
}

@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }

    .search-container {
        margin: 0 20px;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }

    .main-header {
        padding: 10px 20px;
    }

    .search-container {
        display: block;
        margin: 0 20px;
        flex: 1;
        max-width: none;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .search-wrapper {
        background: white;
    }

    .mobile-search-toggle {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    /* Secondary Banners - Tablet */
    .banner-half {
        min-height: 200px;
        display: flex;
        align-items: center;
    }

    .banner-half .banner-content {
        padding: 25px 20px;
    }

    .banner-half .banner-image {
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fdfdfd;
    }

    .banner-half h2 {
        font-size: 20px;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
    }

    .header-actions {
        gap: 15px;
    }

    .header-controls {
        gap: 15px;
    }

    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 0;
        /* Quitamos padding general para controlar secciones */
        flex-direction: column;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        right: -100%;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        /* Curva más elegante que el ease estándar */
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu.active .mobile-nav-links li {
        animation: slideInLinks 0.4s ease forwards;
        opacity: 0;
    }

    .mobile-menu.active~.menu-overlay,
    #mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .close-btn {
        display: block;
        margin-left: auto;
        background: none;
        border: none;
        color: #999;
        cursor: pointer;
        padding: 0;
    }

    .mobile-logo-container {
        display: flex;
        justify-content: center;
        padding: 5px 0 10px;
    }

    .price-range-inputs {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }

    .mobile-logo-container img {
        height: 35px;
    }

    /* Cuerpo con Scroll */
    .mobile-menu-body {
        flex: 1;
        overflow-y: auto;
        padding: 0 20px;
    }

    .input-group {
        position: relative;
        flex: 1;
    }

    .input-group span {
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        font-size: 12px;
    }

    .input-group input {
        width: 100%;
        padding: 8px 8px 8px 20px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
    }

    .store-filter-list {
        list-style: none;
        padding: 0;
        margin-bottom: 20px;
    }

    .store-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        cursor: pointer;
    }

    .store-info {
        display: flex;
        align-items: center;
        font-size: 13px;
        color: #555;
    }

    .store-info input {
        margin-right: 10px;
        accent-color: #fce863;
    }

    .btn-apply-filters {
        width: 100%;
        background: #1a1a1a;
        color: #fff;
        padding: 12px;
        border: none;
        border-radius: 6px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 12px;
        cursor: pointer;
    }

    /* Tipografía y Enlaces */
    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-item-main a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
        font-weight: 700;
        color: #1a1a1a;
        text-decoration: none;
        border-bottom: 1px solid #f5f5f5;
    }

    .menu-section-title {
        padding: 20px 0 10px;
        font-size: 11px;
        font-weight: 800;
        color: #bbb;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .category-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        text-decoration: none;
        color: #444;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid #f9f9f9;
    }

    .count-badge {
        font-size: 10px;
        background: #f0f0f0;
        padding: 2px 8px;
        border-radius: 10px;
        color: #888;
    }

    /* Filtros */
    .mobile-filters-section {
        margin-top: 20px;
        padding: 20px 0;
        border-top: 1px solid #eee;
    }

    .filter-title {
        font-size: 12px;
        font-weight: 800;
        margin-bottom: 15px;
        text-transform: uppercase;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-search-toggle {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }

    .mobile-nav-links {
        flex: 1;
        padding-left: 0;
        list-style: none;
    }

    .mobile-nav-links li {
        margin-bottom: 20px;
    }

    .mobile-nav-links a {
        font-size: 14px;
        font-weight: 600;
        color: #1b1b18;
    }

    .mobile-menu-footer {
        padding: 20px;
        border-top: 1px solid #e3e3e0;
        background: white;
    }

    .btn-account {
        display: block;
        text-align: center;
        padding: 10px;
        border: 1px solid #1a1a1a;
        border-radius: 6px;
        color: #1a1a1a;
        text-decoration: none;
        font-weight: 700;
        font-size: 13px;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: block !important;
        /* Cambiamos el display none por visibility para la animación */
    }

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

    /* Hero Slider - Tablets (Escala proporcional a la imagen Desktop) */
    .hero-slider {
        height: auto !important;
        aspect-ratio: 1920 / 615 !important;
        min-height: 250px !important;
    }

    .hero-slide {
        flex-direction: column !important;
        padding: 40px 20px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .hero-content {
        max-width: 100% !important;
        order: 2 !important;
        margin-top: 30px !important;
    }

    .hero-content h1 {
        font-size: 32px !important;
    }

    .hero-image {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        height: 250px !important;
        order: 1 !important;
    }

    .hero-slide.active .hero-image img {
        transform: scale(1) !important;
    }

    /* Grids */
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .deal-grid {
        grid-template-columns: 1fr !important;
    }

    .deal-card {
        padding: 30px !important;
        gap: 30px !important;
    }

    .deal-img {
        width: 320px !important;
        height: 320px !important;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
        margin-bottom: 40px !important;
    }

    .footer-col.newsletter {
        grid-column: span 3 !important;
        margin-top: 20px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none !important;
    }

    .search-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fce863;
        padding: 10px 20px;
        margin: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .search-container.active {
        display: block;
    }

    .mobile-search-toggle {
        display: block;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .section {
        padding: 30px 0 !important;
    }

    .section-header h2 {
        font-size: 20px !important;
    }

    .category-grid[id="category-slider"] .category-card {
        flex: 0 0 160px !important;
    }

    .product-grid.featured-grid-slider .product-card {
        flex: 0 0 200px !important;
        width: 200px !important;
    }

    .deal-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px !important;
        gap: 20px !important;
    }

    .deal-img {
        width: 100% !important;
        height: 250px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .footer-col.newsletter {
        grid-column: span 1 !important;
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px !important;
    }

    .hero-slider {
        height: 125vw !important;
        /* Proporción 800x1000 perfecta */
        min-height: 450px !important;
        max-height: 800px !important;
    }

    .hero-slide {
        padding: 40px 20px !important;
        min-height: 480px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        /* El contenido se queda abajo para lucir la imagen */
    }

    .hero-content {
        margin-top: auto !important;
        background: rgba(255, 255, 255, 0.15);
        /* Fondo sutil para legibilidad */
        backdrop-filter: blur(4px);
        padding: 20px !important;
        border-radius: 12px;
        width: 100% !important;
    }

    .hero-content h1 {
        font-size: 24px !important;
        margin-bottom: 12px !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-content .subtitle {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }

    .hero-image {
        height: 150px !important;
    }


    .hero-image {
        height: 200px !important;
    }

    .product-grid {
        gap: 10px !important;
    }
}

@keyframes slideInLinks {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}