/* Custom Cart Block Styles for Zoomarket Theme */

.wp-block-woocommerce-cart {
    --wp--preset--color--primary: var(--color-blue-600);
    --wp--preset--color--secondary: var(--color-gray-900);
    --wp--preset--radius--small: var(--radius-lg);
    --wp--preset--radius--medium: var(--radius-xl);
    --wp--preset--radius--large: var(--radius-2xl);
    --wp--preset--font-size--small: var(--text-sm);
    --wp--preset--font-size--medium: var(--text-base);
    --wp--preset--font-size--large: var(--text-lg);
}

/* Cart Container */
.wp-block-woocommerce-cart .wc-block-cart__content {
    gap: 2rem;
}

/* Cart Items Table */
.wc-block-cart-items {
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.wc-block-cart-items__header {
    color: var(--color-gray-400);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    font-weight: var(--font-weight-black);
    border-bottom: 1px solid var(--color-gray-100);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.wc-block-cart-item__image {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-100);
    padding: 0.5rem;
    background: var(--color-gray-50);
}

.wc-block-cart-item__product-name {
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    text-decoration: none;
}

.wc-block-cart-item__product-name:hover {
    color: var(--color-blue-600);
}

.wc-block-cart-item__prices {
    font-weight: var(--font-weight-black);
    color: var(--color-gray-900);
}

/* Quantity Selector */
.wc-block-components-quantity-selector {
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--color-gray-200) !important;
    overflow: hidden;
}

.wc-block-components-quantity-selector__button {
    background-color: var(--color-gray-50) !important;
    color: var(--color-gray-600) !important;
    transition: all 0.2s;
}

.wc-block-components-quantity-selector__button:hover {
    background-color: var(--color-gray-100) !important;
    color: var(--color-blue-600) !important;
}

.wc-block-components-quantity-selector__input {
    font-weight: var(--font-weight-bold) !important;
    color: var(--color-gray-900) !important;
    border: none !important;
}

/* Totals Sidebar */
.wp-block-woocommerce-cart-order-summary-block {
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    background-color: var(--color-gray-50);
    box-shadow: var(--shadow-sm);
}

.wc-block-components-totals-wrapper {
    gap: 1rem;
}

.wc-block-components-totals-item {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-black);
    color: var(--color-gray-900);
}

/* Proceed to Checkout Button */
.wc-block-cart__submit-button {
    background-color: var(--color-blue-600) !important;
    color: white !important;
    font-weight: var(--font-weight-bold) !important;
    border-radius: var(--radius-xl) !important;
    padding: 1rem 2rem !important;
    font-size: var(--text-lg) !important;
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--color-blue-100);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wc-block-cart__submit-button:hover {
    background-color: var(--color-blue-700) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 0 4px var(--color-blue-200);
}

.wc-block-cart__submit-button:active {
    transform: translateY(0);
}

/* Coupon Code */
.wc-block-components-collapsible-content .wc-block-components-text-input input {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    padding: 0.75rem 1rem;
}

.wc-block-components-collapsible-content .wc-block-components-button {
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-600);
}

/* Empty Cart */
.wc-block-cart--is-empty {
    text-align: center;
    padding: 4rem 0;
}

.wc-block-cart--is-empty .wp-block-woocommerce-empty-cart-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.wc-block-cart--is-empty .wp-block-woocommerce-empty-cart-block::before {
    content: '';
    display: block;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='opacity-20'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z' /%3E%3Cpath d='M3 6h18' /%3E%3Cpath d='M16 10a4 4 0 0 1-8 0' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    margin-bottom: 1rem;
}