/**
 * Sheikh WooCommerce - Cart Page Styles
 * 
 * @package Muzamna Theme
 */

/* ============================================
   CART PAGE WRAPPER
   ============================================ */

.sheikh-cart-page {
    padding: 2rem 0;
    max-width: var(--gb-container-width, 1200px);
    margin: 0 auto;
}

/* ============================================
   CHECKOUT PROGRESS
   ============================================ */

.sheikh-checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sheikh-radius-lg);
}

.sheikh-progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sheikh-progress-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--sheikh-transition);
}

.sheikh-progress-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 0.9375rem;
}

.sheikh-progress-step--active .sheikh-progress-number {
    background: var(--sheikh-gold-500);
    border-color: var(--sheikh-gold-500);
    color: var(--sheikh-navy-900);
}

.sheikh-progress-step--active .sheikh-progress-label {
    color: white;
}

.sheikh-progress-step--completed .sheikh-progress-number {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.sheikh-progress-step--completed .sheikh-progress-label {
    color: rgba(255, 255, 255, 0.7);
}

.sheikh-progress-line {
    flex: 1;
    max-width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

.sheikh-progress-line--completed {
    background: #10b981;
}

/* ============================================
   CONTINUE SHOPPING
   ============================================ */

.sheikh-continue-shopping {
    margin-bottom: 1.5rem;
}

/* ============================================
   CART TABLE
   ============================================ */

.woocommerce-cart-form {
    margin-bottom: 2rem;
}

.woocommerce table.shop_table {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sheikh-radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.woocommerce table.shop_table th {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.woocommerce table.shop_table td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
}

.woocommerce table.shop_table tr:last-child td {
    border-bottom: none;
}

/* Product Thumbnail */
.woocommerce table.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--sheikh-radius);
}

/* Product Name */
.woocommerce table.shop_table .product-name a {
    color: white;
    font-weight: 600;
}

.woocommerce table.shop_table .product-name a:hover {
    color: var(--sheikh-gold-400);
}

/* Product Price */
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    color: var(--sheikh-gold-400);
    font-weight: 600;
}

/* Remove Button */
.woocommerce table.shop_table .product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    color: #ef4444;
    font-size: 1.25rem;
    transition: all var(--sheikh-transition);
}

.woocommerce table.shop_table .product-remove a:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Actions Row */
.woocommerce table.shop_table td.actions {
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.woocommerce .coupon {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.woocommerce .coupon input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.woocommerce button[name="update_cart"] {
    margin-right: auto;
}

/* ============================================
   CART COLLATERALS
   ============================================ */

.woocommerce .cart-collaterals {
    margin-top: 2rem;
}

.woocommerce .cart_totals {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sheikh-radius-lg);
    padding: 1.5rem;
}

.woocommerce .cart_totals h2 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce .cart_totals table {
    border: none;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 0.75rem 0;
    border: none;
    background: transparent;
}

.woocommerce .cart_totals table th {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.woocommerce .cart_totals table td {
    color: white;
    text-align: left;
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce .cart_totals .order-total td {
    color: var(--sheikh-gold-400);
}

/* Proceed to Checkout */
.woocommerce .wc-proceed-to-checkout {
    padding-top: 1.5rem;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: block;
    text-align: center;
    font-size: 1.125rem;
}

/* ============================================
   SECURITY BADGES
   ============================================ */

.sheikh-security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.sheikh-security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.sheikh-security-badge svg {
    color: #10b981;
}

/* ============================================
   SHIPPING CALCULATOR
   ============================================ */

.woocommerce .shipping-calculator-button {
    color: var(--sheikh-gold-400);
    font-size: 0.875rem;
}

.woocommerce .shipping-calculator-form {
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--sheikh-radius);
}

/* ============================================
   EMPTY CART
   ============================================ */

.woocommerce .cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.woocommerce .return-to-shop {
    margin-top: 1.5rem;
}

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

@media (max-width: 768px) {
    .sheikh-checkout-progress {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .sheikh-progress-line {
        display: none;
    }
    
    .woocommerce table.shop_table,
    .woocommerce table.shop_table thead,
    .woocommerce table.shop_table tbody,
    .woocommerce table.shop_table tr,
    .woocommerce table.shop_table td {
        display: block;
    }
    
    .woocommerce table.shop_table thead {
        display: none;
    }
    
    .woocommerce table.shop_table tr {
        padding: 1rem;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--sheikh-radius);
    }
    
    .woocommerce table.shop_table td {
        padding: 0.5rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .woocommerce table.shop_table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
    }
    
    .woocommerce table.shop_table td.product-thumbnail {
        justify-content: center;
    }
    
    .woocommerce table.shop_table td.actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .woocommerce .coupon {
        width: 100%;
    }
}

/* ============================================
   custom
   ============================================ */
#add_payment_method .cart-collaterals .cart_totals table, .woocommerce-cart .cart-collaterals .cart_totals table, .woocommerce-checkout .cart-collaterals .cart_totals table {
    padding: 10px;
}

.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
}