/* --- ESTILO GLOBAL --- */
body {
    margin: 0;
    font-family: "Georgia", serif;
    background: #faf8f9;
    color: #5f0d19;
}

/* --- MENÚ --- */
nav {
    background: #ffffff;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #5f0d19;
}

nav .links {
    display: flex;
    gap: 40px;
}

nav .links a {
    color: #5f0d19;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
    padding: 8px 20px;
    border-radius: 30px;
}

nav .links a:hover,
nav .links a.active {
    background: #edd3b8;
    color: #5f0d19;
}

/* --- TARJETAS Y SECCIONES --- */
.card, section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin: 30px auto;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

/* BOTÓN GENERAL */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #edd3b8;
    color: #5f0d19;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #e5c2a1;
}

/* --- GRID DE PRODUCTOS --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: translateY(-6px);
}

.gallery-item img {
    width: 100%;
    border-radius: 15px;
}

/* --- CONTÁCTANOS --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #edd3b8;
    padding: 40px;
    border-radius: 20px;
    color: #5f0d19;
}

.contact-info h2 {
    margin-top: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    font-family: Georgia, serif;
    font-size: 15px;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #edd3b8;
    color: #5f0d19;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    border: none;
}

.contact-form button:hover {
    background: #e5c2a1;
}

/* --- CARRITO --- */
.carrito-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.resumen {
    padding: 25px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.resumen h3 {
    margin-top: 0;
    font-size: 22px;
}

.total {
    font-size: 28px;
    color: #5f0d19;
    font-weight: bold;
}

/* === ESTILO PARA BOTONES PAYPAL EN SHADOW DOM ===
   Usa ::part para estilizar botones renderizados internamente por PayPal */
paypal-add-to-cart-button::part(button),
paypal-cart-button::part(button) {
    background-color: #edd3b8 !important;
    color: #5f0d19 !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

paypal-add-to-cart-button::part(button:hover),
paypal-cart-button::part(button:hover) {
    background-color: #e5c2a1 !important;
}

/* Fallbacks for older browsers (visual only) */
paypal-add-to-cart-button button,
paypal-cart-button button {
    background-color: #edd3b8 !important;
    color: #5f0d19 !important;
}
