/*
Theme Name: Wortschatz Kadence Child
Theme URI: https://wortschatz.eu
Description: Custom Kadence Child Theme fuer das Antiquariat Wortschatz - WooCommerce Buchshop mit 90.000+ Titeln
Author: Wortschatz Development
Author URI: https://wortschatz.eu
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wortschatz-kadence-child
*/

/* ===== CSS VARIABLES ===== */
:root {
    /* Wortschatz Design System */
    --brown: #892503;
    --brown-hover: #a52e06;
    --brown-dark: #5e1a02;
    --brown-deep: #3d1001;
    --accent: #892503;
    --accent-hover: #a52e06;
    --gold: #daa520;
    --gold-soft: #e8b84b;
    --gold-pale: #fdf6e3;
    --cream: #fdfcf9;
    --cream-warm: #f9f6f0;
    --sand: #f0ebe0;
    --beige: #e3dcd2;
    --text: #1a1a1a;
    --text-body: #374a54;
    --text-soft: #5a6a72;
    --text-muted: #8a9aa2;
    --white: #ffffff;
    --off-white: #fafaf8;
    --border: #e3dcd2;
    --border-light: #efe9e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(137, 37, 3, 0.1);
    --r: 8px;
    --r-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Kadence Palette Override */
    --global-palette1: #892503 !important;
    --global-palette2: #a52e06 !important;
    --global-palette3: #1a1a1a !important;
    --global-palette4: #374a54 !important;
    --global-palette5: #5a6a72 !important;
    --global-palette6: #8a9aa2 !important;
    --global-palette7: #f0ebe0 !important;
    --global-palette8: #fdfcf9 !important;
    --global-palette9: #ffffff !important;
    --global-palette-highlight: #892503 !important;
    --global-palette-highlight-alt: #a52e06 !important;
    --global-palette-btn-bg: #892503 !important;
    --global-palette-btn-bg-hover: #a52e06 !important;
    --global-body-font-family: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    --global-heading-font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* ===== FONT FACES ===== */
@font-face {
    font-family: "Alegreya Sans";
    src: url("fonts/alegreya-sans-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alegreya Sans";
    src: url("fonts/alegreya-sans-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Alegreya Sans";
    src: url("fonts/alegreya-sans-800.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("fonts/cormorant-garamond-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ===== GLOBAL / KADENCE OVERRIDES ===== */
html {
    scroll-behavior: smooth;
}

body,
body.flavor-developer-developer {
    font-family: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--text-body);
    background: var(--cream);
    line-height: 1.65;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.woocommerce div.product .product_title,
.kadence-breadcrumbs {
    font-family: 'Cormorant Garamond', serif !important;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brown);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brown-hover);
}

.site-container .site-inner-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== KADENCE OVERRIDES ===== */
.site-header {
    display: none !important;
}
.site-footer {
    display: none !important;
}
body {
    font-family: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--text-body) !important;
    background: var(--cream) !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}
a {
    color: var(--brown);
}
/* Kadence Content-Wrapper Resets */
#primary.content-area,
.content-area,
body .content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
.entry-content-wrap,
body .entry-content-wrap,
.single-entry .entry-content-wrap {
    padding: 0 !important;
    max-width: 100% !important;
}
/* Override Kadence content width für Seiten (nicht Shop) */
body.page:not(.woocommerce-shop):not(.woocommerce-page) {
    --global-content-width: 100% !important;
}
body.page:not(.woocommerce-shop):not(.woocommerce-page) .content-container.site-container,
body.page:not(.woocommerce-shop):not(.woocommerce-page) .site-container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}
body.page:not(.woocommerce-shop):not(.woocommerce-page) .content-wrap {
    max-width: 100% !important;
    width: 100% !important;
}
body.page:not(.woocommerce-shop):not(.woocommerce-page) article.entry,
body.page:not(.woocommerce-shop):not(.woocommerce-page) .entry.single-entry {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}
body.page:not(.woocommerce-shop):not(.woocommerce-page) .entry-content.single-content {
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
}
/* Auch auf Single Products */
body.single-product .content-container.site-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.site {
    background: var(--cream) !important;
}
.content-bg,
body.content-style-unboxed .site,
body.content-style-boxed .site {
    background: transparent !important;
}
/* Container für Seiteninhalt = max 1240px wie im Template */
.legal-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
}
/* Kadence Entry Hero komplett ausblenden */
.entry-hero,
.entry-hero.page-hero-section {
    display: none !important;
}
/* Kadence Seiten-Titel ausblenden */
.entry-header,
.page .entry-header {
    display: none !important;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announce {
    background: var(--gold);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.announce a {
    color: #fff;
    text-decoration: underline;
}

.announce a:hover {
    color: var(--cream);
}

/* ===== TOP BAR ===== */
.topbar {
    background: var(--brown-deep);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 9px 0;
}

.topbar .ws-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.topbar a {
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar a:hover {
    color: #fff;
}

.topbar-l,
.topbar-r {
    display: flex;
    gap: 20px;
    align-items: center;
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===== CUSTOM HEADER ===== */
.ws-header {
    background: var(--beige);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.ws-header.scrolled {
    box-shadow: var(--shadow-md);
}

.ws-header .ws-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.ws-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ws-logo img {
    height: 60px;
    width: auto;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brown), var(--brown-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(137, 37, 3, 0.25);
}

.logo-type {
    line-height: 1.2;
}

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--brown-deep);
    letter-spacing: 0.3px;
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Navigation */
.ws-nav {
    display: flex;
    gap: 2px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ws-nav li {
    list-style: none !important;
    display: inline-flex;
}

.ws-nav a,
.ws-nav li a {
    font-size: 17px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-body) !important;
    padding: 12px 22px !important;
    border-radius: var(--r);
    position: relative;
    text-decoration: none !important;
    font-family: 'Alegreya Sans', sans-serif !important;
}

.ws-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--brown);
    border-radius: 1px;
    transform: scaleX(0);
    transition: var(--transition);
}

.ws-nav a:hover,
.ws-nav li a:hover {
    color: var(--brown) !important;
}

.ws-nav a:hover::after,
.ws-nav a.active::after,
.ws-nav li a:hover::after,
.ws-nav li.current-menu-item a::after {
    transform: scaleX(1);
}

.ws-nav a.active,
.ws-nav li.current-menu-item a {
    color: var(--brown) !important;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrap {
    position: relative;
}

.search-input,
input.search-input,
input#wsSearchInput {
    width: 220px !important;
    padding: 10px 16px 10px 40px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 40px !important;
    font-family: 'Alegreya Sans', sans-serif !important;
    font-size: 14px !important;
    color: var(--text) !important;
    background: var(--cream) !important;
    outline: none !important;
    transition: var(--transition);
    -webkit-appearance: none !important;
    appearance: none !important;
}

.search-input::placeholder,
input#wsSearchInput::placeholder {
    color: var(--text-muted) !important;
}

.search-input:focus,
input#wsSearchInput:focus {
    border-color: var(--brown) !important;
    box-shadow: 0 0 0 3px rgba(137, 37, 3, 0.08) !important;
    width: 280px !important;
    background: var(--white) !important;
    border-radius: 40px !important;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 340px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.search-dropdown.open {
    display: block;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-body);
}

.search-result:hover {
    background: var(--cream-warm);
}

.search-result-img {
    width: 40px;
    height: 52px;
    background: var(--sand);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.search-result-author {
    font-size: 12px;
    color: var(--text-muted);
}

.search-result-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--brown);
    flex-shrink: 0;
}

.search-hint {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.search-hint a {
    color: var(--brown);
    font-weight: 600;
}

.search-loading {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== BUTTONS ===== */
.btn,
.ws-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--r);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary,
.ws-btn-primary {
    background: var(--brown);
    color: var(--white);
    padding: 10px 22px;
    font-size: 14px;
}

.btn-primary:hover,
.ws-btn-primary:hover {
    background: var(--brown-hover);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-outline,
.ws-btn-outline {
    background: transparent;
    color: var(--brown);
    border: 1.5px solid var(--brown);
    padding: 9px 20px;
    font-size: 14px;
}

.btn-outline:hover,
.ws-btn-outline:hover {
    background: var(--brown);
    color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
    border-radius: var(--r);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.cart-btn {
    border-radius: 40px;
}

.cart-count {
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(160deg, var(--brown-deep) 0%, var(--brown) 40%, var(--brown-hover) 100%);
    color: var(--white);
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -60px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: -150px;
    bottom: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.hero-content {
    max-width: 520px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 52px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-soft);
}

.hero-sub {
    font-size: 19px;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
}

.hero .btn-primary {
    background: #fff;
    color: var(--brown);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 40px;
}

.hero .btn-primary:hover {
    background: var(--cream);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    color: var(--brown);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    padding: 13px 30px;
    font-size: 16px;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat-n {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
}

.hero-stat-l {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-top: 2px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 440px;
    border-radius: var(--r-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* ===== TRUST BAR ===== */
.trust {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 28px 0;
    overflow: hidden;
}

.trust .ws-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-item i {
    transition: all 0.4s ease;
    font-size: 20px;
}

.trust-item:hover i {
    transform: scale(1.3);
    color: var(--gold);
}

.trust-item:hover {
    color: var(--brown);
}

/* ===== KATEGORIEN SECTION ===== */
.categories {
    padding: 80px 0;
    background: var(--white);
}

.categories .ws-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.sec-header {
    text-align: center;
    margin-bottom: 48px;
}

.sec-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 40px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.sec-sub {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 500px;
    margin: 0 auto;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.cat-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    color: var(--text);
}

.cat-card:hover .cat-name {
    color: var(--brown);
}

.cat-emoji {
    font-size: 28px;
    margin-bottom: 10px;
}

.cat-emoji i {
    font-size: 34px;
    color: var(--gold) !important;
}

.cat-card:hover .cat-emoji i {
    transform: scale(1.2) rotate(-8deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
    transition: var(--transition);
}

.cat-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== SHOP / WOOCOMMERCE LAYOUT ===== */
.woocommerce .columns-3 ul.products,
.woocommerce-page .columns-3 ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Shop Section */
.shop-section {
    padding: 60px 0;
    background: var(--cream);
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

/* Sidebar (Kadence) */
.primary-sidebar.widget-area,
.sidebar,
.woocommerce-sidebar {
    background: var(--white) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--r-lg) !important;
    padding: 28px !important;
    position: sticky !important;
    top: 110px !important;
    align-self: start;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 60px !important;
}

.primary-sidebar .widget-title,
.sidebar-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brown) !important;
    margin-bottom: 14px !important;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sand);
}

.primary-sidebar .widget,
.widget-area .widget {
    margin-bottom: 28px !important;
}

/* WOOF Filter in Sidebar styling */
.primary-sidebar .woof_container {
    margin-bottom: 16px;
}
.primary-sidebar .woof_container_inner label,
.primary-sidebar .woof label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-body);
    transition: var(--transition);
}
.primary-sidebar .woof label:hover {
    color: var(--brown);
}
.primary-sidebar .woof input[type="checkbox"] {
    accent-color: var(--brown);
    width: 16px;
    height: 16px;
}
.primary-sidebar .woof select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 14px;
    background: var(--cream);
}
.primary-sidebar .woof select:focus {
    border-color: var(--brown);
    outline: none;
    background: var(--white);
}
.primary-sidebar .woof .woof_submit_search_form_container .button,
.primary-sidebar .woof_redraw_zone .button {
    background: var(--brown) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 10px 22px !important;
    border-radius: var(--r) !important;
    font-family: 'Alegreya Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.primary-sidebar .woof .button:hover {
    background: var(--brown-hover) !important;
}
/* Price filter slider in sidebar */
.primary-sidebar .woof_price_search_container .ui-slider {
    background: var(--sand) !important;
    border: none !important;
}
.primary-sidebar .woof_price_search_container .ui-slider-handle {
    background: var(--brown) !important;
    border: 2px solid var(--white) !important;
    border-radius: 50% !important;
}
.primary-sidebar .woof_price_search_container .ui-slider-range {
    background: var(--brown) !important;
}

/* Kadence shop grid neben Sidebar */
.has-left-sidebar .content-container.site-container {
    max-width: 1290px !important;
}
.has-left-sidebar #primary {
    padding: 0 !important;
}
.has-left-sidebar .woocommerce-products-header {
    margin-bottom: 20px;
}
/* WOOF auto-form oben auf Shop-Seite ausblenden wenn Sidebar aktiv */
.has-left-sidebar .woof_show_auto_form,
.woocommerce-shop .woof_show_auto_form,
.woocommerce-shop .woof_auto_show,
.tax-product_cat .woof_show_auto_form,
.tax-product_cat .woof_auto_show {
    display: none !important;
}
/* Shop Page Hero */
.woocommerce-shop .page-hero,
.tax-product_cat .page-hero {
    display: none;
}
/* Abstand vor Footer auf Shop/Kategorie-Seiten */
.woocommerce-shop #primary,
.tax-product_cat #primary {
    padding-bottom: 60px !important;
}
.woocommerce-shop .site-main,
.tax-product_cat .site-main {
    margin-bottom: 40px !important;
}
/* Shop Sidebar auf Archiv-Seiten wie auf Startseite stylen */
.has-left-sidebar .primary-sidebar .sidebar-title {
    font-size: 18px !important;
    font-weight: 800 !important;
}
.has-left-sidebar .primary-sidebar .filter-label {
    text-decoration: none;
}
.has-left-sidebar .primary-sidebar .woof_price_search_container {
    margin-top: 10px;
}

/* Page Divider */
.page-divider { text-align: center; padding: 72px 0 24px; position: relative; }
.page-divider span { background: var(--cream); padding: 0 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 4px; color: var(--text-muted); position: relative; z-index: 1; }
.page-divider::before { content: ''; position: absolute; left: 50%; top: 82px; transform: translateX(-50%); width: 200px; height: 1px; background: var(--border); }

/* Sidebar Title */
.sidebar-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    margin-bottom: 24px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Filter Group */
.filter-group { margin-bottom: 28px; }

/* Filter Labels */
.filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-body);
}
.filter-label:hover { color: var(--brown); }
.filter-label input[type="checkbox"] { accent-color: var(--brown); width: 16px; height: 16px; cursor: pointer; }

/* Filter Badge */
.filter-badge {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--cream-warm);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Price Inputs */
.price-inputs { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.price-inputs input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 14px;
    text-align: center;
    background: var(--cream);
    transition: var(--transition);
}
.price-inputs input:focus { border-color: var(--brown); outline: none; background: var(--white); }
.price-inputs span { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }

/* Results Info */
.results-info { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Sort Wrap */
.sort-wrap select {
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 13px;
    background: var(--white);
    color: var(--text-body);
    cursor: pointer;
}

/* Button Full Width */
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
    background: transparent;
    color: var(--brown);
    border: 1.5px solid var(--brown);
    padding: 9px 20px;
    font-size: 14px;
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 600;
    border-radius: var(--r);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}
.btn-outline:hover { background: var(--brown); color: var(--white); }

.widget-area .widget-title,
.filter-group h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brown);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sand);
    font-family: 'Alegreya Sans', sans-serif !important;
}

.widget-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area .widget ul li {
    padding: 7px 0;
}

.widget-area .widget ul li a {
    font-size: 15px;
    color: var(--text-body);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-area .widget ul li a:hover {
    color: var(--brown);
}

.widget-area .widget ul li .count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--cream-warm);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Products Top Bar */
.products-top,
.woocommerce-result-count-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.woocommerce .woocommerce-result-count {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.woocommerce .woocommerce-ordering select {
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 13px;
    background: var(--white);
    color: var(--text-body);
    cursor: pointer;
}

/* ===== PRODUCT CARDS ===== */
.p-card,
.woocommerce ul.products li.product .ws-product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-body);
    display: block;
}

.p-card:hover,
.ws-product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--gold);
    color: var(--text-body);
}

.p-img {
    aspect-ratio: 3/4;
    background: var(--cream-warm, #f9f6f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.p-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: var(--white);
}

/* WooCommerce default product list reset */
.woocommerce ul.products li.product .p-card,
ul.products li.product .p-card {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    border: none !important;
}
ul.products li.product .p-card .p-img {
    margin: 0 !important;
}
ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
    list-style: none !important;
}
.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    list-style: none !important;
}
@media (max-width: 768px) {
    .woocommerce ul.products, ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .woocommerce ul.products, ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* WooCommerce placeholder image override */
.woocommerce ul.products li.product a img.wp-post-image,
.woocommerce ul.products li.product a img.woocommerce-placeholder {
    display: none;
}
.p-card .p-img img {
    display: block !important;
}

/* Hide default WooCommerce elements inside our cards */
ul.products li.product .price,
ul.products li.product .star-rating,
ul.products li.product .button,
ul.products li.product h2.woocommerce-loop-product__title {
    display: none !important;
}

.p-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.p-badge-good {
    background: rgba(46, 125, 50, 0.9);
    color: #fff;
}

.p-badge-new {
    background: rgba(137, 37, 3, 0.9);
    color: #fff;
}

.p-body {
    padding: 18px;
}

.p-author {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 10px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.p-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.p-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.p-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--brown);
}

.p-price small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 1px;
}

.p-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-cart:hover {
    background: var(--gold-soft);
    transform: scale(1.1);
}

/* Book Placeholder (no image) */
.book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--cream-warm), var(--sand));
    color: var(--text-muted);
}

.book-placeholder i {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.3;
}

.book-placeholder span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
}

/* ===== PRODUCT DETAIL ===== */
.detail-section,
.woocommerce div.product {
    padding: 48px 0;
    background: var(--cream);
}
/* Fix WooCommerce Gallery opacity bug */
.woocommerce-product-gallery {
    opacity: 1 !important;
}
.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--r);
}
/* Add to cart button on single product */
.detail-body .cart .single_add_to_cart_button,
.detail-body form.cart .button {
    background: var(--brown) !important;
    color: var(--white) !important;
    padding: 16px 40px !important;
    font-size: 17px !important;
    font-family: 'Alegreya Sans', sans-serif !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: var(--r) !important;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px !important;
    transition: var(--transition);
}
.detail-body .cart .single_add_to_cart_button:hover {
    background: var(--brown-hover) !important;
    box-shadow: var(--shadow-md);
}
/* Hide quantity input on single product (single book) */
.detail-body form.cart .quantity {
    display: none !important;
}
/* WooCommerce price styling in detail */
.detail-body .price,
.detail-body .woocommerce-Price-amount {
    font-size: 40px !important;
    font-weight: 900 !important;
    color: var(--brown) !important;
    line-height: 1;
}
.detail-body .woocommerce-Price-currencySymbol {
    font-size: 28px;
}
/* Kadence product page overrides */
.woocommerce div.product div.summary,
.summary.entry-summary {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}
.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}
/* Hide Kadence product hero on single product */
.entry-hero.product-hero-section {
    display: none !important;
}

.woocommerce div.product .woocommerce-breadcrumb,
.breadcrumb {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.woocommerce div.product .woocommerce-breadcrumb a,
.breadcrumb a {
    color: var(--text-muted);
}

.woocommerce div.product .woocommerce-breadcrumb a:hover,
.breadcrumb a:hover {
    color: var(--brown);
}

.detail-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 52px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 44px;
    box-shadow: var(--shadow-sm);
}

.detail-img {
    background: linear-gradient(145deg, var(--cream-warm), var(--sand));
    border-radius: var(--r);
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    overflow: hidden;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-body h1 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 34px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 10px;
}

.detail-author {
    font-size: 18px;
    color: var(--text-soft);
    margin-bottom: 28px;
}

.detail-author strong {
    color: var(--brown);
    font-weight: 600;
}

.price-card {
    background: linear-gradient(135deg, var(--cream), var(--cream-warm));
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px;
    margin-bottom: 24px;
}

.price-main {
    font-size: 40px;
    font-weight: 900;
    color: var(--brown);
    line-height: 1;
}

.price-tax {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

.price-tax a {
    color: var(--brown);
    text-decoration: underline;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 600;
}

.stock-info i {
    font-size: 16px;
}

.btn-add-cart {
    margin-bottom: 14px;
}

.btn-wishlist {
    width: 100%;
    justify-content: center;
    margin-bottom: 32px;
}

/* Attributes Table */
.attrs {
    border-top: 1px solid var(--border-light);
    padding-top: 28px;
}

.attrs h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brown);
    margin-bottom: 18px;
    font-family: 'Alegreya Sans', sans-serif !important;
}

.attr-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.attr-item {
    display: flex;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
}

.attr-item:nth-child(odd) {
    background: var(--cream);
}

.attr-item:nth-child(even) {
    background: var(--white);
}

.attr-k {
    font-weight: 600;
    color: var(--brown);
}

.attr-v {
    color: var(--text-body);
    text-align: right;
}

.condition-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.attr-full {
    grid-column: 1 / -1;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--r);
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.7;
}

.attr-full strong {
    color: var(--brown);
}

/* WooCommerce Single Product Overrides */
.woocommerce div.product div.images {
    width: 100%;
}

.woocommerce div.product div.summary {
    width: 100%;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 40px;
    font-weight: 900;
    color: var(--brown) !important;
}

.woocommerce div.product form.cart {
    margin-bottom: 14px;
}

.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--brown) !important;
    color: var(--white) !important;
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 600;
    border-radius: var(--r);
    padding: 16px 40px;
    font-size: 17px;
    border: none;
    transition: var(--transition);
}

.woocommerce div.product form.cart .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--brown-hover) !important;
    color: var(--white) !important;
    box-shadow: var(--shadow-md);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--brown) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: var(--brown-hover) !important;
}

/* WooCommerce Tabs Override */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 24px 0;
    list-style: none;
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: none;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 12px 22px;
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--brown);
    border-bottom: 2px solid var(--brown);
}

/* ===== RELATED / NEW ARRIVALS ===== */
.related-section,
.woocommerce .related.products {
    padding: 64px 0;
    background: var(--white);
}

.related-section .sec-title {
    text-align: left;
    font-size: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.woocommerce .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.new-arrivals {
    padding: 72px 0;
    background: var(--off-white);
}

.new-arrivals .ws-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.new-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 28px;
}

/* ===== FOOTER ===== */
.site-footer {
    display: none !important;
}

/* ===== LEGAL PAGES (Datenschutz, AGB, Impressum etc.) ===== */
.legal-content,
.entry-content .legal-content,
.page .entry-content {
    max-width: 900px;
    margin: 48px auto;
    background: var(--white);
    padding: 48px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.legal-content h2,
.page .entry-content h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 24px !important;
    color: var(--brown) !important;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sand);
    font-weight: 600;
}
.legal-content h2:first-child,
.page .entry-content h2:first-child {
    margin-top: 0;
}
.legal-content h3,
.page .entry-content h3 {
    font-size: 20px;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 8px;
}
.legal-content p,
.page .entry-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}
.legal-content a,
.page .entry-content a {
    color: var(--brown);
    text-decoration: underline;
}
.legal-content ul,
.page .entry-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}
.legal-content ul li,
.page .entry-content ul li {
    margin-bottom: 8px;
    line-height: 1.8;
}
.info-box {
    background: var(--cream);
    padding: 24px;
    border-radius: var(--r);
    border-left: 4px solid var(--brown);
    margin-bottom: 24px;
}
.info-box p {
    margin-bottom: 6px !important;
}
.info-box p:last-child {
    margin-bottom: 0 !important;
}
@media (max-width: 768px) {
    .legal-content,
    .page .entry-content {
        margin: 24px 16px;
        padding: 28px 20px;
    }
}

/* ===== PAGE HERO (Unterseiten) ===== */
.page-hero {
    background: linear-gradient(160deg, var(--brown-deep) 0%, var(--brown) 50%, var(--brown-hover) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}
.page-hero h1 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 48px !important;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    color: #fff !important;
}
.page-hero .breadcrumb {
    justify-content: center;
    position: relative;
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}
.page-hero .breadcrumb a:hover {
    color: #fff;
}
.page-hero .breadcrumb .sep {
    color: rgba(255, 255, 255, 0.3);
}
.page-hero .breadcrumb .cur {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Kadence Entry Hero ausblenden (wir nutzen unseren eigenen) */
.entry-hero.page-hero-section {
    display: none !important;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 34px !important;
    }
}

/* ===== ABOUT PAGE ===== */
.about-section { padding: 72px 0; background: var(--cream); }
.about-section > div { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; margin-bottom: 72px; }
.about-intro-text h2 { font-family: 'Cormorant Garamond', serif !important; font-size: 36px !important; font-weight: 600; color: var(--text) !important; margin-bottom: 20px; line-height: 1.25; border: none !important; padding: 0 !important; }
.about-intro-text p { margin-bottom: 18px; line-height: 1.8; color: var(--text-body); }
.about-intro-text p strong { color: var(--brown); font-weight: 700; }
.about-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* Schwerpunkte */
.schwerpunkte { background: var(--white); padding: 72px 0; overflow: hidden; }
.schwerpunkte-inner { max-width: 900px; margin: 0 auto; padding: 0 28px; }
.schwerpunkte h2 { font-family: 'Cormorant Garamond', serif !important; font-size: 36px !important; font-weight: 600; color: var(--text) !important; text-align: center; margin-bottom: 12px; border: none !important; padding: 0 !important; }
.schwerpunkte .sec-sub { text-align: center; color: var(--text-soft); font-size: 17px; margin-bottom: 40px; }
.fach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.fach-item { background: var(--cream); border: 1px solid var(--border-light); border-radius: var(--r); padding: 20px; display: flex; align-items: center; gap: 14px; transition: var(--transition); }
.fach-item:hover { border-color: var(--brown); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fach-item i { font-size: 24px; color: var(--brown); flex-shrink: 0; }
.fach-item span { font-size: 15px; font-weight: 600; color: var(--text); }
.about-text-block { max-width: 900px; margin: 0 auto; font-size: 17px; line-height: 1.85; color: var(--text-body); padding: 0 28px; }
.about-text-block p { margin-bottom: 20px; }

/* Motto */
.motto-section { padding: 72px 0; background: var(--cream); overflow: hidden; }
.motto-section > div { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.motto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.motto-text { order: 2; }
.motto-text h2 { font-family: 'Cormorant Garamond', serif !important; font-size: 34px !important; font-weight: 600; color: var(--text) !important; margin-bottom: 16px; font-style: italic; border: none !important; padding: 0 !important; }
.motto-text p { font-size: 17px; line-height: 1.8; color: var(--text-body); margin-bottom: 20px; }
.motto-img { order: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.motto-img img { width: 100%; object-fit: cover; }

/* Nachhaltigkeit */
.nachhaltig { background: var(--brown); color: var(--white); padding: 60px 0; overflow: hidden; }
.nachhaltig-inner { display: flex; align-items: center; gap: 40px; max-width: 900px; margin: 0 auto; padding: 0 28px; }
.nachhaltig i { font-size: 48px; color: var(--gold-soft); flex-shrink: 0; }
.nachhaltig p { font-size: 18px; line-height: 1.8; opacity: 0.9; }
.nachhaltig p strong { color: #fff; }

/* Kontakt-Karte (Über uns) */
.contact-card-section { padding: 72px 0; background: var(--off-white); overflow: hidden; }
.contact-card-section > div { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto; }
.contact-info { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.contact-info h2 { font-family: 'Cormorant Garamond', serif !important; font-size: 30px !important; font-weight: 600; color: var(--text) !important; margin-bottom: 8px; border: none !important; padding: 0 !important; }
.contact-info .owners { font-size: 16px; color: var(--text-soft); margin-bottom: 28px; font-style: italic; }
.contact-map { background: var(--sand); display: flex; align-items: center; justify-content: center; min-height: 300px; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }

@media (max-width: 768px) {
    .about-intro { grid-template-columns: 1fr; }
    .motto-inner { grid-template-columns: 1fr; }
    .motto-text { order: 1; }
    .motto-img { order: 2; }
    .fach-grid { grid-template-columns: 1fr 1fr; }
    .contact-card { grid-template-columns: 1fr; }
    .nachhaltig-inner { flex-direction: column; text-align: center; }
}

/* ===== CONTACT PAGE ===== */
.contact-page {
    padding: 72px 0;
    background: var(--cream);
    max-width: 100% !important;
}
.contact-page > .contact-grid {
    max-width: 1240px;
    margin: 0 auto 60px;
    padding: 0 28px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-details { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 40px; display: flex; flex-direction: column; gap: 0; }
.contact-details h2 { font-family: 'Cormorant Garamond', serif !important; font-size: 30px !important; font-weight: 600; color: var(--text) !important; margin-bottom: 6px; border: none !important; padding: 0 !important; }
.contact-details .owners { font-size: 16px; color: var(--text-soft); margin-bottom: 24px; font-style: italic; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); font-size: 16px; }
.contact-row:last-child { border-bottom: none; }
.contact-row i { font-size: 20px; color: var(--brown); width: 24px; text-align: center; flex-shrink: 0; }
.contact-row a, .contact-row span { color: var(--text-body); }
.contact-row a:hover { color: var(--brown); }
.contact-map-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 400px; }
.contact-map-wrap img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }

/* Contact Form */
.contact-form-section {
    background: var(--white) !important;
    padding: 60px 28px;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
.contact-form-inner {
    max-width: 800px !important;
    margin: 0 auto !important;
}
.contact-page {
    padding: 72px 28px;
    background: var(--cream);
}
.contact-grid {
    max-width: 1240px !important;
    margin: 0 auto 60px !important;
}
.contact-form-inner { max-width: 800px; margin: 0 auto; }
.contact-form-inner h2 { font-family: 'Cormorant Garamond', serif !important; font-size: 30px !important; font-weight: 600; color: var(--text) !important; text-align: center; margin-bottom: 8px; border: none !important; padding: 0 !important; }
.contact-form-inner .form-sub { text-align: center; color: var(--text-soft); font-size: 16px; margin-bottom: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Alegreya Sans', sans-serif !important;
    font-size: 16px !important;
    padding: 12px 16px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--r) !important;
    background: var(--cream) !important;
    color: var(--text) !important;
    outline: none !important;
    transition: var(--transition);
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brown) !important;
    box-shadow: 0 0 0 3px rgba(137, 37, 3, 0.08) !important;
    background: var(--white) !important;
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; grid-column: 1 / -1; margin-top: 8px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brown); flex-shrink: 0; }
.form-check label { font-size: 14px; color: var(--text-body); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-submit { grid-column: 1 / -1; text-align: center; margin-top: 12px; }
.btn-submit {
    background: var(--brown); color: var(--white); padding: 14px 40px; font-size: 16px;
    font-family: 'Alegreya Sans', sans-serif; font-weight: 700; border: none; border-radius: var(--r);
    cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 10px;
}
.btn-submit:hover { background: var(--brown-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.ws-footer {
    background: var(--brown-deep);
    color: rgba(255, 255, 255, 0.75);
    padding: 72px 0 0;
}

.ws-footer .ws-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .logo-name {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 4px;
}

.footer-brand .logo-tagline {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
}

.footer-brand .contact-line {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
}

.footer-brand .contact-line a {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 16px;
    font-weight: 500;
}

.footer-brand .contact-line a:hover {
    color: var(--gold) !important;
}

.footer-brand .contact-line i {
    margin-right: 4px;
    font-size: 15px;
    opacity: 0.7;
}

.payment-methods {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    align-items: center;
}

.payment-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.payment-icon i {
    font-size: 18px;
}

.ws-footer h4 {
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'Alegreya Sans', sans-serif !important;
}

.ws-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ws-footer ul li {
    margin-bottom: 10px;
}

.ws-footer ul a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
}

.ws-footer ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--brown);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.mobile-menu-inner {
    background: var(--white);
    width: 280px;
    height: 100%;
    position: absolute;
    right: 0;
    padding: 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu.open .mobile-menu-inner {
    transform: translateX(0);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
}

.mobile-menu-nav a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-nav a:hover {
    color: var(--brown);
}

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--brown);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 900;
}

.back-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--brown-hover);
    transform: translateY(-3px);
}

/* ===== WooCommerce CART / CHECKOUT OVERRIDES ===== */
.woocommerce table.shop_table {
    border: 1px solid var(--border-light);
    border-radius: var(--r);
}

.woocommerce table.shop_table th {
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    color: var(--brown);
}

.woocommerce .cart-collaterals .cart_totals {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 28px;
}

.woocommerce-checkout #payment {
    background: var(--white);
    border-radius: var(--r-lg);
}

/* WooCommerce Messages */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    border-top-color: var(--brown);
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
    color: var(--brown);
}

.woocommerce .woocommerce-error {
    border-top-color: #c62828;
}

/* WooCommerce Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
    padding: 10px 16px;
    border-radius: var(--r);
    font-family: 'Alegreya Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid var(--border);
    color: var(--text-body);
    background: var(--white);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

/* ===== KADENCE CONTENT AREA OVERRIDES ===== */
.entry-content {
    font-family: 'Alegreya Sans', sans-serif;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Cormorant Garamond', serif !important;
    color: var(--text);
}

.site-main .entry-content > * {
    max-width: 1240px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .woocommerce .columns-3 ul.products,
    .woocommerce-page .columns-3 ul.products,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid,
    .woocommerce .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .topbar-l {
        display: none;
    }

    .ws-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .new-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero {
        padding: 60px 0;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .woocommerce-sidebar {
        position: static;
    }

    .detail-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px;
    }

    .attr-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .sec-title {
        font-size: 30px;
    }

    .ws-header .ws-container {
        height: 70px;
    }

    .ws-logo img {
        height: 44px;
    }

    .search-input {
        width: 160px;
    }

    .search-input:focus {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .woocommerce .columns-3 ul.products,
    .woocommerce-page .columns-3 ul.products,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .related-grid,
    .woocommerce .related.products ul.products {
        grid-template-columns: 1fr 1fr;
    }

    .cat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-input {
        width: 120px;
    }

    .search-input:focus {
        width: 180px;
    }
}
