/**
 * branded.be — brand overrides for Allegro2 / Elementor / WooCommerce.
 *
 * Primary: Carbon + Branded orange + Ivory
 * Secondary: Olive, Rusty, Sand, Chocolate, Steel
 */

:root,
body,
.elementor-kit-15 {
  /* Brand tokens */
  --brand-carbon: #060606;
  --brand-orange: #F1861B;
  --brand-ivory: #FFF7F1;
  --brand-olive: #555434;
  --brand-rusty: #BA320B;
  --brand-sand: #E4CBB0;
  --brand-chocolate: #352113;
  --brand-steel: #605D5D;

  --brand-carbon-rgb: 6, 6, 6;
  --brand-orange-rgb: 241, 134, 27;
  --brand-ivory-rgb: 255, 247, 241;

  --color-primary: var(--brand-orange);
  --color-primary-hover: #D97412;
  --color-primary-active: #C4680E;
  --color-text: var(--brand-carbon);
  --color-bg: var(--brand-ivory);
  --color-surface: var(--brand-ivory);
  --color-border: #E8D9C8;
  --color-link: var(--brand-orange);
  --color-link-hover: var(--brand-rusty);
  --color-focus: rgba(241, 134, 27, 0.35);

  /* Map Allegro2 / Elementor globals — force on body+kit (theme :root alone is not enough) */
  --e-global-color-primary: #F1861B !important;
  --e-global-color-primary-hover: #D97412 !important;
  --e-global-color-secondary: #060606 !important;
  --e-global-color-text: #352113 !important;
  --e-global-color-accent: #BA320B !important;
  --e-global-color-lighter: #605D5D !important;
  --e-global-color-dark: #060606 !important;
  --e-global-color-highlight: #E4CBB0 !important;
  --e-global-color-border: #E8D9C8 !important;

  --e-global-typography-primary-font-family: "Proxima Nova", Inter, system-ui, sans-serif !important;
  --e-global-typography-secondary-font-family: "Proxima Nova", Inter, system-ui, sans-serif !important;
  --e-global-typography-text-font-family: "Proxima Nova", Inter, system-ui, sans-serif !important;
  --e-global-typography-accent-font-family: "Proxima Nova", Inter, system-ui, sans-serif !important;
  --e-global-typography-primary-font-weight: 700 !important;
  --e-global-typography-secondary-font-weight: 600 !important;
  --e-global-typography-accent-font-weight: 600 !important;
  --e-global-typography-accent-letter-spacing: 0.12em !important;

  --font-brand: "Proxima Nova", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-slogan: Righteous, "Proxima Nova", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --primary: var(--brand-orange);
  --secondary: var(--brand-carbon);
  --accent: var(--brand-rusty);
}

/* -------------------------------------------------------------------------- */
/* Base surfaces & type                                                       */
/* -------------------------------------------------------------------------- */

html {
  background-color: var(--brand-ivory);
}

body {
  background-color: var(--brand-ivory) !important;
  color: var(--brand-carbon);
  font-family: var(--font-brand) !important;
  font-weight: 400;
}

/* Allegro/Elementor default white page surfaces → ivory */
#page,
.opal-wrapper,
.site-content,
.content-area,
.site-main,
#content,
.entry-content,
.woocommerce-page #content,
.woocommerce #content,
.single-product .content-single-wrapper,
.single-product .woocommerce-tabs,
.widget,
.widget_block,
.group-action .shop-action,
.time-sale {
  background-color: var(--brand-ivory) !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.elementor-heading-title {
  color: var(--brand-carbon);
  font-family: var(--font-slogan) !important;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Producttitels blijven Proxima Nova (leesbaarheid lange namen) */
.woocommerce-loop-product__title,
.woocommerce-loop-product__title a,
.product_title,
.product-block .woocommerce-loop-product__title {
  font-family: var(--font-brand) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

/* Brand slogan — Righteous (brandbook: logo + grote slogans / titels) */
.bh-slogan,
.brand-slogan {
  font-family: var(--font-slogan) !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

/* Prices only — JetBrains Mono */
.woocommerce-Price-amount,
.price .amount {
  font-family: var(--font-mono) !important;
}

a {
  color: var(--brand-orange);
}

a:hover,
a:focus {
  color: var(--brand-rusty);
}

::selection {
  background: var(--brand-orange);
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.button,
button.button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.added_to_cart,
.elementor-button,
.elementor-button.elementor-size-sm,
.elementor-button.elementor-size-md,
.elementor-button.elementor-size-lg {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 4px;
  box-shadow: none;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.added_to_cart:hover,
.elementor-button:hover {
  background-color: #D97412 !important;
  border-color: #D97412 !important;
  color: #fff !important;
}

.button:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.elementor-button:active {
  background-color: #C4680E !important;
  border-color: #C4680E !important;
}

/* Secondary / muted */
.button.secondary,
.woocommerce a.button.secondary {
  background-color: var(--brand-steel) !important;
  border-color: var(--brand-steel) !important;
  color: #fff !important;
}

.button.secondary:hover,
.woocommerce a.button.secondary:hover {
  background-color: #4E4B4B !important;
  border-color: #4E4B4B !important;
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                      */
/* -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-input-wrapper .input-text,
.select2-container--default .select2-selection--single {
  background-color: var(--brand-ivory);
  border-color: #E0D2C2 !important;
  color: var(--brand-carbon);
  border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--brand-orange) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: var(--brand-orange);
}

::placeholder {
  color: var(--brand-steel);
  opacity: 0.85;
}

/* -------------------------------------------------------------------------- */
/* WooCommerce                                                                */
/* -------------------------------------------------------------------------- */

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.product .onsale {
  background-color: var(--brand-rusty) !important;
  color: #fff !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.price ins,
.woocommerce .price {
  color: var(--brand-carbon) !important;
}

.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del {
  color: var(--brand-steel) !important;
  opacity: 0.8;
}

.woocommerce .star-rating span::before,
.woocommerce .star-rating::before,
.woocommerce p.stars a {
  color: var(--brand-orange) !important;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--brand-orange) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--brand-orange) !important;
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
  background-color: var(--brand-orange) !important;
}

/* Outer li stays transparent; ivory card is only .product-block */
.woocommerce ul.products li.product {
  background-color: transparent !important;
}

.product-block,
.product-block-list {
  background-color: var(--brand-ivory);
}

/* -------------------------------------------------------------------------- */
/* Header / nav / footer surfaces                                             */
/* -------------------------------------------------------------------------- */

/*
 * Allegro/body overflow-x:hidden breaks position:sticky, so the main
 * header uses position:fixed once the topbar has scrolled away.
 */
.branded-header-spacer {
  display: none;
  width: 100%;
  height: 0;
  pointer-events: none;
}

body.branded-header-stuck .branded-header-spacer {
  display: block;
  height: var(--branded-sticky-header, 104px);
}

/* Main header (logo / search) — fixed after scroll; topbar scrolls away */
.elementor-65 .elementor-element-e0be0fd {
  z-index: 1000 !important;
  transition: box-shadow 0.2s ease;
}

body.branded-header-stuck .elementor-65 .elementor-element-e0be0fd {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: 0 6px 20px rgba(6, 6, 6, 0.14);
}

/* Keep dropdowns / mini-cart above page content while header is stuck */
.elementor-65 .elementor-element-e0be0fd .widget_shopping_cart,
.elementor-65 .elementor-element-e0be0fd .account-dropdown,
.elementor-65 .elementor-element-e0be0fd .elementor-nav-menu--dropdown {
  z-index: 1001;
}

/* Cart totals sit below sticky header — see cart section */
.elementor-location-header .elementor-element-1145b2b,
.elementor-location-header .elementor-element-e0be0fd,
.elementor-65 .elementor-element-1145b2b,
.elementor-65 .elementor-element-e0be0fd {
  background-color: var(--brand-carbon) !important;
}

.elementor-65 .elementor-element-1145b2b,
.elementor-65 .elementor-element-e0be0fd {
  border-color: #1a1a1a !important;
}

/* Hide 1px white spacer line under the header (nav section) */
.elementor-65 .elementor-element-29e97ce {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
}

/* Logo ↔ search spacing */
.elementor-65 .elementor-element-21b4fbc > .elementor-element-populated {
  padding-right: 24px !important;
}

.elementor-65 .elementor-element-9e4aec0 > .elementor-element-populated {
  padding-left: 24px !important;
}

.elementor-65 .elementor-element-98f3e8e .hfe-site-logo-container img,
.elementor-65 .elementor-element-98f3e8e .custom-logo,
.elementor-location-header .elementor-widget-site-logo img {
  max-width: 180px !important;
  height: auto !important;
  width: auto !important;
}

.elementor-65 .elementor-element-98f3e8e > .elementor-widget-container,
.elementor-location-header .elementor-widget-site-logo > .elementor-widget-container {
  margin-right: 0 !important;
}

/* Search submit + count badges → branded orange (never leftover teal/blue/old #ff6700) */
.elementor-widget-allegro2-search .widget form button[type="submit"],
.elementor-65 .elementor-element-bff6d9e .widget form button[type="submit"],
.site-search .woocommerce-product-search button[type="submit"],
.site-search .widget_product_search button[type="submit"],
.site-search .widget_product_search #searchsubmit {
  background: #F1861B !important;
  background-color: #F1861B !important;
}

.elementor-widget-allegro2-search .widget form button[type="submit"]:hover,
.elementor-65 .elementor-element-bff6d9e .widget form button[type="submit"]:hover,
.site-search .woocommerce-product-search button[type="submit"]:hover,
.site-search .widget_product_search #searchsubmit:hover {
  background: #D97412 !important;
  background-color: #D97412 !important;
}

.header-group-action .count,
.header-group-action .site-header-wishlist .count,
.header-group-action .site-header-cart .count,
.site-header-cart .count,
.site-header-wishlist .count,
.elementor-header-group-wrapper .count,
.woosw-menu-item .woosw-menu-item-inner .woosw-menu-item-count,
.cart-contents .count {
  background-color: #F1861B !important;
  background: #F1861B !important;
  color: #fff !important;
}

/* Header icon separators — override Allegro teal #086b72 */
.elementor-header-group-wrapper .header-group-action > div:before,
.header-group-action > div:before {
  background-color: rgba(255, 247, 241, 0.28) !important;
}

/* Active-ish nav accents */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.elementor-nav-menu .elementor-item.elementor-item-active,
.elementor-nav-menu .elementor-item:hover {
  color: var(--brand-orange) !important;
}

/* Dark surfaces: muted ivory text */
.site-footer,
#colophon,
.elementor-location-footer,
.elementor-75 {
  color: rgba(255, 247, 241, 0.78);
  background-color: #060606;
}

.site-footer a,
#colophon a,
.elementor-location-footer a,
.elementor-75 a {
  color: var(--brand-orange);
}

.site-footer a:hover,
#colophon a:hover,
.elementor-location-footer a:hover,
.elementor-75 a:hover {
  color: var(--brand-sand);
}

/*
 * Allegro gives .site-content margin-bottom:60px on non-home pages,
 * so the footer sits with an ivory gap. Homepage resets it to 0 — match that sitewide.
 */
#page .site-content,
body.single-product #page .site-content,
body.woocommerce #page .site-content,
body.woocommerce-page #page .site-content,
body.archive #page .site-content {
  margin-bottom: 0 !important;
}

#colophon,
.footer-width-fixer,
#colophon .elementor-75 {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background-color: #060606 !important;
}

/* —— Footer: tighter, aligned margins —— */
.elementor-75 {
  position: relative;
}

.elementor-75 > .elementor-element-3f49b54 {
  position: relative;
  background: #060606 !important;
  border-top: none !important;
  padding: 48px 0 40px !important;
}

.elementor-75 > .elementor-element-3f49b54::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f1861b 0%, #555434 45%, #060606 100%);
  pointer-events: none;
  z-index: 2;
}

.elementor-75 > .elementor-element-3f49b54 > .elementor-container {
  max-width: 1290px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  align-items: flex-start !important;
}

/* Columns: equal gutters, top-aligned */
.elementor-75 .elementor-element-ec44240,
.elementor-75 .elementor-element-8dd00a5,
.elementor-75 .elementor-element-34e63be {
  align-self: flex-start !important;
}

.elementor-75 .elementor-element-ec44240,
.elementor-75 .elementor-element-8dd00a5 {
  border-right: 1px solid rgba(255, 247, 241, 0.1) !important;
}

.elementor-75 .elementor-element-ec44240 > .elementor-element-populated,
.elementor-75 .elementor-element-8dd00a5 > .elementor-element-populated,
.elementor-75 .elementor-element-34e63be > .elementor-element-populated {
  padding: 0 28px !important;
  margin: 0 !important;
}

.elementor-75 .elementor-element-ec44240 > .elementor-element-populated {
  padding-left: 0 !important;
}

.elementor-75 .elementor-element-34e63be > .elementor-element-populated {
  padding-right: 0 !important;
}

/* Widget stack rhythm */
.elementor-75 .elementor-widget {
  margin: 0 0 0.85rem !important;
}

.elementor-75 .elementor-widget:last-child {
  margin-bottom: 0 !important;
}

.elementor-75 .elementor-widget-site-logo {
  margin-bottom: 0.75rem !important;
}

.elementor-75 .elementor-widget-site-logo img,
.elementor-75 .hfe-site-logo-container img {
  max-width: 180px !important;
  height: auto !important;
}

.elementor-75 .elementor-element-6214f56 {
  margin-top: 0 !important;
  margin-bottom: 1.15rem !important;
}

.elementor-75 .elementor-element-6214f56 p {
  margin: 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  color: #c4b8a8 !important;
}

/* Contact icon boxes */
.elementor-75 .elementor-widget-icon-box {
  margin-bottom: 0.65rem !important;
}

.elementor-75 .elementor-icon-box-wrapper {
  align-items: flex-start !important;
  gap: 0.15rem;
}

.elementor-75 .elementor-icon-box-icon {
  margin-right: 12px !important;
}

.elementor-75 .elementor-icon-box-icon .elementor-icon {
  background: rgba(241, 134, 27, 0.12) !important;
  border-color: rgba(241, 134, 27, 0.45) !important;
  color: #f1861b !important;
  fill: #f1861b !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.elementor-75 .elementor-icon-box-icon .elementor-icon i {
  color: #f1861b !important;
  font-size: 13px !important;
}

.elementor-75 .elementor-icon-box-title,
.elementor-75 .elementor-icon-box-title a {
  color: #fff7f1 !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  margin: 0 !important;
}

.elementor-75 .elementor-icon-box-description {
  color: #c4b8a8 !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  margin: 0.15rem 0 0 !important;
}

/* Section headings */
.elementor-75 .elementor-widget-heading {
  margin-bottom: 0.75rem !important;
}

.elementor-75 .elementor-widget-heading .elementor-heading-title {
  color: #fff7f1 !important;
  font-family: Righteous, "Proxima Nova", sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  position: relative;
  padding-bottom: 0.45rem;
  font-size: 1.25rem !important;
}

.elementor-75 .elementor-widget-heading .elementor-heading-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 0.45rem;
  background: #f1861b;
  border-radius: 1px;
}

/* Inner menu section: no extra padding */
.elementor-75 .elementor-element-62f6556,
.elementor-75 .elementor-element-62f6556 .elementor-container,
.elementor-75 .elementor-element-70f93ba > .elementor-element-populated,
.elementor-75 .elementor-element-c21ca4d > .elementor-element-populated {
  padding: 0 !important;
  margin: 0 !important;
}

.elementor-75 .hfe-nav-menu li,
.elementor-75 .elementor-nav-menu--main .menu-item {
  margin: 0 !important;
}

.elementor-75 .hfe-nav-menu a,
.elementor-75 .elementor-nav-menu a,
.elementor-75 nav a {
  color: #fff7f1 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  line-height: 1.9 !important;
  padding: 0 !important;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.elementor-75 .hfe-nav-menu a:hover,
.elementor-75 .elementor-nav-menu a:hover,
.elementor-75 nav a:hover {
  color: #f1861b !important;
  padding-left: 3px !important;
}

/* Newsletter */
.elementor-75 .elementor-element-296ec29 {
  margin-bottom: 0.75rem !important;
}

.elementor-75 .elementor-element-296ec29,
.elementor-75 .elementor-element-296ec29 p {
  margin: 0 !important;
  color: #c4b8a8 !important;
  line-height: 1.45 !important;
  font-size: 0.9rem !important;
}

.elementor-75 .elementor-element-5e6d71b {
  margin-bottom: 1.35rem !important;
}

.elementor-75 .elementor-button,
.elementor-75 .elementor-button-link {
  padding: 0.7rem 1.15rem !important;
}

.elementor-75 .elementor-element-2e76f3b {
  margin-bottom: 0.65rem !important;
}

.elementor-75 form button,
.elementor-75 form input[type="submit"],
.elementor-75 .mc4wp-form input[type="submit"] {
  background: #f1861b !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  padding: 0.7rem 1.15rem !important;
}

/* Social icons */
.elementor-75 .elementor-social-icons-wrapper {
  gap: 8px !important;
}

.elementor-75 .elementor-social-icon {
  background-color: #f1861b !important;
  border: 1px solid #f1861b !important;
  color: #fff !important;
  fill: #fff !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.elementor-75 .elementor-social-icon i,
.elementor-75 .elementor-social-icon svg {
  color: #fff !important;
  fill: #fff !important;
}

.elementor-75 .elementor-social-icon:hover {
  background-color: #d97412 !important;
  border-color: #d97412 !important;
  transform: translateY(-2px);
}

.elementor-75 .elementor-social-icon:hover i,
.elementor-75 .elementor-social-icon:hover svg {
  color: #fff !important;
  fill: #fff !important;
}

/* Bottom copyright bar */
.elementor-75 > .elementor-element-3a496a4 {
  background: #0c0c0c !important;
  border-top: 1px solid rgba(255, 247, 241, 0.08) !important;
  padding: 18px 0 !important;
}

.elementor-75 > .elementor-element-3a496a4 > .elementor-container {
  max-width: 1290px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.elementor-75 .elementor-element-41d0e0b {
  margin-bottom: 0.5rem !important;
}

.elementor-75 .elementor-element-41d0e0b,
.elementor-75 .elementor-element-41d0e0b p {
  margin: 0 !important;
  color: #8a8178 !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
  text-align: center;
}

.elementor-75 .elementor-element-41d0e0b a {
  color: #f1861b !important;
  font-weight: 600;
}

.elementor-75 .elementor-element-d0976e6 {
  margin: 0 !important;
  text-align: center;
}

.elementor-75 .elementor-element-d0976e6 img {
  max-height: 28px !important;
  width: auto !important;
  margin: 0.35rem auto 0 !important;
}

@media (max-width: 1024px) {
  .elementor-75 > .elementor-element-3f49b54 {
    padding: 36px 0 28px !important;
  }

  .elementor-75 .elementor-element-ec44240,
  .elementor-75 .elementor-element-8dd00a5 {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 247, 241, 0.08) !important;
  }

  .elementor-75 .elementor-element-ec44240 > .elementor-element-populated,
  .elementor-75 .elementor-element-8dd00a5 > .elementor-element-populated,
  .elementor-75 .elementor-element-34e63be > .elementor-element-populated {
    padding: 1.1rem 0 !important;
  }
}

/* Mobile footer bar */
.hfe-before-footer-wrapper,
.elementor-location-footer .elementor-element[data-element_type="section"] {
  border-color: var(--color-border);
}

/* -------------------------------------------------------------------------- */
/* Cards / panels                                                             */
/* -------------------------------------------------------------------------- */

.widget,
.widget_block,
.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content,
.opal-canvas-filter,
.sidebar .widget {
  background-color: var(--brand-ivory);
  border: 1px solid rgba(53, 33, 19, 0.08);
  box-shadow: 0 1px 2px rgba(6, 6, 6, 0.04);
}

/* -------------------------------------------------------------------------- */
/* Focus rings                                                                */
/* -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Eyebrow / small-caps labels                                                */
/* -------------------------------------------------------------------------- */

.elementor-widget-heading .elementor-heading-title.elementor-size-small,
.eyebrow,
.sub-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Shop / category product cards                                              */
/* -------------------------------------------------------------------------- */

ul.products li.product .product-block,
.woocommerce ul.products li.product .product-block,
.woocommerce-page ul.products li.product .product-block {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  background: var(--brand-ivory) !important;
  border: 1px solid rgba(53, 33, 19, 0.08);
  border-radius: 2px;
  padding: 1rem 1rem 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: visible !important;
}

ul.products li.product:hover .product-block,
.woocommerce ul.products li.product:hover .product-block {
  border-color: #f6c48a;
  box-shadow: 0 8px 20px rgba(6, 6, 6, 0.06);
}

/* Title above image, image fills square frame */
ul.products li.product .product-transition,
.woocommerce ul.products li.product .product-transition {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "title" "media";
  overflow: visible !important;
  background: transparent;
  width: 100% !important;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h3.woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  grid-area: title;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--brand-carbon) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden !important;
  min-height: 2.6em;
  z-index: 1;
}

ul.products li.product .woocommerce-loop-product__title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
  color: inherit !important;
  text-decoration: none !important;
  position: static !important;
}

/* Image frame — object-fit: cover fills the square */
ul.products li.product .product-transition > img,
ul.products li.product .product-transition > a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .product-transition > img {
  grid-area: media;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  background: var(--brand-ivory);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

ul.products li.product .product-transition > a.woocommerce-LoopProduct-link {
  z-index: 2;
  background: transparent !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
}

ul.products li.product .product-transition img,
.woocommerce ul.products li.product .product-transition img,
ul.products li.product a img,
.woocommerce ul.products li.product a img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
}

/* Hide compare / quick view / wishlist — keep add-to-cart */
ul.products li.product .shop-action .woosq-btn,
ul.products li.product .shop-action .woosc-btn,
ul.products li.product .shop-action .woosw-btn,
.yith-wcwl-add-to-wishlist,
.compare.button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

ul.products li.product .group-action,
.woocommerce ul.products li.product .group-action {
  grid-area: media;
  position: relative !important;
  justify-self: end;
  align-self: end;
  margin: 0 0.65rem 0.65rem 0 !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

ul.products li.product .shop-action,
.woocommerce ul.products li.product .shop-action {
  display: flex !important;
  flex-direction: row !important;
  gap: 0;
}

ul.products li.product .shop-action .button,
ul.products li.product .shop-action a.button,
ul.products li.product .shop-action a.add_to_cart_button,
ul.products li.product .shop-action a[class*="product_type_"],
.woocommerce ul.products li.product .shop-action a[class*="product_type_"] {
  position: static !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: var(--brand-orange) !important;
  border: none !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(241, 134, 27, 0.35);
  visibility: visible !important;
  opacity: 1 !important;
}

ul.products li.product .shop-action .button:hover,
ul.products li.product .shop-action a[class*="product_type_"]:hover {
  background: #d97412 !important;
  color: #fff !important;
}

/* Beat Allegro absolute caption (price overlay) */
ul.products li.product .product-caption:not(.grid-2 .product-caption),
ul.products li.product .product-caption,
.woocommerce ul.products li.product .product-caption {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.75rem;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0.85rem !important;
  padding: 0 !important;
  padding-right: 0 !important;
  opacity: 1 !important;
  text-align: left !important;
  flex-grow: 0 !important;
}

/* Clear Euro price badge — below the image */
ul.products li.product .product-caption .price,
ul.products .product-caption .price,
.woocommerce ul.products li.product .product-caption .price,
.woocommerce ul.products li.product .price {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0.4rem 0.75rem !important;
  background: var(--brand-carbon) !important;
  color: #fff !important;
  border-radius: 3px;
  font-family: var(--font-mono) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  z-index: 1;
}

ul.products li.product .price .amount,
ul.products li.product .price .woocommerce-Price-amount,
ul.products li.product .price bdi,
ul.products li.product .price .woocommerce-Price-currencySymbol {
  color: #fff !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

ul.products li.product .price del {
  opacity: 0.55;
  margin-right: 0.35rem;
}

ul.products li.product .count-review,
.woocommerce ul.products li.product .count-review {
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: auto;
  justify-content: flex-start !important;
}

/* Hide empty Allegro placeholder stars (no real reviews) */
ul.products li.product .count-review:not(:has(.star-rating span)),
.woocommerce ul.products li.product .count-review:not(:has(.star-rating span)),
ul.products li.product .star-rating:not(:has(span)),
.woocommerce ul.products li.product .star-rating:not(:has(span)) {
  display: none !important;
}

ul.products li.product .star-rating,
.woocommerce ul.products li.product .star-rating {
  color: var(--brand-orange) !important;
  margin: 0 !important;
  float: none !important;
}

ul.products li.product,
.woocommerce ul.products li.product {
  margin-bottom: 1.25rem !important;
}

/* -------------------------------------------------------------------------- */
/* Single product — related + flush footer                                    */
/* -------------------------------------------------------------------------- */

.single-product .related.products,
.single-product section.related.products {
  margin: 2.5rem 0 0 !important;
  padding: 2rem 0 2.5rem !important;
  border-top: 1px solid rgba(53, 33, 19, 0.1);
}

.single-product .related.products > h2,
.single-product .related.products > .related-title {
  font-family: var(--font-slogan) !important;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  color: var(--brand-carbon) !important;
  margin: 0 0 1.25rem !important;
}

.single-product .related.products ul.products {
  margin-bottom: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Cart page — clear two-column layout + footer flush                         */
/* -------------------------------------------------------------------------- */

body.woocommerce-cart #page .site-content,
body.woocommerce-checkout #page .site-content {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 24px 3rem;
}

/* Two-column: items | totals (only the cart wrapper, not search widgets) */
body.woocommerce-cart .entry-content > .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) !important;
  gap: 1.75rem 2rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
}

body.woocommerce-cart .entry-content > .woocommerce::before,
body.woocommerce-cart .entry-content > .woocommerce::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-cart .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

body.woocommerce-cart .entry-content > .woocommerce > .woocommerce-cart-form {
  grid-column: 1;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 1.25rem 1.35rem 1.1rem !important;
  border-radius: 4px;
  border: 1px solid rgba(53, 33, 19, 0.1) !important;
  box-shadow: none !important;
  background: var(--brand-ivory) !important;
}

body.woocommerce-cart .entry-content > .woocommerce > .cart-collaterals {
  grid-column: 2;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  position: sticky;
  top: calc(var(--branded-sticky-header, 104px) + 1rem);
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 1.35rem 1.4rem 1.5rem !important;
  border: 1px solid rgba(53, 33, 19, 0.1) !important;
  border-radius: 4px !important;
  background: var(--brand-ivory) !important;
  box-shadow: none !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals > h2 {
  font-family: var(--font-slogan) !important;
  font-size: 1.35rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
  margin: 0 0 1rem !important;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-orange);
  text-transform: none !important;
  color: var(--brand-carbon) !important;
}

body.woocommerce-cart table.shop_table {
  border: 0 !important;
  border-collapse: collapse;
  table-layout: fixed !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Allegro sets word-break:break-all on all table cells — undo that here */
body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.woocommerce-cart table.shop_table .product-remove {
  width: 40px !important;
}

body.woocommerce-cart table.shop_table .product-thumbnail {
  width: 88px !important;
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
  width: 110px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

body.woocommerce-cart table.shop_table .product-quantity {
  width: 140px !important;
  text-align: center !important;
}

body.woocommerce-cart table.shop_table .product-name {
  width: auto !important;
}

body.woocommerce-cart table.shop_table th {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-steel) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(53, 33, 19, 0.12) !important;
  padding: 0.35rem 0.75rem 0.85rem !important;
  background: transparent !important;
}

body.woocommerce-cart table.shop_table th.product-price,
body.woocommerce-cart table.shop_table th.product-subtotal {
  text-align: right !important;
}

body.woocommerce-cart table.shop_table th.product-quantity {
  text-align: center !important;
}

body.woocommerce-cart table.shop_table td {
  border: 0 !important;
  border-bottom: 1px solid rgba(53, 33, 19, 0.08) !important;
  padding: 1.1rem 0.75rem !important;
  vertical-align: middle !important;
}

body.woocommerce-cart table.shop_table td.product-remove {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

body.woocommerce-cart table.shop_table .product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  color: var(--brand-steel) !important;
  text-decoration: none !important;
}

body.woocommerce-cart table.shop_table .product-remove a.remove:hover {
  color: var(--brand-rusty) !important;
}

body.woocommerce-cart table.shop_table tr.cart_item:last-of-type td {
  border-bottom: 1px solid rgba(53, 33, 19, 0.12) !important;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  border-radius: 3px;
  background: var(--brand-ivory);
}

body.woocommerce-cart table.shop_table .product-name a {
  color: var(--brand-carbon) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.woocommerce-cart table.shop_table .product-name a:hover {
  color: var(--brand-orange) !important;
}

body.woocommerce-cart table.shop_table .product-name .variation {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--brand-steel);
}

body.woocommerce-cart table.shop_table .product-price .amount,
body.woocommerce-cart table.shop_table .product-subtotal .amount,
body.woocommerce-cart table.shop_table .product-price .amount bdi,
body.woocommerce-cart table.shop_table .product-subtotal .amount bdi {
  font-family: var(--font-mono) !important;
  font-weight: 500 !important;
  color: var(--brand-carbon) !important;
  white-space: nowrap !important;
}

body.woocommerce-cart table.shop_table .product-subtotal .amount {
  font-size: 1.05rem !important;
}

/* Keep td.actions as table-cell — flex on the cell itself breaks column widths */
body.woocommerce-cart table.shop_table td.actions {
  display: table-cell !important;
  padding: 1.25rem 0 0.15rem !important;
  border-bottom: 0 !important;
  text-align: left !important;
}

body.woocommerce-cart table.shop_table td.actions::before {
  display: none !important;
  content: none !important;
}

body.woocommerce-cart .coupon {
  display: inline-flex !important;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  float: left;
  margin: 0 !important;
  max-width: calc(100% - 200px);
}

body.woocommerce-cart .coupon label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

body.woocommerce-cart .coupon input#coupon_code {
  width: 200px !important;
  min-width: 160px;
  max-width: 220px;
  min-height: 42px;
  border: 1px solid rgba(53, 33, 19, 0.15) !important;
  border-radius: 4px !important;
  padding: 0.55rem 0.75rem !important;
  background: #fff7f1 !important;
  margin: 0 !important;
}

body.woocommerce-cart .coupon button,
body.woocommerce-cart button[name="update_cart"] {
  min-height: 42px;
  border-radius: 4px !important;
  white-space: nowrap;
  margin: 0 !important;
}

body.woocommerce-cart button[name="update_cart"] {
  float: right;
  background: transparent !important;
  border: 1px solid rgba(53, 33, 19, 0.2) !important;
  color: var(--brand-carbon) !important;
  box-shadow: none !important;
}

body.woocommerce-cart button[name="update_cart"]:hover {
  background: #fff7f1 !important;
  border-color: var(--brand-orange) !important;
  color: var(--brand-orange) !important;
}

body.woocommerce-cart button[name="update_cart"]:disabled {
  opacity: 0.45;
}

body.woocommerce-cart table.shop_table td.actions::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

body.woocommerce-cart .cart_totals table {
  border: 0 !important;
  margin: 0 0 1rem !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  border: 0 !important;
  padding: 0.65rem 0 !important;
  font-size: 0.95rem !important;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  padding-top: 0.9rem !important;
  border-top: 1px solid rgba(53, 33, 19, 0.12) !important;
  font-size: 1rem !important;
}

body.woocommerce-cart .cart_totals .order-total .amount {
  font-family: var(--font-mono) !important;
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  color: var(--brand-carbon) !important;
}

body.woocommerce-cart .cart_totals .checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: 0.95rem 1.25rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin: 0 !important;
}

body.woocommerce-cart .cart_totals .checkout-button:hover {
  background: #d97412 !important;
  border-color: #d97412 !important;
  color: #fff !important;
}

/* Empty cart */
body.woocommerce-cart .cart-empty,
body.woocommerce-cart .wc-empty-cart-message {
  grid-column: 1 / -1;
  background: var(--brand-ivory);
  border: 1px solid rgba(53, 33, 19, 0.1);
  border-radius: 4px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 0 0 1.5rem !important;
}

body.woocommerce-cart .return-to-shop {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0 0 2rem;
}

body.woocommerce-cart .return-to-shop .button {
  background: var(--brand-orange) !important;
  border-radius: 4px !important;
  padding: 0.85rem 1.5rem !important;
}

/* Cross-sells / new in store under cart */
body.woocommerce-cart .cross-sells,
body.woocommerce-cart .woocommerce > .products,
body.woocommerce-cart .woocommerce > h2 {
  grid-column: 1 / -1;
}

body.woocommerce-cart .cross-sells {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(53, 33, 19, 0.1);
}

@media (max-width: 900px) {
  body.woocommerce-cart .entry-content > .woocommerce {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-cart .entry-content > .woocommerce > .woocommerce-cart-form,
  body.woocommerce-cart .entry-content > .woocommerce > .cart-collaterals {
    grid-column: 1;
    width: 100% !important;
    float: none !important;
  }

  body.woocommerce-cart .coupon,
  body.woocommerce-cart button[name="update_cart"] {
    float: none !important;
    max-width: none;
  }

  body.woocommerce-cart .coupon {
    display: flex !important;
    width: 100%;
    margin-bottom: 0.65rem !important;
  }

  body.woocommerce-cart .coupon input#coupon_code {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none;
  }

  body.woocommerce-cart button[name="update_cart"] {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body.woocommerce-cart table.shop_table {
    table-layout: auto !important;
  }

  body.woocommerce-cart table.shop_table .product-price,
  body.woocommerce-cart table.shop_table .product-subtotal,
  body.woocommerce-cart table.shop_table .product-quantity,
  body.woocommerce-cart table.shop_table .product-remove,
  body.woocommerce-cart table.shop_table .product-thumbnail {
    width: auto !important;
  }
}
