/* ==========================================================================
   Dabba Cartel — WooCommerce in the house style
   --------------------------------------------------------------------------
   The classic cart, checkout, order-received and account templates (the
   shortcode versions the live site uses), restyled with the site's tokens.
   WooCommerce's own layout stylesheet stays on; this only dresses it.
   ========================================================================== */

.dc-shop{ font-size:var(--step-0); color:var(--text); }
.dc-shop a:not(.button):not(.btn){ color:var(--brand-600); }

/* ---------- Notices ------------------------------------------------------- */
.woocommerce-notices-wrapper:empty{ display:none; }
.woocommerce-error,.woocommerce-info,.woocommerce-message{
  list-style:none; margin:0 0 1.5rem; padding:1rem 1.15rem 1rem 3rem; position:relative;
  border:0; border-radius:var(--radius-s); background:var(--cream); color:var(--text);
  font-size:var(--step--1); line-height:1.5;
}
.woocommerce-error{ background:color-mix(in srgb, var(--copper) 12%, var(--paper)); }
.woocommerce-message{ background:color-mix(in srgb, var(--brand-100) 60%, var(--paper)); }
.woocommerce-error::before,.woocommerce-info::before,.woocommerce-message::before{
  position:absolute; left:1.1rem; top:1rem; color:var(--brand);
}
.woocommerce-error::before{ color:var(--copper); }
.woocommerce-error li + li{ margin-top:.35rem; }
.woocommerce-error a,.woocommerce-info a,.woocommerce-message a{ text-decoration:underline; }
.woocommerce-message .button,.woocommerce-info .button{ float:right; margin-left:1rem; }

/* ---------- Buttons -------------------------------------------------------- */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link){
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.9rem 1.5rem; min-height:48px; border:1px solid var(--forest-900); border-radius:999px;
  background:var(--forest-900); color:var(--on-dark); font-family:var(--sans);
  font-size:var(--step--1); font-weight:600; letter-spacing:.015em; line-height:1.2;
  transition:background .25s var(--ease), border-color .25s var(--ease);
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{ background:var(--brand); border-color:var(--brand); color:#fff; }
.woocommerce button.button.alt,.woocommerce a.button.alt,#place_order,.checkout-button{ background:var(--brand); border-color:var(--brand); }
.woocommerce button.button.alt:hover,#place_order:hover,.checkout-button:hover{ background:var(--forest-900); border-color:var(--forest-900); }
.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled]{
  opacity:1; padding:.9rem 1.5rem; background:var(--sand); border-color:var(--sand); color:var(--text-soft); cursor:not-allowed;
}
.dc-cart-errors{ margin:1rem 0 1.25rem; }
.dc-cart-errors .woocommerce-error{ margin:0; }
#place_order{ width:100%; padding:1.1rem 2rem; font-size:var(--step-0); margin-top:1rem; }

/* ---------- Fields ---------------------------------------------------------- */
.woocommerce form .form-row{ padding:0; margin:0 0 1rem; }
.woocommerce form .form-row label{
  display:block; margin-bottom:.4rem; font-size:.72rem; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); line-height:1.4;
}
.woocommerce form .form-row .required{ color:var(--copper); text-decoration:none; }
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.woocommerce .quantity .qty,.woocommerce-page form .form-row input.input-text,
.select2-container--default .select2-selection--single,.dc-event-box input,.dc-event-box select,
.woocommerce #coupon_code{
  width:100%; min-height:50px; padding:.75rem 1rem; border:1px solid var(--line);
  border-radius:var(--radius-s); background:var(--surface); color:var(--text);
  font-size:var(--step-0); line-height:1.3; box-shadow:none;
}
.woocommerce form .form-row textarea{ min-height:110px; }
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus,.woocommerce form .form-row select:focus,.dc-event-box input:focus,.dc-event-box select:focus{
  outline:0; border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.select2-container--default .select2-selection--single .select2-selection__rendered{ line-height:1.6; padding:0; color:var(--text); }
.select2-container--default .select2-selection--single .select2-selection__arrow{ height:48px; right:8px; }
.woocommerce form .form-row.woocommerce-invalid input.input-text,.woocommerce form .form-row.woocommerce-invalid select{ border-color:var(--copper); }
.woocommerce .quantity .qty{ width:5.5rem; text-align:center; min-height:44px; }

/* ---------- Checkout layout ---------------------------------------------- */
.woocommerce-checkout .dc-shop form.checkout{ display:grid; gap:2rem; }
@media (min-width:980px){
  .woocommerce-checkout .dc-shop form.checkout{ grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:3rem; align-items:start; }
  .woocommerce-checkout .dc-shop form.checkout > .dc-event-box,
  .woocommerce-checkout .dc-shop form.checkout > #customer_details{ grid-column:1; }
  .woocommerce-checkout .dc-shop form.checkout > #order_review_heading,
  .woocommerce-checkout .dc-shop form.checkout > #order_review{ grid-column:2; }
  .woocommerce-checkout .dc-shop form.checkout > #order_review_heading{ grid-row:1; }
  .woocommerce-checkout .dc-shop form.checkout > #order_review{ grid-row:2 / span 3; position:sticky; top:calc(var(--header-h) + 1rem); }
}
.woocommerce-checkout #customer_details.col2-set .col-1,.woocommerce-checkout #customer_details.col2-set .col-2{ float:none; width:100%; }
.woocommerce-checkout #customer_details .col-2{ margin-top:1.5rem; }
.dc-shop h3,#order_review_heading{
  font-family:var(--display); font-size:var(--step-2); font-weight:500; letter-spacing:-.015em; margin:0 0 1rem;
}
#order_review{
  padding:clamp(1.25rem,3vw,1.75rem); background:var(--surface); border:1px solid var(--line-soft);
  border-radius:var(--radius); box-shadow:var(--shadow-s);
}
.woocommerce-checkout-review-order-table{ width:100%; border-collapse:collapse; font-size:var(--step--1); }
.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td{ padding:.7rem 0; border-bottom:1px solid var(--line-soft); text-align:left; vertical-align:top; }
.woocommerce-checkout-review-order-table td:last-child,.woocommerce-checkout-review-order-table th:last-child{ text-align:right; }
.woocommerce-checkout-review-order-table .order-total th,.woocommerce-checkout-review-order-table .order-total td{ font-size:var(--step-1); font-weight:600; border-bottom:0; padding-top:1rem; }
.woocommerce-checkout-review-order-table .product-name dl.variation,.woocommerce td.product-name dl.variation{ margin:.3rem 0 0; color:var(--text-soft); font-size:.8rem; display:grid; grid-template-columns:auto 1fr; gap:.1rem .4rem; }
.woocommerce td.product-name dl.variation dt{ font-weight:600; }
.woocommerce td.product-name dl.variation dd p{ margin:0; }
.woocommerce-checkout #payment{ background:transparent; border-radius:0; margin-top:1rem; }
.woocommerce-checkout #payment ul.payment_methods{ padding:0; border:0; }
.woocommerce-checkout #payment ul.payment_methods li{ padding:.85rem 0; border-bottom:1px solid var(--line-soft); }
.woocommerce-checkout #payment div.payment_box{ background:var(--paper); border-radius:var(--radius-s); color:var(--text-soft); }
.woocommerce-checkout #payment div.payment_box::before{ border-bottom-color:var(--paper); }
.woocommerce-checkout #payment div.form-row{ padding:1rem 0 0; }
.woocommerce-privacy-policy-text,.woocommerce-terms-and-conditions-wrapper{ font-size:.8rem; color:var(--text-faint); }

/* The "Your catering" box at the top of the checkout. */
.dc-event-box{
  padding:clamp(1.25rem,3vw,1.75rem); border-radius:var(--radius);
  background:var(--cream); border:1px solid var(--line-soft);
}
.dc-event-box h3{ margin-bottom:.35rem !important; }
.dc-event-box__lede{ font-size:var(--step--1); color:var(--text-soft); margin-bottom:1.1rem; }
.dc-event-box__row{ display:grid; gap:0 1rem; }
@media (min-width:620px){ .dc-event-box__row{ grid-template-columns:1fr 1fr; } }
.dc-event-box .form-row{ float:none !important; width:auto !important; }
.dc-event-box__edit{ font-size:var(--step--1); margin:0; }

/* ---------- Cart ----------------------------------------------------------- */
.woocommerce table.shop_table{
  border:1px solid var(--line-soft); border-radius:var(--radius); border-collapse:separate; border-spacing:0;
  background:var(--surface); overflow:hidden; font-size:var(--step--1);
}
.woocommerce table.shop_table th{ font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); font-weight:600; }
.woocommerce table.shop_table td,.woocommerce table.shop_table th{ border-top:1px solid var(--line-soft); padding:.9rem 1rem; }
.woocommerce table.shop_table thead th{ border-top:0; }
.woocommerce table.cart img{ width:64px; border-radius:var(--radius-s); }
.woocommerce a.remove{ color:var(--copper) !important; }
.woocommerce a.remove:hover{ background:var(--copper); color:#fff !important; }
.woocommerce .cart-collaterals .cart_totals h2{ font-family:var(--display); font-size:var(--step-2); font-weight:500; }
.woocommerce-cart .cart-empty{ font-family:var(--display); font-size:var(--step-2); }

/* ---------- Order received & account -------------------------------------- */
.woocommerce-order .woocommerce-thankyou-order-received{
  font-family:var(--display); font-size:var(--step-3); line-height:1.15; padding:0; background:none;
}
.woocommerce-order .woocommerce-thankyou-order-received::before{ display:none; }
.woocommerce ul.order_details{ display:flex; flex-wrap:wrap; gap:1rem 2rem; padding:1.25rem; border-radius:var(--radius); background:var(--cream); margin:1.5rem 0 2rem; }
.woocommerce ul.order_details li{ border:0; margin:0; padding:0; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); }
.woocommerce ul.order_details li strong{ display:block; font-size:var(--step-0); letter-spacing:0; text-transform:none; color:var(--text); margin-top:.2rem; }
.woocommerce-order-details__title,.woocommerce-customer-details h2,.woocommerce-column__title{ font-family:var(--display); font-size:var(--step-2); font-weight:500; margin:1.5rem 0 .75rem; }
.woocommerce-customer-details address{ border:1px solid var(--line-soft); border-radius:var(--radius); padding:1rem 1.15rem; font-style:normal; }

.woocommerce-account .woocommerce-MyAccount-navigation ul{ display:grid; gap:.25rem; }
.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display:block; padding:.7rem 1rem; border-radius:var(--radius-s); color:var(--text) !important; text-decoration:none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{ background:var(--cream); }
@media (min-width:900px){
  .woocommerce-account .woocommerce-MyAccount-navigation{ width:24%; }
  .woocommerce-account .woocommerce-MyAccount-content{ width:72%; }
}

/* ---------- Product pages that remain (festive box and friends) ------------ */
.woocommerce div.product .product_title{ font-family:var(--display); font-size:var(--step-4); font-weight:400; line-height:1.05; }
.woocommerce div.product p.price,.woocommerce div.product span.price{ color:var(--brand-600); font-size:var(--step-2); font-weight:600; }
.woocommerce div.product div.images img{ border-radius:var(--radius); }
.woocommerce span.onsale{ background:var(--saffron); color:#2A1A05; min-height:auto; min-width:auto; padding:.3rem .7rem; line-height:1.2; border-radius:999px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title{ font-family:var(--display); font-size:var(--step-1); }
.woocommerce ul.products li.product .price{ color:var(--brand-600); }
.woocommerce .woocommerce-breadcrumb{ font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); margin-bottom:1.5rem; }

/* WooCommerce sets `.woocommerce-page img{height:auto}` on its own pages,
   which out-ranks the logo's height and blows it up to 640px. Put the
   logo sizes back with a selector that wins. */
.woocommerce-page .site-header .brand__logo,
.woocommerce .site-header .brand__logo{ height:clamp(42px, 4.6vw, 58px); max-width:none; }
.woocommerce-page .site-header.is-stuck .brand__logo,
.woocommerce .site-header.is-stuck .brand__logo{ height:clamp(38px, 4vw, 48px); }
.woocommerce-page .site-footer .brand__logo,
.woocommerce .site-footer .brand__logo{ height:62px; max-width:none; }
