/* Custom Cart Styles - Matching Image Design */

.custom-cart-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #fff;
    margin-top: 250px;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.cart-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    color: #000;
}

.continue-shopping-btn {
    padding: 12px 30px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
    background: #000;
    color: #fff;
}

.custom-cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
}

/* Cart Items Section */
.cart-items-section {
    width: 100%;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 5px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item-image {
    width: 80px;
    height: 120px;
    flex-shrink: 0;
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    /* flex-direction: column; */
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.cart-item-name {
    font-size: 14px;
    color: #000;
    font-weight: 400;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 14px;
    color: #666;
    /* margin-top: 5px; */
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    /* margin-top: auto; */
    flex-direction: column;
    align-items: flex-start;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgb(209, 205, 196);
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.qty-input {
    width: 45px;
    height: 35px;
    border: none;
    text-align: center;
    font-size: 14px;
}

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

.remove-item {
    font-size: 11px;
    color: #666;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #000;
}

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cart-subtotal-box {
    background: #fff;
    padding: 0;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.subtotal-label {
    font-size: 12px;
    color: #000;
    font-weight: 400;
    letter-spacing: 1px;
}

.subtotal-amount {
    font-size: 20px;
    color: #000;
    font-weight: 400;
}

/* Gift Section */
.gift-section {
    margin-bottom: 25px;
}

.gift-toggle {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    width: 100%;
    padding: 12px 0px !important;
    border: 1px solid #e5e5e5;
    background: #fff !important;
    font-size: 13px;
    color: #000;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    text-transform: none !important;
}


.gift-toggle:hover {
    border-color: #ccc;
}

.gift-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #666;
}

.gift-toggle.active .gift-arrow {
    transform: rotate(180deg);
}

.gift-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.gift-content.open {
    max-height: 200px;
    margin-top: 10px;
}

.gift-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 13px;
    color: #000;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.gift-textarea:focus {
    outline: none;
    border-color: #ccc;
}

.gift-textarea::placeholder {
    color: #999;
}

/* Terms Checkbox */
.terms-checkbox {
    margin-bottom: 25px;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #000;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Checkout Button */
.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: #4a4a4a;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

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

.lock-icon {
    font-size: 14px;
}

/* Checkout Note */
.checkout-note {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

/* Responsive */
@media (max-width: 968px) {
    .custom-cart-wrapper {
        padding: 40px 20px;
    }

    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .custom-cart-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cart-sidebar {
        position: static;
    }
    
    .cart-item {
        gap: 15px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 90px;
    }
}