:root {
    --topbar-height: 45px;
    --navbar-height: 80px;
    --fb-blue: #1877f2;
    --fb-bg: #f0f2f5;
}

/* TOPBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    z-index: 1040;
    border-bottom: 1px solid #eee;
}

/* NAVBAR */
.navbar-pro {
    position: fixed;
    top: var(--topbar-height);
    width: 100%;
    min-height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    z-index: 1030;
}

/* Sombra scroll */
.navbar-pro.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* LOGO */
.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0d6efd, #00c897);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.1rem;
}

.brand-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: #0d6efd;
    letter-spacing: 1px;
}

/* LINKS */
.navbar-pro .nav-link {
    font-weight: 600;
    color: #333;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.navbar-pro .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #00c897);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.navbar-pro .nav-link:hover,
.navbar-pro .nav-link.active {
    color: #0d6efd;
}

.navbar-pro .nav-link:hover::after,
.navbar-pro .nav-link.active::after {
    width: 100%;
}

/* HERO / BANNER */
.header-carousel,
.page-header {
    margin-top: calc(var(--topbar-height) + var(--navbar-height));
}

/* BOTÓN CARRITO */
.btn-cart-pro {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0d6efd, #00c897);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
    transition: all 0.3s ease;
}

.btn-cart-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.45);
    color: #fff;
}

/* BADGE */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 50%;
}

/* MOBILE */
@media (max-width: 991px) {
    .navbar-pro {
        top: 0;
    }

    .header-carousel,
    .page-header {
        margin-top: var(--navbar-height);
    }
}


/* Forzar misma altura en todas las cards */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Contenedor de imagen con botones en el centro */
.product-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-img-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Capa de botones centro-centro */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    /* Fondo oscuro muy sutil */
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

/* Efectos al pasar el mouse (Hover) */
.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-img-container img {
    transform: scale(1.1);
    filter: blur(2px);
}

/* Precio como Tag arriba */
.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background-color: var(--bs-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Título del producto con altura fija para alineación perfecta */
.product-info {
    padding: 20px;
    flex-grow: 1;
    /* Empuja todo para que las cards midan lo mismo */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.product-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Corta el texto a 2 líneas si es muy largo */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.size-btn {
    border: 1px solid #ccc;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
}

.size-btn.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
}

.color-swatch.active {
    border: 3px solid #0d6efd;
}


.page-header {
    width: 100%;
    min-height: 420px;
    /* 👈 altura real */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;
}

/* Overlay más elegante */
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.4));
    z-index: 1;
}

/* Contenido */
.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    max-width: 900px;
}

/* Título */
.page-header-content h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Subtítulo */
.page-header-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        min-height: 280px;
    }

    .page-header-content h1 {
        font-size: 1.8rem;
    }

    .page-header-content p {
        font-size: 1rem;
    }
}

.color-box {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid #ccc;
    vertical-align: middle;
}


/* CONTENEDOR GENERAL */
.product-detail {
    background-color: #f8f9fa;
}

/* GALERÍA */
.product-image-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.thumb:hover {
    transform: scale(1.05);
}

.thumb.active {
    border-color: #0d6efd;
}

/* COLORES */
.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px rgba(13,110,253,.3);
}

/* TALLAS */
#tallasContainer .btn {
    min-width: 80px;
}

/* STOCK */
#stockInfo {
    font-size: 1rem;
}


/* CONTENEDOR RELATIVO */
.slider-wrapper {
    position: relative;
}

/* BOTONES SLIDER */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    color: #333;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

/* ICONO */
.slider-btn i {
    font-size: 16px;
    font-weight: 600;
}

/* POSICIONES */
.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* HOVER */
.slider-btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

/* ACTIVE */
.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* OCULTAR EN MOBILE SI QUIERES */
@media (max-width: 768px) {
    .slider-btn {
        width: 38px;
        height: 38px;
    }
}


.social-share {
    display: flex;
    gap: 12px;
}

.social-share a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all .25s ease;
    text-decoration: none;
}

/* Colores oficiales */
.social-facebook { background: #1877f2; }
.social-x        { background: #000000; }
.social-whatsapp { background: #25d366; }
.social-link     { background: #6c757d; }

/* Hover */
.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    opacity: .9;
}

.fade-slide {
    animation: fadeSlide .3s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

.checkout-animate {
    animation: pulse 1s infinite;
    color: #dc3545; /* rojo alerta */
}

body {
    background-color: var(--fb-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* SIDEBAR ESTILO FB */
.sidebar {
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    overflow-y: auto;
}

.nav-pills .nav-link {
    color: #050505;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 10px;
    margin-bottom: 5px;
}

.nav-pills .nav-link:hover {
    background-color: #e4e6eb;
}

.nav-pills .nav-link.active {
    background-color: #ebf5ff;
    color: var(--fb-blue);
}

/* PORTADA Y PERFIL */
.profile-container {
    background: white;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.profile-cover {
    height: 250px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: relative;
}

.profile-avatar-wrapper {
    margin-top: -90px;
    /* Controla qué tanto sube la foto */
    position: relative;
    z-index: 10;
}

.content-datos{
    margin-top: 100px;
}

.title-persona{
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0;
}
.text-muted.fs-5 {
    color: #65676b !important;
    /* El gris exacto de FB */
    font-weight: 400;
}

.profile-avatar {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    background: white;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-fb {
    background-color: #e4e6eb;
    border: none;
    color: #050505;
    font-weight: 600;
}

.btn-fb:hover {
    background-color: #d8dadf;
}

@media screen and (max-width: 767px) {
    .content-datos {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
}