/* ==========================================================================
   Fringe Group Studios · Cabinet: WordPress + WooCommerce additions.
   cabinet.css is the approved concept stylesheet (kept verbatim, including the
   rework, abstraction and round 3 blocks). This file only covers what the
   concept never had to draw: links standing in for buttons, the_content(),
   WooCommerce's own forms, tables, notices and pagination.
   ========================================================================== */

/* ---------- WooCommerce's layout CSS sets .woocommerce-page img { height: auto }: keep the logo heights ---------- */
body .brand img.brand-badge { height: 34px; }
body .brand img.brand-word { height: 15px; }
body .menu-top .brand img.brand-badge, body .co-head .brand img.brand-badge { height: 28px; }
body .menu-top .brand img.brand-word, body .co-head .brand img.brand-word { height: 12px; }
@media (max-width: 860px) {
  body .brand img.brand-badge { height: 26px; }
  body .brand img.brand-word { height: 11px; }
  body .co-head .brand img.brand-badge { height: 24px; }
  body .co-head .brand img.brand-word { height: 10px; }
}

/* ---------- links that play buttons ---------- */
a.cart-btn, a.spec-add, a.atag, a.btn, .fd-clear { text-decoration: none; }
a.cart-btn { color: var(--bone); }
a.spec-add { display: inline-flex; align-items: center; justify-content: center; }
.cart-count:empty { visibility: hidden; }
.spec-foot .atc-error, .exl-buy-wc .atc-error, form.cart .atc-error { flex-basis: 100%; margin: 8px 0 0; font: 400 12px/1.4 var(--f-label); color: #e9b8ad; }
.spec-foot { flex-wrap: wrap; }
.line.is-busy { opacity: .45; pointer-events: none; transition: opacity .2s; }
.drawer-wait { padding: 48px 0; text-align: center; font: 400 12px/1.4 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.drawer-note a { color: inherit; }
.line-maker { overflow-wrap: anywhere; }
.line-img img { aspect-ratio: 1; }

/* ---------- shop: server-side filters ---------- */
.fd-apply { display: none; }
html:not(.js) .fd-apply { display: flex; }
html.is-filtering .results { opacity: .5; transition: opacity .2s; }
.toolbar .count b { color: var(--bone); }
.woocommerce-pagination { margin: 48px 0 0; }
.woocommerce-pagination ul.page-numbers, .fgs-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; border: 0; }
.woocommerce-pagination ul.page-numbers li { border: 0; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span, .fgs-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--rule, var(--line)); color: var(--bone); text-decoration: none; font: 400 13px/1 var(--f-label); letter-spacing: .06em; background: none;
}
.woocommerce-pagination .page-numbers .current, .fgs-pagination .page-numbers.current { background: var(--bone); color: #12100d; border-color: var(--bone); }
.fgs-pagination { margin-top: 48px; }
.spec-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* ---------- product page: WooCommerce's own add-to-cart form (variable products) ---------- */
.exl-buy-wc form.cart { display: grid; gap: 14px; margin: 0; }
.exl-buy-wc table.variations { width: 100%; border-collapse: collapse; margin: 0; }
.exl-buy-wc table.variations th, .exl-buy-wc table.variations td { display: block; padding: 0; text-align: left; border: 0; }
.exl-buy-wc table.variations th label { display: block; margin: 0 0 6px; font: 400 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.exl-buy-wc table.variations td { padding-bottom: 14px; }
.exl-buy-wc select { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--rule, var(--line)); border-radius: 0;
  background: #12100d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23ece3cf' stroke-width='1.3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
  color: var(--bone); font: 500 15px/1 var(--f-ui); }
.exl-buy-wc .reset_variations { display: inline-block; margin-top: 8px; font: 400 12px/1 var(--f-label); color: var(--bone-2); }
.exl-buy-wc .woocommerce-variation-price .price { font: 600 22px/1 var(--f-display); color: var(--bone); }
.exl-buy-wc .woocommerce-variation-availability p { margin: 6px 0 0; font: 400 12px/1.4 var(--f-label); color: var(--bone-2); }
.exl-buy-wc .woocommerce-variation-add-to-cart, .exl-buy-wc form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.exl-buy-wc .quantity, .woocommerce-cart-form .quantity { display: inline-flex; height: 52px; border: 1px solid var(--rule, var(--line)); }
.exl-buy-wc .quantity input.qty, .woocommerce-cart-form .quantity input.qty { width: 48px; height: 100%; border: 0; border-inline: 1px solid var(--rule, var(--line)); background: transparent; color: var(--bone); text-align: center; font: 600 15px/1 var(--f-label); -moz-appearance: textfield; appearance: textfield; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 40px; padding: 0; border: 0; background: transparent; color: var(--bone); font-size: 19px; cursor: pointer; }
.qty-btn:hover { background: rgba(236, 226, 205, .08); }
.exl-buy-wc .single_add_to_cart_button { flex: 1; min-height: 52px; padding: 0 22px; border: 1px solid var(--bone); border-radius: 0; background: var(--bone); color: #12100d; cursor: pointer; font: 700 12.5px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.exl-buy-wc .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
.exl-buy-wc .stock { margin: 0; font: 400 12px/1.4 var(--f-label); color: var(--bone-2); }
.exl-price del { opacity: .55; margin-right: 8px; }
.exl-price ins { text-decoration: none; }
.ex-case img { display: block; width: 100%; height: auto; }
.exl-assure a { color: inherit; }

/* ---------- the_content(): pages and posts ---------- */
.page-head-slim { padding-bottom: 36px; }
.page-head-slim .steps { margin: 0 0 18px; }
.page-head .steps ol { color: var(--bone-3); }
.page-head .steps a { color: var(--bone); }
.page-head .steps [aria-current] span { color: var(--bone); }
.page-body { padding: 56px 0 96px; }
.entry { max-width: 72ch; }
.entry-wide { min-width: 0; }
.entry, .entry-wide { overflow-wrap: break-word; }
.entry > * + *, .nb > * + * { margin-top: 1.1em; }
.entry p, .entry li, .nb li { color: var(--bone-2); font-size: 17px; line-height: 1.75; }
.entry a, .nb a, .entry-wide .woocommerce-MyAccount-content a { color: var(--bone); text-decoration-color: rgba(236, 226, 205, .45); text-underline-offset: 3px; }
.entry a:hover, .nb a:hover { text-decoration-color: currentColor; }
.entry h2, .entry h3, .entry h4, .nb h2, .nb h3, .nb h4 { margin: 1.8em 0 .5em; color: var(--bone); line-height: 1.1; }
.entry h2, .nb h2 { padding-top: 16px; border-top: 1px solid var(--rule, var(--line-soft)); font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.entry h3, .nb h3 { font-size: 24px; }
.entry ul, .entry ol, .nb ul, .nb ol { padding-left: 1.2em; }
.entry blockquote, .nb blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--bone); font-size: 20px; color: var(--bone); }
.entry img, .nb img, .entry-wide img { max-width: 100%; height: auto; }
.entry figure, .nb figure { margin: 2em 0; }
.entry figcaption, .nb figcaption, .wp-element-caption { margin-top: 10px; font: 400 12px/1.5 var(--f-label); letter-spacing: .04em; color: var(--bone-3); }
.entry table, .nb table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td, .nb th, .nb td { padding: 10px 12px; border-bottom: 1px solid var(--rule, var(--line-soft)); text-align: left; }
.entry hr, .nb hr { border: 0; border-top: 1px solid var(--rule, var(--line-soft)); margin: 2.4em 0; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; }
.wp-block-image img { display: block; }
.nb > p:first-of-type::first-letter { float: left; margin: 7px 12px 0 0; font: 800 70px/.8 var(--f-display); color: var(--bone); }
.notice-ex { margin: 10px 0 0; font-size: 15px; color: var(--bone-2); }
.notices-all { row-gap: 48px; }
.sec-tight { padding-top: 56px; padding-bottom: 96px; }
.bill-nocover { grid-template-columns: minmax(0, 1fr); }
.bill-foot a { color: inherit; }
.comments-wrap { max-width: 720px; margin-top: 64px; }
/* Elementor content inside page.php: let it use the column, never the viewport. */
.page-body-builder .elementor-section.elementor-section-stretched, .page-body-builder .e-con-full { left: auto !important; width: 100% !important; }
.entry-wide .elementor { color: var(--bone); }

/* ---------- WooCommerce notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
  position: relative; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--rule, var(--line)); border-left-width: 3px; list-style: none;
  background: rgba(236, 226, 205, .04); color: var(--bone); font: 400 14.5px/1.5 var(--f-ui);
}
.woocommerce-error { border-left-color: #c9806f; }
.woocommerce-message { border-left-color: #8fb08f; }
.woocommerce-error li { margin: 0; }
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error a.button { float: right; margin-left: 12px; }
.woocommerce-message::after, .woocommerce-info::after { content: ""; display: table; clear: both; }

/* ---------- WooCommerce buttons and fields (cart, account, order received) ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce .button.alt, .wc-block-components-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--bone); border-radius: 0;
  background: transparent; color: var(--bone); cursor: pointer; text-decoration: none; font: 600 12px/1 var(--f-ui); letter-spacing: .13em; text-transform: uppercase;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--bone); color: #12100d; }
.woocommerce .button.alt, .woocommerce a.checkout-button, .woocommerce button.button.alt { background: var(--bone); color: #12100d; }
.woocommerce .button:disabled, .woocommerce .button[disabled] { opacity: .45; cursor: not-allowed; }
.page-body-wc .woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.page-body-wc .woocommerce form .form-row label { display: block; margin: 0 0 6px; font: 600 13.5px/1.3 var(--f-ui); color: var(--bone); }
.page-body-wc .woocommerce :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea),
.page-body-wc .select2-container--default .select2-selection--single {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(236, 226, 205, .35); border-radius: 0; background: #12100d; color: var(--bone); font: 400 16px/1.2 var(--f-ui);
}
.page-body-wc .woocommerce textarea { height: auto; min-height: 96px; padding: 12px 14px; }
.page-body-wc .woocommerce :is(input, select, textarea):focus { outline: none; border-color: var(--bone); box-shadow: 0 0 0 2px rgba(236, 226, 205, .35); }
.page-body-wc .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 44px; color: var(--bone); }
.page-body-wc .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.select2-dropdown { background: #12100d; color: var(--bone); border-color: rgba(236, 226, 205, .35); }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--bone); color: #12100d; }
.select2-search--dropdown .select2-search__field { background: #0e0c0a; color: var(--bone); border-color: rgba(236, 226, 205, .35); }

/* ---------- cart page (classic shortcode) ---------- */
.woocommerce table.shop_table { width: 100%; margin: 0 0 32px; border: 0; border-collapse: collapse; border-radius: 0; color: var(--bone); }
.woocommerce table.shop_table th { padding: 12px 10px; border-bottom: 1px solid var(--rule, var(--line)); font: 400 11.5px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); text-align: left; }
.woocommerce table.shop_table td { padding: 18px 10px; border-top: 0; border-bottom: 1px solid var(--rule, var(--line-soft)); vertical-align: middle; }
.woocommerce table.shop_table td.product-name a { color: var(--bone); text-decoration: none; font: 600 18px/1.2 var(--f-display); }
.woocommerce table.shop_table td.product-thumbnail img { display: block; width: 84px; height: 84px; object-fit: cover; }
.woocommerce table.cart td.product-remove a.remove { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--rule, var(--line)); color: var(--bone) !important; font-size: 18px; text-decoration: none; }
.woocommerce table.cart td.product-remove a.remove:hover { background: var(--bone); color: #12100d !important; }
.woocommerce table.cart td.actions { padding-top: 22px; border-bottom: 0; }
.woocommerce table.cart td.actions .coupon { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.woocommerce table.cart td.actions .coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce table.cart td.actions .coupon .input-text { width: 200px; height: 46px; padding: 0 14px; border: 1px solid rgba(236, 226, 205, .35); background: #12100d; color: var(--bone); }
.woocommerce table.cart td.actions > button[name="update_cart"] { float: right; }
.cart-collaterals .cart_totals { padding: 28px; border: 1px solid var(--rule, var(--line)); background: #15120f; }
.cart-collaterals .cart_totals h2 { margin: 0 0 14px; font-size: 30px; font-weight: 700; }
.cart-collaterals .cart_totals table.shop_table th, .cart-collaterals .cart_totals table.shop_table td { padding: 12px 0; }
.cart-collaterals .cart_totals tr.order-total td { font: 700 24px/1 var(--f-display); }
.cart-collaterals .cart_totals td { text-align: right; }
.cart-collaterals #shipping_method { margin: 0; padding: 0; list-style: none; }
.cart-collaterals .woocommerce-shipping-destination { font-size: 13px; color: var(--bone-2); }
.wc-proceed-to-checkout { padding: 18px 0 0; }
.wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; min-height: 56px; font-size: 13px; }
.cart-empty.woocommerce-info { font-size: 17px; }
.return-to-shop .button { margin-top: 8px; }
.shop_table .product-name .variation { margin: 6px 0 0; font: 400 12px/1.5 var(--f-label); color: var(--bone-2); }
.shop_table .product-name .variation dt, .shop_table .product-name .variation dd { display: inline; margin: 0; }
.shop_table .product-name .variation dd p { display: inline; margin: 0; }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper, .woocommerce-account:not(.logged-in) .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule, var(--line)); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule, var(--line-soft)); color: var(--bone-2); text-decoration: none; font: 400 13px/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { color: var(--bone); }
.woocommerce-account:not(.logged-in) .u-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.woocommerce-account .u-column1, .woocommerce-account .u-column2 { float: none; width: auto; }
.woocommerce-account h2 { font-size: 30px; font-weight: 700; }
.woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: 10px; }
.woocommerce form .form-row input[type="checkbox"], .woocommerce form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--bone); }
.lost_password a { color: var(--bone-2); }

/* ---------- order received ---------- */
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 32px; padding: 0; list-style: none; }
.woocommerce-order-overview li { font: 400 12px/1.6 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--bone-3); }
.woocommerce-order-overview li strong { display: block; font: 600 16px/1.4 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--bone); }
.woocommerce-thankyou-order-received { font: 700 clamp(26px, 3vw, 36px)/1.1 var(--f-display); color: var(--bone); }
.woocommerce-customer-details address { padding: 18px; border: 1px solid var(--rule, var(--line)); font-style: normal; color: var(--bone-2); }

/* ---------- WooCommerce block cart/checkout (if a page still uses blocks) ---------- */
.has-wc-blocks .page-body { color: var(--bone); }
.has-wc-blocks .wc-block-components-text-input input, .has-wc-blocks .wc-block-components-combobox .wc-block-components-combobox-control input, .has-wc-blocks .wc-blocks-components-select__select {
  background: #12100d !important; color: var(--bone) !important; border-color: rgba(236, 226, 205, .35) !important; border-radius: 0 !important;
}
.has-wc-blocks .wc-block-components-text-input label, .has-wc-blocks .wc-blocks-components-select__label { color: var(--bone-2) !important; }
.has-wc-blocks .wc-block-components-button:not(.is-link) { background: var(--bone) !important; color: #12100d !important; }
.has-wc-blocks .wc-block-components-panel, .has-wc-blocks .wc-block-components-totals-wrapper, .has-wc-blocks .wc-block-components-order-summary-item { border-color: var(--rule, var(--line)) !important; }
.has-wc-blocks .wc-block-components-radio-control__option, .has-wc-blocks .wc-block-components-radio-control-accordion-option { box-shadow: inset 0 0 0 1px rgba(236, 226, 205, .25) !important; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .fd-apply { display: flex; }
  .woocommerce-account .woocommerce, .woocommerce-account:not(.logged-in) .u-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page-body { padding: 36px 0 72px; }
  .woocommerce table.cart td.actions .coupon { display: flex; width: 100%; }
  .woocommerce table.cart td.actions .coupon .input-text { flex: 1; width: auto; min-width: 0; }
  .woocommerce table.cart td.actions > button[name="update_cart"] { float: none; width: 100%; margin-top: 10px; }
  .cart-collaterals .cart_totals { padding: 20px 16px; }
  .woocommerce table.shop_table_responsive tr td { text-align: right; }
  .woocommerce table.shop_table_responsive tr td.product-thumbnail { text-align: left; }
  .entry p, .entry li, .nb li { font-size: 16px; }
}

/* comment form fields stay inside the column */
.comments textarea, .comments input[type="text"], .comments input[type="email"], .comments input[type="url"] { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid rgba(236, 226, 205, .35); background: #12100d; color: var(--bone); font: 400 16px/1.4 var(--f-ui); }
.sec-paper .btn-ink, .about-head .btn-ink { background: #1a1512 !important; color: #ece3cf !important; border-color: #1a1512 !important; }
/* Abstraction: no inset frames on the exhibit label; a small seal in its head */
.ex-label::before, .ex-label::after { display: none !important; }
body .exl-head img { width: auto; height: 40px; }
.about-head .crumbs [aria-current] { color: #1a1512 !important; }

/* 1.0.1: checkout summary labels (Subtotal / Shipment / Total) readable on the ivory card. */
.woocommerce-checkout-review-order-table tfoot th, #order_review tfoot th { color: #5e5448 !important; }

/* 1.0.2: WooCommerce gives the product info article the class "summary", which picked up the checkout
   summary's sticky rule, so Description / Details / Shipping scrolled over the price. Keep it in the flow. */
.ex-label.summary { position: static; top: auto; }

/* 1.0.2: product lightbox and magnifier (same pattern as Lorissa Toweel). */
.ex-case img[data-main-img] { cursor: zoom-in; }
.zoom-btn {
  position: absolute; right: 30px; bottom: 30px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(236, 227, 207, .35); border-radius: 999px; background: rgba(10, 9, 8, .62); color: #ece3cf; cursor: zoom-in;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .4s cubic-bezier(.32, .72, 0, 1), border-color .4s cubic-bezier(.32, .72, 0, 1), transform .5s cubic-bezier(.32, .72, 0, 1);
}
.zoom-btn:hover, .zoom-btn:focus-visible { background: rgba(10, 9, 8, .88); border-color: #ece3cf; transform: scale(1.06); }
.lb {
  position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center;
  background: rgba(8, 7, 6, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s cubic-bezier(.32, .72, 0, 1);
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb-fig { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; height: 100vh; height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 56px 0; box-sizing: border-box; overflow: hidden; }
.lb-img {
  display: block; max-width: 100%; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain;
  transform: scale(.985); transition: opacity .3s cubic-bezier(.32, .72, 0, 1), transform .5s cubic-bezier(.32, .72, 0, 1); touch-action: pinch-zoom;
}
.lb.is-open .lb-img { transform: none; }
.lb-img.is-loading { opacity: .35; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(236, 227, 207, .3); border-radius: 999px;
  background: transparent; color: #ece3cf; font: 300 1.7rem/1 var(--f-display, sans-serif); cursor: pointer; transition: border-color .3s, background .3s;
}
.lb-btn:hover, .lb-btn:focus-visible { border-color: #ece3cf; background: rgba(236, 227, 207, .08); }
.lb-btn[hidden] { display: none; }
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb-x { position: absolute; top: 14px; right: 14px; }
.lb-n { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; font: 400 .78rem/1 "IBM Plex Mono", monospace; letter-spacing: .16em; color: rgba(236, 227, 207, .7); }
html.lb-lock, html.lb-lock body { overflow: hidden; }
@media (max-width: 600px) {
  .zoom-btn { right: 22px; bottom: 22px; }
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-fig { padding: 64px 10px; }
  .lb-img { max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); }
  .lb-prev, .lb-next { position: absolute; bottom: 8px; width: 42px; height: 42px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-n { bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .lb, .lb-img, .zoom-btn { transition: none; } }

/* ==================================================================
   1.0.3: Shopify-style cart (list + summary card), checkout tidy-up,
   product photo capped to the screen height.
   ================================================================== */

/* Product page (1.0.4): the whole photo, always: scaled to fit, never cropped.
   A steady stage (fits the screen with the thumbnails in view on desktop, 4:5 on phones) so
   switching between portrait and landscape views doesn't make the page jump. */
.ex-case { display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 4 / 5; max-height: 78vh; max-height: 78dvh; }
.ex-case img, .ex-case img[data-main-img] { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: contain !important; background: transparent !important; }
@media (min-width: 861px) {
  .ex-case { aspect-ratio: auto; max-height: none; height: clamp(420px, calc(100vh - 330px), 780px); height: clamp(420px, calc(100dvh - 330px), 780px); }
  .ex-thumbs { grid-template-columns: repeat(auto-fill, 84px); }
}

/* Stray auto-paragraphs from old page content never take a grid cell. */
form.checkout p:empty, .woocommerce-billing-fields__field-wrapper > p:empty, .woocommerce-shipping-fields__field-wrapper > p:empty, .woocommerce-cart-form p:empty { display: none !important; }

/* ---- cart ---- */
.fgs-cart { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; padding-bottom: 40px; }
.fgs-cart-form { min-width: 0; margin: 0; }
.fc-head { display: flex; justify-content: space-between; padding: 0 0 14px; border-bottom: 1px solid var(--rule, var(--line)); font: 400 11.5px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }
.woocommerce .fc-list, .fc-list { display: block; width: auto; margin: 0; padding: 0; list-style: none; border: 0; }
.fc-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--rule, var(--line-soft)); }
.fc-thumb a, .fc-thumb > img { display: block; }
.fc-thumb img { display: block; width: 112px; height: 112px; object-fit: cover; border: 1px solid var(--rule, var(--line)); background: #18201b; transition: opacity .3s; }
.fc-thumb a:hover img { opacity: .85; }
.fc-info { min-width: 0; }
.fc-no { margin: 0 0 6px; font: 500 11px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: #b0402f; }
.fc-name { margin: 0; font: 600 21px/1.15 var(--f-display); letter-spacing: -.01em; }
.fc-name a { color: var(--bone); text-decoration: none; }
.fc-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fc-maker { margin: 6px 0 0; font: 400 14px/1.4 var(--f-body, inherit); color: var(--bone-2); }
.fc-info .variation { margin: 8px 0 0; font: 400 12.5px/1.5 var(--f-label); color: var(--bone-2); }
.fc-each { margin: 8px 0 0; font: 400 12.5px/1.4 var(--f-label); letter-spacing: .04em; color: var(--bone-3); }
.fc-each .amount { color: var(--bone-3); }
.fc-actions { display: flex; align-items: center; gap: 22px; margin-top: 16px; }
.fc-qty .quantity { display: inline-flex; height: 44px; border: 1px solid var(--rule, var(--line)); }
.fc-qty .quantity input.qty { width: 44px; height: 100%; border: 0; border-inline: 1px solid var(--rule, var(--line)); background: transparent; color: var(--bone); text-align: center; font: 600 14px/1 var(--f-label); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.fc-qty .quantity input.qty::-webkit-inner-spin-button, .fc-qty .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fc-qty .qty-btn { width: 40px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--bone); font: 400 18px/1 var(--f-label); cursor: pointer; transition: background .25s; }
.fc-qty .qty-btn:hover { background: rgba(236, 227, 207, .07); }
.woocommerce .fc-remove a.remove, .fc-remove a.remove { display: inline; width: auto; height: auto; border-radius: 0; background: none !important; color: var(--bone-3) !important; font: 400 11.5px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-decoration-color: rgba(236, 227, 207, .3); text-underline-offset: 4px; }
.fc-remove a.remove:hover { color: var(--bone) !important; text-decoration-color: var(--bone); }
.fc-line { padding-top: 22px; font: 600 18px/1 var(--f-display); color: var(--bone); white-space: nowrap; text-align: right; }
.fc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.fc-coupon summary { cursor: pointer; list-style: none; font: 400 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-2); text-decoration: underline; text-decoration-color: rgba(236, 227, 207, .3); text-underline-offset: 4px; }
.fc-coupon summary::-webkit-details-marker { display: none; }
.fc-coupon[open] summary { margin-bottom: 12px; }
.fc-coupon .coupon { display: flex; gap: 10px; }
.fc-coupon .coupon input.input-text { width: 220px; height: 46px; padding: 0 14px; border: 1px solid var(--rule, var(--line)); background: transparent; color: var(--bone); font: 400 15px/1 inherit; }
.fc-coupon .coupon .button { height: 46px; }
.fgs-cart-form .fc-update { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0 !important; border: 0 !important; }
.fc-back { font: 400 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-2); text-decoration: none; }
.fc-back:hover { color: var(--bone); }

.fc-side { position: sticky; top: 112px; min-width: 0; }
.woocommerce .cart-collaterals .cart_totals.fc-sum, .cart_totals.fc-sum { float: none; width: auto; padding: 30px; border: 1px solid var(--rule, var(--line)); background: #15120f; }
.fc-sum-h { margin: 0 0 20px; font: 700 26px/1 var(--f-display); letter-spacing: -.01em; color: var(--bone); }
.fc-rows { margin: 0; }
.fc-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.fc-row dt { font: 400 11.5px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.fc-row dd { margin: 0; text-align: right; color: var(--bone); font-size: 15px; }
.fc-ship dd { color: var(--bone-2); font-size: 14px; }
.fc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(236, 227, 207, .35); }
.fc-total span { font: 500 12px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); }
.fc-total strong { font: 700 30px/1 var(--f-display); color: var(--bone); }
.fc-total strong .amount { color: var(--bone); }
.fc-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--bone-3); }
.fc-sum .wc-proceed-to-checkout { margin-top: 22px; padding: 0; }
.fc-sum .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 0 0 12px; font-size: 13px; letter-spacing: .2em; }
.fc-sum .wc-proceed-to-checkout > *:last-child { margin-bottom: 0; }
.fc-assure { margin: 20px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--rule, var(--line-soft)); }
.fc-assure li { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; color: var(--bone-2); }
.fc-assure .ico { width: 18px; height: 18px; flex: none; }
.woocommerce-cart .cart-empty.woocommerce-info { margin: 10px 0 20px; }

@media (max-width: 960px) {
  .fgs-cart { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .fc-side { position: static; }
}
@media (max-width: 600px) {
  .fc-item { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
  .fc-thumb img { width: 84px; height: 84px; }
  .fc-name { font-size: 18px; }
  .fc-line { grid-column: 2; padding-top: 0; text-align: left; font-size: 16px; }
  .fc-actions { gap: 16px; }
  .fc-coupon .coupon input.input-text { width: 100%; min-width: 0; flex: 1; }
  .cart_totals.fc-sum { padding: 22px; }
}

/* ---- checkout tidy-up ---- */
.fgs-checkout .woocommerce-billing-fields__field-wrapper, .fgs-checkout .woocommerce-shipping-fields__field-wrapper { column-gap: 16px; }
#wcpay-express-checkout-wrapper, .wcpay-express-checkout-wrapper { margin-bottom: 8px; }
#wcpay-express-checkout-button-separator, .wcpay-express-checkout-button-separator { margin: 18px 0 8px !important; font: 400 11.5px/1 var(--f-label); letter-spacing: .16em; color: var(--ink-2, #4d4239); }

/* ==================================================================
   1.0.6: header logo unboxed and larger; "Shop by maker" as four
   matching maker cards.
   ================================================================== */

/* Logo: no frame, bigger, sits straight on the bar. */
.brand, .co-head .brand { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; gap: 14px; }
.brand::before, .brand::after { display: none !important; content: none !important; }
body .brand img.brand-badge { height: 52px; margin: 0; }
body .brand img.brand-word { height: 22px; opacity: 1; }
.head-in { min-height: 88px; }
.brand { transition: opacity .3s cubic-bezier(.32, .72, 0, 1); }
.brand:hover { opacity: .82; }
body .co-head .brand img.brand-badge { height: 40px; }
body .co-head .brand img.brand-word { height: 17px; }
@media (max-width: 860px) {
  .head-in { min-height: 70px; }
  body .brand img.brand-badge { height: 40px; }
  body .brand img.brand-word { height: 16px; }
  .brand { gap: 10px; }
  body .co-head .brand img.brand-badge { height: 34px; }
  body .co-head .brand img.brand-word { height: 14px; }
}
@media (max-width: 460px) {
  body .brand img.brand-badge { height: 36px; }
  body .brand img.brand-word { height: 13px; }
  .brand { gap: 8px; }
}
@media (max-width: 360px) {
  body .brand img.brand-word { height: 11px; }
}

/* Shop by maker: one card per maker, same parts in the same places. */
.makers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 8px 0 0; padding: 0; list-style: none; }
.maker { min-width: 0; }
.maker-a { display: flex; flex-direction: column; height: 100%; color: var(--bone); text-decoration: none; }
.maker-ph { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #14110e; }
.maker-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity .7s cubic-bezier(.32, .72, 0, 1), transform 1.1s cubic-bezier(.32, .72, 0, 1); }
.maker-ph .m-col { position: absolute; inset: 0; opacity: 0; }
@media (hover: none), (pointer: coarse) { .maker-ph .m-col { display: none; } }
.maker-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, 0) 55%, rgba(10, 9, 8, .55) 100%); pointer-events: none; }
.maker-no { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 500 11px/1 var(--f-label); letter-spacing: .18em; color: rgba(236, 227, 207, .85); }
.maker-body { display: flex; flex-direction: column; flex: 1; padding: 20px 2px 0; }
.maker-name { font: 600 26px/1.05 var(--f-display); letter-spacing: -.02em; color: var(--bone); }
.maker-sub { margin-top: 6px; font: 500 11px/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.maker-blurb { min-height: 3em; margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--bone-2); }
.maker-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
.maker-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule, rgba(236, 227, 207, .16)); }
.maker-meta { margin: 14px 0 18px; font: 400 11px/1.3 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-3); }
.maker-cta { white-space: nowrap; font: 600 11.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--bone); }
.maker-arrow { display: inline-block; font: 400 15px/1 var(--f-ui); color: var(--bone); transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
/* Colour on hover only where there's a real mouse: on phones a tap or swipe leaves :hover stuck on one card. */
@media (hover: hover) and (pointer: fine) {
  .maker-a:hover .maker-ph img { transform: scale(1.04); }
  .maker-a:hover .maker-ph .m-col { opacity: 1; }
  .maker-a:hover .maker-arrow { transform: translateX(5px); }
}
.maker-a:focus-visible .maker-ph .m-col { opacity: 1; }
.maker-a:focus-visible .maker-arrow { transform: translateX(5px); }
.maker-a:focus-visible { outline: 2px solid var(--bone); outline-offset: 6px; }
.makers-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--rule, rgba(236, 227, 207, .16)); font: 400 11.5px/1.4 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.makers-more a { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(236, 227, 207, .35); text-underline-offset: 5px; }
.makers-more a:hover { text-decoration-color: var(--bone); }
.makers-more .sep { color: var(--bone-3); }
@media (max-width: 1100px) {
  .makers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}
@media (max-width: 600px) {
  .makers { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 8px -16px 0; padding: 0 16px 8px; scrollbar-width: none; }
  .makers::after { content: ""; flex: 0 0 1px; }
  .makers::-webkit-scrollbar { display: none; }
  .maker { flex: 0 0 78%; scroll-snap-align: start; }
  .maker-name { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .maker-ph img, .maker-arrow { transition: none; } }

/* ==================================================================
   1.1.0: Header & logo builder (Customizer). Sizes come from the
   --hb/--hw/--hg/--hh variables printed by inc/customizer.php;
   the --e-* ones pick the right device's value.
   ================================================================== */
:root { --e-hb: var(--hb, 52px); --e-hw: var(--hw, 22px); --e-hg: var(--hg, 14px); --e-hh: var(--hh, 88px);
        --e-hb-s: var(--hb-s, 40px); --e-hw-s: var(--hw-s, 17px); --e-hh-s: var(--hh-s, 64px); }
@media (max-width: 860px) {
  :root { --e-hb: var(--hb-t, 40px); --e-hw: var(--hw-t, 16px); --e-hg: var(--hg-t, 10px); --e-hh: var(--hh-t, 70px);
          --e-hb-s: var(--hb-s-t, 34px); --e-hw-s: var(--hw-s-t, 14px); --e-hh-s: var(--hh-s-t, 58px); }
}
@media (max-width: 600px) {
  :root { --e-hb: var(--hb-m, 36px); --e-hw: var(--hw-m, 13px); --e-hg: var(--hg-m, 8px); --e-hh: var(--hh-m, 70px);
          --e-hb-s: var(--hb-s-m, 30px); --e-hw-s: var(--hw-s-m, 12px); --e-hh-s: var(--hh-s-m, 58px); }
}
body .head .brand { gap: var(--e-hg) !important; }
body .head .brand img.brand-badge { height: var(--e-hb); transition: height .35s cubic-bezier(.32, .72, 0, 1); }
/* The wordmark scales down on small laptops and very narrow phones so it never runs into the menu or the cart. */
body .head .brand img.brand-word { height: min(var(--e-hw), 1.7vw); transition: height .35s cubic-bezier(.32, .72, 0, 1), opacity .25s; }
@media (max-width: 860px) { body .head .brand img.brand-word { height: min(var(--e-hw), 3.4vw); } }
body .head .head-in { min-height: var(--e-hh); transition: min-height .35s cubic-bezier(.32, .72, 0, 1); }

/* Wordmark per device */
@media (min-width: 861px) { body.word-d-hide .head .brand-word { display: none; } }
@media (min-width: 601px) and (max-width: 860px) { body.word-t-hide .head .brand-word { display: none; } }
@media (max-width: 600px) { body.word-m-hide .head .brand-word { display: none; } }

/* Menu */
.head .nav { gap: var(--nav-gap, 36px); min-width: 0; justify-content: safe center; }
@media (min-width: 861px) and (max-width: 1180px) {
  .head .nav { gap: min(var(--nav-gap, 36px), 1.6vw); }
  .head .nav-n { display: none; }
  .head .nav-a { letter-spacing: .12em; }
  .head .head-in { gap: 20px; }
}
.head .nav-a { font-size: var(--nav-fs, 13px); }
@media (min-width: 861px) {
  body.nav-left .head .nav { justify-content: safe flex-start; }
  body.nav-right .head .nav { justify-content: safe flex-end; }
}

/* Top strip, sticky, shrink */
body.no-register .register { display: none; }
body.no-sticky .head { position: relative; }
body.hdr-shrink.is-shrunk .head .head-in { min-height: var(--e-hh-s); }
body.hdr-shrink.is-shrunk .head .brand img.brand-badge { height: var(--e-hb-s); }
body.hdr-shrink.is-shrunk .head .brand img.brand-word { height: min(var(--e-hw-s), 1.7vw); }
@media (max-width: 860px) { body.hdr-shrink.is-shrunk .head .brand img.brand-word { height: min(var(--e-hw-s), 3.4vw); } }
body.hdr-shrink.is-shrunk.word-s-hide .head .brand-word { opacity: 0; width: 0; }
@media (prefers-reduced-motion: reduce) { body .head .brand img, body .head .head-in { transition: none; } }
