/* Storefront styles matching the old Shopbase "Criadora" theme (green palette). */
:root { --v-green: #22c38e; --v-dark: #194d3c; --v-ink: #081712; --v-mint: #f0faf6; --v-mint2: #e0f5ee; }

/* Announcement bar */
#header [data-row="top"] { background: var(--v-dark) !important; }
#header [data-row="top"] .ct-header-text, #header [data-row="top"] .ct-header-text p { color: #fff !important; font-size: 14px; margin: 0; }

/* Footer like the old theme: mint background, 4 columns, then the newsletter row, then the bottom line.
   Blocksy's footer builder puts the newsletter in its top row; the rows are reordered here (no theme setting changed). */
#footer { display: flex; flex-direction: column; }
#footer > [data-row="middle"] { order: 1; }
#footer > [data-row="top"] { order: 2; }
#footer > [data-row="bottom"] { order: 3; }
#footer, .ct-footer { background: var(--v-mint) !important; color: var(--v-ink); }
.ct-footer .widget-title { font-size: 15px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .8em; }
.ct-footer ul { list-style: none; margin: 0; padding: 0; }
.ct-footer li { margin: 0 0 .55em; }
.ct-footer a { color: var(--v-ink); }
.ct-footer a:hover { color: var(--v-green); }
.ct-footer [data-row="middle"] > .ct-container { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 2.5em; }
@media (max-width: 999px) { .ct-footer [data-row="middle"] > .ct-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 689px) { .ct-footer [data-row="middle"] > .ct-container { grid-template-columns: 1fr; } }
.ct-footer [data-row="bottom"] { border-top: 1px solid var(--v-mint2); font-size: 13px; }
.vnl { display: flex; gap: 2em; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1em 0; border-top: 1px solid var(--v-mint2); }
.vnl > div { flex: 1 1 320px; }
.vnl form { display: flex; flex-wrap: wrap; gap: .5em; flex: 1 1 360px; }
.vnl input[type=email] { flex: 1 1 220px; height: 46px; background: #fff; }
.vnl button { height: 46px; padding: 0 1.6em; background: var(--v-ink); color: #fff; border-radius: 4px; }
.vnl small { flex-basis: 100%; opacity: .75; }
.vnl-ok { color: var(--v-green); font-weight: 600; }

/* Less empty space under the header (Blocksy default is large) */
:root { --theme-content-vertical-spacing: 28px; }
.single-product .ct-breadcrumbs { margin-bottom: 1em; }

/* Home slider, full width like the old theme */
.vslider { position: relative; overflow: hidden; margin: -28px calc(50% - 50vw) 2.5em; width: 100vw; }
.vslider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.vslider-track::-webkit-scrollbar { display: none; }
.vslide { flex: 0 0 100%; scroll-snap-align: start; min-height: clamp(320px, 42vw, 520px); display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.vslide::before { content: ""; position: absolute; inset: 0; background: rgba(8, 23, 18, .35); }
.vslide-inner { position: relative; color: #fff; padding: 2em; max-width: 760px; }
.vslide h2 { color: #fff; font-size: clamp(28px, 4vw, 52px); margin: 0 0 .3em; text-wrap: balance; }
.vslide p { font-size: clamp(15px, 1.6vw, 20px); margin: 0 0 1.2em; }
.vslide-btn { display: inline-block; background: var(--v-green); color: #fff; padding: .85em 2em; border-radius: 4px; font-weight: 700; }
.vslide-btn:hover { background: #fff; color: var(--v-dark); }
.vslider-prev, .vslider-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--v-ink); border: 0; cursor: pointer; font-size: 18px; }
.vslider-prev { left: 16px; } .vslider-next { right: 16px; }
.vslider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.vslider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.vslider-dots button.is-active { background: #fff; }
/* Slides with product pictures: text left, up to 3 pictures as tilted cards right; phones: pictures under the text */
.vslide--products { justify-content: center; gap: clamp(24px, 5vw, 80px); padding: 0 clamp(56px, 7vw, 110px); text-align: left; }
.vslide--products::before { background: radial-gradient(circle at 72% 50%, rgba(34, 195, 142, .28), rgba(8, 23, 18, .25) 62%); }
.vslide--products .vslide-inner { flex: 0 1 520px; padding: 2em 0; }
.vslide--products h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; }
.vslide-media { position: relative; flex: 0 1 500px; height: clamp(250px, 28vw, 380px); }
.vslide-media img { position: absolute; width: 46%; height: auto; aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .38); }
.vslide-media img:nth-child(1) { left: 0; top: 16%; transform: rotate(-6deg); }
.vslide-media img:nth-child(2) { left: 26%; top: 0; width: 50%; z-index: 2; }
.vslide-media img:nth-child(3) { right: 0; top: 20%; transform: rotate(6deg); }
/* A single picture (a designed graphic such as slides/tiers.svg) is shown whole, not as a tilted card */
.vslide-media img:only-child { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: none; border-radius: 0; box-shadow: none; transform: none; }
@media (max-width: 767px) {
	.vslide--products { flex-direction: column; gap: 18px; padding: 30px 18px 46px; text-align: center; }
	.vslide--products .vslide-inner { flex: none; padding: 0; }
	.vslide-media { flex: none; width: min(100%, 340px); height: 150px; }
	.vslide-media img { width: 40%; }
	.vslide-media img:nth-child(2) { left: 30%; width: 42%; }
	.vslide-media:has(> img:only-child) { height: 180px; }
	.vslider-prev, .vslider-next { display: none; }
}

/* Product page */
.single-product .entry-summary .price { font-size: 26px; }
.single-product .entry-summary .price del { opacity: .55; font-size: .7em; }
.onsale { background: #e5484d !important; }
.vintage-buy-now { width: 100%; margin-top: .6em !important; background: var(--v-ink) !important; color: #fff !important; }
.vtiers { margin: 1.4em 0; }
.vtiers-title { font-weight: 700; margin: 0 0 .6em; }
.vtiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.vtier { position: relative; display: flex; flex-direction: column; gap: .15em; padding: .9em .6em; border: 1.5px solid var(--v-mint2); border-radius: 8px; background: #fff; cursor: pointer; text-align: center; color: var(--v-ink); }
.vtier:hover, .vtier.is-popular { border-color: var(--v-green); background: var(--v-mint); }
.vtier em { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--v-green); color: #fff; font-style: normal; font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.vtier span { color: #e5484d; font-weight: 700; font-size: 13px; }
.vtier-total { font-size: 15px; } .vtier-was { font-size: 12px; opacity: .55; }
.vtrust { list-style: none; margin: 1em 0; padding: 1em; background: var(--v-mint); border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: .5em 1em; font-size: 14px; }
.vintage-tiers { display: none; }
.vintage-personalize { margin: 1em 0; padding: 1em; border: 1px dashed var(--v-green); border-radius: 8px; }

/* Swatches */
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item) { box-shadow: 0 0 0 1px #d3dcd8; }
.woo-variation-swatches .variable-items-wrapper .variable-item.selected { box-shadow: 0 0 0 2px var(--v-green) !important; }

/* Sticky add-to-cart bar on phones */
.vsticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; display: none; align-items: center; gap: .8em; padding: .6em .9em; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.vsticky img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.vsticky .vsticky-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.vsticky .vsticky-price { font-weight: 700; }
.vsticky .vsticky-note { font-size: 11px; color: #6b7672; }
.vsticky .vsticky-note a { color: inherit; text-decoration: underline; }
.vsticky button { background: var(--v-green); color: #fff; border: 0; border-radius: 4px; padding: .8em 1.2em; font-weight: 700; }
@media (max-width: 689px) {
	.vsticky.is-visible { display: flex; }
	.vtrust { grid-template-columns: 1fr; }
	.vtiers-grid { gap: .4em; }
	.vtier { padding: .8em .3em; font-size: 13px; }
}

/* Cart & checkout */
.woocommerce-cart .cart_totals .fee td, .woocommerce-checkout .fee td { color: #e5484d; }

/* Product meta: keep the category, hide SKU and tag soup */
.product_meta .sku_wrapper, .product_meta .tagged_as, .product_meta .posted_in + br { display: none !important; }

/* Phones: one-line announcement bar */
@media (max-width: 689px) {
	#header [data-row="top"] .ct-header-text p { font-size: 12px; line-height: 1.3; }
}
/* Product grids like the old shop (01/12/2026). Card images are 3:4 (WooCommerce archive image ratio 3x4, image
   cover: the shirt fills the height, the sleeves are trimmed). 32 px between cards and less space under the image.
   Phones: two columns, 12 px page edges and 14 px between them, so an image is ~176 x 235 px (old shop 179 x 239). */
[data-products] { --grid-columns-gap: 32px; --grid-rows-gap: 48px; }
/* Cards show image, name and price only (no button, no collection link: Blocksy card layout), centred like the old shop */
[data-products] .product { text-align: center; }
[data-products] .woocommerce-loop-product__title { font-weight: 500; }
[data-products] .product .price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .4em; font-size: 20px; }
[data-products] .product .price del { font-size: 15px; }
@media (max-width: 689px) { [data-products] .product .price { font-size: 18px; } [data-products] .product .price del { font-size: 13px; } }
/* "8 Modelle: T-shirt, Hoodie, …" under the card name: one grey line, cut with … when it does not fit */
[data-products] .vcard-styles { margin: 0 0 2px; font-size: 13px; line-height: 1.4; color: #6b7672; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Name, style line and price close together as one block; the rows keep their distance through the row gap */
[data-products] .product figure { --product-element-spacing: 10px; }
[data-products] .woocommerce-loop-product__title { --product-element-spacing: 2px; line-height: 1.4; }
[data-products] .product .price { --product-element-spacing: 0px; line-height: 1.35; }
@media (max-width: 689px) { [data-products] .vcard-styles { font-size: 12px; } }
/* Style drop-down left of the sorting (vintage-style-filter); the result count moves after it */
.woo-listing-top { display: flex; align-items: center; gap: 16px; }
.woo-listing-top .woocommerce-result-count { margin: 0 auto 0 0; }
.woo-listing-top .woocommerce-ordering { margin-left: auto; }
.vstyle-filter { margin: 0; }
.vstyle-filter select { min-width: 180px; height: 40px; padding: 0 34px 0 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 689px) { .vstyle-filter select { min-width: 0; height: 38px; font-size: 13px; } }
/* Collection breadcrumb above the title */
.vcol-crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 12px; }
.vcol-crumbs .ct-separator { margin: 0 10px; }
/* Collection header: a compact band (Blocksy's hero is 250 px high with 50 px padding), so products start near the menu */
.tax-product_cat .hero-section[data-type="type-2"] > .entry-header, .tax-product_tag .hero-section[data-type="type-2"] > .entry-header,
.post-type-archive-product .hero-section[data-type="type-2"] > .entry-header { min-height: 0; padding-block: 18px; }
.tax-product_cat .hero-section .page-title, .tax-product_tag .hero-section .page-title, .post-type-archive-product .hero-section .page-title { font-size: 26px; }
.vcol-crumbs { margin-bottom: 6px; }
@media (max-width: 689px) { .tax-product_cat .hero-section .page-title, .tax-product_tag .hero-section .page-title, .post-type-archive-product .hero-section .page-title { font-size: 22px; } }
@media (max-width: 689px) { ul.products[data-products] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 36px 14px !important; margin-inline: calc(12px - 6vw); } ul.products .woocommerce-loop-product__title { font-size: 14px; } ul.products .button { font-size: 12px; padding: .5em .7em; } }
/* Footer bottom line like the old shop: "flag Deutsch (DE) | EUR" first, then copyright and DMCA, on one line */
.ct-footer-copyright { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.vlang { order: -1; display: inline-flex; margin-right: 18px; }

/* "Alle Preise inkl. MwSt., zzgl. Versandkosten" under product grids (p.: wins over .vprice-note of the product page CSS) */
p.vprice-note-loop { margin: 1.2em 0 0; font-size: 13px; color: #6b7672; text-align: center; }
p.vprice-note-loop a { color: inherit; text-decoration: underline; }
/* "inkl. MwSt." under the cart and checkout total */
.vincl-vat { display: block; font-size: 12px; font-weight: 400; color: #6b7672; }

/* Header cart: larger bag with the word "Warenkorb" ("Cart" on /en/) next to it, like the old Shopbase header.
   The running total is left out of the header; the count badge stays on the bag. */
#header .ct-header-cart .ct-cart-item { gap: 7px; }
#header .ct-header-cart .ct-label { display: none !important; }
#header .ct-header-cart .ct-icon-container { --theme-icon-size: 22px; }
#header .ct-header-cart .ct-icon-container svg { width: 22px; height: 22px; }
#header .ct-header-cart .ct-cart-item::after { content: "Warenkorb"; order: 2; font-size: 14px; font-weight: 600; color: var(--theme-text-color, #192a3d); }
html[lang^="en"] #header .ct-header-cart .ct-cart-item::after { content: "Cart"; }
#header .ct-header-cart .ct-dynamic-count-cart { min-width: 18px; height: 18px; font-size: 11px; }
@media (max-width: 689px) {
	#header .ct-header-cart .ct-cart-item { gap: 4px; }
	#header .ct-header-cart .ct-icon-container svg { width: 24px; height: 24px; }
	#header .ct-header-cart .ct-cart-item::after { font-size: 12px; }
}

/* Header cart drop-down: white box (Blocksy left it without a background, so the page showed through) */
#header .ct-header-cart .ct-cart-content { background: #fff !important; border: 1px solid #e3e8e6; border-radius: 10px; box-shadow: 0 16px 40px rgba(8, 23, 18, .18) !important; width: 340px; padding: 18px 18px 16px; color: var(--v-ink); }
#header .ct-header-cart .ct-cart-content .woocommerce-mini-cart { max-height: min(46vh, 360px); overflow-y: auto; margin: 0 0 12px; }
#header .ct-header-cart .ct-cart-content .mini_cart_item { padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid #eef2f0; }
#header .ct-header-cart .ct-cart-content .product-title { color: var(--v-ink) !important; font-weight: 600; font-size: 14px; line-height: 1.35; }
#header .ct-header-cart .ct-cart-content .product-title:hover { color: var(--v-dark) !important; }
#header .ct-header-cart .ct-cart-content dl.variation { font-size: 12px; color: #5b6662; margin: 4px 0; }
#header .ct-header-cart .ct-cart-content .quantity { font-size: 13px; color: var(--v-ink); }
#header .ct-header-cart .ct-cart-content .woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-size: 15px; padding: 0; margin: 0 0 10px; border: 0; color: var(--v-ink); }
#header .ct-header-cart .ct-cart-content .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
#header .ct-header-cart .ct-cart-content .woocommerce-mini-cart__buttons .button { margin: 0; min-height: 42px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
#header .ct-header-cart .ct-cart-content .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) { background: #fff; color: var(--v-ink); box-shadow: inset 0 0 0 1.5px var(--v-ink); }
#header .ct-header-cart .ct-cart-content .woocommerce-mini-cart__buttons .button.checkout { background: var(--v-green); color: #fff; }

/* Search: a white bar slides down from the top with the field, "Abbrechen" and live results, like the old shop;
   the page behind is only lightly dimmed (Blocksy's full-screen dark modal before) */
#search-modal { background: rgba(8, 23, 18, .28) !important; justify-content: flex-start !important; }
#search-modal .ct-panel-actions { position: absolute; top: 0; right: 0; left: auto; width: auto; height: 86px; display: flex; align-items: center; padding: 0 clamp(12px, 3vw, 32px); z-index: 3; }
#search-modal .ct-toggle-close { display: inline-flex; align-items: center; gap: 6px; color: var(--v-ink) !important; font-size: 14px; font-weight: 600; background: none; padding: 6px 0; }
#search-modal .ct-toggle-close::after { content: "Abbrechen"; }
html[lang^="en"] #search-modal .ct-toggle-close::after { content: "Cancel"; }
#search-modal .ct-toggle-close svg { width: 12px; height: 12px; fill: var(--v-ink); }
#search-modal .ct-panel-content { flex: 0 0 auto !important; height: auto !important; justify-content: flex-start !important; background: #fff; padding: 18px clamp(12px, 3vw, 32px); box-shadow: 0 12px 32px rgba(8, 23, 18, .14); transform: translateY(-100%); transition: transform .28s ease; max-height: 86vh; overflow-y: auto; }
#search-modal.active .ct-panel-content { transform: none; }
#search-modal .ct-search-form { width: min(680px, 100% - 140px); margin: 0 auto !important; }
#search-modal .ct-search-form-inner { padding: 0 4px 0 16px !important; border: 1.5px solid var(--v-green) !important; border-radius: 6px; background: #fff !important; height: 50px; display: flex; align-items: center; }
#search-modal .ct-search-form input.modal-field { height: 46px !important; font-size: 16px !important; color: var(--v-ink) !important; background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
#search-modal .ct-search-form input.modal-field::placeholder { color: #7a8580; opacity: 1; }
#search-modal .ct-search-form button[type=submit] { width: 42px !important; height: 42px !important; min-height: 0 !important; background: transparent !important; color: var(--v-ink) !important; --theme-icon-color: var(--v-ink); }
#search-modal .ct-search-form button[type=submit] svg { fill: var(--v-ink); }
#search-modal .ct-search-results { position: static !important; margin-top: 10px; background: #fff; border: 0; box-shadow: none; max-height: none; }
#search-modal .ct-search-results a.ct-search-item { color: var(--v-ink) !important; padding: 8px 10px !important; border-bottom: 1px solid #eef2f0 !important; gap: 14px; align-items: center; border-radius: 6px; font-size: 15px; }
#search-modal .ct-search-results a.ct-search-item:hover, #search-modal .ct-search-results a.ct-search-item:focus { background: var(--v-mint) !important; }
#search-modal .ct-search-results .ct-media-container { width: 52px; flex: 0 0 52px; border-radius: 4px; overflow: hidden; background: #f6f7f7; }
#search-modal .ct-search-results .ct-search-more { color: var(--v-dark) !important; font-weight: 600; }
@media (max-width: 689px) {
	#search-modal .ct-panel-actions { height: 74px; }
	#search-modal .ct-toggle-close::after { display: none; }
	#search-modal .ct-search-form { width: calc(100% - 44px); margin: 0 !important; }
}

/* Language and currency (vintage-locale-switcher.php): flag next to the logo (desktop) or the menu button (phones,
   tablets), footer line, and the settings box */
.vloc-open { display: inline-flex; align-items: center; gap: 8px; padding: 6px; margin: 0; background: none; border: 0; border-radius: 4px; cursor: pointer; color: inherit; font: inherit; line-height: 1; }
.vloc-open:hover { background: rgba(8, 23, 18, .06); }
.vloc-open img { width: 24px; height: 18px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
#header .vloc-header { margin-left: 12px; }
.vloc-footer { padding: 4px 6px 4px 0; font-size: 13px; }
.vloc-sep { opacity: .45; margin: 0 3px; }
.vloc-dialog { border: 0; border-radius: 10px; padding: 0; width: min(440px, 92vw); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); color: var(--v-ink); }
.vloc-dialog::backdrop { background: rgba(8, 23, 18, .45); }
.vloc-form { display: grid; gap: 16px; margin: 0; padding: 24px; }
.vloc-form h2 { font-size: 20px; margin: 0 0 4px; }
.vloc-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.vloc-form select { height: 44px; font-weight: 400; }
.vloc-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 6px 0 0; }
.vloc-actions button { height: 42px; padding: 0 22px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.vloc-cancel { background: #fff; color: var(--v-ink); border: 1.5px solid var(--v-ink); }
.vloc-save { background: var(--v-green); color: #fff; border: 0; }
#header [data-device="mobile"] .vloc-header { margin-left: 8px; }
@media (max-width: 689px) { .vloc-open img { width: 22px; height: 16px; } }
