/*
Theme Name:  tra.ver.sa
Theme URI:   https://traversahandmade.hr
Author:      GrL'Ca
Author URI:  https://grlca.com
Description: Quiet, upscale WooCommerce theme for tra.ver.sa handmade textiles: photo accordion hero, categories in the menu, multi-category filter. No page builder. Fonts: Cormorant Garamond and Jost (SIL Open Font License), served from the theme.
Version:     1.4.0
Requires at least: 6.0
Requires PHP: 8.0
WC requires at least: 8.0
License:     GPL v2 or later
Text Domain: traversa
*/

/* ── Fonts (self-hosted, no request to Google) ───────────── */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(assets/fonts/cormorant-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(assets/fonts/cormorant-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(assets/fonts/cormorant-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(assets/fonts/cormorant-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(assets/fonts/jost-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(assets/fonts/jost-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink:    #23201c;   /* warm near-black */
  --muted:  #857c71;   /* taupe */
  --line:   #e4ddd2;   /* hairline */
  --paper:  #faf7f2;   /* ivory page */
  --soft:   #f2ede5;   /* linen */
  --accent: #8a7357;   /* bronze */
  --white:  #ffffff;
  --wrap:   1360px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --slow:  .9s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent); }
strong, b { font-weight: 500; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 300; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
::selection { background: var(--soft); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 8px 12px; background: var(--white); z-index: 100; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.section { padding: 110px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin: 0 0 14px; }
.section-head .more { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.eyebrow { display: block; font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.rule { width: 48px; height: 1px; background: var(--accent); border: 0; margin: 26px auto; }

/* Buttons: quiet outline, letter-spaced */
.btn, .button, button.button, input.button, a.button, .woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 34px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper); font: inherit; font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: transparent; border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--ink); color: var(--paper); }
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: transparent; color: var(--ink); }
.button.disabled, .button:disabled { opacity: .5; cursor: not-allowed; }
.link-line { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* ── Header ─────────────────────────────────────────────── */
.announce { background: var(--ink); color: #d9d1c5; text-align: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 9px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .4s var(--ease); }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(35,32,28,.05); }
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 92px; transition: min-height .5s var(--ease); }
.is-scrolled .header-bar { min-height: 66px; }
.header-left { display: flex; align-items: center; gap: 18px; }
.site-logo { justify-self: center; }
.site-logo img { max-height: 62px; width: auto; transition: max-height .5s var(--ease); }
.is-scrolled .site-logo img { max-height: 44px; }
.site-logo .logo-text { font-family: var(--serif); font-size: 30px; letter-spacing: .06em; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.tool { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; position: relative; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.tool svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.cart-count { position: absolute; top: -7px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--white); font-size: 10px; line-height: 17px; text-align: center; }
.cart-count.is-empty { display: none; }
.gt-slot { font-size: 12px; letter-spacing: .08em; }
/* GTranslate's own floating switcher (printed at the end of <body>) would repeat the one in the header. */
body.has-gt-slot > .gtranslate_wrapper { display: none !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 6px 0; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav > ul { display: flex; justify-content: center; gap: 46px; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 15px 0; font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }
.main-nav > ul > li > a { position: relative; }
.main-nav > ul > li > a::before { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .5s var(--ease); }
.main-nav > ul > li:hover > a::before, .main-nav .current-menu-item > a::before { transform: scaleX(1); }
.main-nav .has-cats > a::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 9px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.cat-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 540px; padding: 30px 36px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(35,32,28,.08); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; list-style: none; margin: 0;
}
.main-nav .has-cats:hover > .cat-dropdown, .main-nav .has-cats:focus-within > .cat-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cat-dropdown a { padding: 8px 0; font-family: var(--serif); font-size: 19px; letter-spacing: 0; text-transform: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid transparent; }
.cat-dropdown a span { font-family: var(--sans); color: var(--muted); font-size: 11px; }
.cat-dropdown .all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.cat-dropdown .all a { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }

.header-search { display: none; border-top: 1px solid var(--line); padding: 22px 0; }
.header-search.open { display: block; }
.header-search form { display: flex; gap: 0; max-width: 620px; margin: 0 auto; border-bottom: 1px solid var(--ink); }
.header-search input[type=search] { flex: 1; min-height: 50px; padding: 0 4px; border: 0; background: transparent; font-family: var(--serif); font-size: 24px; color: var(--ink); outline: none; }
.header-search .btn { min-height: 50px; background: transparent; color: var(--ink); border: 0; padding: 0 6px; }

/* ── Hero: one row of photos, the hovered one opens and zooms ── */
.hero { position: relative; padding: 0; }
/* Fills the first screen under the announcement bar and header (~175px). */
.hero-accordion { display: flex; gap: 4px; height: clamp(460px, calc(100vh - 175px), 820px); height: clamp(460px, calc(100svh - 175px), 820px); background: var(--paper); }
.admin-bar .hero-accordion { height: clamp(460px, calc(100vh - 207px), 820px); }
.acc {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--soft);
  transition: flex-grow var(--slow) var(--ease);
}
.acc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform var(--slow) var(--ease), filter var(--slow) var(--ease); }
.acc::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,14,.55) 0%, rgba(20,17,14,0) 45%); opacity: 0; transition: opacity var(--slow) var(--ease); }
.acc-caption {
  position: absolute; left: 34px; right: 34px; bottom: 34px; z-index: 2; color: var(--white);
  opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform var(--slow) var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acc-caption .n { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; }
.acc-caption .p { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
/* Opening one panel makes the others give way, all on one timing. */
.hero-accordion:hover .acc { flex-grow: .75; }
.hero-accordion .acc:hover, .hero-accordion .acc.is-open, .hero-accordion .acc:focus-visible { flex-grow: 3; }
.hero-accordion .acc:hover img, .hero-accordion .acc.is-open img, .hero-accordion .acc:focus-visible img { transform: scale(1.1); }
.hero-accordion:hover .acc:not(:hover):not(.is-open) img { filter: saturate(.85) brightness(.94); }
.hero-accordion .acc:hover::after, .hero-accordion .acc.is-open::after, .hero-accordion .acc:focus-visible::after { opacity: 1; }
.hero-accordion .acc:hover .acc-caption, .hero-accordion .acc.is-open .acc-caption, .hero-accordion .acc:focus-visible .acc-caption { opacity: 1; transform: none; transition-delay: .15s, 0s; }
.acc.is-empty { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .acc, .acc img, .acc-caption, .acc::after { transition: none; }
}

.intro { text-align: center; padding: 110px 0 30px; }
.intro h1 { margin: 0 auto; max-width: 900px; }
.intro p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.55rem); color: var(--muted); margin: 14px 0 34px; }

/* ── Category tiles ──────────────────────────────────────── */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; }
.cat-tile { display: block; text-align: center; }
.cat-tile .img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile h3 { margin: 20px 0 4px; font-size: 1.55rem; font-weight: 400; }
.cat-tile span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.cat-tile:hover h3 { color: var(--accent); }

/* ── Story band ──────────────────────────────────────────── */
.story { background: var(--soft); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.story-img { aspect-ratio: 4 / 5; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.3; }
.story blockquote p { margin: 0 0 .5em; }
.story .rule { margin: 34px 0; }
.story .note { color: var(--muted); max-width: 440px; margin-bottom: 34px; }

/* ── Products (loop) ─────────────────────────────────────── */
.woocommerce ul.products, ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 28px; list-style: none; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: center; position: relative; }
ul.products li.product .woocommerce-LoopProduct-link { display: block; }
ul.products li.product .img-wrap { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 20px; background: var(--soft); }
ul.products li.product .img-wrap img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; transition: transform 1.2s var(--ease); }
ul.products li.product:hover .img-wrap img { transform: scale(1.05); }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--serif); font-size: 1.35rem !important; font-weight: 400; padding: 0 !important; margin: 0 0 6px; line-height: 1.2; }
ul.products li.product .price { display: block; color: var(--muted) !important; font-size: 13px !important; letter-spacing: .12em; }
ul.products li.product .price del { opacity: .6; }
ul.products li.product .price ins { text-decoration: none; color: var(--ink); }
ul.products li.product .button { margin-top: 16px; min-height: 0; padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent !important; color: var(--ink) !important; font-size: 11px; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
ul.products li.product:hover .button, ul.products li.product .button:focus { opacity: 1; transform: none; }
ul.products li.product .added_to_cart { display: block; margin: 10px auto 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.badge-soldout { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; background: var(--paper); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.woocommerce span.onsale { top: 14px !important; left: 14px !important; right: auto !important; margin: 0 !important; background: var(--accent); border-radius: 0; min-height: 0; min-width: 0; line-height: 1; padding: 6px 12px; font-size: 10px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }

/* ── Shop: category filter (text, several at once) ───────── */
.shop-head { padding: 80px 0 10px; text-align: center; }
.shop-head h1 { margin-bottom: 10px; }
.shop-head .term-description { color: var(--muted); max-width: 640px; margin: 0 auto; }
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; margin: 34px 0 8px; padding: 0; list-style: none; }
.cat-filter a { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease); }
.cat-filter a:hover { color: var(--ink); }
.cat-filter a span { font-size: 10px; letter-spacing: .1em; opacity: .7; }
.cat-filter a.on { color: var(--ink); border-bottom-color: var(--ink); }
.cat-filter a.on::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); align-self: center; }
.filter-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.filter-note a { border-bottom: 1px solid var(--line); }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 34px 0 56px; }
.shop-toolbar .woocommerce-notices-wrapper:empty { display: none; }
.shop-toolbar .woocommerce-notices-wrapper:not(:empty) { flex-basis: 100%; }
.shop-toolbar .woocommerce-result-count, .shop-toolbar .woocommerce-ordering { margin: 0 !important; float: none !important; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.woocommerce-ordering select { min-height: 40px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 12px; letter-spacing: .1em; color: var(--ink); }
.woocommerce nav.woocommerce-pagination { margin: 80px 0 0; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; justify-content: center; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 42px; padding: 10px !important; border: 1px solid transparent !important; font-size: 13px; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: transparent !important; border-color: var(--line) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: transparent !important; color: var(--ink) !important; border-color: var(--ink) !important; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--accent) !important; background: var(--soft) !important; }

/* ── Single product ──────────────────────────────────────── */
.single-product div.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; padding: 60px 0 20px; align-items: start; }
.single-product div.product .woocommerce-product-gallery, .single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product .summary { padding-top: 20px; }
.single-product div.product .product_title { font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 300; margin-bottom: 14px; }
.single-product div.product p.price { color: var(--ink) !important; font-size: 1.1rem !important; letter-spacing: .12em; margin-bottom: 28px; }
.single-product .woocommerce-product-details__short-description { color: #4b453e; border-top: 1px solid var(--line); padding-top: 26px; }
.single-product div.product form.cart { display: flex; gap: 12px; margin: 34px 0 !important; }
.single-product .quantity input.qty { min-height: 50px; width: 78px; border: 1px solid var(--line); background: transparent; font: inherit; text-align: center; }
.single-product div.product form.cart .button { flex: 1; }
.single-product .product_meta { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.single-product .product_meta a { color: var(--ink); }
.single-product .woocommerce-tabs, .single-product .related, .single-product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs { margin-top: 60px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; border-bottom: 1px solid var(--line); text-align: center; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; border-radius: 0 !important; margin: 0 18px !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 14px 0 !important; font-weight: 400 !important; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; border-bottom: 1px solid var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 760px; margin: 40px auto 0; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce div.product .stock.out-of-stock { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.related > h2, .upsells > h2 { text-align: center; margin: 100px 0 50px; }
.woocommerce-product-gallery__image { background: var(--soft); }
/* Photos come in every shape (tall phone shots, wide table shots). One fixed 4:5 frame
   keeps the gallery, the zoom icon and the thumbnails still; the whole photo shows inside. */
.woocommerce div.product div.images { position: relative; }
.woocommerce-product-gallery__image { height: clamp(380px, calc(100vh - 290px), 760px); overflow: hidden; }
@media (max-width: 860px) { .woocommerce-product-gallery__image { height: auto; aspect-ratio: 4 / 5; } }
.woocommerce-product-gallery__image > a { display: block; height: 100%; }
.woocommerce-product-gallery__image > a > img { width: 100%; height: 100% !important; object-fit: contain; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: 16px; right: 16px; z-index: 9; }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; margin: 0 !important; }
.woocommerce div.product div.images .flex-control-thumbs img { aspect-ratio: 1; object-fit: cover; opacity: .6; transition: opacity .3s; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }

/* ── Pages ───────────────────────────────────────────────── */
.page-hero { padding: 90px 0 30px; text-align: center; }
.entry { max-width: 720px; margin: 0 auto; font-size: 18px; }
.entry p { margin-bottom: 1.2em; }
.entry img { margin: 30px 0; }
.woocommerce-cart .entry, .woocommerce-checkout .entry, .woocommerce-account .entry { max-width: none; font-size: 16px; }
.woocommerce table.shop_table { border-radius: 0; border-color: var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--line); border-radius: 0; background: var(--white); min-height: 46px; padding: 8px 12px; font: inherit; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { margin-top: 0; background: var(--ink); color: #cfc6b9; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 90px 0 60px; }
.site-footer h4 { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: #8f867a; margin-bottom: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; font-size: 14px; }
.footer-brand .footer-logo { font-family: var(--serif); font-size: 34px; color: var(--paper); letter-spacing: .04em; margin-bottom: 14px; display: block; }
.footer-brand p { font-family: var(--serif); font-style: italic; font-size: 19px; color: #b5ab9d; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #3a352f; padding: 24px 0 34px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #8f867a; }
main + .site-footer, .site-main + .site-footer { margin-top: 110px; }
.home main + .site-footer { margin-top: 0; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumb { padding: 34px 0 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 12px; opacity: .5; }
.product-category .breadcrumb, .tax-product_cat .breadcrumb { text-align: center; }
.single-product div.product { padding-top: 30px; }

/* ── Facts (the shop's terms in four lines) ──────────────── */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0 44px; margin-top: 30px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.fact h3 { font-size: 1.45rem; margin-bottom: 8px; }
.fact p { font-size: 14px; color: var(--muted); max-width: 240px; margin: 0 auto; }
.facts-more { text-align: center; margin: 34px 0 0; }
.facts-compact { list-style: none; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 13px; color: #5b544c; }
.facts-compact li { padding: 4px 0 4px 18px; position: relative; }
.facts-compact li::before { content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 1px; background: var(--accent); }
.facts-compact strong { font-weight: 500; color: var(--ink); margin-right: 4px; }

/* ── Kontakt: seller details ─────────────────────────────── */
.seller-info { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 20px 0 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.seller-info h2 { font-size: 1.8rem; }
.seller-info .big { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .4em; }
.seller-info address { font-style: normal; line-height: 1.9; margin-bottom: 1em; }
.seller-info .small { font-size: 14px; color: var(--muted); }
.seller-info .small a { border-bottom: 1px solid var(--line); }
.footer-bottom .legal-links { display: flex; gap: 22px; }

/* ── Kontakt: built-in form ──────────────────────────────── */
.contact-form-wrap { margin: 10px 0 30px; }
.form-intro { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); margin-bottom: 30px; }
.contact-form label { display: block; margin-bottom: 20px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); border-radius: 0; transition: border-color .3s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.contact-form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; letter-spacing: 0; text-transform: none; color: #5b544c; }
.contact-form .consent input { margin-top: 4px; accent-color: var(--ink); }
.contact-form .consent a { border-bottom: 1px solid var(--line); }
.contact-form .cf-turnstile { margin-bottom: 20px; }
.contact-form .btn { margin-top: 6px; }
.trv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 16px 20px; margin-bottom: 26px; font-size: 15px; }
.form-note.ok { background: var(--soft); border-left: 2px solid var(--accent); }
.form-note.err { background: #f8ece8; border-left: 2px solid #a14b3a; }
@media (max-width: 860px) { .contact-form .row.two { grid-template-columns: 1fr; } }

/* Many product names are typed lowercase: show them with a capital, the data stays as is. */
.acc-caption .n::first-letter, ul.products li.product .woocommerce-loop-product__title::first-letter,
.single-product .product_title::first-letter, .shop-head h1::first-letter { text-transform: uppercase; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .acc:nth-child(n+6) { display: none; }
  .story-grid { gap: 50px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .section { padding: 72px 0; }
  .admin-bar .site-header { top: 0; }
  .nav-toggle { display: block; }
  .header-bar { min-height: 70px; }
  .site-logo img { max-height: 46px; }
  .header-tools { gap: 16px; }
  .header-tools .gt-slot, .header-tools .tool-account { display: none; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 70px); overflow: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 10px 22px 24px; }
  .main-nav a { padding: 14px 0; }
  .main-nav > ul > li > a::before { display: none; }
  .cat-dropdown { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; box-shadow: none; border: 0; padding: 0 0 10px 14px; grid-template-columns: 1fr; background: transparent; }
  .main-nav .has-cats > a::after { display: none; }
  .mobile-only { display: block !important; }
  .hero-accordion { height: 68vh; min-height: 420px; gap: 3px; }
  .acc:nth-child(n+5) { display: none; }
  .acc-caption { left: 18px; right: 18px; bottom: 20px; }
  .hero-accordion .acc.is-open { flex-grow: 4; }
  .intro { padding: 70px 0 10px; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .cat-tile h3 { font-size: 1.3rem; }
  .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, 1fr); gap: 44px 16px; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 1.15rem !important; }
  ul.products li.product .button { opacity: 1; transform: none; }
  .story-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .seller-info { grid-template-columns: 1fr; gap: 20px; }
  .single-product div.product { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 64px 0 40px; }
  .shop-head { padding-top: 50px; }
  .cat-filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -22px; padding-right: 22px; gap: 4px 22px; }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cat-filter li { flex: 0 0 auto; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .announce { font-size: 10px; letter-spacing: .2em; }
}
