/*
Theme Name: OK Möbel
Theme URI: https://okmobel.de/
Author: OK Möbel
Description: Elegantes Block-Theme in Dunkelgrün für den WooCommerce-Möbelshop OK Möbel.
Version: 3.0.0
Requires at least: 6.6
Tested up to: 7.1
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: okmoebel
Tags: e-commerce, block-patterns, full-site-editing
*/

a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 2px; }

.ok-wrap { max-width: 1384px; margin-inline: auto; padding-inline: 32px; box-sizing: border-box; }
.ok-title { margin: 0 0 28px; font-size: 38px; font-weight: 400; line-height: 1.15; }
.ok-section { padding-top: 48px; padding-bottom: 48px; }

/* Kopfbereich */
.ok-header { border-bottom: 1px solid var(--wp--preset--color--line); padding: 20px 32px 0; overflow-x: clip; background: var(--wp--preset--color--paper); }
.ok-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; max-width: 1320px; margin-inline: auto; }
.ok-logo { order: 2; flex: 0 0 auto; font-family: var(--wp--preset--font-family--serif); font-size: 36px; line-height: 1.1; color: var(--wp--preset--color--brand); text-decoration: none; }
.ok-logo:hover { color: var(--wp--preset--color--brand); }
.ok-header .wp-block-search { order: 1; flex: 1 1 0; min-width: 170px; margin: 0; }
.ok-header .wp-block-search__input { width: 100%; max-width: 280px; min-height: 44px; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--wp--preset--color--muted); border-radius: 0; background: transparent; color: var(--wp--preset--color--brand); padding: 0 2px; font-size: 15px; }
.ok-header .wp-block-woocommerce-mini-cart, .ok-header .wc-block-mini-cart { order: 3; flex: 1 1 0; display: flex; justify-content: flex-end; }
.ok-header .wp-block-woocommerce-customer-account { order: 4; }
.ok-header .wc-block-mini-cart__button, .ok-header .wp-block-woocommerce-customer-account a { color: var(--wp--preset--color--brand); }
.ok-header .wp-block-navigation { order: 9; flex: 1 1 100%; font-size: 15px; }
.ok-header .wp-block-navigation .wp-block-navigation__container { gap: 0 32px !important; justify-content: center; }
.ok-header .wp-block-navigation a { display: inline-block; padding: 12px 0; color: var(--wp--preset--color--brand); text-decoration: none; }
.ok-header .wp-block-navigation a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .ok-logo { order: 0; font-size: 30px; }
  .ok-header .wp-block-search { order: 5; flex: 1 1 100%; }
  .ok-header .wp-block-search__input { max-width: none; }
}

/* Startseite */
.ok-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 72px; color: var(--wp--preset--color--brand); text-decoration: none; padding-top: 32px; padding-bottom: 32px; }
.ok-hero:hover { color: var(--wp--preset--color--brand); }
.ok-hero-media { flex: 3 1 460px; min-width: 0; background: var(--wp--preset--color--soft); }
.ok-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ok-hero-text { flex: 2 1 340px; min-width: 0; }
.ok-hero-text h1 { margin: 0 0 20px; font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1.05; }
.ok-eyebrow { margin-bottom: 14px; font-size: 14px; color: var(--wp--preset--color--muted); }
.ok-lead { margin-bottom: 28px; font-size: 18px; max-width: 26em; }
.ok-more { display: inline-block; padding: 14px 0; border-bottom: 2px solid currentColor; font-weight: 600; }

.ok-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.ok-cat { display: flex; flex-direction: column; gap: 12px; font-family: var(--wp--preset--font-family--serif); font-size: 22px; line-height: 1.2; color: var(--wp--preset--color--brand); text-decoration: none; }
.ok-cat span { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wp--preset--color--soft); }
.ok-cat img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ok-cat:hover { text-decoration: underline; }

.ok-band { padding: 34px 32px; }
.ok-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; max-width: 1320px; margin-inline: auto; }
.ok-trust p { margin: 0; }

/* Fußbereich */
.ok-footer { border-top: 1px solid var(--wp--preset--color--line); padding: 40px 32px 24px; font-size: 14px; }
.ok-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; max-width: 1320px; margin-inline: auto; }
.ok-footer h3 { margin: 0 0 10px; font-family: inherit; font-size: 15px; font-weight: 700; }
.ok-footer ul { list-style: none; margin: 0; padding: 0; }
.ok-footer li { margin-bottom: 7px; }
.ok-footer .ok-logo { font-size: 26px; }
.ok-footer-note { max-width: 1320px; margin: 28px auto 0; padding-top: 14px; border-top: 1px solid var(--wp--preset--color--line); font-size: 13px; color: var(--wp--preset--color--muted); }

/* WooCommerce */
.woocommerce ul.products li.product, .woocommerce div.product { position: relative; }
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale, .woocommerce div.product span.onsale, .wc-block-components-product-sale-badge { position: absolute !important; top: 10px !important; left: 10px !important; right: auto !important; bottom: auto !important; z-index: 2; width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 4px 10px !important; border: 0 !important; border-radius: 0 !important; background: var(--wp--preset--color--brand) !important; color: #fff !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.35 !important; }
.single-product main { padding-inline: 32px; }
.single-product main .wp-block-columns { gap: 32px 56px !important; }
.single-product main .wp-block-column > * + * { margin-top: 16px; }
.single-product main .wp-block-woocommerce-breadcrumbs { margin: 16px 0; font-size: 13px; }
.single-product main h1.wp-block-post-title { font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: 1.15; }
.single-product main .wp-block-woocommerce-product-price { font-size: 30px; font-weight: 600; }
.single-product main .wp-block-woocommerce-product-meta .wp-block-group { gap: 4px 20px !important; flex-wrap: wrap; font-size: 14px; }
.single-product main .wp-block-woocommerce-product-details { margin-top: 32px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce ul.products li.product img { aspect-ratio: 1 / 1; object-fit: contain; background: var(--wp--preset--color--soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; font-weight: 400; color: var(--wp--preset--color--brand); }
.woocommerce ul.products li.product .price { font-size: 17px; font-weight: 600; color: var(--wp--preset--color--brand); }
.woocommerce a.button, .woocommerce button.button, .wc-block-components-button:not(.is-link), .single_add_to_cart_button { background: var(--wp--preset--color--brand) !important; color: #fff !important; border-radius: 0; font-weight: 600; min-height: 44px; }
