/**
 * CodersGrow Modern Cart UI Stylesheet
 * Matches WooCommerce Checkout Page Design Exactly
 * Typography: Inter, sans-serif
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Base Layout & Typography
   ========================================================================== */
html:has(body.woocommerce-cart),
body.woocommerce-cart {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip !important;
}

/* Hide breadcrumbs & default page titles */
.woocommerce-cart .codersgrow-breadcrumb,
.woocommerce-cart .page-title,
.woocommerce-cart .wccom-breadcrumb,
.woocommerce-cart .cg-marketplace-breadcrumb,
.woocommerce-cart .entry-title,
.woocommerce-cart header.entry-header {
    display: none !important;
}

.cg-cart-page-wrapper {
    background: #ffffff !important;
    padding: 36px 0 80px 0;
    min-height: 60vh;
}

.cg-cart-container,
.woocommerce-cart main.site-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    box-sizing: border-box !important;
}

.wp-block-woocommerce-cart.alignwide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ==========================================================================
   Two-Column Grid Layout (Cart Items on Left, Cart Totals on Right)
   ========================================================================== */
.wc-block-cart.wc-block-components-sidebar-layout,
.wp-block-woocommerce-filled-cart-block.wc-block-components-sidebar-layout,
.wc-block-components-sidebar-layout.wc-block-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 420px) !important;
    gap: 56px !important;
    align-items: start !important;
}

@media (max-width: 1024px) {
    .wc-block-cart.wc-block-components-sidebar-layout,
    .wp-block-woocommerce-filled-cart-block.wc-block-components-sidebar-layout,
    .wc-block-components-sidebar-layout.wc-block-cart {
        grid-template-columns: minmax(0, 1fr) 380px !important;
        gap: 36px !important;
    }
}

@media (max-width: 860px) {
    .wc-block-cart.wc-block-components-sidebar-layout,
    .wp-block-woocommerce-filled-cart-block.wc-block-components-sidebar-layout,
    .wc-block-components-sidebar-layout.wc-block-cart {
        display: flex !important;
        flex-direction: column !important;
        gap: 32px !important;
    }
}

.wc-block-cart .wc-block-components-main,
.wc-block-cart__main {
    grid-column: 1 !important;
    order: 1 !important;
    width: 100% !important;
}

.wc-block-cart .wc-block-components-sidebar,
.wc-block-cart__sidebar {
    grid-column: 2 !important;
    order: 2 !important;
    width: 100% !important;
    position: sticky !important;
    top: 88px !important;
    align-self: start !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
}

body.admin-bar .wc-block-cart .wc-block-components-sidebar,
body.admin-bar .wc-block-cart__sidebar {
    top: 120px !important;
}

/* ==========================================================================
   Left Column: Custom Clean Header
   ========================================================================== */
.cg-cart-header {
    margin-bottom: 24px;
}

.cg-cart-heading {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    font-family: 'Inter', sans-serif !important;
}

.cg-cart-divider {
    border: 0 !important;
    border-top: 1px solid #e5e7eb !important;
    margin: 0 0 24px 0 !important;
    height: 1px !important;
    background: #e5e7eb !important;
}

/* ==========================================================================
   Cart Items Table Styling
   ========================================================================== */
.wc-block-cart-items {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
}

.wc-block-cart-items__header {
    border-bottom: 1px solid #e5e7eb !important;
}

.wc-block-cart-items__header th {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #64748b !important;
    padding: 0 0 12px 0 !important;
    border: none !important;
    background: transparent !important;
    font-family: 'Inter', sans-serif !important;
}

.wc-block-cart-items__header-total {
    text-align: right !important;
}

/* Rows */
.wc-block-cart-items__row {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 20px 0 !important;
    vertical-align: top !important;
}

.wc-block-cart-items__row td {
    padding: 20px 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Product Image */
.wc-block-cart-item__image {
    width: 64px !important;
    vertical-align: top !important;
    padding-right: 18px !important;
}

.wc-block-cart-item__image a {
    display: block !important;
}

.wc-block-cart-item__image img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 10px !important;
    object-fit: contain !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    display: block !important;
}

/* Product Info */
.wc-block-cart-item__product {
    vertical-align: top !important;
}

.wc-block-cart-item__wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.wc-block-cart-item__wrap .wc-block-components-product-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    font-family: 'Inter', sans-serif !important;
    transition: color 0.15s ease !important;
}

.wc-block-cart-item__wrap .wc-block-components-product-name:hover {
    color: #ea2b2b !important;
}

/* Unit Price (Clean up green color and unwanted suffixes) */
.wc-block-cart-item__prices {
    margin: 2px 0 !important;
}

.wc-block-cart-item__prices .wc-block-components-product-price {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important; /* Neutral dark ink instead of harsh green */
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.wc-block-cart-item__prices .wc-block-components-product-price::after {
    display: none !important;
    content: none !important;
}

/* Metadata & Plans: Clean pill-style badges */
.wc-block-components-product-metadata {
    margin: 2px 0 6px 0 !important;
}

/* Hide long description paragraphs in cart rows */
.wc-block-components-product-metadata__description {
    display: none !important;
}

.wc-block-components-product-details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    font-family: 'Inter', sans-serif !important;
}

.wc-block-components-product-details span {
    font-size: 12.5px !important;
    color: #64748b !important;
}

.wc-block-components-product-details__name {
    font-weight: 500 !important;
    color: #64748b !important;
}

.wc-block-components-product-details__value {
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* Quantity & Remove Action Row */
.wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.wc-block-components-quantity-selector {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    height: 34px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

.wc-block-components-quantity-selector__button {
    width: 32px !important;
    height: 32px !important;
    background: transparent !important;
    border: none !important;
    color: #475569 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.wc-block-components-quantity-selector__button:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.wc-block-components-quantity-selector__input {
    width: 36px !important;
    height: 32px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
}

.wc-block-components-quantity-selector__input::-webkit-inner-spin-button,
.wc-block-components-quantity-selector__input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Remove button */
.wc-block-cart-item__remove-link {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.15s ease !important;
}

.wc-block-cart-item__remove-link svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
}

.wc-block-cart-item__remove-link:hover {
    color: #ef4444 !important;
    background: #fee2e2 !important;
    border-color: #fecaca !important;
}

/* Line Total (Right column in table) */
.wc-block-cart-item__total {
    text-align: right !important;
    vertical-align: top !important;
    white-space: nowrap !important;
}

.wc-block-cart-item__total .wc-block-components-product-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important; /* Neutral dark ink */
    padding: 0 !important;
    margin: 0 !important;
    justify-content: flex-end !important;
}

.wc-block-cart-item__total .wc-block-components-product-price::after {
    display: none !important;
    content: none !important;
}

/* ==========================================================================
   Right Column: Sticky Cart Totals Card (Exact Match to Checkout)
   ========================================================================== */
.wp-block-woocommerce-cart-order-summary-block {
    background: #f8fafc !important; /* Soft light slate background */
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: none !important;
}

/* Card Heading: "Cart totals" */
.wc-block-cart__totals-title,
.wp-block-woocommerce-cart-order-summary-heading-block {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.015em !important;
    font-family: 'Inter', sans-serif !important;
}

/* Totals Wrapper Spacing */
.wp-block-woocommerce-cart-order-summary-totals-block {
    margin-top: 10px !important;
}

.wc-block-cart .wc-block-components-totals-wrapper {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-cart .wc-block-components-totals-wrapper:empty {
    display: none !important;
}

/* Subtotal Row */
.wp-block-woocommerce-cart-order-summary-subtotal-block {
    display: block !important;
    margin-bottom: 8px !important;
}

.cg-cart-subtotal-row,
.wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #475569 !important;
    font-family: 'Inter', sans-serif !important;
    margin-bottom: 8px !important;
}

.cg-cart-subtotal-row span.val,
.wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item__value {
    font-weight: 500 !important;
    color: #0f172a !important;
}

/* Taxes / GST Row */
.wp-block-woocommerce-cart-order-summary-taxes-block {
    display: block !important;
    margin-bottom: 8px !important;
}

.wp-block-woocommerce-cart-order-summary-taxes-block .wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #475569 !important;
    font-family: 'Inter', sans-serif !important;
}

.wp-block-woocommerce-cart-order-summary-taxes-block .wc-block-components-totals-item__label {
    font-size: 14px !important;
    color: #475569 !important;
}

.wp-block-woocommerce-cart-order-summary-taxes-block .wc-block-components-totals-item__value {
    font-weight: 500 !important;
    color: #0f172a !important;
}

/* Estimated Total Row */
.wc-block-cart .wc-block-components-totals-footer-item {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 14px !important;
    margin-top: 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    font-family: 'Inter', sans-serif !important;
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-family: 'Inter', sans-serif !important;
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    font-family: 'Inter', sans-serif !important;
}

/* Proceed to Checkout Button */
.wc-block-cart__submit {
    margin-top: 20px !important;
    width: 100% !important;
}

.wc-block-cart__submit-container {
    width: 100% !important;
}

.wc-block-cart__submit-button,
.wc-block-cart__submit .wc-block-components-button {
    background-color: #A51C2C !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: background-color 0.2s ease !important;
    width: 100% !important;
    cursor: pointer !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart__submit .wc-block-components-button:hover {
    background-color: #8F1725 !important;
}

/* Coupon Accordion inside Card */
.wp-block-woocommerce-cart-order-summary-coupon-form-block {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 14px !important;
    margin-top: 14px !important;
}

.wc-block-cart .wc-block-components-totals-coupon__button {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.wc-block-cart .wc-block-components-panel__button {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Cross-Sells & Product Collections Below Cart (Exact Match to Store UI)
   ========================================================================== */
.wp-block-woocommerce-product-collection {
    margin-top: 56px !important;
    padding-top: 40px !important;
    border-top: 1px solid #e5e7eb !important;
}

.wp-block-woocommerce-product-collection .wp-block-heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 24px !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -0.015em !important;
}

/* Grid Layout: 5 columns on desktop matching Store Cards */
.wp-block-woocommerce-product-collection .wc-block-product-template {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 1200px) {
    .wp-block-woocommerce-product-collection .wc-block-product-template {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .wp-block-woocommerce-product-collection .wc-block-product-template {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 480px) {
    .wp-block-woocommerce-product-collection .wc-block-product-template {
        grid-template-columns: 1fr !important;
    }
}

/* Product Card */
.wp-block-woocommerce-product-collection li.wc-block-product {
    width: 100% !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 0 !important;
    text-align: left !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.wp-block-woocommerce-product-collection li.wc-block-product:hover {
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px) !important;
}

/* Image Container */
.wp-block-woocommerce-product-collection .wc-block-components-product-image {
    width: 100% !important;
    height: 190px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Sale Badge: Red circular pill in top right corner matching Image 2 */
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-sale-badge,
.wp-block-woocommerce-product-collection .wc-block-components-product-sale-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
    background: #ea2b2b !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(234, 43, 43, 0.3) !important;
    z-index: 5 !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-sale-badge__text {
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: capitalize !important;
    font-family: 'Inter', sans-serif !important;
}

/* Category Pill */
.wp-block-woocommerce-product-collection .loop-category-pill {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    display: inline-block !important;
    padding: 2.5px 8px !important;
    border-radius: 4px !important;
    margin: 12px 0 6px 14px !important;
    width: fit-content !important;
    align-self: flex-start !important;
    text-align: left !important;
    line-height: 1.25 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Product Title */
.wp-block-woocommerce-product-collection h2.wp-block-post-title,
.wp-block-woocommerce-product-collection .wp-block-post-title {
    font-size: 14.5px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    padding: 0 14px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    min-height: 40px !important;
}

.wp-block-woocommerce-product-collection .wp-block-post-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    transition: color 0.15s ease !important;
}

.wp-block-woocommerce-product-collection .wp-block-post-title a:hover {
    color: #ea2b2b !important;
}

/* Reviews / Rating Row */
.wp-block-woocommerce-product-collection .cg-loop-rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 14px !important;
    margin-bottom: 8px !important;
    line-height: 1 !important;
}

.wp-block-woocommerce-product-collection .cg-loop-stars {
    display: inline-flex !important;
    align-items: center !important;
    gap: 1.5px !important;
}

.wp-block-woocommerce-product-collection .cg-star-icon {
    width: 12px !important;
    height: 12px !important;
    fill: #cbd5e1 !important;
}

.wp-block-woocommerce-product-collection .cg-star-icon.filled {
    fill: #f59e0b !important;
}

.wp-block-woocommerce-product-collection .cg-loop-review-count {
    color: #94a3b8 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    margin-left: 2px !important;
}

/* Price Container */
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price {
    padding: 0 14px !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-price {
    font-size: 1.15rem !important;
    color: #16a34a !important; /* Green */
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    text-align: left !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-price del {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
    order: 1 !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-price ins {
    text-decoration: none !important;
    color: #16a34a !important;
    font-weight: 700 !important;
    order: 2 !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-price .cg-discount-badge {
    background: #fef2f2 !important;
    color: #ea2b2b !important;
    border: 1px solid #fee2e2 !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    order: 3 !important;
    margin-left: 2px !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-price::after {
    content: 'Excl. Tax' !important;
    font-size: 10px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    order: 4 !important;
    margin-left: 2px !important;
}

/* Button & Quantity Wrapper at Bottom */
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button,
.wp-block-woocommerce-product-collection .loop-add-to-cart-wrapper {
    margin-top: auto !important;
    margin-bottom: 14px !important;
    padding: 0 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}

/* For simple quantity */
.wp-block-woocommerce-product-collection .loop-add-to-cart-wrapper .quantity {
    width: 48px !important;
    height: 38px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    display: flex !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.wp-block-woocommerce-product-collection .loop-add-to-cart-wrapper .quantity input.qty {
    width: 100% !important;
    height: 38px !important;
    border: none !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 0 !important;
    color: #0f172a !important;
    background: #ffffff !important;
}

/* Buttons */
.wp-block-woocommerce-product-collection .wp-block-button__link,
.wp-block-woocommerce-product-collection .wc-block-components-product-button__button,
.wp-block-woocommerce-product-collection .add_to_cart_button {
    height: 38px !important;
    background: #ea2b2b !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    width: 100% !important;
    flex: 1 !important;
    text-decoration: none !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    transition: background-color 0.15s ease !important;
}

.wp-block-woocommerce-product-collection .wp-block-button__link:hover,
.wp-block-woocommerce-product-collection .wc-block-components-product-button__button:hover,
.wp-block-woocommerce-product-collection .add_to_cart_button:hover {
    background: #cc2222 !important;
    color: #ffffff !important;
}
