/* Product page, basket, checkout and order received: Blocksy / WooCommerce markup in the prototype look. */

/* ------------------------------------------------------------ product page */
.cp-page-product .product-entry-wrapper { gap: 56px; }
.cp-page-product .entry-summary { display: flex; flex-direction: column; gap: 18px; }
.cp-page-product .entry-summary > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.cp-page-product .entry-summary .ct-product-divider { display: none; }
.cp-page-product .pd__brand { display: block; margin-bottom: -12px; }
.cp-page-product .product_title { font-size: 30px; line-height: 1.35; }
.cp-page-product .entry-summary > .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; color: var(--black); font-size: 26px; font-weight: 700; line-height: 1.2; }
.cp-page-product .entry-summary > .price del { order: -1; color: var(--muted-2); font-size: 18px; font-weight: 400; }
.cp-page-product .entry-summary > .price ins { text-decoration: none; }
.cp-page-product .woocommerce-product-details__short-description { font-size: 16px; }
.cp-page-product .woocommerce-product-details__short-description > p + p { margin-top: 10px; }
.cp-page-product .woocommerce-product-details__short-description .fit { margin-top: 16px; }

/* Options: size buttons like the prototype. */
.cp-page-product table.variations { margin: 0; border: 0; }
.cp-page-product table.variations th, .cp-page-product table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; }
.cp-page-product table.variations th.label { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.cp-page-product table.variations tr + tr th { margin-top: 16px; }
.cp-page-product .variable-items-wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cp-page-product .button-variable-items-wrapper .variable-item:not(.radio-variable-item) { min-width: 54px; height: 46px; margin: 0 !important; padding: 0 12px; border-radius: var(--radius) !important; box-shadow: 0 0 0 2px var(--sand) !important; background: var(--white); color: var(--black); font-size: 15px; font-weight: 700; }
.cp-page-product .button-variable-items-wrapper .variable-item:not(.radio-variable-item):hover { box-shadow: 0 0 0 2px var(--ink) !important; }
.cp-page-product .button-variable-items-wrapper .variable-item.selected:not(.radio-variable-item) { box-shadow: 0 0 0 2px var(--ink) !important; background: var(--ink); color: var(--white); }
.cp-page-product .variable-item .variable-item-span { padding: 0 !important; }
.cp-page-product .variable-item.disabled, .cp-page-product .variable-item.out-of-stock { opacity: 1 !important; background: var(--bg) !important; color: var(--disabled) !important; text-decoration: line-through; }
.cp-page-product .reset_variations { display: inline-block; margin-top: 8px; font-size: 14px; }
.cp-page-product .single_variation { font-size: 15px; }
.cp-page-product .single_variation .price { font-size: 20px; font-weight: 700; }

/* Quantity and button: one row, the button takes the rest. */
.cp-page-product .ct-cart-actions { display: flex; gap: 12px; }
.cp-page-product .single_add_to_cart_button { flex: 1 1 auto; min-height: 55px; border-radius: var(--radius) !important; background: var(--cta) !important; font: 700 16px/1.2 var(--body) !important; text-transform: uppercase; }
.cp-page-product .single_add_to_cart_button:hover { background: var(--ink) !important; }
.cp-page-product .quantity input.qty { border-color: var(--sand) !important; border-width: 2px !important; border-radius: var(--radius); }

.cp-page-product .addons { margin-top: 0; }
.cp-page-product .addon + .addon { border-top: 1px solid var(--sand); }
.cp-page-product .addon__opt .field__error { margin-top: 0; }
.cp-page-product .pd__sum { margin-top: 6px; color: var(--muted); }
.cp-page-product .assure a.tp { display: inline-flex; }
.cp-page-product .product_meta { padding-top: 16px; border-top: 1px solid var(--sand); color: var(--muted); font-size: 14px; line-height: 1.8; }
.cp-page-product .product_meta > span { display: block; }
.cp-page-product .product_meta a { color: var(--black); text-decoration: underline; text-underline-offset: 2px; }

/* Tabs. */
.cp-page-product .woocommerce-tabs ul.tabs li a { font-weight: 700; }
.cp-page-product .woocommerce-tabs .panel { font-size: 16px; line-height: 1.65; }

/* Related and upsells. */
.cp-page-product .related > h2, .cp-page-product .upsells > h2 { font-size: 26px; }

@media (max-width: 999px) {
  .cp-page-product .product-entry-wrapper { gap: 24px; }
  .cp-page-product .product_title { font-size: 24px; }
  .cp-page-product .entry-summary > .price { font-size: 22px; }
}

/* ------------------------------------------------------------------ basket */
.woocommerce-cart .ship-bar { max-width: 760px; }
.woocommerce-cart table.shop_table { border: 0; border-collapse: collapse; }
.woocommerce-cart table.shop_table th { padding: 0 10px 12px; border-bottom: 2px solid var(--sand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.woocommerce-cart table.shop_table td { padding: 20px 10px; border-top: 0; border-bottom: 1px solid var(--sand); }
.woocommerce-cart table.shop_table td.product-thumbnail img { width: 84px; height: 84px; border-radius: 6px; object-fit: cover; background: var(--cream); }
.woocommerce-cart table.shop_table td.product-name a { font-weight: 700; }
.woocommerce-cart td.product-name dl.variation { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.woocommerce-cart td.product-name dl.variation dt.variation-Deal { display: none; }
.woocommerce-cart td.product-name dl.variation dd.variation-Deal { display: inline-block; margin: 6px 0 0; padding: 4px 8px; border-radius: var(--radius); background: var(--accent); color: var(--black); font-size: 12px; font-weight: 700; line-height: 1.2; }
.woocommerce-cart td.product-name dl.variation dd.variation-Deal p { margin: 0; }
.woocommerce-cart td.product-price del { display: block; color: var(--muted-2); font-size: 13px; }
.woocommerce-cart td.product-price ins { text-decoration: none; font-weight: 700; }
.woocommerce-cart td.product-subtotal { font-weight: 700; }
.woocommerce-cart td.actions .coupon .input-text { height: 50px; border: 2px solid var(--sand); border-radius: var(--radius); }
.woocommerce-cart td.actions .button, .woocommerce-cart .checkout-button { border-radius: var(--radius) !important; font-weight: 700 !important; text-transform: uppercase; }
.woocommerce-cart .checkout-button { min-height: 55px; background: var(--cta) !important; }
.woocommerce-cart .checkout-button:hover { background: var(--ink) !important; }
.cp-basket-offers { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.cp-basket-offers .offer__name a:hover { color: var(--accent-ink); }
.woocommerce-cart .cart_totals { padding: 28px; border-radius: 6px; background: var(--white); box-shadow: var(--shadow); }
.woocommerce-cart .cart_totals h2 { font-size: 20px; }
.woocommerce-cart .cart_totals table.shop_table td, .woocommerce-cart .cart_totals table.shop_table th { padding: 12px 0; }
.woocommerce-cart .cart_totals .order-total .amount { font-size: 24px; }
.woocommerce-cart .assure { margin-top: 20px; }

/* ---------------------------------------------------------------- checkout */
.woocommerce-checkout .bump { margin: 0 0 18px; }
.woocommerce-checkout .bump.is-busy { opacity: 0.6; pointer-events: none; }
.woocommerce-checkout .bump .field__error { display: block; margin-top: 6px; }
.woocommerce-checkout .cp-turnstile { margin: 0 0 14px; }
.woocommerce-checkout form .form-row label { font-size: 14px; font-weight: 700; }
.woocommerce-checkout form .form-row .input-text, .woocommerce-checkout form .form-row select { min-height: 50px; border: 2px solid var(--sand); border-radius: var(--radius); }
.woocommerce-checkout form .form-row .input-text:focus, .woocommerce-checkout form .form-row select:focus { border-color: var(--ink); }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout .woocommerce-billing-fields h3, .woocommerce-checkout .woocommerce-additional-fields h3 { font-size: 20px; }
.woocommerce-checkout #place_order { min-height: 55px; border-radius: var(--radius) !important; background: var(--cta) !important; font-weight: 700 !important; text-transform: uppercase; }
.woocommerce-checkout #place_order:hover { background: var(--ink) !important; }
.woocommerce-checkout td.product-name .variation dd.variation-Deal { color: var(--accent-ink-strong); font-weight: 700; }

/* ------------------------------------------------------------ order received */
.woocommerce-order-received .woocommerce-thankyou-order-received { margin-bottom: 20px; font-family: var(--display); font-size: 24px; line-height: 1.35; color: var(--ink); }
.woocommerce-order-received ul.order_details { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 32px; padding: 20px 24px; border-radius: 6px; background: var(--cream); list-style: none; }
.woocommerce-order-received ul.order_details li { margin: 0; padding: 0; border: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.woocommerce-order-received ul.order_details li strong { display: block; margin-top: 2px; font-size: 16px; text-transform: none; letter-spacing: 0; }
.cp-next { margin: 0 0 32px; padding: 20px 24px; border: 2px solid var(--ink); border-radius: 6px; }
.cp-next h2 { margin-bottom: 10px; font-size: 20px; }
.cp-next ol { margin: 0; padding-left: 20px; }
.cp-next li + li { margin-top: 6px; }

/* =================================================================== visual audit fixes (23 Oct 2026) */

/* ---------- product page */
/* Blocksy breadcrumbs in the prototype crumb style. */
.cp-page-product .ct-breadcrumbs { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--black); }
.cp-page-product .ct-breadcrumbs a:hover { color: var(--accent-ink); }
.cp-page-product .ct-breadcrumbs > span:last-child, .cp-page-product .ct-breadcrumbs .last-item { color: var(--muted-2); }
/* Short descriptions written with inline 13px text read at body size. */
.cp-page-product .woocommerce-product-details__short-description > p[style] { font-size: 16px !important; line-height: 1.65 !important; color: var(--black) !important; }
/* Options: no white panel behind the size buttons (Blocksy variations box), label like the prototype. */
.cp-page-product form.variations_form table.variations,
.cp-page-product form.variations_form table.variations tbody,
.cp-page-product form.variations_form table.variations tr,
.cp-page-product form.variations_form .woo-variation-items-wrapper { background: none !important; box-shadow: none !important; border: 0 !important; }
.cp-page-product table.variations th.label label { font-size: 14px; font-weight: 700; }
/* Sold-out sizes: line-through like the prototype instead of the red cross. */
.cp-page-product .variable-item.disabled .variable-item-contents::before,
.cp-page-product .variable-item.out-of-stock .variable-item-contents::before { display: none !important; }
.cp-page-product .variable-item.disabled .variable-item-span, .cp-page-product .variable-item.out-of-stock .variable-item-span { text-decoration: line-through; }
/* Quantity and Add to basket on one row, both 55 px high. */
.cp-page-product .woocommerce-variation-add-to-cart, .cp-page-product form.cart:not(.variations_form) { width: 100%; }
.cp-page-product .ct-cart-actions { display: flex !important; flex-wrap: nowrap !important; align-items: stretch; gap: 12px; width: 100%; }
.cp-page-product .ct-cart-actions .quantity { flex: 0 0 auto; height: 55px; margin: 0 !important; }
.cp-page-product .ct-cart-actions .quantity input.qty { height: 55px; }
.cp-page-product .ct-cart-actions .single_add_to_cart_button { flex: 1 1 auto; width: auto !important; margin: 0 !important; }
.cp-page-product .single_add_to_cart_button.disabled { opacity: 1 !important; background: var(--cta) !important; cursor: pointer; }
/* Related / upsell rows inside the page width. */
.cp-page-product .up-sells, .cp-page-product .related, .cp-page-product .cp-also { width: var(--theme-container-width, min(100%, 90vw)); max-width: 1290px; margin-inline: auto; }

/* ---------- basket (WooCommerce classic cart inside page.php) */
.cp-page--basket .ct-woocommerce-cart-form { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.cp-page--basket .woocommerce-cart-form { width: auto; }
.cp-page--basket .ct-shipping-progress-cart-page { display: none; } /* Blocksy's own bar; the theme bar sits above the lines. */
.cp-page--basket .ship-bar { max-width: none; }
.cp-page--basket table.shop_table.cart { width: 100%; border: 0 !important; border-radius: 0; background: none; }
.cp-page--basket table.shop_table.cart thead th { padding: 0 10px 12px 0; border: 0; border-bottom: 2px solid var(--sand) !important; background: none !important; color: var(--black); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.cp-page--basket table.shop_table.cart td { padding: 20px 10px 20px 0; border: 0 !important; border-bottom: 1px solid var(--sand) !important; background: none !important; vertical-align: middle; }
.cp-page--basket table.shop_table.cart td.product-name a { color: var(--black); font-weight: 700; text-decoration: none; }
.cp-page--basket table.shop_table.cart td.product-name a:hover { color: var(--accent-ink); }
.cp-page--basket table.shop_table.cart td.product-remove a { color: var(--muted); }
.cp-page--basket table.shop_table.cart td.actions { padding: 24px 0 0; border-bottom: 0 !important; }
.cp-page--basket td.actions .coupon { display: flex; gap: 10px; }
.cp-page--basket td.actions .coupon .input-text { width: 220px; height: 50px; padding: 0 14px; border: 2px solid var(--sand); border-radius: var(--radius); font-size: 15px; }
.cp-page--basket td.actions .button { min-height: 50px; padding: 0 22px; border-radius: var(--radius); background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.cp-page--basket td.actions .button[name="update_cart"] { background: var(--white); border: 2px solid var(--ink); color: var(--ink); }
.cp-page--basket td.actions .button[name="update_cart"]:disabled { opacity: 0.45; }
.cp-page--basket td.actions .button:hover:not(:disabled) { background: var(--cta); border-color: var(--cta); color: var(--white); }
/* Totals card. */
.cp-page--basket .cart_totals { width: auto !important; padding: 35px; border: 0; border-radius: 3px; background: var(--white); box-shadow: 0 12px 18px -6px rgba(34, 56, 101, 0.06); }
.cp-page--basket .cart_totals h2 { margin-bottom: 12px; font-size: 20px; }
.cp-page--basket .cart_totals table.shop_table { width: 100%; border: 0 !important; border-top: 1px solid var(--sand) !important; border-radius: 0; }
.cp-page--basket .cart_totals table.shop_table tr > * { padding: 12px 0; border: 0 !important; border-bottom: 1px solid var(--sand) !important; background: none !important; font-size: 16px; text-transform: none; letter-spacing: 0; vertical-align: top; }
.cp-page--basket .cart_totals table.shop_table th { font-weight: 400; color: var(--black); }
.cp-page--basket .cart_totals table.shop_table td { text-align: right; }
.cp-page--basket .cart_totals table.shop_table tr.woocommerce-shipping-totals td,
.cp-page--basket .cart_totals #shipping_method, .cp-page--basket .cart_totals #shipping_method li,
.cp-page--basket .cart_totals .woocommerce-shipping-destination, .cp-page--basket .cart_totals .woocommerce-shipping-calculator { text-align: left; }
.cp-page--basket .cart_totals .ct-shipping-heading { margin-bottom: 8px; font-weight: 700; }
.cp-page--basket .cart_totals .order-total > * { padding-top: 16px; border-bottom: 0 !important; font-size: 18px; font-weight: 700; }
.cp-page--basket .cart_totals .order-total .amount { font-size: 24px; }
.cp-page--basket .cart_totals .order-total small.includes_tax { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
.cp-page--basket .cart_totals .order-total small.includes_tax .amount { font-size: 14px; }
.cp-page--basket .wc-proceed-to-checkout { padding: 10px 0 0; }
.cp-page--basket .wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; min-height: 55px; margin: 0; }

/* ---------- checkout */
.cp-page--checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; }
.cp-page--checkout .ct-customer-details, .cp-page--checkout .ct-order-review { width: auto !important; margin: 0 !important; }
.cp-page--checkout .ct-order-review { position: sticky; top: 20px; padding: 35px; border: 0 !important; border-radius: 3px; background: var(--white); box-shadow: 0 12px 18px -6px rgba(34, 56, 101, 0.06); }
.woocommerce-checkout form.checkout h3, .woocommerce-checkout #order_review_heading { margin: 0 0 18px; font-family: var(--display); font-size: 20px; font-weight: 400; line-height: 1.4; color: var(--ink); text-transform: none; }
.woocommerce-checkout #ship-to-different-address { font-family: var(--body); font-size: 16px; font-weight: 700; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table { width: 100%; border: 0 !important; border-top: 1px solid var(--sand) !important; border-radius: 0; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr > * { padding: 12px 0; border: 0 !important; border-bottom: 1px solid var(--sand) !important; background: none !important; font-size: 15px; vertical-align: top; text-transform: none; letter-spacing: 0; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
.woocommerce-checkout #shipping_method, .woocommerce-checkout #shipping_method li { text-align: left; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total > * { padding-top: 16px; border-bottom: 0 !important; font-size: 18px; font-weight: 700; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total .amount { font-size: 24px; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total small.includes_tax { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total small.includes_tax .amount { font-size: 14px; }
.woocommerce-checkout #payment { margin-top: 16px; border-radius: 6px; background: none; }
.woocommerce-checkout #payment .woocommerce-info, .woocommerce-checkout #payment .woocommerce-notice { padding: 14px 16px; border: 0; border-radius: 6px; background: var(--panel); font-size: 14px; }

/* ---------- order received */
.cp-page--received .woocommerce-order { max-width: 860px; }

@media (max-width: 999px) {
  .cp-page--basket .ct-woocommerce-cart-form, .cp-page--checkout form.checkout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cp-page--checkout .ct-order-review { position: static; padding: 24px 18px; }
  .cp-page--basket .cart_totals { padding: 24px 18px; }
  .cp-page--basket td.actions .coupon { flex-wrap: wrap; }
  .cp-page--basket td.actions .coupon .input-text { flex: 0 0 auto; width: 100%; height: 50px; min-width: 0; }
}
.woocommerce-checkout form.checkout .form-row { margin-bottom: 18px; }
.woocommerce-checkout form.checkout .form-row label { margin-bottom: 6px; }

/* 23 Oct round 2: space between the blocks under Add to basket. */
.cp-page-product .ct-product-add-to-cart > * + * { margin-top: 18px; }
.cp-page-product .ct-product-add-to-cart .assure { margin-top: 18px; }
.cp-page-product .entry-summary .product_meta { margin-top: 6px !important; }
/* Checkout notices: room for Blocksy's icon. */
.woocommerce-checkout #payment .woocommerce-info, .woocommerce-checkout #payment .woocommerce-notice { padding-left: 48px; }

/* Basket: "You may also need" (inc/cross-sells.php). Small cards, add straight to the basket. */
.cp-page--basket .cross-sells:not(.cp-xs) { display: none; } /* any other cross-sell grid */
.cp-page--basket .cp-xs { max-width: calc(100% - 448px); margin-top: 40px; }
.cp-page--basket .cp-xs h2 { margin: 0 0 16px; font-size: 20px; }
.cp-xs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cp-xs .xs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cp-xs .xs__img { display: block; aspect-ratio: 1 / 1; max-height: 120px; }
.cp-xs .xs__img img { width: 100%; height: 100%; object-fit: contain; }
.cp-xs .xs__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.cp-xs .xs__brand { color: var(--muted); font-size: 12px; }
.cp-xs .xs__name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--black); font-size: 13px; font-weight: 700; text-decoration: none; }
.cp-xs .xs__name:hover { color: var(--accent-ink); }
.cp-xs .xs__price { font-size: 14px; font-weight: 700; }
.cp-xs .xs__price .was { color: var(--muted); font-weight: 400; text-decoration: line-through; }
.cp-xs .xs__act { display: flex; flex-direction: column; gap: 6px; }
.cp-xs .xs__act select { width: 100%; height: 40px; min-height: 40px; padding: 0 28px 0 10px; font-size: 13px; }
.cp-xs .xs__btn { width: 100%; min-height: 40px; padding: 8px 10px; font-size: 13px; }
@media (max-width: 999px) { .cp-page--basket .cp-xs { max-width: none; } }
@media (max-width: 767px) { .cp-xs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Product page "You may also like" (theme cards in a carousel, inc/product.php). */
.cp-page-product .cp-also { margin-block: 48px 56px; }
.cp-page-product .cp-also .h2 { margin: 0; }
/* Sold-out product: the buy button is dimmed. (In-stock products keep the orange button before a size is chosen; tapping it asks for the size.) */
.cp-page-product .product.outofstock .single_add_to_cart_button { opacity: .45 !important; cursor: not-allowed; }
/* Basket: the bin icon gets a 44 x 44 px tap area (was 22 x 25 next to the quantity buttons); negative margin keeps the layout. */
.cp-page--basket a.remove { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -10px; }

/* Product page: payment info once only (the "Secure checkout by card or PayPal" line). Blocksy's
   "Guaranteed Safe Checkout" card icons and PayPal's Pay Later banner under the short description are hidden here. */
.cp-page-product .summary .ct-payment-methods,
.cp-page-product .summary > .ppcp-messages { display: none !important; }

/* Reviews: the Gravatar stretched into a tall oval next to the review. */
.woocommerce-Reviews .commentlist li .comment_container { display: flex; align-items: flex-start; gap: 14px; }
.woocommerce-Reviews .commentlist li img.avatar { flex: 0 0 44px; width: 44px !important; height: 44px !important; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 50%; object-fit: cover; position: static; }
.woocommerce-Reviews .commentlist li .comment-text { flex: 1 1 auto; min-width: 0; margin: 0; }

/* Notice when a discount code switches the bundle deal off. */
.cp-deal-note { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--cta); background: var(--cream); font-size: 14px; }
.cp-deal-note-row td { padding: 0 0 8px !important; border: 0 !important; }
