.handzom-cart-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: "Ysabeau Office", sans-serif;
    color: #111;
    position: relative;
}

.handzom-cart-wrapper.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Header */
.hz-cart-header {
    text-align: center;
    margin-bottom: 50px;
}

.hz-cart-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hz-cart-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Layout */
.hz-cart-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.hz-cart-items-section {
    flex: 1 1 60%;
}

.hz-cart-summary-section {
    flex: 1 1 30%;
    min-width: 300px;
}

.hz-cart-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Globally hide the default WooCommerce "View cart" link that appears after AJAX add to cart */
a.added_to_cart.wc-forward {
    display: none !important;
}

/* Cart Items */
.hz-cart-items-list {
    display: flex;
    flex-direction: column;
}

.hz-cart-item {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    align-items: flex-start;
}

.hz-cart-item:first-child {
    padding-top: 0;
}

.hz-cart-item:last-child {
    border-bottom: none;
}

.hz-cart-item-image {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f9f9f9;
}  

.hz-cart-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.hz-cart-item-image img,
.hz-cart-item-image .hz-cart-item-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
}

.hz-cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hz-cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.hz-cart-item-name {
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    padding-right: 15px;
}

.hz-cart-item-name a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.hz-cart-item-name a:hover {
    color: #666;
}

.hz-cart-item-price {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

/* Variation Metadata */
.hz-cart-item-details dl.variation {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
}

.hz-cart-item-details dl.variation p {
    margin: 0;
}

.hz-cart-item-details dl.variation dt {
    font-weight: 500;
    display: inline-block;
}

.hz-cart-item-details dl.variation dd {
    margin: 0;
    display: inline-block;
}

/* Actions */
.hz-cart-item-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hz-cart-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hz-cart-qty-label {
    display: none; /* Hide label for cleaner look */
}

.hz-cart-qty-controls {
    display: flex;
    border: 1px solid #ddd;
    width: fit-content !important;
    max-width: 100px !important;
    border-radius: 2px;
}

.hz-qty-btn {
    background: transparent !important;
    border: none !important;
    width: 28px !important;
    height: 32px !important;
    font-size: 16px;
    cursor: pointer;
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s, color 0.2s;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 28px !important;
}

.hz-qty-btn:hover {
    background-color: #f0f0f0 !important;
}

.hz-qty-btn:active {
    background-color: #e0e0e0 !important;
}

.hz-qty-input {
    width: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    height: 32px !important;
    min-height: 32px !important;
    text-align: center;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    -moz-appearance: textfield;
    font-family: inherit;
    font-size: 13px !important;
    pointer-events: none;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
}

.hz-qty-input::-webkit-outer-spin-button,
.hz-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hz-cart-item-remove {
    background: transparent !important;
    border: none;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.hz-cart-item-remove:hover {
    color: #111;
    background: transparent !important;
    border-bottom: 1px solid #111;
}

/* Order Summary */
.hz-cart-summary-section {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 10;
}

.hz-cart-summary-box {
    background: #fafafa;
    padding: 30px;
    border: 1px solid #eaeaea;
}

.hz-cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
    color: #333;
}

.hz-cart-summary-row span:last-child {
    font-weight: 500;
}

.hz-discount-row {
    color: #62d2a2;
}

.hz-cart-total-row {
    border-top: 1px solid #eaeaea;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 500;
    color: #111;
}

/* Coupon */
.hz-cart-coupon {
    display: flex;
    margin-top: 30px;
    margin-bottom: 10px;
}

.hz-coupon-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-right: none;
    padding: 10px 15px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.hz-coupon-input:focus {
    border-color: #111;
}

.hz-coupon-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #111;
    padding: 0 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.hz-coupon-btn:hover,
.hz-coupon-btn:focus {
    background-color: #111;
    color: #fff;
    border-color: #111;
    outline: none;
}

.hz-coupon-btn:active {
    background-color: #333;
}

.hz-cart-coupon-message {
    font-size: 12px;
    margin-bottom: 25px;
}

.hz-cart-coupon-message.success {
    color: #62d2a2;
}

.hz-cart-coupon-message.error {
    color: #ff5252;
}

/* Checkout Button */
.hz-cart-checkout-btn {
    display: block;
    width: 100%;
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid #111;
    cursor: pointer;
}

.hz-cart-checkout-btn:hover,
.hz-cart-checkout-btn:focus {
    background-color: #fff;
    color: #111;
    outline: none;
}

.hz-cart-checkout-btn:active {
    background-color: #f5f5f5;
}

/* Empty Cart */
.hz-empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.hz-empty-cart-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.hz-empty-cart-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 40px;
}

.hz-continue-shopping-btn {
    display: inline-block;
    background-color: #111;
    color: #fff;
    padding: 15px 40px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid #111;
}

.hz-continue-shopping-btn:hover,
.hz-continue-shopping-btn:focus {
    background-color: #fff;
    color: #111;
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hz-cart-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .hz-cart-summary-section,
    .hz-cart-items-section {
        flex: 1 1 100%;
        width: 100%;
    }

    .hz-cart-item {
        gap: 12px;
        padding: 12px 0;
    }

    .hz-cart-item-image {
        width: 75px;
    }
    
    .hz-cart-item-actions {
        margin-top: 8px;
    }

    .hz-cart-item-header {
        flex-direction: column;
        gap: 4px;
    }

    .hz-cart-item-name {
        font-size: 13px;
        padding-right: 0;
    }

    .hz-cart-item-price {
        font-size: 13px;
    }

    .hz-qty-btn {
        width: 24px !important;
        height: 28px !important;
        min-width: 24px !important;
        font-size: 14px;
    }

    .hz-qty-input {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 28px !important;
        min-height: 28px !important;
        font-size: 12px !important;
    }
}
