/* CARRITO - CONTADOR ICONO */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #c9a24d;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-count.hidden {
    display: none;
}

/* OVERLAY */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 60;
}

.cart-overlay.active {
    display: block;
}

/* SIDEBAR CARRITO */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 380px;
    max-width: 100vw;
    background: #111;
    border-left: 1px solid #c9a24d33;
    z-index: 70;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid #c9a24d33;
}

.cart-sidebar-header h2 {
    color: #c9a24d;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}

.cart-close-btn:hover {
    color: #c9a24d;
}

/* LISTA DE ÍTEMS */
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty-msg {
    color: #666;
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #222;
    gap: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #c9a24d;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px 6px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: #e55;
}

/* FOOTER DEL CARRITO */
.cart-footer {
    padding: 20px;
    border-top: 1px solid #c9a24d33;
}

.cart-footer.hidden {
    display: none;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #fff;
}

.cart-total span:last-child {
    color: #c9a24d;
    font-size: 1.2rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #c9a24d;
    color: #000;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.checkout-btn:hover {
    background: #e0b85a;
}

.checkout-btn:active {
    transform: scale(0.98);
}

.checkout-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
}

.checkout-error {
    color: #e55;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
}

.checkout-error.hidden {
    display: none;
}

/* GRID DE PRODUCTOS — 2x2 */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TARJETA DE PRODUCTO */
.product-card {
    position: relative;
    background: #111;
    border: 1px solid #2a2a2a;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color 0.2s;
}

.product-card:hover {
    border-color: #c9a24d55;
}

/* TÍTULO — dorado */
.product-title {
    color: #c9a24d;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

/* DESCRIPCIÓN */
.product-description {
    color: #bbb;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

/* ETIQUETAS DE SECCIÓN */
.product-section-label {
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 0 0 6px 0;
}

/* INCLUYE */
.product-incluye {
    margin-bottom: 16px;
}

.product-incluye-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-incluye-list li {
    color: #aaa;
    font-size: 0.82rem;
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}

.product-incluye-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c9a24d;
    font-size: 0.75rem;
}

/* IDEAL PARA */
.product-ideal {
    margin-bottom: 20px;
}

.product-ideal-text {
    color: #888;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* PRECIOS */
.product-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.product-price-habitual {
    color: #555;
    font-size: 1.4rem;
    text-decoration: line-through;
}

.product-price-promo {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.product-promo-label {
    color: #c9a24d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* TEXTO RESERVA */
.product-reserva {
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0 0 14px 0;
    opacity: 0.85;
}

/* PLAZAS */
.product-plazas {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0 0 12px 0;
    opacity: 0.7;
}

/* BOTÓN QUIERO MI PLAZA */
.product-cta-label {
    background: none;
    border: none;
    color: #c9a24d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    text-align: left;
    transition: opacity 0.15s;
}

.product-cta-label:hover {
    opacity: 0.75;
}

/* BOTÓN AÑADIR AL CARRITO */
.add-to-cart-btn {
    padding: 13px;
    border: 1px solid #c9a24d;
    background: transparent;
    color: #c9a24d;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: #c9a24d;
    color: #000;
}

.add-to-cart-btn.added {
    background: #c9a24d22;
    color: #c9a24d;
    border-color: #c9a24d;
}