/* ----- VARIABLES DE MARCA ----- */
:root {
    --gold: #c7a17a;
    --gold-dark: #a07e5c;
    --gold-light: #f5ede4;
    --dark: #1e1e1e;
    --white: #ffffff;
    --gray-light: #faf8f5;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
}

/* ----- GENERAL ----- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-light);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text {
    font-family: 'Playfair Display', serif;
}

/* ----- NAVBAR MODERNA ----- */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.btn-cart-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-light);
    padding: 8px 18px !important;
    border-radius: 50px;
}

.bg-gold { background-color: var(--gold) !important; }

/* ----- BUSCADOR Y FILTROS ----- */
.search-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.form-control-luxe {
    border-radius: 50px;
    border: 1px solid #eee;
    padding: 12px 25px;
    background: var(--white);
    transition: var(--transition);
}

.form-control-luxe:focus {
    box-shadow: 0 0 0 4px rgba(199, 161, 122, 0.15);
    border-color: var(--gold);
}

/* ----- TARJETAS DE PRODUCTO ----- */
.product-card {
    border: none;
    border-radius: 20px;
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.img-container {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1; /* Mantiene las imágenes cuadradas */
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.price-tag {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-dark);
}

/* ----- BOTONES ----- */
.btn-gold {
    background-color: var(--dark);
    color: var(--white);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    border: none;
    transition: var(--transition);
}

.btn-gold:hover {
    background-color: var(--gold);
    box-shadow: 0 8px 20px rgba(199, 161, 122, 0.4);
}

/* ----- ANIMACIÓN DE ENTRADA ----- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Estilos para el carrito */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 500px;
}

.table input.form-control {
    text-align: center;
}

@media (max-width: 768px) {
    .table thead {
        display: none;
    }
    
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }
    
    .table tr {
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 0.5rem;
        background: white;
        padding: 0.5rem;
    }
    
    .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .table td:last-child {
        border-bottom: none;
    }
    
    .table td:before {
        content: attr(data-label);
        font-weight: 600;
        width: 40%;
    }
}



