/* ========================================
   CART PAGE STYLES - MORIMICHI SHOTEN
======================================== */

/* Página principal del carrito */
.fs-l-pageMain {
    margin: 0 auto !important;
    padding: 40px 20px !important;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Título del carrito */
.fs-c-heading--page {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 30px !important;
    text-align: center;
    border-bottom: 3px solid #ff7315cf;
    padding-bottom: 15px;
}

/* Contenedor principal */
.fs-l-cart__contentsArea {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

/* Columna principal de la tabla */
.fs-l-cart__mainColumn {
    flex: 1;
}

/* Container de la tabla */
.fs-c-cartTableContainer {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* Tabla del carrito */
.fs-c-cartTable {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header de la tabla */
.fs-c-cartTable thead {
    background: linear-gradient(135deg, #ff7315cf 0%, #ff7315cf 100%);
}

.fs-c-cartTable__headerCell {
    padding: 18px 15px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: left !important;
    border-bottom: none !important;
    letter-spacing: 0.5px;
}

.fs-c-cartTable__headerCell--product {
    width: 50% !important;
}

.fs-c-cartTable__headerCell--quantity {
    width: 15% !important;
    text-align: center !important;
}

.fs-c-cartTable__headerCell--subtotal {
    width: 20% !important;
    text-align: right !important;
}

.fs-c-cartTable__headerCell--action {
    width: 15% !important;
    text-align: center !important;
}

/* Filas de la tabla */
.fs-c-cartTable__row {
    border-bottom: 1px solid #f1f3f4 !important;
    transition: all 0.3s ease;
}

.fs-c-cartTable__row:hover {
    background-color: #f8fffe !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(29, 178, 191, 0.1);
}

.fs-c-cartTable__row:last-child {
    border-bottom: none !important;
}

/* Celdas de la tabla */
.fs-c-cartTable__dataCell {
    padding: 20px 15px !important;
    vertical-align: middle !important;
    border-bottom: none !important;
}

/* Producto */
.fs-c-cartTable__product {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.fs-c-cartTable__productImage {
    flex-shrink: 0;
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid #f1f3f4 !important;
    transition: all 0.3s ease;
}

.fs-c-cartTable__productImage:hover {
    border-color: #ff7315cf !important;
    transform: scale(1.05);
}

.fs-c-cartTable__productImage__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.3s ease;
}

.fs-c-cartTable__productInfo {
    flex: 1;
    min-width: 0;
}

.fs-c-cartTable__productName__name .fs-c-listedProductName__name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: block !important;
    margin-bottom: 8px !important;
    transition: color 0.3s ease;
}

.fs-c-cartTable__productName__name .fs-c-listedProductName__name:hover {
    color: #ff7315cf !important;
}

/* Precio unitario */
.fs-c-cartTable__unitPrice {
    font-size: 14px !important;
    color: #6c757d !important;
}

.fs-c-price__currencyMark {
    font-size: 12px !important;
    margin-right: 2px !important;
}

.fs-c-price__value {
    font-weight: 600 !important;
    color: #28a745 !important;
}

.fs-c-productPrice__addon__label {
    font-size: 12px !important;
    color: #6c757d !important;
    margin-left: 5px !important;
}

/* Cantidad */
.fs-c-cartTable__dataCell--quantity {
    text-align: center !important;
}

.fs-c-cartTable__quantity .textfield {
    width: 70px !important;
    padding: 8px 10px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.fs-c-cartTable__quantity .textfield:focus {
    border-color: #ff7315cf !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(29, 178, 191, 0.1) !important;
}

/* Subtotal */
.fs-c-cartTable__dataCell--subtotal {
    text-align: right !important;
}

.fs-c-cartTable__price {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.fs-c-cartTable__price .fs-c-price__value {
    color: #dc3545 !important;
    font-size: 18px !important;
}

/* Botón de eliminar */
.fs-c-cartTable__dataCell--action {
    text-align: center !important;
}

.fs-c-button--cancel--cart {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.fs-c-button--cancel--cart:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

/* Columna lateral (totales) */
.fs-l-cart__sideColumn {
    background: white !important;
    border-radius: 12px !important;
    padding: 25px !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    height: fit-content !important;
    border: 1px solid #e9ecef;
}

/* Tabla de totales */
.fs-c-orderTotalTable {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 25px !important;
}

.fs-c-orderTotalTable tr {
    border-bottom: 1px solid #f1f3f4 !important;
}

.fs-c-orderTotalTable tr:last-child {
    border-bottom: 2px solid #ff7315cf !important;
}

.fs-c-orderTotalTable__mainRow {
    background: #f8fffe !important;
}

.fs-c-orderTotalTable th,
.fs-c-orderTotalTable td {
    padding: 15px 10px !important;
    text-align: left !important;
}

.fs-c-orderTotalTable th {
    font-weight: 600 !important;
    color: #2c3e50 !important;
    font-size: 14px !important;
}

.fs-c-orderTotalTable td {
    text-align: right !important;
    font-weight: 700 !important;
    color: #dc3545 !important;
    font-size: 16px !important;
}

#total-price {
    font-size: 20px !important;
    color: #dc3545 !important;
}

/* Botón de checkout */
.fs-c-purchaseHere {
    text-align: center !important;
}

.fs-c-purchaseHere__message {
    margin-bottom: 20px !important;
}

.fs-c-purchaseHere__message p {
    color: #6c757d !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.fs-c-button--unregisteredUserPurchase {
    display: block !important;
    width: 100% !important;
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.fs-c-button--unregisteredUserPurchase:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

/* Botón continuar comprando */
.fs-c-continueShopping {
    text-align: center !important;
    margin-top: 30px !important;
}

.fs-c-button--continueShopping {
    padding: 12px 30px !important;
    background: #6c757d !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.fs-c-button--continueShopping:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
}

/* Carrito vacío */
.empty-cart-message {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #6c757d !important;
}

.empty-cart-message .icon {
    font-size: 48px !important;
    margin-bottom: 20px !important;
}

.empty-cart-message h3 {
    font-size: 24px !important;
    margin-bottom: 10px !important;
    color: #2c3e50 !important;
}

.empty-cart-message p {
    font-size: 16px !important;
    margin-bottom: 25px !important;
}

.continue-shopping-btn {
    padding: 12px 25px !important;
    background: #ff7315cf !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.continue-shopping-btn:hover {
    background: #ff7315cf !important;
    transform: translateY(-1px) !important;
}

/* ========================================
   CART TABLE TFOOT STYLES
======================================== */

/* Fila del total */
.fs-c-cartTable__totalRow {
    background: linear-gradient(135deg, #ff7315cf 0%, #ff7315cf 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    border-top: 3px solid #ff7315cf !important;
}

.fs-c-cartTable__totalRow:hover {
    background: linear-gradient(135deg, #ff7315cf 0%, #137A85 100%) !important;
}

/* Celdas del total */
.fs-c-cartTable__totalCell {
    padding: 20px 15px !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
}

/* Label del total */
.fs-c-cartTable__totalLabel {
    font-size: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Precio del total */
.fs-c-cartTable__totalPrice {
    font-size: 24px !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: white !important;
}

.fs-c-cartTable__totalPrice .fs-c-price__currencyMark {
    font-size: 20px !important;
    margin-right: 5px;
    color: white !important;
}

.fs-c-cartTable__totalPrice .fs-c-price__value {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: white !important;
}

/* Responsive para el total */
@media (max-width: 768px) {
    .fs-c-cartTable__totalCell {
        padding: 15px 10px !important;
        font-size: 16px !important;
    }
    
    .fs-c-cartTable__totalLabel {
        font-size: 18px !important;
    }
    
    .fs-c-cartTable__totalPrice {
        font-size: 20px !important;
    }
    
    .fs-c-cartTable__totalPrice .fs-c-price__value {
        font-size: 20px !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fs-l-cart__contentsArea {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px !important;
    }
    
    .fs-l-cart__sideColumn {
        width: 100% !important;
    }
    
    .fs-c-cartTable__product {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .fs-c-cartTable__productImage {
        width: 60px !important;
        height: 60px !important;
    }
    
    .fs-c-cartTable__headerCell,
    .fs-c-cartTable__dataCell {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }
    
    .fs-c-cartTable__productName__name .fs-c-listedProductName__name {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .fs-c-cartTable {
        font-size: 12px !important;
    }
    
    .fs-c-cartTable__headerCell--product {
        width: 40% !important;
    }
    
    .fs-c-cartTable__headerCell--quantity,
    .fs-c-cartTable__headerCell--subtotal,
    .fs-c-cartTable__headerCell--action {
        width: 20% !important;
    }
}
