/*
Theme Name: BeniWool
Theme URI: https://beniwool.com
Author: BeniWool
Description: WooCommerce theme for handmade, custom-made Moroccan rugs: rug configurator with live pricing, design upload, quote requests, one-click setup with demo content.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beniwool
Domain Path: /languages
WC requires at least: 7.0
Tags: e-commerce, custom-colors, custom-logo, custom-menu, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --green: #0f3d2a;
  --green-2: #0a2a1d;
  --green-3: #1d5a40;
  --orange: #b8651b;      /* brand orange (decorative) */
  --orange-d: #9e5418;    /* accessible orange for text and buttons (5.6:1 with white) */
  --gold: #e8a24a;
  --cream: #fdf4e7;
  --sand: #f6e4cb;
  --sand-2: #efd7b2;
  --ink: #2a1d12;
  --muted: #6d5a48;
  --line: #e9d3b1;
  --white: #fff;
  --danger: #a3221c;
  --success: #1d6b45;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 10px 30px rgba(60, 35, 10, .10);
  --shadow-s: 0 2px 12px rgba(60, 35, 10, .08);
  --wrap: 1240px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --zellige:
    linear-gradient(45deg, transparent 42%, var(--gold) 42% 58%, transparent 58%) 0 0 / 28px 28px,
    linear-gradient(-45deg, transparent 42%, var(--gold) 42% 58%, transparent 58%) 0 0 / 28px 28px,
    radial-gradient(circle, var(--orange) 0 3px, transparent 3.5px) 14px 14px / 28px 28px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--orange-d); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }
.bw-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kicker { font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-d); margin-bottom: .6em; }

/* ==========================================================================
   3. Buttons + form controls
   ========================================================================== */
.btn,
.button,
.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 #payment #place_order, .woocommerce-page #payment #place_order,
.wc-proceed-to-checkout a.checkout-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.6em; border: 2px solid var(--orange-d); border-radius: 999px;
  background: var(--orange-d); color: #fff; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover, .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce #payment #place_order:hover, .wc-proceed-to-checkout a.checkout-button:hover {
  background: var(--green); border-color: var(--green); color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn .bw-i { width: 18px; height: 18px; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-outline { background: transparent; color: var(--orange-d); }
.btn-outline:hover { background: var(--orange-d); border-color: var(--orange-d); color: #fff; }
.btn-block { width: 100%; }
.btn-wa { background: #1b7f4b; border-color: #1b7f4b; margin-top: 12px; }
.btn-wa:hover { background: var(--green); border-color: var(--green); }
.btn[disabled], .button:disabled, .button.disabled { opacity: .6; cursor: not-allowed; }
.is-loading { position: relative; color: transparent !important; }
.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: bwspin .7s linear infinite; }
@keyframes bwspin { to { transform: rotate(360deg); } }

.field { margin-bottom: 16px; }
.field label, .field-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field-row { display: grid; gap: 0 16px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password], input[type=url], select, textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container .select2-selection--single {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #d9bf98; border-radius: var(--radius-s);
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.select2-container .select2-selection--single { height: 48px; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(232, 162, 74, .45); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
.field-err { display: block; color: var(--danger); font-size: .85rem; margin-top: 4px; }
.help { color: var(--muted); font-size: .88rem; margin: 6px 0 12px; }
.req { color: var(--danger); }

/* Alerts (theme + WooCommerce notices) */
.bw-notices:empty { display: none; }
.bw-alert, .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  border-radius: var(--radius-s); padding: 14px 18px 14px 50px; margin: 0 0 20px; background: #fff;
  border: 1px solid var(--line); border-left: 5px solid var(--orange); position: relative; list-style: none; color: var(--ink);
}
.woocommerce-message, .bw-alert-success { border-left-color: var(--success); }
.woocommerce-error, .bw-alert-error { border-left-color: var(--danger); }
.bw-alert::before { content: ""; position: absolute; left: 18px; top: 17px; width: 16px; height: 16px; border-radius: 50%; background: currentColor; opacity: .2; }
.bw-alert-success::before { background: var(--success); opacity: 1; }
.bw-alert-error::before { background: var(--danger); opacity: 1; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--orange); left: 18px; }
.woocommerce-message::before { color: var(--success); }
.woocommerce-error::before { color: var(--danger); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; padding: .5em 1.1em; float: right; }

/* ==========================================================================
   4. Top bar + header
   ========================================================================== */
.topbar { background: var(--green); color: #fff; font-size: 13px; font-weight: 500; }
.topbar .wrap { display: flex; justify-content: center; gap: 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar span:not(:first-child) { display: none; }
.topbar .bw-i { width: 18px; height: 18px; color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(253, 244, 231, .97); box-shadow: var(--shadow-s); }
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(253, 244, 231, .9); backdrop-filter: blur(8px); } }
.admin-bar .site-header { top: 46px; }
.header-row { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand .bw-mark { width: 42px; height: 42px; flex: none; }
.brand img { max-height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 26px/1 var(--serif); color: var(--green); }
.brand-name b { color: var(--orange-d); }
.brand-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.icon-btn, .account-btn { flex: none; }
@media (max-width: 420px) {
  .header-row { gap: 4px; }
  .brand { gap: 7px; min-width: 0; }
  .brand .bw-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 21px; }
  .brand-sub { display: none; }
}
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn .bw-i { width: 24px; height: 24px; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--orange-d); color: #fff; font: 700 11px/19px var(--sans); text-align: center; }
.count.is-empty { background: var(--muted); }
.account-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; transition: background-color .2s; }
.account-btn span { display: none; }
.account-btn:hover { background: var(--orange-d); color: #fff; }
.account-btn .bw-i { width: 20px; height: 20px; }

/* Mobile nav (off-canvas panel under header) */
.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, .12); max-height: calc(100vh - 110px); overflow-y: auto; display: none; }
.main-nav.open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { padding: 8px var(--gutter) 16px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 13px 8px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--orange-d); }
.sub-toggle { position: absolute; right: 0; top: 2px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.sub-toggle .bw-i { transition: transform .2s; }
.sub-open > .sub-toggle .bw-i { transform: rotate(180deg); }
.main-nav .sub-menu { display: none; padding-left: 16px; }
.main-nav .sub-open > .sub-menu { display: block; }
.search-drawer { background: var(--sand); padding: 14px 0; border-top: 1px solid var(--line); }
.search-form { display: flex; gap: 10px; }
.search-form input[type=search] { flex: 1; border-radius: 999px; padding-left: 20px; }

/* ==========================================================================
   5. Hero + home sections
   ========================================================================== */
.hero { position: relative; isolation: isolate; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: var(--sand); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(253, 244, 231, .94) 0%, rgba(253, 244, 231, .82) 70%, rgba(253, 244, 231, .55) 100%); }
.hero-copy { max-width: 560px; padding: 56px 0; }
.hero-kicker { font: 600 .8rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-d); margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); color: var(--green); margin: 0 0 14px; }
.hero-tag { font: italic 600 clamp(1.15rem, 2.4vw, 1.5rem)/1.3 var(--serif); color: var(--orange-d); margin: 0 0 14px; }
.hero .lead { font: 400 1.05rem/1.6 var(--sans); color: var(--ink); max-width: 440px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.features { background: #fff; border-bottom: 1px solid var(--line); }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.feature { display: flex; align-items: center; gap: 12px; padding: 18px 10px; font-size: 13px; line-height: 1.35; border-bottom: 1px solid var(--line); }
.feature strong { display: block; font-size: 14px; color: var(--green); }
.feature .bw-i { width: 36px; height: 36px; color: var(--orange-d); stroke-width: 1.4; }
.feature:last-child { grid-column: 1 / -1; justify-content: center; border-bottom: 0; }

.section-title { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 56px 0 26px; text-align: center; }
.section-title h1, .section-title h2 { margin: 0; color: var(--green); }
.section-title i { display: flex; gap: 6px; align-items: center; }
.section-title i::before, .section-title i::after { content: ""; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); }
.section-title i::after { width: 7px; height: 7px; background: var(--gold); }

.collections { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.collection { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; min-height: 230px; display: flex; align-items: flex-end; box-shadow: var(--shadow-s); }
.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.collection::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 12, 4, .78) 0%, rgba(20, 12, 4, .25) 55%, rgba(20, 12, 4, 0) 100%); }
.collection:hover img { transform: scale(1.04); }
.collection-copy { padding: 22px; color: #fff; }
.collection h3 { color: #fff; font-size: 1.7rem; margin: 0; }
.collection p { font: italic 600 1.05rem var(--serif); margin: 2px 0 12px; color: #fbe9cf; }
.collection .btn { min-height: 42px; padding: .5em 1.2em; font-size: 14px; }

/* Custom panel on home */
.custom-panel { display: grid; grid-template-columns: 1fr; margin: 56px 0 0; background: linear-gradient(180deg, #fbe9cf, #fdf1e0); border: 1px solid var(--sand-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); }
.cp-col { padding: 26px 22px; }
.cp-col + .cp-col { border-top: 1px solid var(--sand-2); }
.cp-design h2 b { color: var(--orange-d); }
.cp-design p { font-weight: 500; }
.checklist { list-style: none; margin: 0 0 22px; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 15px; }
.checklist .bw-i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--green); color: #fff; stroke-width: 2.4; }
.cp-calc { background: rgba(255, 255, 255, .45); }
.cp-calc h2, .cp-upload h2 { font-size: 1.45rem; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fields .wide { grid-column: 1 / -1; }
.price-box { background: var(--green); color: #fff; border-radius: var(--radius-s); padding: 14px 18px; text-align: center; margin: 4px 0 16px; }
.price-box small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.price-box strong { display: block; font: 700 2.1rem/1.15 var(--serif); color: var(--gold); }
.price-box strong .amount, .sum-total .amount, .up-total .amount { color: inherit; }
.price-box em { font-style: normal; font-size: 12.5px; opacity: .9; }
.cp-upload { text-align: center; }
.cp-more { margin: 14px 0 0; font-size: .92rem; }

/* Dropzone */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 2px dashed var(--orange); border-radius: var(--radius); background: rgba(255, 255, 255, .6); text-align: center; transition: background-color .2s, border-color .2s; }
.dropzone:hover, .dropzone.drag { background: #fff; border-color: var(--green); }
.dropzone.has-file { border-style: solid; border-color: var(--success); }
.dropzone.has-error { border-color: var(--danger); }
.dropzone > .bw-i { width: 52px; height: 52px; color: var(--orange-d); stroke-width: 1.4; }
.dz-label { cursor: pointer; display: flex; flex-direction: column; font-weight: 500; }
.dz-label span { color: var(--orange-d); text-decoration: underline; }
.dz-label::after { content: ""; position: absolute; inset: 0; } /* whole zone clickable */
.dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-input:focus-visible + .dz-file { outline: 3px solid var(--gold); outline-offset: 3px; }
.dropzone:focus-within { box-shadow: 0 0 0 3px rgba(232, 162, 74, .5); }
.dz-file { font-size: .88rem; color: var(--muted); word-break: break-all; }
.dropzone.has-error .dz-file { color: var(--danger); font-weight: 600; }
.dz-preview { max-height: 140px; width: auto; border-radius: 8px; box-shadow: var(--shadow-s); }
.dropzone small { color: var(--muted); }

/* Testimonials */
.t-wrap { position: relative; }
.t-track { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { scroll-snap-align: start; }
.t-card figure { margin: 0; height: 100%; display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-s); }
.t-avatar { width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #fff; font: 700 1.5rem var(--serif); }
.t-card blockquote { margin: 6px 0 8px; font-size: .97rem; }
.t-card blockquote p { margin: 0; }
.t-card figcaption { font-weight: 600; font-size: .9rem; color: var(--green); }
.stars { display: flex; gap: 2px; color: #c98a1d; }
.stars .bw-i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.t-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.t-arrow:hover { background: var(--green); color: #fff; }
.t-arrow[disabled] { opacity: .35; cursor: default; }
.t-arrow.prev { left: -6px; }
.t-arrow.next { right: -6px; }

.home-story { background: #fff; margin-top: 64px; padding: 56px 0; border-top: 1px solid var(--line); }
.story-grid { display: grid; gap: 28px; align-items: center; }
.story-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.story-grid h2 { color: var(--green); }

/* ==========================================================================
   6. Inner pages
   ========================================================================== */
.page-banner { position: relative; background: var(--green); color: #fff; padding: 46px 0 52px; text-align: center; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; inset: 0; opacity: .07; background: var(--zellige); }
.page-banner .wrap { position: relative; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner .kicker { color: var(--gold); }
.page-banner-sub { margin: 10px auto 0; max-width: 620px; color: #f3e7d3; font-size: 1.05rem; }
.zellige { height: 14px; background: var(--zellige), var(--green-2); }
.zellige-thin { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; }
.content { padding: 40px var(--gutter) 64px; }
.entry { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-s); border: 1px solid var(--line); }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { color: var(--green); margin-top: 1.4em; }
.entry-content h2:first-child { margin-top: 0; }
.entry-intro { max-width: 760px; margin: 0 auto 26px; text-align: center; font-size: 1.05rem; }
.entry-intro p:last-child { margin: 0; }
.lead { font-size: 1.15rem; font-family: var(--serif); font-style: italic; color: var(--green); }
.process-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.process-steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 64px; background: var(--cream); border-radius: var(--radius-s); border: 1px solid var(--line); }
.process-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--gold); font: 700 1rem var(--serif); }
.process-steps strong, .values strong { display: block; color: var(--green); }
.values { list-style: none; padding: 0; display: grid; gap: 14px; }
.values li { padding: 16px; border-left: 4px solid var(--orange); background: var(--cream); border-radius: 0 var(--radius-s) var(--radius-s) 0; }

/* FAQ accordion (native details) */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--cream); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 600; position: relative; min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 18px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; background: var(--orange-d); }
.faq-item[open] summary { color: var(--green); }
.faq-answer { padding: 0 18px 16px; }
.faq-answer p { margin: 0; }
.faq-more { text-align: center; margin-top: 22px; }

/* Design CTA */
.design-cta { margin: 48px 0 0; padding: 28px 22px; border-radius: var(--radius); background: var(--green) ; color: #f3e7d3; display: grid; gap: 18px; position: relative; overflow: hidden; }
.design-cta::before { content: ""; position: absolute; inset: 0; background: var(--zellige); opacity: .08; }
.design-cta > * { position: relative; }
.design-cta h2 { color: #fff; margin-bottom: 6px; }
.design-cta h2 b { color: var(--gold); }
.design-cta p { margin: 0; }
.design-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.design-cta .btn-outline { color: #fff; border-color: #fff; }
.design-cta .btn-outline:hover { background: #fff; color: var(--green); border-color: #fff; }

/* Trust badges + notes */
.trust-badges { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust-badges li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius-s); background: #fff; border: 1px solid var(--line); font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.trust-badges strong { display: block; color: var(--green); font-size: 13.5px; }
.trust-badges .bw-i { width: 26px; height: 26px; color: var(--orange-d); }
.mto-note, .size-note { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 14px 0; padding: 12px 14px; border-radius: var(--radius-s); background: var(--sand); }
.mto-note .bw-i, .size-note .bw-i { color: var(--orange-d); margin-top: 1px; }

/* Configurator */
.configurator { display: grid; gap: 24px; align-items: start; }
.cfg-step { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px 18px 22px; margin: 0 0 18px; box-shadow: var(--shadow-s); min-width: 0; }
.cfg-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font: 700 1.3rem var(--serif); color: var(--green); margin-bottom: 16px; padding: 0; }
.cfg-step legend + * { clear: both; }
.cfg-step legend small { font: 400 .85rem var(--sans); color: var(--muted); }
.step-n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--gold); font-size: 1rem; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chip { position: relative; }
.chip input, .style-card input, .wool-card input, .swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid #d9bf98; border-radius: 999px; background: var(--cream); cursor: pointer; font-weight: 500; font-size: .93rem; transition: all .2s; }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chip input:focus-visible + span, .style-card input:focus-visible ~ .style-name, .wool-card input:focus-visible ~ .wool-name, .swatch input:focus-visible + .dot { outline: 3px solid var(--gold); outline-offset: 2px; }
.custom-size { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.custom-size .field { flex: 1 1 120px; margin-bottom: 0; }
.custom-size .times { padding-bottom: 12px; font-size: 1.2rem; color: var(--muted); }
.custom-size .help { flex-basis: 100%; margin-bottom: 0; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.style-card, .wool-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--cream); cursor: pointer; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.style-card:hover, .wool-card:hover { border-color: var(--gold); }
.style-card:has(input:checked), .wool-card:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.style-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.style-name { font: 700 1.05rem var(--serif); padding: 10px 12px 0; color: var(--green); }
.style-desc { font-size: .8rem; padding: 2px 12px 12px; color: var(--muted); line-height: 1.4; }
.wool-grid { display: grid; gap: 12px; }
.wool-card { padding: 14px 16px; }
.wool-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); }
.wool-name .bw-i { color: var(--orange-d); }
.wool-desc { font-size: .87rem; color: var(--muted); margin: 4px 0; }
.wool-price { font-weight: 600; color: var(--orange-d); font-size: .92rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.swatch { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); font-size: .88rem; transition: border-color .2s; }
.swatch:has(input:checked) { border-color: var(--green); background: #fff; font-weight: 600; }
.swatch:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.dot { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px #c9b08a; flex: none; position: relative; }
.swatch input:checked + .dot::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); filter: drop-shadow(0 0 1px #000); }
.cfg-summary { position: sticky; bottom: 0; z-index: 20; }
/* Phones/tablets: compact sticky bar (total + button) so the form stays usable. */
@media (max-width: 999px) {
  .cfg-summary { margin: 0 calc(var(--gutter) * -1); }
  .cfg-summary .sum-inner { border-radius: var(--radius) var(--radius) 0 0; padding: 12px var(--gutter); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
  .cfg-summary h2, .cfg-summary .sum-list, .cfg-summary .mto-note { display: none; }
  .cfg-summary .sum-total { margin: 0; flex-direction: column; align-items: flex-start; gap: 0; }
  .cfg-summary .sum-total span { font-size: .8rem; opacity: .85; }
  .cfg-summary .sum-total strong { font-size: 1.6rem; line-height: 1.1; }
  .cfg-summary .sum-note { grid-column: 1; margin: 0; font-size: .75rem; }
  .cfg-summary .btn { grid-column: 2; grid-row: 1 / span 2; width: auto; padding: .7em 1.2em; }
}
.sum-inner { background: var(--green); color: #f3e7d3; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sum-inner h2 { color: #fff; font-size: 1.35rem; }
.sum-list { margin: 0 0 14px; display: grid; gap: 6px; font-size: .92rem; }
.sum-list > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(255, 255, 255, .2); padding-bottom: 6px; }
.sum-list dt { opacity: .85; }
.sum-list dd { margin: 0; font-weight: 600; text-align: right; color: #fff; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 2px; }
.sum-total strong { font: 700 2rem var(--serif); color: var(--gold); }
.sum-note { font-size: .82rem; opacity: .9; margin: 0 0 14px; }
.sum-inner .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.sum-inner .btn:hover { background: #fff; border-color: #fff; color: var(--green); }
.sum-inner .mto-note { background: rgba(255, 255, 255, .08); color: #f3e7d3; margin-bottom: 0; }
.sum-inner .mto-note .bw-i { color: var(--gold); }

/* Upload page */
.how-steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.how-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 18px; text-align: center; box-shadow: var(--shadow-s); }
.how-steps .bw-i { width: 40px; height: 40px; color: var(--orange-d); margin: 4px auto 8px; display: block; stroke-width: 1.4; }
.how-steps h3 { font-size: 1.05rem; color: var(--green); margin-bottom: 4px; }
.how-steps p { font-size: .85rem; color: var(--muted); margin: 0; }
.how-n { position: absolute; top: 10px; left: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: var(--gold); font: 700 .85rem/26px var(--serif); }
.upload-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow-s); }
.up-grid { display: grid; gap: 26px; }
.up-col h2 { font-size: 1.3rem; color: var(--green); margin-top: 6px; }
.up-col .dropzone { margin-bottom: 18px; min-height: 230px; justify-content: center; }
.up-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-s); background: var(--green); color: #f3e7d3; margin: 6px 0 14px; }
.up-total em { font-style: normal; opacity: .85; font-size: .85rem; }
.up-total strong { font: 700 1.6rem var(--serif); color: var(--gold); }
.up-actions { display: grid; gap: 10px; }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
.contact-form-wrap, .contact-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-s); }
.contact-form-wrap h2, .contact-info h2 { color: var(--green); }
.contact-form-wrap .entry-intro { text-align: left; margin: 0 0 18px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.contact-list .bw-i { color: var(--orange-d); margin-top: 2px; }
.contact-links { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact-links p { flex-basis: 100%; margin: 0; font-weight: 600; }

/* Search / 404 */
.search-again { max-width: 560px; margin: 0 auto 28px; }
.result-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.result-card a { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.result-card a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.result-card img { border-radius: var(--radius-s); margin-bottom: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.result-card h2 { font-size: 1.15rem; margin: 4px 0; color: var(--green); }
.result-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.result-type { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-d); font-weight: 600; }
.empty-state { text-align: center; max-width: 640px; margin: 0 auto; padding: 30px 0; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.big404 { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--serif); color: var(--orange); margin: 0; }
.notfound h1 { color: var(--green); }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); padding: 0 12px; }
.page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }

/* ==========================================================================
   7. WooCommerce
   ========================================================================== */
.cat-pills ul { list-style: none; margin: 0 0 24px; padding: 4px 2px 8px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.cat-pills a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; transition: all .2s; }
.cat-pills a:hover { border-color: var(--orange-d); color: var(--orange-d); }
.cat-pills a.active { background: var(--green); border-color: var(--green); color: #fff; }
.cat-pills .pill-custom { border-color: var(--orange-d); color: var(--orange-d); }
.cat-pills .bw-i { width: 16px; height: 16px; }
.woocommerce .woocommerce-result-count { margin: 10px 0 18px; color: var(--muted); font-size: .9rem; }
.woocommerce .woocommerce-ordering { margin: 0 0 18px; }
.woocommerce .woocommerce-ordering select { min-width: 220px; border-radius: 999px; }

.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; padding: 0; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 10px 10px 14px; border: 1px solid var(--line); box-shadow: var(--shadow-s); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.woocommerce ul.products li.product a img { border-radius: var(--radius-s); margin: 0 0 10px; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 700 1rem/1.3 var(--serif); color: var(--ink); padding: 0; margin: 0 0 4px; }
.woocommerce ul.products li.product .loop-size { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.woocommerce ul.products li.product .price { color: var(--orange-d); font-weight: 600; font-size: 1rem; margin-bottom: 10px; }
.woocommerce ul.products li.product .button { margin-top: auto; min-height: 42px; padding: .5em 1em; font-size: 14px; }
.woocommerce ul.products li.product a.added_to_cart { display: block; text-align: center; font-size: .85rem; padding-top: 6px; }
.woocommerce span.onsale { background: var(--orange-d); border-radius: 999px; min-height: 0; min-width: 0; line-height: 1; padding: 7px 12px; font-weight: 600; top: 14px; left: 14px; }
.woocommerce-products-header { display: none; }
.woocommerce-breadcrumb { font-size: .85rem; color: var(--muted) !important; margin: 0 0 22px !important; }
.woocommerce-breadcrumb a { color: var(--muted) !important; }
.woocommerce-breadcrumb .sep { margin: 0 8px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--green); color: #fff; }
.woocommerce .woocommerce-info.woocommerce-no-products-found { margin-top: 10px; }

/* Single product */
.content-product { padding-top: 24px; }
.woocommerce div.product { display: grid; gap: 28px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product > * { min-width: 0; max-width: 100%; }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 80px !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: var(--radius-s); opacity: .6; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--green); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--orange-d); font: 700 1.8rem var(--serif); }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.woocommerce div.product form.cart div.quantity { margin: 0; float: none; }
.woocommerce .quantity .qty { width: 84px; min-height: 48px; border-radius: 999px; text-align: center; border: 1.5px solid #d9bf98; }
.woocommerce div.product form.cart .button { flex: 1; min-width: 200px; }
.woocommerce div.product .product_meta { font-size: .88rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 16px; }
.single-custom { font-size: .92rem; margin: 16px 0 0; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 -1px; display: flex; gap: 6px; overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 1px solid var(--line); border-radius: var(--radius-s) var(--radius-s) 0 0; background: var(--sand); margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 18px; color: var(--ink); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel { background: #fff; border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 22px; margin: 0 0 30px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { font-size: 1.3rem; color: var(--green); }
.woocommerce .related.products, .woocommerce .upsells.products { grid-column: 1 / -1; }
.woocommerce .related.products > h2, .woocommerce .upsells.products > h2 { text-align: center; color: var(--green); margin: 10px 0 22px; }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: #c98a1d; }

/* Cart */
.content-wc .entry { padding: 18px 14px; }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; background: #fff; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--sand); font-weight: 600; color: var(--ink); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); padding: 14px 12px; }
.woocommerce table.cart img, .woocommerce-cart table.cart img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-s); }
.bw-cart-file { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: var(--radius-s); background: var(--sand); color: var(--orange-d); font-weight: 700; font-size: .75rem; }
.bw-cart-file .bw-i { width: 30px; height: 30px; }
.woocommerce td.product-name a { font-weight: 600; color: var(--green); }
.woocommerce td.product-name dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: .85rem; margin: 8px 0 0; }
.woocommerce td.product-name dl.variation dt { font-weight: 600; color: var(--muted); margin: 0; float: none; }
.woocommerce td.product-name dl.variation dd { margin: 0; float: none; padding: 0; }
.woocommerce td.product-name dl.variation dd p { margin: 0; }
.woocommerce a.remove { color: var(--danger) !important; width: 32px; height: 32px; line-height: 30px; font-size: 1.4em; }
.woocommerce a.remove:hover { background: var(--danger); color: #fff !important; }
.woocommerce table.cart td.actions .coupon .input-text { width: 160px; min-height: 44px; border-radius: 999px; margin-right: 6px; }
.woocommerce table.cart td.actions .button { min-height: 44px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; float: none; }
.cart_totals h2 { font-size: 1.4rem; color: var(--green); }
.woocommerce .cart-collaterals .cross-sells { width: 100%; float: none; }
.wc-proceed-to-checkout a.checkout-button { width: 100%; font-size: 1.05rem; min-height: 54px; margin-bottom: 0 !important; }
.woocommerce-cart .cart-empty { font-size: 1.1rem; }
.woocommerce-cart .return-to-shop { margin-top: 16px; }

/* Checkout */
.woocommerce form.checkout { display: grid; gap: 26px; }
.woocommerce-checkout #customer_details.col2-set, .woocommerce .col2-set { width: 100%; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout h3 { color: var(--green); font-size: 1.35rem; }
.woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
.woocommerce form .form-row label { font-weight: 600; font-size: .9rem; }
.woocommerce form .form-row .required { color: var(--danger); text-decoration: none; }
.woocommerce-checkout-review-order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.woocommerce-checkout #payment { background: var(--cream); border-radius: var(--radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--line); }
.woocommerce #payment #place_order { width: 100%; min-height: 54px; font-size: 1.05rem; }
.checkout-reassure { display: flex; gap: 12px; padding: 14px; margin: 14px 0; border-radius: var(--radius-s); background: var(--sand); font-size: .88rem; }
.checkout-reassure .bw-i { color: var(--orange-d); width: 28px; height: 28px; }
.checkout-reassure p { margin: 0; }
.woocommerce-order-received .woocommerce-order { background: #fff; border-radius: var(--radius); padding: 22px; }
.woocommerce ul.order_details { padding: 0; display: grid; gap: 10px; }
.woocommerce ul.order_details li { border: 0; padding: 10px 14px; background: var(--cream); border-radius: var(--radius-s); margin: 0; float: none; }
.wc-item-meta { list-style: none; padding: 0; font-size: .85rem; }
.wc-item-meta li { display: flex; gap: 6px; flex-wrap: wrap; }
.wc-item-meta p { margin: 0; }
.wc-item-meta a { word-break: break-all; }

/* My account */
.woocommerce-account .woocommerce { display: grid; gap: 22px; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.woocommerce-MyAccount-navigation a { display: block; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.woocommerce form.login, .woocommerce form.register { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; margin: 0 0 20px; }
.woocommerce-account .u-columns.col2-set { display: grid; gap: 22px; }
.woocommerce-account .u-columns h2 { color: var(--green); }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer { background: linear-gradient(180deg, var(--green), var(--green-2)); color: #e9dcc6; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.site-footer a { color: #f3e7d3; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .brand { margin-right: 0; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name b { color: var(--gold); }
.site-footer .brand-sub { color: #d6c6ab; }
.footer-tag { font: italic 600 1.25rem/1.3 var(--serif); color: var(--gold); margin: 16px 0 8px; }
.footer-about, .footer-small { font-size: .88rem; color: #d6c6ab; }
.footer-h { font: 600 1rem var(--sans); color: #fff; letter-spacing: .04em; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 5px 0; font-size: .93rem; }
.site-footer .contact-list li { font-size: .92rem; }
.site-footer .contact-list .bw-i, .promise .bw-i { color: var(--gold); width: 20px; height: 20px; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.promise li { display: flex; gap: 10px; align-items: flex-start; }
.news { display: flex; margin-top: 4px; }
.news input[type=email] { border: 0; border-radius: 999px 0 0 999px; min-height: 46px; min-width: 0; }
.news button { border: 0; border-radius: 0 999px 999px 0; padding: 0 18px; background: var(--gold); color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color .2s; }
.news button:hover { background: #fff; }
.site-footer .bw-alert { font-size: .85rem; padding: 10px 12px 10px 40px; margin-bottom: 10px; }
.site-footer .bw-alert::before { left: 14px; top: 13px; }
.socials { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; font-size: .85rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.socials a:hover { background: var(--gold); color: var(--ink); }
.socials .bw-i { width: 20px; height: 20px; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: .85rem; }
.footer-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.footer-bar span { display: inline-flex; align-items: center; gap: 6px; }
.footer-bar .bw-i { width: 16px; height: 16px; color: var(--gold); fill: var(--gold); }

/* ==========================================================================
   9. Responsive (mobile first)
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 20px; }
  .topbar span:not(:first-child) { display: inline-flex; }
  .topbar .wrap { justify-content: space-between; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .collections { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products, .woocommerce-page ul.products { gap: 18px; }
  .t-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .features ul { grid-template-columns: repeat(3, 1fr); }
  .feature:last-child { grid-column: auto; justify-content: flex-start; }
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
  .summary .trust-badges, .cart-collaterals .trust-badges { grid-template-columns: 1fr 1fr; }
  .style-grid { grid-template-columns: repeat(4, 1fr); }
  .wool-grid { grid-template-columns: repeat(3, 1fr); }
  .how-steps { grid-template-columns: repeat(4, 1fr); }
  .up-actions { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps, .values { grid-template-columns: 1fr 1fr; }
  .account-btn { width: auto; padding: 0 18px; gap: 8px; display: inline-flex; align-items: center; }
  .account-btn span { display: inline; font-weight: 600; font-size: 14px; }
  .woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr 1fr; }
  .woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 48%; float: left; }
  .woocommerce .col2-set .col-2 { float: right; }
  .woocommerce-account .u-columns .col-1, .woocommerce-account .u-columns .col-2 { width: 100%; float: none; }
}

@media (min-width: 782px) {
  .admin-bar .site-header { top: 32px; }
  .content { padding-top: 52px; }
  .entry { padding: 36px 40px; }
  .content-wc .entry { padding: 28px; }
  .hero { min-height: 560px; }
  .hero::before { background: linear-gradient(90deg, rgba(253, 244, 231, .97) 0%, rgba(253, 244, 231, .86) 38%, rgba(253, 244, 231, 0) 66%); }
  .hero-img { object-position: right center; }
  .features ul { grid-template-columns: repeat(5, 1fr); }
  .feature { border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 14px; }
  .feature:last-child { border-right: 0; }
  .story-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .design-cta { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 34px 40px; }
  .design-cta-actions { justify-content: flex-end; }
  .contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .up-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .upload-form { padding: 32px; }
  .woocommerce div.product { grid-template-columns: 1fr 1fr; gap: 44px; }
  .woocommerce .cart-collaterals { display: flex; justify-content: flex-end; }
  .woocommerce .cart-collaterals .cart_totals { max-width: 440px; }
  .woocommerce-account .woocommerce { grid-template-columns: 240px 1fr; align-items: start; }
  .woocommerce-MyAccount-navigation ul { flex-direction: column; }
  .woocommerce-MyAccount-navigation a { border-radius: var(--radius-s); }
  .woocommerce-account:not(.logged-in) .woocommerce { grid-template-columns: 1fr; }
}

@media (min-width: 1000px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 12px 12px 16px; }
  .collections { grid-template-columns: repeat(4, 1fr); }
  .collection { min-height: 320px; }
  .t-track { grid-auto-columns: calc((100% - 32px) / 3); }
  .custom-panel { grid-template-columns: 1.05fr 1.15fr .9fr; }
  .cp-col { padding: 30px 28px; }
  .cp-col + .cp-col { border-top: 0; border-left: 1px solid var(--sand-2); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr 1.3fr; gap: 0; }
  .footer-grid > * { padding: 0 22px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .footer-grid > *:first-child { padding-left: 0; border-left: 0; }
  .footer-grid > *:last-child { padding-right: 0; }
  .configurator { grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; }
  .cfg-summary { top: 100px; bottom: auto; align-self: start; }
  .woocommerce form.checkout { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .woocommerce form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
  .woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
  .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
  .woocommerce-checkout #customer_details { grid-row: 1 / span 2; }
  .woocommerce-checkout #order_review_heading { margin: 0; }
}

@media (min-width: 1140px) {
  .header-row { gap: 18px; min-height: 80px; }
  .menu-toggle { display: none; }
  .brand { margin-right: 0; }
  .brand .bw-mark { width: 50px; height: 50px; }
  .brand-name { font-size: 30px; }
  .main-nav { position: static; display: block; flex: 1; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .main-nav > ul { display: flex; justify-content: center; gap: 2px; padding: 0; }
  .main-nav > ul > li > a { border: 0; padding: 10px 13px; border-radius: 999px; font-size: 14px; }
  .main-nav > ul > li.menu-item-has-children > a { padding-right: 30px; }
  .main-nav > ul > li > a:hover { background: var(--sand); color: var(--ink); }
  .main-nav > ul > .current-menu-item > a, .main-nav > ul > .current_page_item > a, .main-nav > ul > .current-menu-ancestor > a { background: var(--green); color: #fff; }
  .sub-toggle { width: 26px; height: 26px; right: 4px; top: 50%; transform: translateY(-50%); }
  .sub-toggle .bw-i { width: 14px; height: 14px; }
  .current-menu-item > .sub-toggle, .current-menu-ancestor > .sub-toggle { color: #fff; }
  .main-nav .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; padding: 8px; background: #fff; border-radius: var(--radius-s); box-shadow: var(--shadow); border: 1px solid var(--line); }
  .main-nav .sub-menu a { border: 0; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
  .main-nav .sub-menu a:hover { background: var(--sand); }
  .main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
  .main-nav li.menu-item-has-children::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover bridge */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .t-arrow { display: none !important; }
}
