/*
Theme Name: O Chérie
Author: Kubisoft
Description: Ruhiges WooCommerce-Theme für einen internationalen Genuss-Marktplatz.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: lemarche
*/

:root {
  --blue: #002fa7;
  --blue-dark: #001e72;
  --pink: #ff2d9b;
  --pink-dark: #d90073;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --surface: #f5f5f7;
  --white: #fff;
  --line: rgba(29, 29, 31, .12);
  --gradient: linear-gradient(120deg, var(--blue) 0%, #6541d9 48%, var(--pink) 100%);
  --shadow: 0 18px 50px rgba(0, 20, 80, .10);
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.035em; line-height: 1.06; }
.container { width: min(calc(100% - 2 * var(--gutter)), var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 6px; }

.site-header { position: sticky; top: 0; z-index: 100; height: 52px; border-bottom: 1px solid rgba(0, 0, 0, .06); background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.header-inner { height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.wordmark { font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.wordmark-mark { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--gradient); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.3vw, 31px); margin: 0; padding: 0; list-style: none; }
.main-nav li { list-style: none; }
.main-nav a { color: #3b3b3e; font-size: 12px; font-weight: 500; letter-spacing: .005em; transition: color .2s ease; }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-link, .nav-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.icon-link:hover, .nav-toggle:hover { background: var(--surface); }
.icon-link:active, .nav-toggle:active { transform: scale(.94); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; display: inline-grid; place-items: center; border: 2px solid white; border-radius: 20px; background: var(--pink); color: white; font-size: 9px; font-weight: 700; }
.cart-link { position: relative; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; margin: 2.5px 0; background: currentColor; transition: transform .25s ease, opacity .2s ease; }

.hero { position: relative; overflow: hidden; padding: clamp(88px, 12vw, 154px) 0 clamp(76px, 10vw, 128px); text-align: center; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; filter: blur(2px); }
.hero::before { width: 520px; height: 520px; top: -330px; left: -210px; background: radial-gradient(circle, rgba(0, 47, 167, .17), transparent 68%); }
.hero::after { width: 640px; height: 640px; right: -360px; bottom: -380px; background: radial-gradient(circle, rgba(255, 45, 155, .16), transparent 67%); }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { margin-bottom: 19px; color: var(--blue); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 940px; margin: 0 auto; font-size: clamp(52px, 8vw, 108px); font-weight: 720; letter-spacing: -.065em; }
.gradient-text { background: var(--gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-lead { max-width: 690px; margin: 28px auto 0; color: var(--muted); font-size: clamp(20px, 2.4vw, 28px); font-weight: 430; line-height: 1.28; letter-spacing: -.02em; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 25px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .25s ease; }
.button-primary { background: var(--gradient); color: white; box-shadow: 0 12px 30px rgba(48, 37, 190, .22); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 17px 36px rgba(48, 37, 190, .29); }
.button-secondary { background: var(--surface); color: var(--blue); }
.button-secondary:hover { transform: translateY(-2px); background: #ececf0; }
.hero-note { margin: 20px 0 0; color: #86868b; font-size: 12px; }

.section { padding: clamp(72px, 9vw, 124px) 0; }
.section-soft { background: var(--surface); }
.section-intro { max-width: 760px; margin-bottom: 42px; }
.section-intro h2 { margin-bottom: 14px; font-size: clamp(38px, 5.2vw, 68px); font-weight: 690; }
.section-intro p { max-width: 630px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.35; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.category-card { position: relative; min-height: 320px; overflow: hidden; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius); background: #111; color: white; isolation: isolate; box-shadow: 0 1px 0 rgba(0,0,0,.04); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-card::before { content: ""; position: absolute; inset: 0; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.category-card:hover::before { transform: scale(1.045); }
.category-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(5, 5, 12, .72)); }
.country-france::before { background: radial-gradient(circle at 70% 24%, rgba(255,255,255,.5) 0 3%, transparent 3.2%), linear-gradient(135deg, #002fa7 0%, #2355da 38%, #ff2d9b 100%); }
.country-italy::before { background: linear-gradient(150deg, #ede8da 0%, #b7cbb2 42%, #165c42 100%); }
.country-poland::before { background: linear-gradient(155deg, #fff 0%, #f3dfe6 43%, #d61952 100%); }
.category-card .status { position: absolute; top: 24px; left: 24px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(14px); font-size: 12px; font-weight: 600; }
.category-card h3 { margin-bottom: 8px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 680; }
.category-card p { max-width: 31ch; margin: 0; color: rgba(255,255,255,.82); font-size: 16px; }
.category-card .card-link { margin-top: 18px; color: white; font-size: 15px; font-weight: 600; }
.category-card.is-upcoming { color: var(--ink); }
.category-card.is-upcoming::after { background: linear-gradient(180deg, transparent 30%, rgba(255,255,255,.75)); }
.category-card.is-upcoming p { color: rgba(29,29,31,.65); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { min-height: 260px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .35s ease, border-color .35s ease; }
.value-card:hover { transform: translateY(-4px); border-color: rgba(0,47,167,.25); }
.value-icon { width: 44px; height: 44px; margin-bottom: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--surface); color: var(--blue); }
.value-card h3 { margin-bottom: 9px; font-size: 25px; }
.value-card p { margin: 0; color: var(--muted); font-size: 15px; }

.closing { padding: clamp(80px, 11vw, 150px) 0; text-align: center; }
.closing-panel { padding: clamp(55px, 8vw, 98px) var(--gutter); overflow: hidden; border-radius: calc(var(--radius) + 8px); background: var(--gradient); color: white; box-shadow: 0 28px 90px rgba(20, 25, 110, .2); }
.closing-panel h2 { max-width: 780px; margin: 0 auto 18px; font-size: clamp(42px, 6vw, 78px); font-weight: 710; }
.closing-panel p { max-width: 600px; margin: 0 auto 30px; color: rgba(255,255,255,.82); font-size: 19px; }
.closing-panel .button-secondary { background: white; color: var(--blue); }

.shop-shell { min-height: 65vh; padding: clamp(46px, 7vw, 90px) 0; }
.woocommerce-products-header__title, .page-title, .entry-title { font-size: clamp(42px, 6vw, 72px); font-weight: 700; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 26px; color: var(--muted); font-size: 13px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 30px; }
.woocommerce .woocommerce-ordering select { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.woocommerce ul.products { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 20px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: cover; margin: 0 0 16px; border-radius: 22px; background: var(--surface); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.woocommerce ul.products li.product:hover img { transform: scale(1.018); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-size: 18px; font-weight: 630; letter-spacing: -.02em; }
.woocommerce ul.products li.product .price { color: var(--muted); font-size: 15px; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { padding: 11px 18px; border-radius: 999px; background: var(--blue); color: white; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.woocommerce ul.products li.product .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--blue-dark); color: white; transform: translateY(-1px); }
.woocommerce span.onsale { min-width: 0; min-height: 0; padding: 7px 11px; border-radius: 999px; background: var(--pink); line-height: 1; }
.single-product div.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 78px); }
.single-product div.product .woocommerce-product-gallery, .single-product div.product .summary { width: 100% !important; float: none !important; }
.single-product div.product .product_title { font-size: clamp(38px, 5vw, 62px); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border: 0; border-radius: 16px; background: var(--surface); }
.empty-catalog { clear: both; padding: clamp(45px, 7vw, 80px); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-catalog > span { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 50%; background: var(--gradient); color: white; }
.empty-catalog h2 { margin-bottom: 9px; font-size: clamp(27px, 4vw, 42px); }
.empty-catalog p { margin: 0; color: var(--muted); }

.site-footer { padding: 58px 0 30px; background: var(--surface); color: var(--muted); font-size: 13px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 38px; padding-bottom: 40px; }
.footer-brand p { max-width: 34ch; margin: 14px 0 0; }
.footer-col h4 { margin-bottom: 14px; color: var(--ink); font-size: 13px; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--line); }

.legal-page { max-width: 820px; }
.legal-page .legal-lead { margin-bottom: 42px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.legal-page section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-page section:first-of-type { border-top: 0; }
.legal-page h2 { margin-bottom: 14px; font-size: clamp(24px, 3vw, 34px); }
.legal-page h3 { margin: 24px 0 10px; font-size: 20px; }
.legal-page p, .legal-page li { color: #424245; }
.legal-page a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-form { padding: 24px; border-radius: 18px; background: var(--surface); white-space: pre-line; }

.reveal { opacity: 1; transform: none; }
.has-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card:first-child { grid-column: auto; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 220px; }
  .value-icon { margin-bottom: 30px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 5px; }
  .nav-toggle { display: inline-block; order: 2; }
  .header-actions { order: 3; }
  .main-nav { position: fixed; top: 52px; left: 0; right: 0; height: calc(100dvh - 52px); display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; padding: 28px var(--gutter); background: rgba(255,255,255,.96); backdrop-filter: blur(20px); transform: translateY(-112%); opacity: 0; visibility: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .3s ease, visibility .3s; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 620; letter-spacing: -.025em; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { padding-top: 74px; }
  .hero h1 { font-size: clamp(34px, 11.5vw, 68px); }
  .hero-lead { font-size: 20px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card:first-child { grid-column: auto; }
  .category-card { min-height: 390px; padding: 28px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .single-product div.product { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.category-card::before { background: linear-gradient(140deg, #002fa7, #573ac5 60%, #b52986); }
.category-card:nth-child(3n + 2)::before { background: linear-gradient(140deg, #164936, #417b68); }
.category-card:nth-child(3n)::before { background: linear-gradient(140deg, #683657, #b23671); }
.category-card h3 { overflow-wrap: anywhere; }
.category-menu { position: relative; }
.category-menu summary { cursor: pointer; font-size: 12px; font-weight: 500; padding: 14px 0; }
.category-menu-links { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 270px; padding: 12px; border-radius: 16px; background: white; box-shadow: var(--shadow); border: 1px solid var(--line); }
.category-menu-links a { display: block; padding: 10px 12px; border-radius: 8px; }
.category-menu-links a:hover { background: var(--surface); }
@media (max-width: 760px) {
 .main-nav { overflow-y: auto; }
 .category-menu summary { font-size: 24px; padding: 15px 0; }
 .category-menu-links { position: static; transform: none; width: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; }
 .category-menu-links a { font-size: 18px; padding: 12px 0; }
 .category-card { min-height: 280px; }
}

/* O Chérie: supplied boutique hero, October 2026. */
.hero-photo { padding: 0; min-height: clamp(560px, 43vw, 740px); display: flex; align-items: center; text-align: left; background: #352b23; color: #fff; }
.hero-photo::before { display: none; }
.hero-photo::after { inset: 0; width: auto; height: auto; border-radius: 0; filter: none; background: linear-gradient(90deg, rgba(20,16,12,.76), rgba(20,16,12,.50) 38%, transparent 70%); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo .hero-inner { padding-block: 64px; }
.hero-photo .eyebrow { color: #fff; }
.hero-photo h1 { max-width: 610px; margin: 0; font-size: clamp(46px, 4.7vw, 76px); }
.hero-photo .gradient-text { color: inherit; background: none; }
.hero-photo .hero-lead { max-width: 480px; margin: 24px 0 0; font-size: 21px; color: #fff; line-height: 1.45; }
.hero-photo .hero-actions { justify-content: flex-start; margin-top: 28px; }
.hero-photo .hero-note { color: #eee8e2; }
@media (max-width: 767px) {
  .hero-photo { display: block; min-height: 0; background: #f6f3ef; color: var(--ink); }
  .hero-photo::after { display: none; }
  .hero-photo .hero-image { position: relative; height: clamp(260px, 80vw, 430px); object-position: 72% center; }
  .hero-photo .hero-inner { padding-block: 34px 40px; }
  .hero-photo .eyebrow { color: var(--blue); font-size: 11px; }
  .hero-photo h1 { font-size: clamp(34px, 9vw, 62px); }
  .hero-photo .hero-lead { color: #57524d; font-size: 18px; margin-top: 20px; }
  .hero-photo .hero-actions { gap: 12px; }
  .hero-photo .hero-note { color: #67615b; }
}

.category-menu-links a.category-child { padding-left: 24px; font-size: 12px; color: var(--muted); }
.subcategory-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
@media (max-width: 767px) { .category-menu-links a.category-child { font-size: 16px; } }
