/* ===== Cart Header Section ===== */
.cart-header-section {
    background: #f8f8f8;
    padding: 40px 0 30px;
    margin-bottom: 50px;
}

.cart-main-title {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: #111;
    text-align: center;
}

.cart-breadcrumb {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #111;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-current {
    color: #111;
}

/* ===== Cart Content Section ===== */
.cart-content-section {
    padding: 0 0 80px;
}

.cart-form {
    width: 100%;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* ===== Cart Items ===== */
.cart-items-wrapper {
    background: #fff;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr 150px 120px 50px;
    gap: 20px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #e8e8e8;
}

.cart-item:first-child {
    border-top: 1px solid #e8e8e8;
}

.cart-item-image {
    width: 120px;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.cart-item-name {
    font-size: 16px;
    font-weight: 400;
    color: #111;
    margin: 0;
    line-height: 1.4;
}

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

.cart-item-price {
    font-size: 15px;
    color: #111;
    margin: 0;
    font-weight: 500;
}

.cart-item-mobile-actions {
    display: none;
}

/* ===== Quantity Selector ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: fit-content;
    height: 45px;
}

.qty-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    font-size: 14px;
}

.qty-btn:hover {
    background: #f5f5f5;
    color: #111;
}

.qty-input {
    width: 60px;
    height: 100%;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    color: #111;
    background: #fff;
}

.qty-input:focus {
    outline: none;
}

/* Remove spinner arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.cart-item-total {
    text-align: right;
}

.item-total-price {
    font-size: 16px;
    font-weight: 500;
    color: #111;
    margin: 0;
}

.cart-item-remove {
    text-align: center;
}

.remove-item-btn {
    color: #999;
    font-size: 20px;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.remove-item-btn:hover {
    color: #d02e2e;
}

/* ===== Empty Cart ===== */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
}

.empty-cart i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.empty-cart h3 {
    font-size: 24px;
    font-weight: 400;
    color: #111;
    margin-bottom: 10px;
}

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

.empty-cart .continue-shopping-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

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

/* ===== Cart Summary ===== */
.cart-summary-wrapper {
    position: sticky;
    top: 100px;
}

.cart-summary {
    background: #f8f8f8;
    padding: 30px;
    border: 1px solid #e8e8e8;
}

.summary-title {
    font-size: 20px;
    font-weight: 400;
    color: #111;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

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

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

.summary-divider {
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

.summary-total {
    margin-top: 20px;
    margin-bottom: 30px;
}

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

.summary-total .summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.checkout-btn {
    width: 100%;
    padding: 16px 30px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.checkout-btn:hover {
    background: #333;
}

.checkout-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.continue-shopping-link {
    display: block;
    text-align: center;
    color: #666;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.continue-shopping-link:hover {
    color: #111;
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 350px;
        gap: 30px;
    }

    .cart-item {
        grid-template-columns: 100px 1fr 130px 100px 40px;
        gap: 15px;
        padding: 25px 0;
    }

    .cart-item-image {
        width: 100px;
        height: 130px;
    }

    .cart-summary {
        padding: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .cart-header-section {
        padding: 30px 0 20px;
        margin-bottom: 30px;
    }

    .cart-main-title {
        font-size: 26px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cart-summary-wrapper {
        position: static;
        order: 2;
    }

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

    .cart-item-image {
        width: 90px;
        height: 120px;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        display: none;
    }

    .cart-item-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-top: 10px;
    }

    .cart-item-mobile-actions .quantity-selector {
        height: 40px;
    }

    .cart-item-mobile-actions .qty-btn {
        width: 35px;
    }

    .cart-item-mobile-actions .qty-input {
        width: 50px;
    }

    .cart-summary {
        padding: 25px 20px;
    }

    .summary-title {
        font-size: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cart-header-section {
        padding: 25px 0 15px;
        margin-bottom: 25px;
    }

    .cart-main-title {
        font-size: 22px;
    }

    .cart-breadcrumb {
        font-size: 13px;
    }

    .cart-item {
        grid-template-columns: 90px 1fr;
        gap: 12px;
        padding: 25px 25px;
    }

    .cart-item-image {
        width: 80px;
        height: 105px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 14px;
    }

    .cart-item-size {
        font-size: 12px;
    }

    .cart-item-mobile-actions .quantity-selector {
        height: 36px;
    }

    .cart-item-mobile-actions .qty-btn {
        width: 32px;
        font-size: 12px;
    }

    .cart-item-mobile-actions .qty-input {
        width: 45px;
        font-size: 13px;
    }

    .cart-summary {
        padding: 20px 15px;
    }

    .checkout-btn {
        padding: 14px 25px;
        font-size: 13px;
    }

    .empty-cart {
        padding: 60px 15px;
    }

    .empty-cart i {
        font-size: 60px;
    }

    .empty-cart h3 {
        font-size: 20px;
    }

    .empty-cart p {
        font-size: 14px;
    }
}

/* ===== Custom SweetAlert Styling for Cart ===== */
.swal-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.swal-modal {
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.swal-title {
    font-size: 24px;
    font-weight: 500;
    color: #111;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

.swal-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.swal-footer {
    text-align: center;
    margin-top: 25px;
}

.swal-button {
    padding: 12px 30px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.swal-button-cancel {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.swal-button-cancel:hover {
    background-color: #e8e8e8;
    color: #111;
    border-color: #ccc;
}

.swal-button-confirm {
    background-color: #d02e2e;
    color: #fff;
    border: none;
    margin-left: 10px;
}

.swal-button-confirm:hover {
    background-color: #b02525;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(208, 46, 46, 0.3);
}

.swal-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(208, 46, 46, 0.2);
}

.swal-icon--warning {
    border-color: #f8bb86;
}

.swal-icon--warning__body,
.swal-icon--warning__dot {
    background-color: #f8bb86;
}

.swal-icon--info {
    border-color: #9de0f6;
}

.swal-icon--info::before,
.swal-icon--info::after {
    background-color: #9de0f6;
}

