/*
=============================================
  CART PAGE STYLING
=============================================
*/

/* Cart table headers */
.woocommerce-cart-form table.shop_table thead th {
    font-family: var(--font-family-base);
    font-size: 0.875rem !important; /* 14px */
    font-weight: 600 !important;
    color: var(--neutral-700) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Cart product name/title */
.woocommerce-cart-form .product-name a {
    font-family: var(--font-family-base);
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
    color: var(--ul-red-200) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.woocommerce-cart-form .product-name a:hover {
    color: var(--ul-red-300) !important;
}

/* Hide duplicate price in product name column - price should only show in TOTAL column */
.woocommerce-cart-form .product-name .price,
.woocommerce-cart-form .product-name .amount,
.wc-block-cart-item__product .wc-block-components-product-price {
    display: none !important;
}

/* Hide the variation summary paragraph (e.g. "Navy 6Y") - keep only the detailed dt/dd list */
.woocommerce-cart-form .product-name .variation,
.woocommerce-cart-form .product-name p.variation,
.wc-block-cart-item__product .wc-block-components-product-metadata .wc-block-components-product-metadata__description,
table.cart .product-name .variation,
.cart_item .product-name .variation {
    display: none !important;
}

/* Product meta information (size, colour, etc.) - the dt/dd list */
.woocommerce-cart-form .product-name dd,
.woocommerce-cart-form .product-name dt {
    font-family: var(--font-family-base);
    font-size: 0.9375rem !important; /* 15px */
    font-weight: 500 !important;
    color: var(--neutral-800) !important;
    line-height: 1.6 !important;
}

/* Make labels (size:, colour:) slightly bolder */
.woocommerce-cart-form .product-name dt {
    font-weight: 600 !important;
    color: var(--neutral-900) !important;
}

/* Cart product prices */
.woocommerce-cart-form .product-subtotal,
.woocommerce-cart-form .product-price {
    font-family: var(--font-family-base);
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600 !important;
    color: var(--neutral-1000) !important;
}

/* Remove item link */
.woocommerce-cart-form .product-remove a {
    font-family: var(--font-family-base);
    font-size: 0.813rem !important; /* 13px */
    font-weight: 500 !important;
    color: var(--neutral-600) !important;
    text-decoration: none !important;
}

.woocommerce-cart-form .product-remove a:hover {
    color: var(--ul-red-200) !important;
}

/* Cart totals section */
.cart_totals h2 {
    font-family: var(--font-family-base);
    font-size: 1.5rem !important; /* 24px */
    font-weight: 700 !important;
    color: var(--neutral-1000) !important;
    margin-bottom: 1.5rem !important;
}

/* Cart totals table */
.cart_totals table th,
.cart_totals table td {
    font-family: var(--font-family-base);
    font-size: 1rem !important; /* 16px */
    font-weight: 400 !important;
    color: var(--neutral-700) !important;
}

/* Cart totals labels */
.cart_totals table th {
    font-weight: 500 !important;
}

/* Cart totals amounts */
.cart_totals table td .amount,
.cart_totals table td strong {
    font-family: var(--font-family-base);
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600 !important;
    color: var(--neutral-1000) !important;
}

/* Estimated total - make it stand out */
.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.25rem !important; /* 20px */
    font-weight: 700 !important;
    color: var(--neutral-1000) !important;
}

/* Proceed to checkout button */
.wc-proceed-to-checkout .checkout-button {
    font-family: var(--font-family-base);
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

/*
=============================================
  WOOCOMMERCE BLOCK CART STYLING
=============================================
*/

/* WooCommerce Block Cart - Product Name */
.wc-block-cart-item__product-name,
.wc-block-components-product-name {
    font-family: var(--font-family-base) !important;
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
    color: var(--ul-red-200) !important;
    line-height: 1.4 !important;
}

.wc-block-cart-item__product-name a,
.wc-block-components-product-name a {
    font-family: var(--font-family-base) !important;
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
    color: var(--ul-red-200) !important;
    text-decoration: none !important;
}

.wc-block-cart-item__product-name a:hover,
.wc-block-components-product-name a:hover {
    color: var(--ul-red-300) !important;
}

/* WooCommerce Block Cart - Product Price */
.wc-block-cart-item__total-price,
.wc-block-cart-item__individual-price,
.wc-block-components-product-price,
.wc-block-cart-item__total-price .amount,
.wc-block-cart-item__individual-price .amount {
    font-family: var(--font-family-base) !important;
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600 !important;
    color: var(--neutral-1000) !important;
}

/* WooCommerce Block Cart - Product Meta (variations) */
.wc-block-cart-item__product-metadata,
.wc-block-components-product-metadata {
    font-family: var(--font-family-base) !important;
    font-size: 0.875rem !important; /* 14px */
    font-weight: 400 !important;
    color: var(--neutral-600) !important;
    line-height: 1.5 !important;
}

.wc-block-cart-item__product-metadata dt,
.wc-block-components-product-metadata dt {
    font-weight: 500 !important;
}

/* WooCommerce Block Cart - Table Headers */
.wc-block-cart-items__header th,
.wc-block-cart-items__header span {
    font-family: var(--font-family-base) !important;
    font-size: 0.875rem !important; /* 14px */
    font-weight: 600 !important;
    color: var(--neutral-700) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* WooCommerce Block Cart - Remove Link */
.wc-block-cart-item__remove-link {
    font-family: var(--font-family-base) !important;
    font-size: 0.813rem !important; /* 13px */
    font-weight: 500 !important;
    color: var(--neutral-600) !important;
}

.wc-block-cart-item__remove-link:hover {
    color: var(--ul-red-200) !important;
}

/* WooCommerce Block Cart - Product Name */
.wc-block-cart-item__product-name,
.wc-block-components-product-name {
    font-family: var(--font-family-base) !important;
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
    color: var(--ul-red-200) !important;
    line-height: 1.4 !important;
}

.wc-block-cart-item__product-name a,
.wc-block-components-product-name a {
    font-family: var(--font-family-base) !important;
    font-size: 1rem !important; /* 16px */
    font-weight: 600 !important;
    color: var(--ul-red-200) !important;
    text-decoration: none !important;
}

.wc-block-cart-item__product-name a:hover,
.wc-block-components-product-name a:hover {
    color: var(--ul-red-300) !important;
}

/* WooCommerce Block Cart - Product Price */
.wc-block-cart-item__total-price,
.wc-block-cart-item__individual-price,
.wc-block-components-product-price {
    font-family: var(--font-family-base) !important;
    font-size: 1.125rem !important; /* 18px */
    font-weight: 600 !important;
    color: var(--neutral-1000) !important;
}

/* WooCommerce Block Cart - Product Meta (variations) */
.wc-block-cart-item__product-metadata,
.wc-block-components-product-metadata {
    font-family: var(--font-family-base) !important;
    font-size: 0.875rem !important; /* 14px */
    font-weight: 400 !important;
    color: var(--neutral-600) !important;
    line-height: 1.5 !important;
}

.wc-block-cart-item__product-metadata dt,
.wc-block-components-product-metadata dt {
    font-weight: 500 !important;
}

/* WooCommerce Block Cart - Table Headers */
.wc-block-cart-items__header th,
.wc-block-cart-items__header span {
    font-family: var(--font-family-base) !important;
    font-size: 0.875rem !important; /* 14px */
    font-weight: 600 !important;
    color: var(--neutral-700) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* WooCommerce Block Cart - Remove Link */
.wc-block-cart-item__remove-link {
    font-family: var(--font-family-base) !important;
    font-size: 0.813rem !important; /* 13px */
    font-weight: 500 !important;
    color: var(--neutral-600) !important;
}

.wc-block-cart-item__remove-link:hover {
    color: var(--ul-red-200) !important;
}

/* Cart page product grid - product titles */
.woocommerce-cart .wc-block-grid__product .wc-block-grid__product-title {
    font-family: var(--font-family-base);
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: var(--neutral-1000);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.019rem; /* -0.3px */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Hide add to cart buttons on cart page product grid */
.woocommerce-cart .wc-block-grid__product-add-to-cart {
    display: none !important;
}

/* Cart page product images - smooth hover effect */
.woocommerce-cart .wc-block-grid__product-link img {
    transition: transform 0.3s ease;
}

.woocommerce-cart .wc-block-grid__product-link:hover img {
    transform: scale(1.05);
}

/* Cart page product cards - hover effects */
.woocommerce-cart .wc-block-grid__product {
    transition: all 0.3s ease;
}

.woocommerce-cart .wc-block-grid__product:hover {
    transform: translateY(-0.25rem); /* -4px */
    box-shadow: 0 0.5rem 1.563rem rgba(0, 0, 0, 0.15); /* 0 8px 25px */
}

/*
=============================================
  WOOCOMMERCE BLOCK CHECKOUT + CART REFINEMENTS
=============================================
*/

/* Express checkout button alignment */
.wc-block-components-express-payment__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.wc-block-components-express-payment__button {
    min-height: 48px;
    height: 48px;
    border-radius: 8px;
}

/* Divider spacing and alignment */
.wc-block-components-express-payment__separator {
    margin: 16px 0 20px;
}

.wc-block-components-express-payment__separator-text {
    padding: 0 10px;
    font-weight: 500;
    color: var(--neutral-600);
}

/* Checkout sidebar alignment */
.wc-block-checkout .wc-block-components-sidebar {
    align-self: start;
    margin-top: 0;
}

/* Order summary spacing and hierarchy */
.wc-block-components-order-summary-item {
    gap: 8px;
}

.wc-block-components-order-summary-item__individual-price {
    display: none;
}

.wc-block-components-order-summary-item__total-price {
    font-weight: 600;
    color: var(--neutral-1000);
}

/* Hide the "Navy 6Y" variation summary text in order summary */
.wc-block-components-order-summary-item__description > p:first-child,
.wc-block-components-order-summary-item__description > .wc-block-components-product-metadata__description,
.wc-block-components-order-summary .wc-block-components-product-metadata__description {
    display: none !important;
}

/* Order summary variation details - clean styling without bullets */
.wc-block-components-order-summary-item .wc-block-components-product-metadata,
.wc-block-components-order-summary .wc-block-components-product-metadata {
    margin-top: 6px !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-metadata ul,
.wc-block-components-order-summary .wc-block-components-product-metadata ul,
.wc-block-components-order-summary ul,
.wc-block-components-order-summary-item ul {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-metadata ul li,
.wc-block-components-order-summary .wc-block-components-product-metadata ul li,
.wc-block-components-order-summary ul li,
.wc-block-components-order-summary-item ul li {
    font-size: 0.9375rem !important; /* 15px */
    font-weight: 500 !important;
    color: var(--neutral-800) !important;
    line-height: 1.6 !important;
    margin-bottom: 2px !important;
    list-style: none !important;
    list-style-type: none !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-metadata ul li::before,
.wc-block-components-order-summary .wc-block-components-product-metadata ul li::before,
.wc-block-components-order-summary ul li::before,
.wc-block-components-order-summary-item ul li::before {
    display: none !important;
    content: none !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-metadata strong,
.wc-block-components-order-summary .wc-block-components-product-metadata strong {
    font-weight: 600 !important;
    color: var(--neutral-900) !important;
}

/* Coupon row alignment */
.wc-block-components-panel__button {
    align-items: center;
}

/* Totals emphasis */
.wc-block-components-totals-item--total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-1000);
}

.wc-block-components-totals-item--total .wc-block-components-totals-item__value {
    font-weight: 700;
}

/* Typography and colour refinements */
.wc-block-checkout,
.wc-block-cart {
    font-family: var(--font-family-base);
    color: var(--neutral-1000);
}

.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-components-order-summary__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--neutral-1000);
}

.wc-block-components-checkout-step__description,
.wc-block-components-panel__content,
.wc-block-components-totals-item__label,
.wc-block-components-text-input label,
.wc-block-components-checkbox__label {
    color: var(--neutral-700);
    font-weight: 500;
}

.wc-block-components-text-input input,
.wc-block-components-text-input select,
.wc-block-components-text-input textarea {
    border-radius: 10px;
    border-color: var(--neutral-300);
    background: var(--neutral-50);
    color: var(--neutral-1000);
    font-weight: 500;
}

.wc-block-components-text-input input:focus,
.wc-block-components-text-input select:focus,
.wc-block-components-text-input textarea:focus {
    border-color: var(--ul-red-200);
    box-shadow: 0 0 0 3px rgba(229, 54, 19, 0.15);
}

.wc-block-components-order-summary-item__quantity {
    font-weight: 600;
    color: var(--neutral-700);
}

.wc-block-components-order-summary .wc-block-components-panel {
    border-color: var(--neutral-200);
}

.wc-block-components-panel__button {
    font-weight: 600;
}

.wc-block-components-totals-item {
    color: var(--neutral-700);
}

/* Mobile spacing adjustments */
@media (max-width: 768px) {
    .wc-block-checkout__form,
    .wc-block-components-checkout-step {
        row-gap: 1.5rem;
    }

    .wc-block-components-order-summary {
        margin-top: 1rem;
    }

    .wc-block-components-sidebar {
        padding-top: 0;
    }
}
