/* ==========================================================================
   BOGARTMX — UI compartida (estética unificada en todo el sitio)
   ========================================================================== */

/* Acceso admin discreto (home / header) */
.admin-entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.28);
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.72rem;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.55;
    flex-shrink: 0;
    text-decoration: none;
}

.admin-entry-btn:hover,
.admin-entry-btn:focus-visible {
    opacity: 1;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    outline: none;
}

#header.scrolled .admin-entry-btn {
    color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 768px) {
    .admin-entry-btn {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
        opacity: 0.4;
    }
}


/* Fotos de producto sobre fondo claro (coherente con catálogo) */
.product-shot,
.product-img,
.stock-featured-img,
.stock-card-img,
.uniform-preview-img,
.garment-touch-card-img,
.hero-showcase-item img,
.page-banner-thumb {
    background: #f2f2f2;
    object-fit: contain;
}

/* --- Hero con showcase de productos reales --- */
.hero-section .container {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
        "content showcase"
        "stats stats";
    gap: 28px 36px;
    align-items: start;
}

.hero-content {
    grid-area: content;
}

.hero-showcase {
    grid-area: showcase;
    align-self: center;
}

.hero-stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .hero-stats {
        gap: 24px;
    }
}
.hero-stat-card {
    padding: 24px;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 280px;
    align-items: stretch;
}

.hero-showcase-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f2f2f2;
    box-shadow: var(--shadow-premium);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.hero-showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium), var(--shadow-red-glow);
}

.hero-showcase-item img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 8px;
    object-fit: contain;
}

.hero-showcase-main {
    grid-row: span 2;
}

.hero-showcase-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(5, 5, 5, 0.82);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-showcase-item {
    position: relative;
}

.hero-bg-collage .hero-cover-img {
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.35) contrast(1.05) saturate(0.9);
    opacity: 1;
}

/* --- Banner interno de subpáginas --- */
.page-banner {
    position: relative;
    padding: 120px 0 48px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.22;
}

.page-banner-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(5, 5, 5, 0.97) 35%, rgba(5, 5, 5, 0.55) 100%);
}

.page-banner .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.page-banner-text {
    max-width: 640px;
}

.page-banner-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-red);
    margin-bottom: 10px;
}

.page-banner-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--accent-red);
}

.page-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 10px;
}

.page-banner-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

.page-banner-thumbs {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.page-banner-thumb {
    width: 88px;
    height: 88px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 6px;
}

/* --- Login / portal logo unificado --- */
.login-logo img,
.portal-login-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Drawer logo igual que header --- */
.stitch-nav-drawer-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

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

/* --- Tienda: filtros y cards --- */
.shop-page .product-img-wrapper {
    background: #f2f2f2;
}

.uniform-preview-stage {
    background: #f2f2f2 !important;
}

.garment-touch-card-img-wrap {
    background: #f2f2f2;
}

/* --- CTA bar unificada --- */
.stitch-b2b-bar {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.12), var(--bg-secondary));
    border-top: 1px solid var(--border-color);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "showcase"
            "stats";
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-showcase-grid {
        min-height: 280px;
        max-width: 480px;
        margin: 0 auto;
    }

    #features .product-grid {
        grid-template-columns: 1fr !important;
    }

    .page-banner {
        padding: 110px 0 36px;
    }

    .page-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-banner-thumbs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .stock-featured-badge {
        position: static;
        display: inline-block;
        margin-bottom: 16px;
    }

    .wholesale-cta-buttons .btn {
        width: 100%;
    }
}

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

    .hero-showcase-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .hero-showcase-main {
        grid-row: span 1;
        grid-column: span 2;
        min-height: 200px;
    }

    .page-banner-thumb {
        width: 72px;
        height: 72px;
    }

    .stock-grid {
        gap: 20px;
    }
}
