.custom-cart-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.cart-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cart Item Row - 4 Column Layout */
.cart-item-row {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 32px;
    align-items: start;
    position: relative;
    align-items: center;
}

/* Column 1: Thumbnail */
.cart-col-thumbnail {
    display: flex;
    gap: 20px;
}

.thumbnail-wrapper {
    position: relative;
    width: 201px;
    height: auto;
    flex-shrink: 0;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 210px;
    object-fit: contain;
}

.cart-meta-detail{
    display: flex;
    justify-content: space-between;
    flex: 1;
    position: relative;
}

.cart-meta-detail-wrapper {
    display: flex;
    justify-content: space-between;
    flex: 1;
    padding-right: 50px;
}

.brand-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #62B5BD;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.product-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.product-weight {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.product-size {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.meta-label {
    color: #999;
    min-width: 60px;
}

.meta-value {
    color: #62B5BD;
    font-weight: 500;
}

.purity-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00a67e;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.research-notice {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Column 2: Details */
.cart-col-details {
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

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

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Quantity Controls - New Styles */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.quantity-btn {
    background: white;
    border: none;
    width: 32px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    user-select: none;
}

.quantity-btn:hover {
    background: #f8f9fa;
    color: #62B5BD;
}

.quantity-btn:active {
    background: #e9ecef;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-btn:disabled:hover {
    background: white;
    color: #666;
}

.quantity-input {
    width: 40px;
    height: 25px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

.quantity-controls:hover {
    border-color: #62B5BD;
}

/* Column 3: Price */
.cart-col-price {
    display: flex;
    align-items: self-start;
    justify-content: center;
}

.item-total-price {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* Column 4: Delete Button */
.cart-col-delete {
    position: absolute;
    right: 24px;
    top: 24px;
}

.remove-item-btn {
    background: white;
    border: 2px solid #9CD6DA;
    border-radius: 28px;
    padding: 4px 10px 4px 10px;
    cursor: pointer;
}

.remove-item-btn:hover {
    background: #fff5f5;
    border-color: #62B5BD;
}

.remove-item-btn svg {
    display: block;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #BBE1E3;
    color: #0A454A;
    padding: 12px 24px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: all 0.3s;
    height: 40px;
}

.continue-shopping:hover {
    background: #b8e8e8;
}

/* Loading State */
.updating {
    opacity: 0.6;
    pointer-events: none;
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}        

.summary-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    color: #333;
}

.summary-section {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: 24px;
    border: 8px solid #7ED0D63D;
}

.section-header {
    font-size: 12px;
    font-weight: 600;
    color: #17a2b8;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    color: #666;	
    gap: 30px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid #e0e0e0;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
}

.saved-noti {
    padding: 10px;
    background: #e0f4f5;
    border-radius: 10px;
}

.coupon-section {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 16px;
    padding: 20px 8px;
    border: 1px solid #EBEBEB;
    flex-wrap: wrap;
}

.coupon-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 0px;
}

.coupon-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.coupon-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    height: 36px;
}

.coupon-input:focus {
    outline: none;
    border-color: #17a2b8;
}

.coupon-input.applied {
    border-color: #00a67e;
    background-color: #f0fdf4;
}

.coupon-input.error {
    border-color: #ef4444;
}

.coupon-action-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.coupon-action-btn:hover {
    opacity: 0.7;
}

.coupon-action-btn svg {
    display: block;
}

.apply-coupon {
    right: 40px;
}

.clear-coupon {
    right: 12px;
}

.coupon-message {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
}

.coupon-message.success {
    background-color: #f0fdf4;
    color: #00a67e;
    border: 1px solid #00a67e;
}

.coupon-message.error {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #ef4444;
}

.checkout-btn-wrapper  {
    /*background: #7ED0D63D;*/
    /*padding: 32px;*/
    /*border-radius: 28px;*/
    /*margin-bottom: 24px;*/
 }
 .delivery-noti {
    text-align: center;
    /* background: #6eabaa45; */
    padding: 10px;
    border-radius: 16px;
    font-style: italic;
 }
.checkout-btn {
    display: block;
    width: 100%;
    background: #0C6A73;
    color: white;
    padding: 10px 25px;
    border-radius: 28px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
    line-height: 24px;
    letter-spacing: -0.0011em;
    margin-top:12px;
}

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

.secure-text {
    text-align: center;
    font-size: 12px;
    color: #17a2b8;
    margin-bottom: 0px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.feature-icon {
    font-size: 18px;
    display: flex;
}

.shipping-notice {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.shipping-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.shipping-add a {
    color: #00a67e;
    text-decoration: none;
    font-size: 13px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

@media (max-width: 1200px) {
    .cart-item-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-col-price,
    .cart-col-delete {
        justify-content: flex-start;
        padding-top: 0;
    }
    
    .remove-item-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .custom-cart-wrapper {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-col-thumbnail {
        flex-direction: column;
    }
    .cart-meta-detail-wrapper {
        display: flex;
        justify-content: space-between;
        flex: 1;
        padding-right: 0px;
        flex-direction: column;
    }
    .thumbnail-wrapper {
        width: 174px;
        height: auto;
    }
    .detail-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        min-width: 0px;
        flex-wrap: wrap;
    }
    .cart-item-row {
        padding: 15px;
        gap:10px;
    }
    .cart-col-delete {
        position: absolute;
        right: 0px;
        top: 0px;
    }
    .cart-col-price, .cart-col-delete {
        justify-content: flex-end;
        padding-top: 0;
    }
}
.product-title {
     color: #0C6A73;
}

/* Shipping Method Styles */
#cart-shipping {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shipping-method-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.shipping-method-label:hover {
    background-color: #f8f9fa;
}

.shipping-method-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.shipping-method-label input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.shipping-method-label:has(input:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}