@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap');

/* ─── Tokens (mirrors booking-form.css) ─────────────────────────────────── */
:root {
    --fb-blue:         #2563eb;
    --fb-blue-dark:    #1d4ed8;
    --fb-blue-tint:    #eff6ff;
    --fb-blue-light:   #dbeafe;
    --fb-red:          #dc2626;
    --fb-gray-50:      #f9fafb;
    --fb-gray-100:     #f3f4f6;
    --fb-gray-200:     #e5e7eb;
    --fb-gray-300:     #d1d5db;
    --fb-gray-400:     #9ca3af;
    --fb-gray-500:     #6b7280;
    --fb-gray-700:     #374151;
    --fb-gray-900:     #111827;
    --fb-white:        #ffffff;
    --fb-shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --fb-shadow-blue:  0 4px 20px rgba(37,99,235,.20);
    --fb-shadow-hover: 0 6px 24px rgba(37,99,235,.30);
    --fb-focus-ring:   0 0 0 3px rgba(37,99,235,.12);
    --fb-radius:       10px;
    --fb-radius-lg:    16px;
    --fb-radius-full:  9999px;
    --fb-font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --fb-font-display: 'DM Serif Display', Georgia, serif;
    --fb-transition:   0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Page title ─────────────────────────────────────────────────────────── */
h1.wp-block-post-title,
.woocommerce h1,
.woocommerce-page h1 {
    font-family: var(--fb-font-display) !important;
    font-weight: 400 !important;
    letter-spacing: -0.02em !important;
    text-align: left !important;
}

/* ─── Cart table ─────────────────────────────────────────────────────────── */
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
    font-family: var(--fb-font-sans);
    border: 1px solid var(--fb-gray-200) !important;
    border-radius: var(--fb-radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--fb-shadow-sm);
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.woocommerce table.shop_table th {
    background: var(--fb-gray-50) !important;
    color: var(--fb-gray-500) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid var(--fb-gray-200) !important;
    border-top: none !important;
}

.woocommerce table.shop_table td {
    font-family: var(--fb-font-sans) !important;
    font-size: 14px !important;
    color: var(--fb-gray-700) !important;
    padding: 18px 20px !important;
    border-top: 1px solid var(--fb-gray-100) !important;
    vertical-align: middle !important;
}

.woocommerce table.shop_table td.product-name a {
    font-weight: 600 !important;
    color: var(--fb-gray-900) !important;
    text-decoration: none !important;
    font-size: 15px !important;
}

.woocommerce table.shop_table td.product-name a:hover {
    color: var(--fb-blue) !important;
}

.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal {
    font-weight: 600 !important;
    color: var(--fb-blue) !important;
    font-size: 15px !important;
}

/* ─── Quantity input ─────────────────────────────────────────────────────── */
.woocommerce .quantity input.qty {
    font-family: var(--fb-font-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: 1.5px solid var(--fb-gray-200) !important;
    border-radius: var(--fb-radius) !important;
    padding: 8px 12px !important;
    width: 64px !important;
    text-align: center !important;
    color: var(--fb-gray-900) !important;
    outline: none !important;
    box-shadow: var(--fb-shadow-sm) !important;
    transition: border-color var(--fb-transition) !important;
}

.woocommerce .quantity input.qty:focus {
    border-color: var(--fb-blue) !important;
    box-shadow: var(--fb-focus-ring) !important;
}

/* ─── Remove item button ─────────────────────────────────────────────────── */
.woocommerce table.cart td.product-remove a {
    color: var(--fb-gray-300) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    border: 1.5px solid var(--fb-gray-200) !important;
    border-radius: 50% !important;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all var(--fb-transition) !important;
    text-decoration: none !important;
}

.woocommerce table.cart td.product-remove a:hover {
    background: #fef2f2 !important;
    border-color: var(--fb-red) !important;
    color: var(--fb-red) !important;
}

/* ─── Cart actions / coupon ──────────────────────────────────────────────── */
.woocommerce table.cart td.actions {
    padding: 16px 20px !important;
    background: var(--fb-gray-50) !important;
    border-top: 1px solid var(--fb-gray-200) !important;
}

.woocommerce #coupon_code,
.woocommerce-page #coupon_code {
    font-family: var(--fb-font-sans) !important;
    font-size: 14px !important;
    border: 1.5px solid var(--fb-gray-200) !important;
    border-radius: var(--fb-radius) !important;
    padding: 11px 16px !important;
    outline: none !important;
    color: var(--fb-gray-900) !important;
    transition: border-color var(--fb-transition) !important;
    box-shadow: var(--fb-shadow-sm) !important;
}

.woocommerce #coupon_code:focus {
    border-color: var(--fb-blue) !important;
    box-shadow: var(--fb-focus-ring) !important;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button {
    font-family: var(--fb-font-sans) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: var(--fb-radius) !important;
    padding: 12px 24px !important;
    border: 1.5px solid var(--fb-gray-200) !important;
    background: var(--fb-white) !important;
    color: var(--fb-gray-700) !important;
    box-shadow: var(--fb-shadow-sm) !important;
    transition: all var(--fb-transition) !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover {
    background: var(--fb-gray-50) !important;
    border-color: var(--fb-gray-300) !important;
    color: var(--fb-gray-900) !important;
    transform: translateY(-1px) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce-page a.button.alt,
.woocommerce-page button.button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: var(--fb-blue) !important;
    border-color: var(--fb-blue) !important;
    color: var(--fb-white) !important;
    box-shadow: var(--fb-shadow-blue) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--fb-blue-dark) !important;
    border-color: var(--fb-blue-dark) !important;
    color: var(--fb-white) !important;
    box-shadow: var(--fb-shadow-hover) !important;
    transform: translateY(-1px) !important;
}

/* ─── Proceed to checkout block ──────────────────────────────────────────── */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    text-align: center !important;
    font-size: 15px !important;
    padding: 14px 28px !important;
    border-radius: var(--fb-radius) !important;
    letter-spacing: 0.01em !important;
}

/* ─── Cart totals ────────────────────────────────────────────────────────── */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    font-family: var(--fb-font-sans) !important;
    background: var(--fb-white) !important;
    border: 1px solid var(--fb-gray-200) !important;
    border-radius: var(--fb-radius-lg) !important;
    padding: 24px !important;
    box-shadow: var(--fb-shadow-sm) !important;
}

.woocommerce .cart_totals h2 {
    font-family: var(--fb-font-display) !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: var(--fb-gray-900) !important;
    margin: 0 0 20px !important;
    letter-spacing: -0.01em !important;
}

.woocommerce .cart_totals table {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 10px 0 !important;
    border-top: 1px solid var(--fb-gray-100) !important;
    font-size: 14px !important;
    background: transparent !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.woocommerce .cart_totals table th {
    color: var(--fb-gray-500) !important;
    font-weight: 500 !important;
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--fb-gray-900) !important;
    border-top: 2px solid var(--fb-gray-200) !important;
    padding-top: 16px !important;
}

.woocommerce .cart_totals .order-total td .amount {
    color: var(--fb-blue) !important;
}

/* ─── Empty cart ─────────────────────────────────────────────────────────── */
.woocommerce-cart .woocommerce-info {
    font-family: var(--fb-font-sans) !important;
    font-size: 14px !important;
    background: var(--fb-blue-tint) !important;
    border-color: var(--fb-blue-light) !important;
    color: var(--fb-blue) !important;
    border-radius: var(--fb-radius) !important;
    padding: 14px 20px !important;
}

.woocommerce-cart .woocommerce-info::before {
    color: var(--fb-blue) !important;
}

/* ─── Notices ────────────────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    font-family: var(--fb-font-sans) !important;
    font-size: 14px !important;
    border-radius: var(--fb-radius) !important;
    padding: 14px 20px !important;
    border-top: none !important;
    border-left: 3px solid !important;
}

.woocommerce-message {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    color: #166534 !important;
}

.woocommerce-error {
    background: #fef2f2 !important;
    border-color: var(--fb-red) !important;
    color: #991b1b !important;
}

.woocommerce-info {
    background: var(--fb-blue-tint) !important;
    border-color: var(--fb-blue) !important;
    color: #1e40af !important;
}

/* ─── Product thumbnails in cart ─────────────────────────────────────────── */
.woocommerce table.cart img {
    border-radius: var(--fb-radius) !important;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border: 1px solid var(--fb-gray-200) !important;
}

/* ─── Shop / related products ────────────────────────────────────────────── */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
    font-family: var(--fb-font-sans) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--fb-gray-900) !important;
}

.woocommerce ul.products li.product .price {
    color: var(--fb-blue) !important;
    font-weight: 700 !important;
}

.woocommerce ul.products li.product img {
    border-radius: var(--fb-radius-lg) !important;
    border: 1px solid var(--fb-gray-200) !important;
}

.woocommerce ul.products li.product a.button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
}

/* ─── Sale badge ─────────────────────────────────────────────────────────── */
.woocommerce span.onsale {
    font-family: var(--fb-font-sans) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    background: var(--fb-blue) !important;
    border-radius: var(--fb-radius-full) !important;
    min-width: auto !important;
    min-height: auto !important;
    padding: 4px 10px !important;
    line-height: 1.4 !important;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 12px 12px !important;
    }

    .woocommerce .cart_totals {
        padding: 16px !important;
    }
}

/* ─── Block cart: product image ──────────────────────────────────────────── */
.wc-block-cart-item__image img {
    border-radius: var(--fb-radius) !important;
    border: 1px solid var(--fb-gray-200) !important;
    object-fit: cover !important;
}

/* ─── Block cart: shared UI font ─────────────────────────────────────────── */
.wc-block-cart__sidebar,
.wp-block-woocommerce-cart-order-summary-block,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-quantity-stepper input,
.wc-block-components-panel__button,
.wc-block-components-coupon .wc-block-components-text-input input,
.wc-block-cart__submit-container .wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-container button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wp-block-woocommerce-proceed-to-checkout-block button,
a.wc-block-cart__submit-button {
    font-family: var(--fb-font-sans) !important;
}

/* ─── Block cart: quantity stepper ──────────────────────────────────────── */
.wc-block-components-quantity-stepper {
    border: 1.5px solid var(--fb-gray-200) !important;
    border-radius: var(--fb-radius) !important;
    overflow: hidden !important;
}
.wc-block-components-quantity-stepper input {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* ─── Block cart: totals sidebar ─────────────────────────────────────────── */
.wc-block-cart__sidebar,
.wp-block-woocommerce-cart-order-summary-block {
    background: var(--fb-white) !important;
    border: 1px solid var(--fb-gray-200) !important;
    border-radius: var(--fb-radius-lg) !important;
    box-shadow: var(--fb-shadow-sm) !important;
    padding: 24px !important;
}
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
    font-size: 14px !important;
    color: var(--fb-gray-700) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 15px !important;
    font-weight: 700 !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    color: var(--fb-gray-900) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--fb-blue) !important;
}

/* ─── Block cart: coupon ─────────────────────────────────────────────────── */
.wc-block-components-panel__button {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--fb-gray-700) !important;
}
.wc-block-components-coupon .wc-block-components-text-input input {
    border: 1.5px solid var(--fb-gray-200) !important;
    border-radius: var(--fb-radius) !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
}
.wc-block-components-coupon .wc-block-components-text-input input:focus {
    border-color: var(--fb-blue) !important;
    box-shadow: var(--fb-focus-ring) !important;
}

/* ─── Block cart: checkout button override ───────────────────────────────── */
.wc-block-cart__submit-container .wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-container button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.wp-block-woocommerce-proceed-to-checkout-block button,
a.wc-block-cart__submit-button {
    background: var(--fb-blue) !important;
    border-color: var(--fb-blue) !important;
    color: var(--fb-white) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: var(--fb-radius) !important;
    box-shadow: var(--fb-shadow-blue) !important;
    transition: all var(--fb-transition) !important;
}

.wc-block-cart__submit-container .wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-container button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a:hover,
.wp-block-woocommerce-proceed-to-checkout-block button:hover,
a.wc-block-cart__submit-button:hover {
    background: var(--fb-blue-dark) !important;
    border-color: var(--fb-blue-dark) !important;
    box-shadow: var(--fb-shadow-hover) !important;
}

/* ─── Fix oversized product image in block cart ──────────────────────────── */
.wc-block-cart-item__image {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
}

.wc-block-cart-item__image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: var(--fb-radius) !important;
    border: 1px solid var(--fb-gray-200) !important;
}

/* Hide the large gallery image that's leaking into the cart row */
.wc-block-cart-item__image .wc-block-components-product-image figure,
.wc-block-cart-item__image figure > img ~ img {
    display: none !important;
}

/* ─── Price emphasis ─────────────────────────────────────────────────────── */
.wc-block-cart-item__prices .wc-block-components-product-price__value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--fb-blue) !important;
}

.wc-block-cart-item__prices del {
    color: var(--fb-gray-400) !important;
    font-size: 13px !important;
}

.wc-block-cart-item__prices ins {
    text-decoration: none !important;
}

/* ─── Quantity stepper size ──────────────────────────────────────────────── */
.wc-block-components-quantity-stepper__button {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
}

.wc-block-components-quantity-stepper input {
    width: 48px !important;
    height: 36px !important;
    font-size: 15px !important;
}

/* ─── Remove button ──────────────────────────────────────────────────────── */
.wc-block-cart-item__remove-link {
    font-family: var(--fb-font-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--fb-gray-400) !important;
    text-decoration: none !important;
}

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

/* ─── Hide Stripe "Pay with Link" to reduce CTA competition ─────────────── */
.wc-block-components-express-payment,
.wc-block-components-express-payment-continue-rule {
    display: none !important;
}

/* ─── Trust signal below checkout button ────────────────────────────────── */
.wp-block-woocommerce-proceed-to-checkout-block::after {
    content: '🔒 Secure checkout · SSL encrypted';
    display: block;
    text-align: center;
    font-family: var(--fb-font-sans);
    font-size: 12px;
    color: var(--fb-gray-400);
    margin-top: 10px;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .wc-block-cart-item__image {
        width: 64px !important;
        min-width: 64px !important;
    }
    .wc-block-cart-item__image img {
        width: 64px !important;
        height: 64px !important;
    }
}

.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description {
    display: none !important;
}