/* ============================================
   PALOSECO - Cart & Checkout
   ============================================ */

.paloseco-cart {
    min-height: 100vh;
    padding: 40px 40px 60px;
    font-family: inherit;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.paloseco-cart .woocommerce-cart-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* ---- Header ---- */
.paloseco-cart-header {
    margin-bottom: 40px;
}

.paloseco-cart-logo {
    display: inline-block;
    text-decoration: none;
}

.paloseco-cart-logo img {
    display: block;
    height: 42px;
    width: auto;
}

/* ---- Items ---- */
.paloseco-cart-items {
    border-top: 1px solid #e0e0e0;
}

.paloseco-cart-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.paloseco-cart-item-thumb img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 120px;
}

.paloseco-cart-item-info {
    font-size: 16px;
    line-height: 1.5;
}

.paloseco-cart-item-nft {
    font-size: 18px;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.paloseco-cart-item-nft strong {
    font-weight: 700;
}

.paloseco-cart-item-desc {
    color: #555;
    font-size: 14px;
}

.paloseco-cart-item-price {
    text-align: right;
    min-width: 120px;
}

.paloseco-cart-item-amount {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    margin-bottom: 6px;
}

.paloseco-cart-item-remove {
    color: #1a1a1a;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

/* ---- Añadir otra botella ---- */
.paloseco-cart-add-more {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.paloseco-add-another {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.paloseco-add-another:hover {
    color: #000;
}

.paloseco-add-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}

/* ---- Cupón ---- */
.paloseco-cart-coupon {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-top: auto;
}

.paloseco-coupon-text {
    font-size: 15px;
    line-height: 1.5;
}

.paloseco-coupon-text strong {
    display: block;
    margin-bottom: 4px;
}

.paloseco-coupon-text span {
    color: #666;
    font-size: 14px;
}

.paloseco-coupon-field {
    display: flex;
    gap: 8px;
    align-items: center;
}

.paloseco-coupon-field .input-text {
    background: #f3f3f3;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 14px;
    min-width: 220px;
    outline: none;
    font-family: inherit;
}

/* ---- Botones base ---- */
.paloseco-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.paloseco-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.02);
}

/* ---- Footer del carrito ---- */
.paloseco-cart-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 0;
}

.paloseco-cart-shipping-info p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.paloseco-cart-shipping-info a {
    color: #1a1a1a;
    text-decoration: underline;
}

.paloseco-cart-totals {
    text-align: right;
}

.paloseco-cart-total-amount,
.paloseco-cart-total-amount .amount,
.paloseco-cart-total-amount bdi {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
}

.paloseco-cart-tax {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* ---- Empty ---- */
.paloseco-cart-empty .paloseco-empty-message {
    text-align: center;
    padding: 60px 0;
}

.paloseco-cart-empty .paloseco-empty-message p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

/* ---- Ocultar elementos innecesarios de WooCommerce ---- */
.woocommerce-cart .woocommerce-notices-wrapper:empty,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .shipping-calculator-form {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
    .paloseco-cart {
        padding: 24px 16px 120px;
    }
    .paloseco-cart-logo {
        font-size: 30px;
    }
    .paloseco-cart-item {
        grid-template-columns: 90px 1fr;
        gap: 16px;
    }
    .paloseco-cart-item-price {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .paloseco-cart-coupon {
        grid-template-columns: 1fr;
    }
    .paloseco-coupon-field .input-text {
        min-width: 0;
        flex: 1;
    }
    .paloseco-cart-footer {
        grid-template-columns: 1fr;
    }
    .paloseco-cart-totals {
        text-align: left;
    }
}
