/* Sobrescribir colores de enlaces de Bootstrap con colores temáticos */
a {
    color: #2d5a3a; /* Verde oscuro de la marca */
}

a:hover {
    color: #009d3d; /* Verde brillante temático */
}

.cart-container {
    background-color: #f7f3f0;
    background-image: url("images/paper-back.png");
    padding: 30px 5%;
    font-family: 'MuseoSansRounded300', sans-serif;
}

.cart-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cart-title {
    font-family: 'MuseoSansRounded700', sans-serif;
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    flex-shrink: 0;
}

/* Free Delivery Alert Top */
.free-delivery-alert-top {
    flex: 1;
    min-width: 300px;
    animation: slideInRight 0.5s ease;
}

/* Free Delivery Alert (compartido para top y bottom) */
.free-delivery-alert-top .alert-content,
#free-delivery-alert .alert-content {
    background: linear-gradient(135deg, #009d3d 0%, #006c2a 100%);
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(118, 184, 42, 0.3);
}

.free-delivery-alert-top .alert-content i,
#free-delivery-alert .alert-content i {
    font-size: 24px;
    flex-shrink: 0;
}

.free-delivery-alert-top .alert-text,
#free-delivery-alert .alert-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'MuseoSansRounded500', sans-serif;
    font-size: 14px;
}

.free-delivery-alert-top .alert-text strong,
#free-delivery-alert .alert-text strong {
    font-family: 'MuseoSansRounded700', sans-serif;
}

#free-delivery-alert {
    animation: slideIn 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Encabezado del Listado --- */
.cart-list-header {
    display: none;
}

/* --- Contenedor de la Imagen --- */
.product-img-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 5px;
}

/* --- Control de la Imagen Propiamente --- */
.img-fluid-cart {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Ajuste del Item --- */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-details {
    flex: 1;
}

.product-name {
    font-family: 'MuseoSansRounded700', sans-serif;
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
}

.product-size {
    font-family: 'MuseoSansRounded300', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.product-price-mobile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: 'MuseoSansRounded700', sans-serif;
    font-size: 16px;
}

.quantity-control-wrapper {
    display: flex;
    justify-content: center;
}

.remove-btn {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #ffe5e5;
    color: #e74c3c;
}

/* --- Contenedor Principal (Grisáceo) --- */
.trust-banner-content {
    background-color: #f5f5f5;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

/* --- Disposición Horizontal de Cada Item --- */
.trust-item-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
}

/* --- Íconos Pequeños y Minimalistas --- */
.trust-icon-small {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b4d06;
    font-size: 20px;
}

/* --- Texto del Banner --- */
.trust-text {
    font-family: 'MuseoSansRounded500', sans-serif;
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.2;
}

/* Ajustes para Móvil */
@media (max-width: 768px) {
    .trust-item-horizontal {
        justify-content: flex-start;
        padding-left: 20px;
    }
}

/* Panel de Resumen */
.summary-panel {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-family: 'MuseoSansRounded700', sans-serif;
    font-size: 1.2rem;
}

/* Botones con degradado */
.btn-continue-shipping, .btn-calculate, .btn-whatsapp-help {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-family: 'MuseoSansRounded700', sans-serif;
    color: white;
    background: linear-gradient(to bottom, #76b82a 0%, #2b4d06 100%);
    font-weight: bold;
    transition: filter 0.3s ease;
    text-decoration-line: none;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.4);
    cursor: pointer;
}

.btn-continue-shipping:hover, .btn-calculate:hover, .btn-whatsapp-help:hover {
    color: #ffffff;
    filter: brightness(1.1);
}

.btn-whatsapp-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.btn-continue-shopping {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid #2d5a3a;
    border-radius: 8px;
    color: #2d5a3a;
    text-decoration: none;
    font-family: 'MuseoSansRounded700', sans-serif;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background-color: #f0f8e8;
}

/* --- Control de Cantidad Estilizado --- */
.quantity-control {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-control button {
    border: none;
    background: none;
    padding: 5px 10px;
    font-size: 1.1rem;
    cursor: pointer;
}

.quantity-control input {
    width: 35px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: 'MuseoSansRounded700', sans-serif;
}

/* Mensaje de carrito vacío */
.empty-cart-message {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-title {
        font-size: 1.8rem;
    }

    .cart-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .free-delivery-alert-top {
        width: 100%;
        min-width: auto;
    }

    .free-delivery-alert-top .alert-content {
        padding: 10px 15px;
    }

    .free-delivery-alert-top .alert-content i {
        font-size: 20px;
    }

    .free-delivery-alert-top .alert-text {
        font-size: 13px;
    }

    .cart-item {
        padding: 15px;
    }

    .product-img-container {
        width: 70px;
        height: 70px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-size {
        font-size: 13px;
    }

    .cart-item-actions {
        flex-wrap: wrap;
    }

    .product-price-mobile {
        width: 100%;
        order: -1;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 10px;
    }

    .quantity-control-wrapper {
        flex: 1;
    }

    .summary-panel {
        padding: 20px;
    }

    .coupon-section {
        margin-bottom: 40px;
    }

    .cart-sidebar {
        margin-top: 30px;
    }
}

@media (min-width: 769px) {
    .cart-item {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .cart-item-main {
        flex: 1;
        min-width: 0;
    }

    .cart-item-actions {
        border-top: none;
        padding-top: 0;
        gap: 20px;
        flex-shrink: 0;
    }

    .product-price-mobile {
        min-width: 120px;
        text-align: right;
    }

    .quantity-control-wrapper {
        min-width: 120px;
    }
}


/* Shipping Calculator */
.shipping-calculator h3 {
    font-family: 'MuseoSansRounded700', sans-serif;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.shipping-calculator label {
    font-family: 'MuseoSansRounded500', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'MuseoSansRounded300', sans-serif;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #76b82a;
    box-shadow: 0 0 0 3px rgba(118, 184, 42, 0.1);
}

/* Coupon Messages */
#coupon-message {
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    animation: slideInDown 0.3s ease;
}

#coupon-message.alert-success {
    background: linear-gradient(135deg, #009d3d 0%, #006c2a 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(118, 184, 42, 0.3);
}

#coupon-message.alert-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

#coupon-message i {
    font-size: 20px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
