/* =========================================================
   DISEÃ‘O PREMIUM - ADORA JOYERÃA
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --adora-wine: #A32929;
    --adora-pink: #F9E0E2;
    --adora-gold: #EBC28B;
    --adora-bg: #FAFAFA;
    --adora-text: #1A1A1A;
    
    /* Bootstrap 5 Overrides to kill the blue */
    --bs-primary: #A32929;
    --bs-primary-rgb: 163, 41, 41;
}

body {
    background: linear-gradient(-45deg, #ffffff, #F9E0E2, #FAFAFA, #FCF0F1);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--adora-text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(163, 41, 41, 0.08) !important;
}

/* --- BARRA SUPERIOR (Anuncio) --- */
.top-bar {
    background-color: var(--adora-pink);
    color: var(--adora-wine);
    font-weight: 600;
    text-align: center;
    padding: 12px 0;
    font-size: 0.95rem;
    letter-spacing: 1px; /* Espaciado elegante */
    border-bottom: 1px solid rgba(163, 41, 41, 0.1);
}

/* --- NAVEGACIÃ“N PRINCIPAL --- */
.navbar {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Logo de Texto Refinado */
.navbar-brand {
    display: flex;
    align-items: baseline;
    text-decoration: none;
}

.navbar-brand h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--adora-wine);
    font-weight: 700;
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: 1px;
}

.navbar-brand span {
    font-family: 'Inter', sans-serif;
    color: var(--adora-text);
    font-size: 0.85rem;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Enlaces del MenÃº con Efecto Subrayado */
.navbar-nav .nav-link {
    color: var(--adora-text) !important;
    font-weight: 500;
    font-size: 1.05rem;
    margin: 0 12px;
    padding: 5px 0 !important;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

/* LÃ­nea decorativa que aparece al pasar el ratÃ³n */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--adora-wine);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--adora-wine) !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* --- ICONOS DE ACCIÃ“N (Buscar, Carrito) --- */
.action-icon {
    color: var(--adora-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 25px;
    transition: transform 0.3s ease; /* PequeÃ±o salto al pasar el ratÃ³n */
}

.action-icon i {
    font-size: 1.6rem;
    color: var(--adora-wine);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.action-icon:hover {
    transform: translateY(-3px);
    color: var(--adora-wine);
}

/* Badge del Carrito */
.cart-badge {
    background-color: var(--adora-wine) !important;
    color: white !important;
    font-weight: 700;
    border: 2px solid white;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    box-shadow: 0 4px 10px rgba(163, 41, 41, 0.3);
}

/* BotÃ³n de MenÃº MÃ³vil */
.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--adora-pink);
}

/* =========================================================
   ESTILOS DE PÃGINAS Y COMPONENTES (ADORA)
   ========================================================= */

.hero-header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 40px rgba(163, 41, 41, 0.05);
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--adora-wine, #A32929);
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--adora-wine, #A32929);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-card {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 32px rgba(163, 41, 41, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(163, 41, 41, 0.15), inset 0 0 0 1px rgba(255,255,255,1) !important;
}

.product-card .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.product-card .card-title a {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--adora-text, #1A1A1A);
    text-decoration: none;
}

.product-card .card-title a:hover {
    color: var(--adora-wine, #A32929);
}

.price-tag {
    color: var(--adora-wine, #A32929);
    font-weight: 700;
    font-size: 1.4rem;
}

/* Botones masivos y claros */
.btn-add-cart {
    background-image: linear-gradient(135deg, var(--adora-wine, #A32929) 0%, #821f1f 50%, var(--adora-wine, #A32929) 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 14px 18px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(163, 41, 41, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-add-cart:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(163, 41, 41, 0.28);
    color: white;
}

.btn-details {
    background-color: white;
    color: var(--adora-wine, #A32929);
    border: 1px solid var(--adora-wine, #A32929);
    padding: 12px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-details:hover {
    background-color: var(--adora-pink, #F9E0E2);
    color: var(--adora-wine, #A32929);
}

/* Pasos para comprar */
.process-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(163, 41, 41, 0.05);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 4px solid var(--adora-gold, #EBC28B);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.process-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(163, 41, 41, 0.15), inset 0 0 0 1px rgba(255,255,255,1);
}

.process-item i {
    font-size: 3rem;
    color: var(--adora-wine, #A32929);
    margin-bottom: 15px;
    display: inline-block;
}

/* ==================================================
   PÃGINA DE PRODUCTO Y COMPARTIR EN WHATSAPP
   ================================================== */
.producto-titulo { font-size: 2.5rem; font-weight: 700; color: var(--adora-wine, #A32929); font-family: 'Montserrat', sans-serif; margin-bottom: 0.5rem; }
.producto-precio { font-size: 2rem; font-weight: 600; color: var(--adora-wine, #A32929); }
.stock-badge { color: white; padding: 0.4em 0.8em; border-radius: 50px; font-size: 0.9rem; }
.main-image img { border: 1px solid #eee; border-radius: 16px; }

.whatsapp-share-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(145deg, #25d366, #20b958);
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0,0,0,0.25);
    z-index: 999;
    transition: all 0.3s ease-in-out;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-share-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    background: linear-gradient(145deg, #20b958, #1ca44a);
    color: #fff;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/*
=========================================================
** MEJORAS UI/UX PARA EL FLUJO DE COMPRA **
=========================================================
*/

/* Selector de Cantidad */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    max-width: 150px;
}
.quantity-selector .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    color: var(--adora-text);
}
.quantity-selector .btn:hover {
    background-color: rgba(0,0,0,0.05);
}
.quantity-selector .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    width: 50px;
}

/* === CARRITO DE COMPRAS === */
.cart-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(163, 41, 41, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(163, 41, 41, 0.12), inset 0 0 0 1px rgba(255,255,255,1);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item .item-details {
    flex-grow: 1;
}

.cart-item .item-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item .item-price,
.cart-item .item-quantity {
    color: var(--adora-text);
}

.cart-item .item-subtotal {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: right;
    color: var(--adora-wine);
}

.cart-item .btn-remove {
    background-color: #f8f9fa;
    color: var(--adora-text);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
    line-height: 1;
    padding: 0;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item .btn-remove i {
    font-size: 1.6rem;
    line-height: 1;
}

.cart-item .btn-remove:hover {
    background-color: var(--adora-wine);
    color: #fff;
    border-color: var(--adora-wine);
}

.order-summary-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(163, 41, 41, 0.08);
    position: sticky;
    top: 120px;
}

.order-summary-card .list-group-item {
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    border-color: rgba(0,0,0,0.04);
}

@media (max-width: 991.98px) {
    .order-summary-card { position: static; margin-bottom: 2rem; }
    .cart-item { flex-wrap: wrap; gap: 0.75rem 1rem; padding: 1rem; position: relative; }
    .cart-item img { width: 60px; height: 60px; }
    .cart-item .item-details { flex-basis: calc(100% - 70px - 1rem); padding-right: 30px; }
    .cart-item .item-quantity { flex-basis: 50%; font-size: 0.9rem; }
    .cart-item .item-subtotal { flex-basis: 50%; text-align: right; font-weight: 700; }
    .cart-item .btn-remove { position: absolute; top: 0.75rem; right: 0.75rem; width: 32px; height: 32px; font-size: 1.6rem; display: flex; align-items: center; justify-content: center;}
}

/* === PÃGINA DE CHECKOUT === */
.checkout-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 40px rgba(163, 41, 41, 0.08);
}

.delivery-method-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.delivery-method-selection input[type="radio"] {
    display: none;
}
.delivery-option-card {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}
.delivery-option-card:hover { 
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(163, 41, 41, 0.1);
}
.delivery-method-selection input[type="radio"]:checked + .delivery-option-card {
    border-color: var(--adora-wine);
    background-color: var(--adora-pink);
    box-shadow: 0 0 0 3px rgba(163, 41, 41, 0.1);
}
.delivery-option-card i {
    font-size: 2rem;
    color: var(--adora-wine);
    display: block;
    margin-bottom: 0.5rem;
}
.delivery-option-card span {
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.shipping-options .list-group-item {
    padding: 1.25rem;
    border-radius: 16px !important;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shipping-options .list-group-item:hover {
    border-color: rgba(255, 255, 255, 1);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(163, 41, 41, 0.08);
}
.shipping-options input[type="radio"] { display: none; }
.list-group-item:has(input[type="radio"]:checked) {
    border-color: var(--adora-wine);
    background: rgba(249, 224, 226, 0.85); /* Semi-transparent adora-pink */
    box-shadow: 0 4px 20px rgba(163, 41, 41, 0.15);
}

.shipping-option-text { flex-grow: 1; }
.shipping-option-cost {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--adora-wine);
    margin-left: 1rem;
}
.shipping-option-cost.text-secondary { font-size: 0.9rem; color: var(--adora-text); }


/*
==================================================
** ESTILOS PARA LA PÃGINA DE BÃšSQUEDA (buscar.php) **
==================================================
*/
.search-page-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.search-page-form .form-control {
    border-radius: 50px;
    padding: 1.2rem 1.5rem;
    padding-right: 65px; 
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-size: 1.1rem;
    box-shadow: 0 8px 32px rgba(163, 41, 41, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.search-page-form .form-control:focus {
    border-color: var(--adora-wine);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(163, 41, 41, 0.1), 0 12px 35px rgba(163, 41, 41, 0.1);
}
.search-page-form .btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: var(--adora-wine);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.search-page-form .btn:hover {
    background-color: #821f1f;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(163, 41, 41, 0.3);
}

/* Paginación - Anulación de Azul a Vino */
.pagination {
    --bs-pagination-color: var(--adora-wine);
    --bs-pagination-hover-color: #821f1f;
    --bs-pagination-focus-color: #821f1f;
    --bs-pagination-active-bg: var(--adora-wine);
    --bs-pagination-active-border-color: var(--adora-wine);
}
.page-link {
    color: var(--adora-wine) !important;
}
.page-link:hover {
    color: #821f1f !important;
}
.page-item.active .page-link {
    background-color: var(--adora-wine) !important;
    border-color: var(--adora-wine) !important;
    color: white !important;
}

