/* CART PAGE STYLES */
.cart-page-content {
    background-color: #fff;
    padding: 60px 5%;
    display: flex;
    justify-content: center;
}

.cart-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
}

.cart-back-btn {
    margin-bottom: 30px;
}

.cart-back-btn a {
    color: #666;
    font-size: 24px;
    transition: 0.3s;
}

.cart-back-btn a:hover {
    color: #FF3229;
}

.cart-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* LEFT MAIN COLUMN */
.cart-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Free Shipping Bar */
.free-shipping-bar {
    background-color: #f7f7f7;
    padding: 25px 30px;
    border-radius: 4px;
}

.free-shipping-bar p {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.free-shipping-bar p strong {
    color: #FF3229;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #FF3229;
    border-radius: 2px;
}

/* Cart Table Wrapper */
.cart-table-wrapper {
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
}

.cart-table th.col-remove { text-align: center; }

.cart-table td {
    padding: 25px 0;
    border-bottom: 1px solid #eaeaea;
    vertical-align: middle;
}

.col-remove { width: 40px; text-align: center; }
.col-product { width: 40%; }
.col-price { width: 20%; }
.col-qty { width: 15%; }
.col-subtotal { width: 15%; text-align: left; }

.remove-btn {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.remove-btn:hover {
    color: #FF3229;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-info img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background: #fff;
    padding: 0px;
}

.product-info span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

.current-price {
    font-weight: 700;
    color: #111;
    margin-right: 10px;
    font-size: 14px;
}

.old-price {
    color: #aaa;
    font-size: 13px;
}

/* Qty Selector */
.qty-selector {
    display: flex;
    align-items: center;
    width: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.qty-selector input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    outline: none;
}

/* hide inner arrows for number input */
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-selector input[type=number] {
  -moz-appearance: textfield;
}

.qty-arrows {
    display: flex;
    flex-direction: column;
    width: 30px;
    border-left: 1px solid #ddd;
}

.qty-arrows i {
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #888;
    cursor: pointer;
    background: #fafafa;
}

.qty-arrows i:first-child {
    border-bottom: 1px solid #ddd;
}

.qty-arrows i:hover {
    background: #eee;
}

.col-subtotal strong {
    font-weight: 700;
    color: #111;
    font-size: 14px;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.coupon-area {
    display: flex;
    gap: 15px;
}

.coupon-area input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    width: 200px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #222;
    color: #222;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #222;
    color: #fff;
}

.btn-red {
    background: #FF3229;
    border: none;
    color: #fff;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-red:hover {
    background: #e02820;
}

.w-100 {
    width: 100%;
}

/* RIGHT SIDEBAR: CART TOTALS */
.cart-sidebar {
    width: 380px;
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 30px;
}

.cart-sidebar h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.totals-row {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

.totals-label {
    width: 120px;
    font-size: 13px;
    color: #888;
}

.totals-value {
    flex: 1;
    font-size: 14px;
    color: #111;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-options label {
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.shipping-note {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    line-height: 1.5;
}

.calc-shipping {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-top: 10px;
}

.total-amount-row {
    border-bottom: none;
    margin-bottom: 20px;
}

.total-amount-row .totals-value strong {
    font-size: 18px;
    color: #111;
}

/* RESPONSIVE */
@media(max-width: 1024px) {
    .cart-layout {
        flex-direction: column;
    }
    .cart-sidebar {
        width: 100%;
    }
    .cart-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .coupon-area {
        width: 100%;
    }
}

@media(max-width: 768px) {
    .cart-page-content {
        padding: 40px 5%;
    }
    
    .cart-main {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .cart-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 15px;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    .cart-table {
        min-width: 650px;
        width: 100%;
    }
    
    .coupon-area {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }
    
    .coupon-area input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-outline {
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-red {
        width: 100%;
        margin-top: 15px;
        box-sizing: border-box;
    }
    
    .cart-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        box-sizing: border-box;
    }
    
    .cart-totals-card {
        padding: 20px;
    }
}
