/* =======================================================
   Variables CSS - Dola Fashion
   ======================================================= */
:root {
    /* Colores Marca */
    --df-primary: #0d6efd;
    --df-secondary: #6c757d;
    --df-success: #198754;
    --df-danger: #dc3545;
    --df-light: #f8f9fa;
    --df-dark: #212529;

    /* Tipografías */
    --df-font-sans: 'Montserrat', sans-serif;
    --df-font-display: 'Playfair Display', serif;

    /* Sombras y Bordes */
    --df-border-radius: 0.375rem;
    --df-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --df-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =======================================================
   Estilos Base
   ======================================================= */
body {
    font-family: var(--df-font-sans);
    color: var(--df-dark);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, .section-title {
    font-family: var(--df-font-display);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* =======================================================
   Navbar & Carrito (FIX)
   ======================================================= */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-family: var(--df-font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

/* Contenedor relativo para que el badge no flote */
.cart-container {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    padding: 0.5rem;
}

/* El círculo rojo del carrito */
.cart-badge {
    position: absolute !important;
    top: 0px !important;
    right: -5px !important;
    background-color: var(--df-danger) !important;
    color: white !important;
    font-size: 0.65rem !important;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    line-height: 1;
}

/* =======================================================
   Hero Section Dinámico
   ======================================================= */
.hero-container {
    margin-top: 72px; /* Altura del Navbar */
    overflow: hidden;
    position: relative;
}

.hero-slide {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 8s linear; /* Zoom continuo */
}

/* Overlay para legibilidad */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1.2px white;
    font-style: italic;
}

/* Efecto de Zoom cuando el slide está activo */
.carousel-item.active .hero-slide {
    transform: scale(1.1);
}

.btn-hero {
    padding: 12px 40px;
    background: white;
    color: var(--df-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid white;
    transition: var(--df-transition);
}

.btn-hero:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
}

/* =======================================================
   Tarjetas de Producto
   ======================================================= */
.product-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--df-transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--df-box-shadow);
}

.card-img-container {
    overflow: hidden;
    height: 350px;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.card-price {
    font-size: 1.25rem;
    color: var(--df-primary);
    font-weight: 700;
}

/* =======================================================
   Paneles Login & Admin
   ======================================================= */
.login-body, .admin-body {
    background-color: var(--df-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card, .admin-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--df-border-radius);
    box-shadow: var(--df-box-shadow);
    width: 100%;
}

.btn-custom {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--df-transition);
}

/* =======================================================
   Responsive
   ======================================================= */
@media (max-width: 768px) {
    .hero-slide { height: 60vh; }
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* Reemplazar el estilo de .btn-volver por este */
.btn-volver { 
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn-volver:hover { 
    background: white;
    color: #000;
}

/* Estilo para el botón de acción dentro de la card */
.btn-action-primary {
    background-color: #212529;
    color: white;
    border-radius: 50px;
    padding: 12px;
    font-weight: 700;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}
.btn-action-primary:hover {
    background-color: #000;
    color: white;
    transform: translateY(-2px);
}

/* Botón Publicar (Negro) */
.btn-publish {
    background-color: #212529;
    color: white;
    border-radius: 50px;
    padding: 14px;
    font-weight: 700;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

/* Botón Volver (Blanco con borde) */
.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 15px;
    font-size: 0.9rem;
}
.btn-back:hover {
    background: #f8f9fa;
    color: #212529;
    border-color: #adb5bd;
}