/* ============================================================
   CAPS UNIFORMES - fixes.css
   Hero slider, mini cart, shop grid, categories, color demo
   ============================================================ */

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0d1b2a;
    background-image: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 60%, #2b90d9 100%);
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(13,27,42,0.5) 0%, rgba(13,27,42,0.25) 50%, rgba(13,27,42,0.65) 100%);
}
.hero__content {
    position: relative; z-index: 2;
    padding-top: 140px; padding-bottom: 40px;
}
.hero__title { color: #fff !important; }
.hero__sub { color: rgba(255,255,255,0.85) !important; }
.hero__stats { position: relative; z-index: 2; margin-top: auto; }

/* Controles slider */
.hero-controls {
    position: absolute;
    bottom: 110px; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px;
    z-index: 3;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none; cursor: pointer;
    transition: all 0.3s; padding: 0;
}
.hero-dot.active { background: #fff; transform: scale(1.3); }
.hero-prev, .hero-next {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff; font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.28); }

/* ── MINI CART - fixed lateral ── */
.mini-cart {
    position: fixed !important;
    top: 0 !important; right: -420px !important; bottom: 0 !important;
    width: min(380px, 92vw) !important;
    background: #fff !important;
    z-index: 9999 !important;
    box-shadow: -4px 0 32px rgba(0,0,0,0.18) !important;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1) !important;
    display: flex !important; flex-direction: column !important;
    overflow-y: auto !important;
}
.mini-cart.open { right: 0 !important; }
.mini-cart-overlay {
    position: fixed !important; inset: 0 !important;
    background: rgba(13,27,42,0.5) !important;
    z-index: 9998 !important;
    opacity: 0 !important; visibility: hidden !important;
    transition: all 0.3s !important;
}
.mini-cart-overlay.visible { opacity: 1 !important; visibility: visible !important; }
.mini-cart__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e6ed;
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.mini-cart__header h4 { font-size: 1.1rem; color: #0d1b2a; }
.mini-cart__close { font-size: 1.3rem; color: #666; cursor: pointer; }
.mini-cart__content { padding: 20px 24px; flex: 1; }

/* ── SHOP GRID - mostrar productos ── */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
}
.products-grid, .shop-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}
.products-grid.shop-list {
    grid-template-columns: 1fr !important;
}
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .products-grid, .shop-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .products-grid, .shop-grid { grid-template-columns: 1fr !important; }
}

/* ── PRODUCT CARD ── */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13,27,42,0.08);
    transition: all 0.25s;
    display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 8px 28px rgba(13,27,42,0.14); transform: translateY(-4px); }
.product-card__media {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: block;
}
.product-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card__placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e8edf2, #d1dae3);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #8fa3b5;
}
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.product-card__overlay {
    position: absolute; inset: 0;
    background: rgba(13,27,42,0.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s;
}
.product-card:hover .product-card__overlay { opacity: 1; }
.product-card__view {
    color: #fff; font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border: 2px solid rgba(255,255,255,0.7);
    border-radius: 999px;
}
.product-card__info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card__name a { color: #0d1b2a; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.product-card__name a:hover { color: #2b90d9; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-card__price { font-weight: 700; color: #0d1b2a; font-size: 0.95rem; }
.caps-precio-rango { font-size: 0.82rem; color: #526070; }
.caps-precio-rango strong { color: #0d1b2a; }

/* ── CATEGORIES ── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .categories-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .categories-grid { grid-template-columns: 1fr; } }

.category-card {
    display: block; text-decoration: none; color: #fff;
    border-radius: 16px; overflow: hidden;
    min-height: 260px; position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.category-card__media { position: absolute; inset: 0; }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; }
.category-card__placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a3a5c 0%, #2b90d9 100%);
    display: flex; align-items: center; justify-content: center;
}
.category-card__placeholder i { font-size: 4rem; color: rgba(255,255,255,0.25); }
.category-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,0.85) 0%, transparent 60%);
}
.category-card__content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px; z-index: 2;
}
.category-card__content h3 { color: #fff; font-size: 1.1rem; margin-bottom: 2px; }
.category-card__count { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.category-card__arrow {
    position: absolute; bottom: 20px; right: 20px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: background 0.2s;
}
.category-card:hover .category-card__arrow { background: #2b90d9; }

/* ── COLOR DEMO ── */
.color-option {
    width: 36px; height: 36px; border-radius: 50%;
    cursor: pointer; border: 3px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: inline-block;
}
.color-option:hover { transform: scale(1.15); }
.color-option.active { border-color: #1a3a5c; box-shadow: 0 0 0 3px rgba(26,58,92,0.25); transform: scale(1.1); }
.color-label-demo { text-align: center; margin-top: 10px; font-weight: 600; color: #1a3a5c; font-size: 0.9rem; }

/* ── SHOP SIDEBAR ── */
.shop-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 90px;
}
@media (max-width: 1024px) {
    .shop-sidebar {
        position: fixed;
        top: 0; left: -100%; bottom: 0;
        width: min(320px, 85vw);
        z-index: 300;
        border-radius: 0;
        overflow-y: auto;
        transition: left 0.3s;
        padding: 0;
    }
    .shop-sidebar.open { left: 0; }
    .shop-sidebar__inner { padding: 24px; }
}
.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(13,27,42,0.5);
    z-index: 299;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
}
.sidebar-overlay.visible { opacity: 1; visibility: visible; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sidebar-widget { margin-bottom: 24px; }
.sidebar-widget__title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #526070; margin-bottom: 12px; }
.sidebar-close { font-size: 1.2rem; color: #666; cursor: pointer; }

/* ── SHOP TOOLBAR ── */
.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.shop-toolbar__right { display: flex; align-items: center; gap: 12px; }
.filter-toggle-btn {
    display: none;
    align-items: center; gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #d1dae3;
    border-radius: 999px;
    font-size: 0.88rem; font-weight: 600;
    background: #fff; color: #526070;
    cursor: pointer; transition: all 0.2s;
}
.filter-toggle-btn:hover { border-color: #1a3a5c; color: #1a3a5c; }
@media (max-width: 1024px) { .filter-toggle-btn { display: flex; } }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 36px; height: 36px;
    border-radius: 8px; border: 1.5px solid #d1dae3;
    background: #fff; color: #526070;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; font-size: 1rem;
}
.view-btn.active, .view-btn:hover { border-color: #1a3a5c; color: #1a3a5c; background: #f0f4f8; }

/* ── PRODUCTOS RELACIONADOS ── */
.related.products { padding: 60px 0; }
.related.products > h2 {
    text-align: center; margin-bottom: 32px;
    font-size: clamp(1.4rem, 3vw, 2rem);
}
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important; margin: 0 !important;
}
@media (max-width: 900px) { .related.products ul.products { grid-template-columns: repeat(2,1fr) !important; } }

/* ── NO PRODUCTS ── */
.no-products-found {
    text-align: center; padding: 80px 20px;
    color: #526070;
}
.no-products-found i { font-size: 4rem; color: #d1dae3; margin-bottom: 16px; }
.no-products-found h3 { margin-bottom: 12px; }

/* ── SHOP PAGINATION ── */
.shop-pagination { margin-top: 40px; text-align: center; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    border: 1.5px solid #d1dae3;
    font-size: 0.9rem; font-weight: 600; color: #526070;
    transition: all 0.2s; text-decoration: none;
}
.woocommerce-pagination ul li a:hover { border-color: #2b90d9; color: #2b90d9; }
.woocommerce-pagination ul li span.current { background: #2b90d9; border-color: #2b90d9; color: #fff; }

/* ── SHOP HEADER ── */
.shop-header { background: #f8fafc; padding: 40px 0 32px; margin-bottom: 0; border-bottom: 1px solid #e8edf2; }
.shop-header__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.shop-header__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 8px; }
.shop-header__desc { color: #526070; margin-top: 8px; max-width: 500px; }

/* ── HERO STATS ── */
.hero__stats-grid {
    display: flex; align-items: center; justify-content: center;
    gap: 0; background: rgba(13,27,42,0.6);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 12px 32px; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; font-family: 'Playfair Display', serif; }
.stat-label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
@media (max-width: 600px) { .stat-divider { display: none; } .stat-item { padding: 8px 16px; } }

/* ── BREADCRUMB ── */
.breadcrumb-bar { padding: 12px 0; background: #f8fafc; border-bottom: 1px solid #e8edf2; }
.woocommerce-breadcrumb { font-size: 0.85rem; color: #8fa3b5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.woocommerce-breadcrumb a { color: #526070; transition: color 0.2s; }
.woocommerce-breadcrumb a:hover { color: #2b90d9; }

/* ── FOOTER FIX ── */
.site-footer { background: #0d1b2a; color: rgba(255,255,255,0.7); margin-top: 80px; }
.footer-newsletter {
    background: linear-gradient(135deg, #1a3a5c, #2b90d9);
    padding: 48px 0;
}
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter-text h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.newsletter-text p { color: rgba(255,255,255,0.8); margin: 0; }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: flex; flex-direction: column; line-height: 1; margin-bottom: 16px; }
.footer-logo .logo-caps { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: #2b90d9; }
.footer-logo .logo-uniformes { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #8fa3b5; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7); font-size: 1.1rem;
    transition: all 0.2s;
}
.footer-social a:hover { background: #2b90d9; border-color: #2b90d9; color: #fff; }
.footer-col__title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-contact-list i { color: #2b90d9; font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-contact-list a:hover { color: #fff; }
.footer-whatsapp { margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-copy a { color: rgba(255,255,255,0.6); }
.footer-payments { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; }
.payment-icons { display: flex; gap: 8px; }
.payment-icon { background: rgba(255,255,255,0.06); padding: 4px 10px; border-radius: 6px; display: flex; align-items: center; gap: 4px; }

/* ── CAPS SALE BADGE ── */
.caps-sale-badge { background: #e74c3c; color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── COLOR FILTER SIDEBAR ── */
.sidebar-color-filter { display: flex; flex-direction: column; gap: 8px; }
.filter-color-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; color: #526070; }
.filter-swatch { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d1dae3; flex-shrink: 0; }
.price-filter-demo { padding: 8px 0; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.82rem; color: #8fa3b5; margin-top: 6px; }
