/* ==========================================================================
   NOAF Storefront – the noaf.de look on top of Storefront + WooCommerce
   Values mirror the website theme (themes/noaf_dark). Storefront's Customizer
   colours are fixed in functions.php, this file does the rest.
   Buttons have no hover effects: they look the same with or without the pointer.
   ========================================================================== */

@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/anton-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800 900; font-display: swap; src: url(../fonts/inter-latin-800-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --c-primary: #ffee23;
  --c-on-primary: #0b0b0c;
  --c-bg: #09090b;
  --c-surface: #141417;
  --c-surface-2: #1d1d22;
  --c-field-focus: #2a2a30;
  --c-text: #f2f2f0;
  --c-body: #e6e6e4;
  --c-muted: #a1a1a8;
  --c-error: #ff6b4a;
  --line: rgb(255 255 255 / .09);
  --f-display: 'Anton', Impact, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --grain: .15;
  --glow: .15;
  --logo-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --primary-soft: color-mix(in srgb, var(--c-primary) 14%, transparent);
  --shadow: 0 30px 60px -20px rgb(0 0 0 / .7);
}

/* ---------------------------------------------------------------- Base */
html { background: var(--c-bg); }
body.noaf {
  background: var(--c-bg);
  color: var(--c-body);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.noaf :is(button, input, select, textarea, .button) { font-family: var(--f-body); }
.noaf ::selection { background: var(--c-primary); color: var(--c-on-primary); }
/* No focus outlines anywhere (Storefront's, the plugins' or the browser's); focused fields get a lighter background instead */
.noaf :focus { outline: none !important; }

.noaf :is(h1, h2, h3, h4) { font-family: var(--f-display); font-weight: 400; line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: var(--c-text); }
.noaf :is(h5, h6) { font-family: var(--f-body); font-weight: 800; color: var(--c-text); }
.noaf a { color: var(--c-primary); }
.noaf hr { background-color: var(--line); }
.noaf .icon { width: 1.15em; height: 1.15em; flex: none; }

.noaf-skip { position: fixed; left: 16px; top: -100px; z-index: 1000; padding: 12px 18px; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary) !important; font-weight: 700; }
.noaf-skip:focus { top: 16px; }

.noaf-grain {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noaf-grain 1.2s steps(6) infinite;
}
@keyframes noaf-grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
@media (prefers-reduced-motion: reduce) { .noaf-grain { animation: none; } }

.noaf-container { box-sizing: border-box; width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.noaf .col-full { box-sizing: content-box; max-width: var(--container); padding-left: var(--gutter); padding-right: var(--gutter); }
.noaf .site-content { padding-top: clamp(24px, 4vw, 48px); }
.noaf .storefront-breadcrumb + .site-content { padding-top: 0; }

/* ---------------------------------------------------------------- Header */
/* Storefront's overflow-x: hidden on #page makes it a scroll container: the sticky header would then
   stick to #page instead of the window (extra gap under the admin bar, no sticking). clip avoids that. */
.noaf .site { overflow-x: clip; }
.noaf-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); transition: transform .4s var(--ease); }.admin-bar .noaf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .noaf-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .noaf-header { top: 0; } }
.noaf-header.is-hidden { transform: translateY(-120%); }
.noaf-header__inner { display: flex; align-items: center; gap: 24px; min-height: 66px; padding-block: 8px; }

.noaf-brand { flex: none; }
.noaf-brand img { display: block; width: auto; height: var(--logo-h); filter: drop-shadow(0 4px 20px rgb(0 0 0 / .6)); }

.noaf-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.noaf-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.noaf-menu li { position: relative; margin: 0; }
.noaf .noaf-menu a {
  display: inline-flex; align-items: center; gap: .35em; box-sizing: border-box; padding: .65em .85em; border-radius: 999px;
  font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text); text-decoration: none;
}
.noaf .noaf-menu > .menu-item-has-children > a::after {
  content: ''; width: .9em; height: .9em; background: currentColor; transition: transform .3s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.noaf .noaf-menu :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a { color: var(--c-primary); }

/* Menu item with the CSS class "is-cta" (Design → Menüs) becomes the yellow button, like "Shop" on the website */
.noaf-menu .is-cta { margin-left: 8px; }
.noaf .noaf-menu .is-cta > a {
  padding: .75em 1.25em; background: var(--c-primary); color: var(--c-on-primary);
  font-weight: 800; font-size: .8rem; letter-spacing: .06em; line-height: 1;
  box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--c-primary) calc(var(--glow) * 100%), transparent);
}

.noaf-menu .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 10; min-width: 230px; margin: 0; padding: 10px; list-style: none;
  background: var(--c-surface); border-radius: calc(var(--radius) * .8); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.noaf-menu .sub-menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.noaf .noaf-menu .sub-menu a { display: flex; width: 100%; box-sizing: border-box; padding: .8em 1em; border-radius: 10px; }
.noaf .noaf-menu .sub-menu .current-menu-item > a { background: var(--primary-soft); }
.noaf-menu .menu-item-has-children:is(:hover, :focus-within, .is-open) > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.noaf .noaf-menu .menu-item-has-children:is(:hover, .is-open) > a::after { transform: rotate(180deg); }
.noaf-nav__social { display: none; }

.noaf-header__actions { display: flex; align-items: center; gap: 8px; }

/* Own buttons: each selector also lists :hover/:focus so Storefront's generic button hover cannot recolour them */
.noaf .noaf-iconbtn,
.noaf .noaf-iconbtn:hover,
.noaf .noaf-social,
.noaf .noaf-social:hover {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: rgb(255 255 255 / .07); color: var(--c-text); text-decoration: none;
}
.noaf .noaf-iconbtn .icon { width: 20px; height: 20px; }
.noaf .noaf-social .icon { width: 20px; height: 20px; }
.noaf-cart__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
  background: var(--c-primary); color: var(--c-on-primary); font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center;
}
.noaf-cart__count:empty { display: none; }

.noaf .noaf-burger,
.noaf .noaf-burger:hover,
.noaf .noaf-burger:focus {
  display: none; position: relative; z-index: 2; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--c-primary); cursor: pointer;
}
.noaf-burger span { position: absolute; left: 14px; right: 14px; height: 2.5px; border-radius: 2px; background: var(--c-on-primary); transition: transform .35s var(--ease), opacity .2s; }
.noaf-burger span:nth-child(1) { top: 17px; } .noaf-burger span:nth-child(2) { top: 23px; } .noaf-burger span:nth-child(3) { top: 29px; right: 20px; }
.noaf-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.noaf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.noaf-burger[aria-expanded="true"] span:nth-child(3) { right: 14px; transform: translateY(-6px) rotate(-45deg); }

.noaf .noaf-subtoggle { display: none; }

@media (max-width: 1100px) {
  .noaf-brand img { height: calc(var(--logo-h) * .8); }
  .noaf .noaf-burger, .noaf .noaf-burger:hover, .noaf .noaf-burger:focus { display: block; }
  .noaf-header__actions { margin-left: auto; } /* the nav is an overlay here, so it no longer pushes the actions right */
  .noaf-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: 110px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain;
    background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--c-primary) 18%, transparent), transparent 60%), var(--c-bg);
    clip-path: circle(0 at calc(100% - 40px) 40px); visibility: hidden;
    transition: clip-path .6s var(--ease), visibility 0s .6s;
  }
  .noaf-nav.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .7s var(--ease); }
  .noaf-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .noaf-menu > li { opacity: 0; transform: translateY(20px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .noaf-nav.is-open .noaf-menu > li { opacity: 1; transform: none; transition-delay: calc(.05s * var(--i, 1) + .15s); }
  .noaf .noaf-menu > li > a { width: 100%; padding: .2em 0; border-radius: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: .01em; line-height: 1.1; }
  .noaf .noaf-menu > .menu-item-has-children > a::after { display: none; }
  .noaf-menu .menu-item-has-children { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .noaf .noaf-subtoggle,
  .noaf .noaf-subtoggle:hover,
  .noaf .noaf-subtoggle:focus { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); color: var(--c-text); cursor: pointer; }
  .noaf-subtoggle .icon { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
  .noaf-menu .is-open > .noaf-subtoggle .icon { transform: rotate(180deg); }
  .noaf-menu .sub-menu { grid-column: 1 / -1; position: static; display: none; min-width: 0; padding: 0 0 0 4px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .noaf-menu .menu-item-has-children:is(:hover, :focus-within, .is-open) > .sub-menu { transform: none; }
  .noaf-menu .is-open > .sub-menu { display: block; }
  .noaf .noaf-menu .sub-menu a { padding: .7em 0; font-size: 1rem; }
  .noaf .noaf-menu .sub-menu .current-menu-item > a { background: none; }
  .noaf-menu .is-cta { margin: 20px 0 0; }
  .noaf .noaf-menu .is-cta > a { justify-content: center; padding: 1.2em; border-radius: 999px; font-family: var(--f-body); font-weight: 800; font-size: 1rem; letter-spacing: .06em; }
  .noaf-nav__social { display: flex; gap: 10px; margin-top: auto; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .noaf-header__inner { gap: 12px; }
  .noaf-header__actions { gap: 6px; }
}

/* ---------------------------------------------------------------- Footer */
.noaf-footer { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 10vw, 130px) 0 28px; background: #050506; color: var(--c-muted); }
.noaf-footer__bg { position: absolute; inset: 0; z-index: -1; background: center / cover; opacity: .12; filter: grayscale(1); -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.noaf-footer__inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.noaf-footer__brand { flex: 1.6 1 300px; }
.noaf-footer__col { flex: 1 1 170px; }
.noaf-footer__brand img { display: block; width: 200px; height: auto; }
.noaf-footer__date { margin: 20px 0 0; font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--c-primary); text-transform: uppercase; }
.noaf-footer__tag { margin: 8px 0 20px; }
.noaf-footer__social { display: flex; gap: 10px; }
.noaf .noaf-footer__title { margin: 0 0 16px; font-family: var(--f-body); font-weight: 800; font-size: .78rem; letter-spacing: .2em; color: var(--c-primary); }
.noaf-footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.noaf .noaf-footer__col a { color: var(--c-muted); font-weight: 600; text-decoration: none; }
.noaf-footer address { display: grid; gap: 12px; font-style: normal; }
.noaf .noaf-footer address a { display: flex; gap: 10px; align-items: flex-start; }
.noaf-footer address .icon { margin-top: .2em; color: var(--c-primary); }
.noaf-footer__bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 7vw, 80px); padding-top: 24px; font-size: .88rem; }
.noaf-footer__bottom::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .1), transparent); }
.noaf-footer__bottom p { margin: 0; }
.noaf-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 auto 0 0; padding: 0; list-style: none; }
.noaf .noaf-footer__legal a { color: var(--c-muted); text-decoration: none; }
.noaf .noaf-totop { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: var(--c-on-primary); }
.noaf-totop .icon { transform: rotate(180deg); }
@media (max-width: 760px) {
  .noaf-footer__legal { margin: 0; }
}

/* ---------------------------------------------------------------- Page titles, breadcrumb, content */
.noaf .storefront-breadcrumb { margin: 0 0 clamp(20px, 3vw, 36px); padding: clamp(20px, 3vw, 32px) 0 0; background: none; }
.noaf .woocommerce-breadcrumb { padding: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.noaf .woocommerce-breadcrumb a { color: var(--c-muted); text-decoration: none; }

.noaf :is(.page-title, .entry-title, .woocommerce-products-header__title) { margin: 0 0 .35em; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: .95; letter-spacing: .01em; color: var(--c-text); }
.noaf .product_title { font-size: clamp(2.2rem, 5vw, 4rem); line-height: .95; }
.noaf .term-description, .noaf .woocommerce-result-count { color: var(--c-muted); }
.noaf .hentry .entry-header { border: 0; }
.noaf .entry-content :is(h2, h3) { margin: 1.4em 0 .5em; }
.noaf .entry-content h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.noaf .entry-content h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.noaf .hentry .entry-content a:not(.button) { color: var(--c-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.noaf :is(.related, .upsells, .cross-sells) > h2 { margin-bottom: .8em; font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* Sidebar widgets */
.noaf .widget :is(.widget-title, .widgettitle) { padding: 0 0 .6em; border-color: var(--line); font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; text-transform: uppercase; color: var(--c-text); }
.noaf .widget a { color: var(--c-body); }
.noaf .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--c-surface-2); }

/* ---------------------------------------------------------------- Buttons
   #page and :not(#noaf) keep these above Storefront's customizer CSS, including its :hover rules */
#page :is(.button, .added_to_cart, input[type="submit"], button[type="submit"], .wp-element-button, .wp-block-button__link, .wc-block-components-button:not(.is-link)):not(#noaf),
#page :is(.button, .added_to_cart, input[type="submit"], button[type="submit"], .wp-element-button, .wp-block-button__link, .wc-block-components-button:not(.is-link)):not(#noaf):is(:hover, :focus, :active) {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 0; padding: .95em 1.6em; border: 0; border-radius: 999px;
  background: var(--c-surface-2); color: var(--c-text);
  font-weight: 800; font-size: .82rem; letter-spacing: .06em; line-height: 1.1; text-transform: uppercase; text-decoration: none; text-shadow: none;
  box-shadow: none; opacity: 1; transition: none;
}
#page :is(.button.alt, .single_add_to_cart_button, .checkout-button, #place_order, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):not(#noaf),
#page :is(.button.alt, .single_add_to_cart_button, .checkout-button, #place_order, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):not(#noaf):is(:hover, :focus, :active) {
  background: var(--c-primary); color: var(--c-on-primary);
  box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--c-primary) calc(var(--glow) * 100%), transparent);
}
#page :is(.checkout-button, #place_order, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):not(#noaf) { padding: 1.15em 2em; font-size: .95rem; }
#page :is(.button, .wc-block-components-button):is(:disabled, .disabled):not(#noaf) { opacity: .45; }
#page .single_add_to_cart_button:not(#noaf) { padding: 1.05em 1.9em; font-size: .9rem; }

/* ---------------------------------------------------------------- Form fields */
/* Fields inside the cart/checkout blocks keep their own floating-label layout */
.noaf :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], textarea, select, .input-text):not(.wc-block-components-text-input *, .wc-block-components-combobox *, .wc-blocks-components-select__select, .wc-block-components-textarea, .wc-block-components-quantity-selector__input),
.noaf :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], textarea, select, .input-text):not(.wc-block-components-text-input *, .wc-block-components-combobox *, .wc-blocks-components-select__select, .wc-block-components-textarea, .wc-block-components-quantity-selector__input):focus {
  padding: .85em 1.05em; border: 0; border-radius: 12px; background-color: var(--c-surface-2); color: var(--c-text); box-shadow: none; font-size: 1rem;
}
#page :is(input, textarea, select, .input-text):focus { background-color: var(--c-field-focus); }
.noaf select:not(.wc-blocks-components-select__select) { -webkit-appearance: none; appearance: none; padding-right: 3em; background-image: linear-gradient(45deg, transparent 50%, var(--c-primary) 50%), linear-gradient(135deg, var(--c-primary) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.noaf ::placeholder { color: var(--c-muted); opacity: 1; }
.noaf .form-row > label:not(.checkbox, .woocommerce-form__label-for-checkbox),
.noaf .woocommerce-form-row > label:not(.checkbox, .woocommerce-form__label-for-checkbox) { font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.noaf .required { color: var(--c-primary); text-decoration: none; }
/* Required fields whose label has no star get one: rows WooCommerce marks as required, and fields given
   the class "noaf-required" (on the field's row or on the input itself, e.g. in a checkout field plugin) */
.noaf :is(.validate-required, .noaf-required, .form-row:has(.noaf-required)) > label:not(:has(.required))::after { content: '\00a0*'; color: var(--c-primary); font-weight: 700; }
.noaf input[type="checkbox"], .noaf input[type="radio"] { accent-color: var(--c-primary); }
.noaf .quantity .qty { width: 5em; text-align: center; }
.noaf fieldset { padding: clamp(16px, 3vw, 28px); border: 0; border-radius: var(--radius); background: var(--c-surface); }
.noaf fieldset legend { padding: 0; background: none; font-weight: 800; color: var(--c-text); }

/* select2 (country/state fields of the classic checkout; its dropdown sits directly in <body>) */
.noaf .select2-container--default .select2-selection--single { height: auto; padding: .7em .6em; border: 0; border-radius: 12px; background: var(--c-surface-2); }
.noaf .select2-container--default:is(.select2-container--focus, .select2-container--open) .select2-selection--single { background: var(--c-field-focus); }
.noaf .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--c-text); line-height: 1.5; }
.noaf .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; height: 26px; transform: translateY(-50%); }
.noaf .select2-container--default .select2-selection--single .select2-selection__arrow b { border-top-color: var(--c-primary); }
.noaf .select2-dropdown { border: 0; border-radius: 12px; background: var(--c-surface-2); color: var(--c-text); box-shadow: var(--shadow); overflow: hidden; }
.noaf .select2-search--dropdown .select2-search__field { border: 0; border-radius: 8px; background: var(--c-surface); color: var(--c-text); }
.noaf .select2-container--default .select2-results__option[aria-selected="true"],
.noaf .select2-container--default .select2-results__option[data-selected="true"] { background: var(--c-surface); color: var(--c-text); }
.noaf .select2-container--default .select2-results__option--highlighted[aria-selected],
.noaf .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--c-primary); color: var(--c-on-primary); }

/* ---------------------------------------------------------------- Product grid */
.noaf ul.products li.product { box-sizing: border-box; padding: 12px 12px 22px; border-radius: var(--radius); background: var(--c-surface); text-align: left; }
.noaf ul.products li.product img { margin: 0 0 1em; border-radius: calc(var(--radius) * .7); }
.noaf ul.products li.product .woocommerce-loop-product__title { padding: 0 6px; margin-bottom: .4em; font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; color: var(--c-text); }
.noaf ul.products li.product :is(.price, .star-rating) { padding: 0 6px; }
.noaf ul.products li.product .star-rating { margin-inline: 6px; }
.noaf ul.products li.product .button { margin: .6em 6px 0; }
.noaf .price { color: var(--c-primary); font-weight: 800; }
.noaf .price del { color: var(--c-muted); font-weight: 400; opacity: .8; }
.noaf .price ins { background: none; font-weight: 800; text-decoration: none; }
.noaf .onsale { padding: .4em .9em; border: 0; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.noaf .star-rating span::before, .noaf .stars a { color: var(--c-primary); }
.noaf .woocommerce-ordering select { min-width: 220px; }

.noaf .woocommerce-pagination .page-numbers { border: 0; }
.noaf .woocommerce-pagination .page-numbers li { border: 0; }
.noaf .woocommerce-pagination .page-numbers li .page-numbers { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 44px; height: 44px; margin: 0 3px; padding: 0 .9em; border-radius: 999px; background: var(--c-surface); color: var(--c-text); font-weight: 700; }
.noaf .woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--c-primary); color: var(--c-on-primary); }

/* ---------------------------------------------------------------- Single product */
.noaf .woocommerce-product-gallery img { border-radius: var(--radius); }
.noaf .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 10px; }
.noaf div.product .woocommerce-product-details__short-description { color: var(--c-body); }
.noaf div.product .product_meta { border-color: var(--line); color: var(--c-muted); font-size: .9rem; }
.noaf div.product .product_meta a { color: var(--c-text); }
.noaf .woocommerce-tabs ul.tabs, .noaf .woocommerce-tabs ul.tabs li { border-color: var(--line); }
.noaf .woocommerce-tabs ul.tabs li a { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.noaf .woocommerce-tabs ul.tabs li.active a { color: var(--c-primary); }
.noaf .woocommerce-tabs ul.tabs li.active::after { display: none; }
.noaf table.variations :is(th, td) { background: none; }
.noaf .variations label { font-weight: 800; color: var(--c-text); }
.noaf .reset_variations { color: var(--c-muted); }
.noaf .storefront-sticky-add-to-cart { border: 0; background: var(--c-surface); color: var(--c-body); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- Tables, cart, checkout (classic) */
.noaf table:not(.variations) th { background-color: var(--c-surface-2); color: var(--c-text); }
.noaf table:not(.variations) tbody td { background-color: var(--c-surface); }
.noaf table:not(.variations) tbody tr:nth-child(2n) td { background-color: color-mix(in srgb, var(--c-surface) 55%, var(--c-surface-2)); }
.noaf table:not(.variations) tfoot td { background-color: var(--c-surface-2); color: var(--c-text); }
/* Germanized paints the checkout table with its "table colour" (#eee by default) */
.noaf table.shop_table { border-radius: var(--radius); overflow: hidden; background-color: transparent; }
/* Germanized moves "Deine Bestellung" into #order_review; Storefront's column width/float for that heading would squeeze it */
#page #order_review #order_review_heading { float: none; width: auto; clear: both; margin: 1.2em 0 .6em; padding: 0; }
#page #order_payment_heading { margin: 0 0 .6em; }
.noaf .wc-gzd-order-submit .place-order { padding: 0; background: none; }
.noaf table.cart td.product-remove a.remove { color: var(--c-muted) !important; }
.noaf .cart-collaterals .cart_totals, .noaf .woocommerce-checkout-review-order { color: var(--c-body); }
.noaf #payment .payment_methods > li:not(.woocommerce-notice) { background-color: var(--c-surface); }
.noaf #payment .payment_methods > li:not(.woocommerce-notice):nth-child(2n) { background-color: color-mix(in srgb, var(--c-surface) 55%, var(--c-surface-2)); }
.noaf #payment .payment_methods li .payment_box { background-color: var(--c-surface-2); color: var(--c-body); }
.noaf #payment .payment_methods li .payment_box fieldset { background: none; }
.noaf #payment .place-order { background-color: var(--c-surface); }
.noaf .woocommerce-terms-and-conditions { background: var(--c-surface); }

/* My account */
.noaf .woocommerce-MyAccount-navigation ul, .noaf .woocommerce-MyAccount-navigation ul li { border-color: var(--line); }
.noaf .woocommerce-MyAccount-navigation ul li a { color: var(--c-body); font-weight: 700; }
.noaf .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--c-primary); }

/* ---------------------------------------------------------------- Notices */
.noaf :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments) {
  border: 0; border-radius: 14px; background-color: var(--c-surface-2); color: var(--c-text);
}
.noaf :is(.woocommerce-message, .woocommerce-info, .woocommerce-noreviews, p.no-comments)::before { color: var(--c-primary); }
.noaf .woocommerce-error::before { color: var(--c-error); }
.noaf :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) { color: var(--c-primary); }
.noaf .wc-block-components-notice-banner { border: 0; border-radius: 14px; background: var(--c-surface-2); color: var(--c-text); }
.noaf .wc-block-components-notice-banner.is-success > svg { background: var(--c-primary); fill: var(--c-on-primary); }
.noaf .wc-block-components-notice-banner.is-info > svg { background: var(--c-muted); fill: var(--c-bg); }
.noaf .wc-block-components-notice-banner.is-error > svg { background: var(--c-error); fill: var(--c-bg); }
.noaf .wc-block-components-notice-banner a { color: var(--c-primary); }

/* ---------------------------------------------------------------- Cart & checkout blocks
   #page keeps these above the block stylesheets, which may load after this file */
#page :is(.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input) {
  border: 0; border-radius: 12px; background-color: var(--c-surface-2); color: var(--c-text); box-shadow: none;
}
#page :is(.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input):focus { background-color: var(--c-field-focus); box-shadow: none; }
#page :is(.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox .wc-block-components-combobox-control label) { color: var(--c-muted); }
#page .wc-blocks-components-select__container { border: 0; background: none; }
#page .wc-blocks-components-select__expand { fill: var(--c-primary); }
#page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border: 1px solid rgb(255 255 255 / .3); background: var(--c-surface-2); }
#page .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--c-primary); }
#page .wc-block-components-radio-control .wc-block-components-radio-control__input { border: 1px solid rgb(255 255 255 / .3); background: var(--c-surface-2); }
#page .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--c-primary); }
#page :is(.wc-block-components-totals-wrapper, .wc-block-components-panel, .wc-block-cart-items, .wc-block-cart-items td, .wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option, .wc-block-components-address-card, .wc-block-components-order-summary-item, .wc-block-checkout__actions, .wc-block-components-checkout-order-summary__title) { border-color: var(--line); }
#page .wc-block-components-radio-control--highlight-checked::after { border-color: var(--line); }
#page :is(.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted, .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted) { box-shadow: inset 0 0 0 2px var(--c-primary); }
#page .wc-block-components-quantity-selector { border-radius: 999px; background: var(--c-surface-2); }
#page .wc-block-components-quantity-selector::after { border-color: var(--line); border-radius: 999px; }
#page .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { background: none; color: var(--c-text); }
#page .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { background: none; color: var(--c-text); }
#page :is(.wc-block-components-product-name, .wc-block-components-product-name:hover) { color: var(--c-text); font-weight: 700; text-decoration: none; }
#page .wc-block-cart-item__remove-link { color: var(--c-muted); }
#page :is(.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-cart__totals-title) { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .01em; text-transform: uppercase; color: var(--c-text); }
#page .wc-block-components-checkout-step__description, #page .wc-block-components-product-metadata { color: var(--c-muted); }
#page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--c-primary); }
#page .wc-block-components-sale-badge { border: 0; border-radius: 999px; background: var(--c-primary); color: var(--c-on-primary); }
#page .wc-block-components-validation-error, #page .wc-block-components-validation-error p { color: var(--c-error); }
#page .has-error :is(input, select) { box-shadow: inset 0 0 0 2px var(--c-error); }
#page .wc-block-components-sidebar-layout .wc-block-components-main { color: var(--c-body); }
#page .wc-block-checkout__sidebar .wc-block-components-panel, #page .wp-block-woocommerce-checkout-order-summary-block { border-radius: var(--radius); background: var(--c-surface); }
