/* ===================================
   CART PAGE STYLES
   =================================== */

/* === BASE VARIABLES === */
:root {
    --primary-color: #325D53;
    --primary-hover: #285446;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #E5E5E5;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

/* === PAGE LAYOUT === */
.woocommerce-cart-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Fix header */
.woocommerce-cart-page .homepage-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.woocommerce-cart-page .logo .logo-colored {
    opacity: 0;
}

.woocommerce-cart-page .logo .logo-green {
    opacity: 1;
}

.woocommerce-cart-page .mobile-menu-toggle span {
    background: #325D53;
}

.woocommerce-cart-page .line-button {
    color: #325D53;
}

.woocommerce-cart-page .main-nav ul li a {
    color: #325D53;
}

/* === MAIN CONTENT === */
.woocommerce-cart {
    padding: 150px 0 80px;
    min-height: 100vh;
}

.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* === CART HEADER === */
.cart-page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

.cart-page-title {
    font-family: 'Geist', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cart-page-title i {
    color: var(--primary-color);
}

.cart-page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-light);
}

/* === CART LAYOUT === */
.woocommerce-cart-form {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 40px;
}

/* === CART TABLE === */
.cart-table-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease;
}

.woocommerce table.cart {
    width: 100%;
    border: none;
}

.woocommerce table.cart thead {
    background: #f8f9fa;
    border-radius: 10px;
}

.woocommerce table.cart thead th {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 20px 15px;
    border: none;
    text-align: left;
}

.woocommerce table.cart tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.woocommerce table.cart tbody tr:last-child {
    border-bottom: none;
}

.woocommerce table.cart tbody td {
    padding: 25px 15px;
    vertical-align: middle;
    border: none;
}

/* === PRODUCT IMAGE === */
.woocommerce table.cart .product-thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* === PRODUCT NAME === */
.woocommerce table.cart .product-name a {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce table.cart .product-name a:hover {
    color: var(--primary-color);
}

/* === PRODUCT PRICE === */
.woocommerce table.cart .product-price {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* === QUANTITY INPUT === */
.woocommerce table.cart .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    width: fit-content;
}

.woocommerce table.cart .quantity .qty {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* === PRODUCT SUBTOTAL === */
.woocommerce table.cart .product-subtotal {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* === REMOVE BUTTON === */
.woocommerce table.cart .product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #fee;
    color: var(--danger-color) !important;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.woocommerce table.cart .product-remove a:hover {
    background: var(--danger-color);
    color: #ffffff !important;
    transform: rotate(90deg);
}

/* === UPDATE CART BUTTON === */
.woocommerce table.cart .actions {
    padding: 20px 0 0 0;
    border-top: 2px solid var(--border-color);
}

.woocommerce table.cart .actions .button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px 35px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.woocommerce table.cart .actions .button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 93, 83, 0.3);
}

/* === CART TOTALS === */
.cart-collaterals {
    animation: fadeInUp 0.7s ease;
}

.cart_totals {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
}

.cart_totals h2 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.cart_totals table {
    width: 100%;
    border: none;
}

.cart_totals table tr {
    border-bottom: 1px solid #f0f0f0;
}

.cart_totals table tr:last-child {
    border-bottom: none;
}

.cart_totals table th,
.cart_totals table td {
    font-family: 'Inter', sans-serif;
    padding: 15px 0;
    border: none;
}

.cart_totals table th {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
}

.cart_totals table td {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 20px;
}

/* === CHECKOUT BUTTON === */
.wc-proceed-to-checkout {
    margin-top: 25px;
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: #ffffff !important;
    border: none;
    padding: 16px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50, 93, 83, 0.3);
}

/* === EMPTY CART === */
.woocommerce .cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.8s ease;
}

.woocommerce .cart-empty::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 80px;
    color: var(--border-color);
    display: block;
    margin-bottom: 25px;
}

.woocommerce .cart-empty {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.woocommerce .return-to-shop {
    margin-top: 30px;
}

.woocommerce .return-to-shop .button {
    background: var(--primary-color);
    color: #ffffff !important;
    border: none;
    padding: 14px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.woocommerce .return-to-shop .button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 93, 83, 0.3);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE DESIGN === */

/* Tablet */
@media (max-width: 1024px) {
    .woocommerce-cart .woocommerce {
        padding: 0 30px;
    }
    
    .woocommerce-cart-form {
        grid-template-columns: 1fr;
    }
    
    .cart_totals {
        position: static;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .woocommerce-cart {
        padding: 110px 0 60px;
    }
    
    .woocommerce-cart .woocommerce {
        padding: 0 20px;
    }
    
    .cart-page-title {
        font-size: 36px;
    }
    
    .cart-table-wrapper {
        padding: 20px;
        overflow-x: auto;
    }
    
    .woocommerce table.cart {
        min-width: 600px;
    }
    
    .woocommerce table.cart .product-thumbnail img {
        width: 70px;
        height: 70px;
    }
    
    .cart_totals {
        padding: 25px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cart-page-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }
    
    .woocommerce table.cart {
        min-width: 500px;
    }
}