/* ===== CART PAGE ===== */
.cart-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cart-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 40px;
    color: #000;
    letter-spacing: 2px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* ===== CART ITEMS ===== */
.cart-items-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px 120px 40px;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.cart-item-sku {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.cart-item-price {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background-color 0.3s;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 8px 5px;
    font-size: 14px;
}

.cart-item-total {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

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

/* ===== EMPTY CART ===== */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.cart-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #666;
}

.cart-empty p {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.btn-continue-shopping {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

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

/* ===== CART SUMMARY ===== */
.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #000;
    letter-spacing: 1px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-of-type {
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

.summary-value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

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

.summary-total .summary-label {
    font-size: 18px;
    font-weight: 500;
    color: #000;
}

.summary-total .summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.shipping-note {
    font-size: 12px;
    color: #28a745;
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f9f4;
    border-radius: 4px;
    text-align: center;
}

.btn-checkout {
    background-color: #FFD700;
    color: #000;
    border: none;
    padding: 18px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 15px;
}

.btn-checkout:hover {
    background-color: #FFC700;
}

.btn-clear-cart {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    text-transform: uppercase;
    width: 100%;
}

.btn-clear-cart:hover {
    background-color: #f9f9f9;
    border-color: #999;
    color: #333;
}

/* ===== CART NOTIFICATION ===== */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    font-weight: bold;
}

.notification-message {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ===== CART COUNTER BADGE ===== */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FFD700;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== CONTINUE SHOPPING SECTION ===== */
.continue-shopping {
    margin-top: 30px;
    text-align: center;
}

.continue-shopping a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.continue-shopping a:hover {
    color: #000;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .cart-item-quantity {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .cart-item-total {
        grid-column: 1 / -1;
        text-align: left;
        font-size: 20px;
    }

    .cart-item-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .cart-item {
        position: relative;
        padding: 20px 0;
    }
}
/* ===================================
   ESTILOS PARA VARIANTES EN CARRITO
   =================================== */

/* Variantes en el carrito completo */
.cart-item-variants {
    color: #666;
    font-size: 0.9em;
    margin-top: 4px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: inline-block;
}

.cart-item-variants strong {
    color: #111;
    font-weight: 600;
}

/* Variantes en el mini-cart */
.mini-cart-item-variants {
    color: #999;
    font-size: 0.85em;
    margin-top: 4px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.mini-cart-item-variants strong {
    color: #111;
    font-weight: 600;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .cart-item-variants {
        font-size: 0.85em;
        padding: 6px 10px;
    }

    .mini-cart-item-variants {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}