/* Product page in the look of the old Shopbase "Criadora" theme. */
:root { --vg: #22c38e; --vd: #194d3c; --vi: #081712; --vm: #f0faf6; --vm2: #e0f5ee; --vo: #f26b3a; --vline: #e3e8e6; }

/* ---------- Summary column ---------- */
.single-product .entry-summary .product_title { font-size: 24px; line-height: 1.3; margin-bottom: .35em; }
.single-product .entry-summary > .price { font-size: 26px; color: var(--vg); display: flex; align-items: center; flex-wrap: wrap; gap: .35em; margin-bottom: .8em; }
.single-product .entry-summary > .price ins { text-decoration: none; color: var(--vg); font-weight: 700; }
.single-product .entry-summary > .price del { color: #9aa3a0; font-size: 17px; font-weight: 400; }
.vsave { position: relative; display: inline-block; background: var(--vd); color: #fff; font-size: 12px; font-weight: 700; padding: .25em .9em .25em .6em; clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); }
.single-product .woocommerce-variation-price, .single-product .woocommerce-variation-availability { display: none !important; }
.single-product .entry-summary .woocommerce-product-rating { margin: 0 0 .3em; font-size: 14px; }

/* Variation rows: label on top, swatches below */
.single-product table.variations, .single-product table.variations tbody, .single-product table.variations tr,
.single-product table.variations th, .single-product table.variations td { display: block; width: 100%; padding: 0; border: 0; }
.single-product table.variations tr { margin-bottom: 1.1em; }
.single-product table.variations th.label { margin-bottom: .45em; display: flex; align-items: center; }
.single-product table.variations th.label label { order: 1; }
.single-product table.variations th.label .woo-selected-variation-item-name { order: 2; margin-left: .25em; font-weight: 600; }
.single-product table.variations th.label .vsize-open { order: 3; margin-left: 1em; }
/* Combinations that do not exist are hidden, not crossed out (as on Shopbase) */
.woo-variation-swatches .variable-items-wrapper .variable-item.disabled, .woo-variation-swatches .variable-items-wrapper .variable-item.out-of-stock { display: none !important; }
.single-product table.variations th.label label { font-size: 14px; font-weight: 400; color: var(--vi); margin: 0; }
.single-product .reset_variations { display: none !important; }

/* Style: mockup images */
.woo-variation-swatches .variable-items-wrapper { gap: 8px; }
.woo-variation-swatches .variable-items-wrapper .variable-item { margin: 0 !important; border-radius: 6px !important; box-shadow: 0 0 0 1px var(--vline) !important; background: #fff; }
.woo-variation-swatches .variable-items-wrapper .variable-item.selected { box-shadow: 0 0 0 2px var(--vd) !important; }
.woo-variation-swatches .variable-items-wrapper .variable-item.vstyle-img { width: 52px !important; height: 60px !important; padding: 3px !important; }
.variable-item.vstyle-img .variable-item-contents { width: 100%; height: 100%; }
.variable-item.vstyle-img .variable-item-span { display: none; }
.vstyle-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
/* Colour squares */
.woo-variation-swatches .variable-items-wrapper .variable-item.color-variable-item { width: 30px !important; height: 30px !important; padding: 2px !important; }
.woo-variation-swatches .variable-items-wrapper .color-variable-item .variable-item-span-color { border-radius: 4px !important; }
.woo-variation-swatches .variable-items-wrapper .color-variable-item.selected .variable-item-contents::before { display: none; }
/* Size buttons, selected one filled. The swatch plugin fixes them at 40 px, which leaves 20 px for the text:
   "2XL"–"5XL" ran into the rounded corners. They grow with their text now. */
.woo-variation-swatches .variable-items-wrapper .button-variable-item:not(.vstyle-img) { width: auto !important; min-width: 44px; height: 36px !important; padding: 0 11px !important; font-size: 14px; }
.woo-variation-swatches .variable-items-wrapper .button-variable-item:not(.vstyle-img) .variable-item-contents { width: auto; overflow: visible; }
.woo-variation-swatches .variable-items-wrapper .button-variable-item:not(.vstyle-img) .variable-item-span-button { font-size: 14px; white-space: nowrap; overflow: visible; text-overflow: clip; letter-spacing: 0; }
.woo-variation-swatches .variable-items-wrapper .button-variable-item.selected:not(.vstyle-img) { background: var(--vd) !important; color: #fff !important; }

.vsize-open { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--vi); font-size: 14px; }
dialog.vsize { border: 0; border-radius: 10px; padding: 1.6em; max-width: 540px; width: 92vw; }
dialog.vsize::backdrop { background: rgba(0, 0, 0, .45); }
.vsize table { width: 100%; text-align: center; border-collapse: collapse; }
.vsize th { background: var(--vm); }
.vsize td, .vsize th { padding: .5em; border-bottom: 1px solid var(--vline); }
.vsize-close { position: absolute; right: 14px; top: 8px; background: none; border: 0; font-size: 28px; cursor: pointer; }
.vsize-units button { border: 1px solid var(--vline); background: #fff; padding: .3em 1.1em; cursor: pointer; }
.vsize-units button.is-active { background: var(--vd); color: #fff; border-color: var(--vd); }
.vsize-note { font-size: 12px; opacity: .7; margin-top: .8em; }

/* Quantity + add to cart in one row */
.single-product form.cart .woocommerce-variation-add-to-cart, .single-product form.cart:not(.variations_form) { display: flex !important; gap: 10px; align-items: stretch; flex-wrap: nowrap; }
.single-product form.cart .quantity { width: 130px !important; }
.single-product form.cart .quantity input.qty { height: 48px; }
.single-product form.cart .quantity { flex: 0 0 auto; }
.single-product form.cart .single_add_to_cart_button { flex: 1 1 auto; width: auto !important; height: 48px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.single-product form.cart .single_add_to_cart_button::before { content: "🛒"; margin-right: .5em; }

/* ---------- Under the form ---------- */
/* Price note ("inkl. MwSt., zzgl. Versandkosten") under the price and the combo total; delivery estimate and returns under the buy button */
.vprice-note { margin: -.6em 0 1em; font-size: 13px; color: #6b7672; }
.vprice-note a { color: inherit; text-decoration: underline; }
.vprice-note.vfbt-note { margin: -.5em 0 .8em; font-size: 12px; text-align: right; }

.vdeliv { list-style: none; margin: .9em 0 0; padding: .7em .9em; background: var(--vm); border-radius: 6px; font-size: 14px; line-height: 1.5; }
.vdeliv li { margin: .15em 0; }
.vdeliv li[hidden] { display: none; }
.vdeliv b { font-weight: 600; white-space: nowrap; }
.vdeliv a { color: inherit; text-decoration: underline; }
/* "IN DEN WARENKORB" on one line on phones */
@media (max-width: 480px) { .single-product form.cart .single_add_to_cart_button { letter-spacing: 0; font-size: 14px; white-space: nowrap; padding-left: .6em; padding-right: .6em; } }
.vlive { margin: .9em 0 0; font-size: 14px; }
.vlive p { margin: .25em 0; }
.vlive p:empty { display: none; }
.vlive em { color: #e5484d; font-style: normal; font-weight: 700; }
.vlive-view::before { content: "👁 "; }

.vcount { margin: 1em 0; padding: 1em; border: 1px solid var(--vline); border-top: 3px solid #e5484d; border-radius: 6px; text-align: center; }
.vcount p { margin: 0 0 .7em; font-weight: 700; }
.vcount-boxes { display: flex; justify-content: center; align-items: flex-start; gap: .4em; }
.vcount-unit { display: flex; flex-direction: column; align-items: center; gap: .2em; }
.vcount-digits { display: flex; gap: 3px; }
.vcount-digits b { display: inline-block; width: 1.4em; padding: .2em 0; border: 1px solid #e5484d; border-radius: 4px; color: #e5484d; font-size: 22px; }
.vcount-unit small { font-size: 11px; opacity: .6; }
.vcount-boxes em { font-style: normal; font-size: 22px; font-weight: 700; line-height: 1.6; }

.vsafe { margin: 1em 0; padding: .9em 1em; border: 1px solid var(--vline); border-radius: 6px; text-align: center; }
.vsafe-title { margin: 0 0 .6em; font-weight: 700; font-size: 15px; }
.vsafe-title span { color: var(--vg); }
.vsafe-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5em; margin: 0; }
.vlogo { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 48px; padding: 0 .5em; border: 1px solid var(--vline); border-radius: 4px; font-weight: 800; font-size: 13px; background: #fff; }
.vlogo-pp b { color: #003087; font-style: italic; }
.vlogo-pp i { color: #009cde; font-weight: 800; }
.vlogo-visa { color: #1a1f71; font-style: italic; letter-spacing: .04em; }
.vlogo-amex { background: #2e77bb; color: #fff; border-color: #2e77bb; font-size: 11px; }
.vlogo-later { font-size: 11px; color: #003087; font-weight: 700; }

.vbmsm { margin: 1.4em 0 .8em; }
.vbmsm h3 { font-size: 20px; margin: 0 0 .7em; }
.vbmsm-row { position: relative; display: flex; align-items: center; gap: .8em; padding: .9em 1em; margin-bottom: .7em; border: 1px solid var(--vline); border-radius: 6px; cursor: pointer; background: #fff; }
.vbmsm-row:hover, .vbmsm-row.is-checked { border-color: var(--vg); background: var(--vm); }
.vbmsm-row input { position: absolute; opacity: 0; pointer-events: none; }
.vbmsm-dot { flex: 0 0 18px; height: 18px; border: 1.5px solid #9aa3a0; border-radius: 50%; }
.vbmsm-row.is-checked .vbmsm-dot { border: 5px solid var(--vd); }
.vbmsm-l { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .1em .5em; }
.vbmsm-l b { font-size: 16px; }
.vbmsm-l em { font-style: normal; font-size: 11px; font-weight: 700; border: 1px solid var(--vi); border-radius: 3px; padding: 0 .35em; }
.vbmsm-l small { flex-basis: 100%; font-size: 12px; opacity: .65; }
.vbmsm-r { display: flex; flex-direction: column; align-items: flex-end; }
.vbmsm-r b { color: var(--vg); font-size: 16px; }
.vbmsm-r s { font-size: 12px; opacity: .5; }
.vbmsm-row i { position: absolute; top: -9px; right: 10px; background: var(--vm2); color: var(--vd); font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 3px; }
.vbuy { display: block; width: 100%; height: 48px; margin: 0 0 1.4em; border: 0; border-radius: 6px; background: #e8ebea; color: var(--vi); font-weight: 600; cursor: pointer; }
.vbuy:hover { background: var(--vi); color: #fff; }

.vfbt { margin: 1.6em 0; }
.vfbt h3 { font-size: 20px; margin: 0 0 .8em; }
.vfbt-cards { display: flex; align-items: center; gap: .4em; margin-bottom: 1em; }
.vfbt-card { flex: 1 1 0; max-width: 110px; border: 1px solid var(--vline); border-radius: 8px; padding: 4px; background: #fff; }
.vfbt-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
.vfbt-plus { color: var(--vg); font-size: 22px; font-weight: 700; }
.vfbt-list { list-style: none; margin: 0; padding: 0; }
.vfbt-list li { display: grid; grid-template-columns: 1fr auto; gap: .35em .8em; padding: .55em 0; font-size: 14px; }
.vfbt-list label { display: flex; gap: .5em; align-items: flex-start; margin: 0; }
.vfbt-list input[type=checkbox] { accent-color: var(--vg); width: 16px; height: 16px; margin-top: 2px; }
.vfbt-price { font-weight: 700; text-align: right; }
.vfbt-var, .vfbt-chosen { grid-column: 1 / 2; margin-left: 1.6em; max-width: 280px; font-size: 13px; height: 34px; padding: 0 .5em; }
.vfbt-chosen { height: auto; opacity: .6; }
.vfbt-total { display: flex; justify-content: space-between; align-items: flex-start; padding: .8em 0; border-top: 1px solid var(--vline); font-size: 13px; font-weight: 700; }
.vfbt-total > span:last-child { display: flex; flex-direction: column; align-items: flex-end; }
.vfbt-total strong { font-size: 18px; color: var(--vg); }
.vfbt-total s { font-weight: 400; opacity: .5; }
.vfbt-add { width: 100%; height: 46px; border: 0; border-radius: 6px; background: var(--vg); color: #fff; font-weight: 700; cursor: pointer; }
.vfbt-add:hover { background: var(--vd); }

.vshare { display: flex; align-items: center; gap: .7em; font-size: 14px; }
.vshare a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: #fff !important; font-weight: 700; text-decoration: none; }
.vs-fb { background: #1877f2; } .vs-x { background: #111; } .vs-pin { background: #e60023; } .vs-wa { background: #25d366; }

/* ---------- Code cards under the gallery ---------- */
.vcodes { position: relative; margin: 1.2em 0 0; }
.vcodes:not(.is-moved) { display: none; }
.vcodes-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vcodes-track::-webkit-scrollbar { display: none; }
.vcode { flex: 0 0 calc((100% - 24px) / 3); min-width: 190px; scroll-snap-align: start; border-top: 3px solid var(--vo); border-radius: 4px; background: #fff5f1; overflow: hidden; }
.vcode-top { position: relative; padding: .9em .8em .6em; }
.vcode strong { display: block; color: var(--vo); font-size: 15px; white-space: nowrap; padding-right: 5.6em; }
.vcode span { display: block; color: var(--vo); font-size: 12px; }
.vcode-copy { position: absolute; top: 0; right: 8px; white-space: nowrap; background: #fff; border: 0; border-radius: 0 0 4px 4px; padding: .3em .5em; font-size: 10px; font-weight: 700; color: var(--vi); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.vcode-copy i { font-style: normal; opacity: .6; }
.vcode-foot { border-top: 1px dashed #f3c2b0; padding: .45em .8em; font-size: 11px; background: #ffe9e0; }
.vcodes-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--vline); background: #fff; cursor: pointer; font-size: 14px; }
.vcodes-prev { left: -12px; }
.vcodes-next { right: -12px; }

/* ---------- Gallery: sale badge top-right of the big image, thumbnails column scrolls ---------- */
.ct-product-gallery-container > .onsale { left: auto !important; right: 12px !important; top: 12px !important; }
@media (min-width: 1000px) {
	.woocommerce-product-gallery .flexy-pills ol { max-height: 560px; overflow-y: auto; scrollbar-width: none; }
}

/* ---------- Below the product ---------- */
.woocommerce-tabs { margin-top: 2em; }
.vrelcols { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; width: var(--theme-container-width, 90%); max-width: var(--theme-normal-container-max-width, 1290px); margin: 1.5em auto; font-size: 14px; }
.vrelcols a { padding: .45em 1em; border: 1px solid var(--vline); border-radius: 4px; color: var(--vi); }
.vrelcols a:hover { border-color: var(--vg); color: var(--vg); }
.related.products > h2 { text-align: center; font-size: 28px; }
.related.products ul.products { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px !important; padding-bottom: 10px; scrollbar-width: thin; }
.related.products ul.products > li { flex: 0 0 calc((100% - 5 * 18px) / 6); scroll-snap-align: start; text-align: center; }
@media (max-width: 999px) { .related.products ul.products > li { flex-basis: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 689px) { .related.products ul.products > li { flex-basis: 46%; } }


/* ---------- Phones ---------- */
@media (max-width: 689px) {
	/* Like the old theme on phones: no breadcrumbs, no thumbnail strip, image right under the header */
	.single-product .ct-breadcrumbs, .single-product .woocommerce-product-gallery .flexy-pills { display: none !important; }
	.single-product [data-vertical-spacing] { padding-top: 0 !important; }
	.single-product .entry-summary .product_title { font-size: 20px; }
	.vcode { flex-basis: 72%; min-width: 0; }
	.vcodes-nav { display: none; }
	.vbmsm-l b { font-size: 15px; }
	.vfbt-var { max-width: 100%; }
}

/* Add to cart fills the row next to the quantity; no product meta (the old page had none) */
.single-product .ct-cart-actions { display: flex !important; flex-wrap: nowrap !important; gap: 10px; width: 100%; }
.single-product form.cart .ct-cart-actions .single_add_to_cart_button { flex: 1 1 0 !important; width: auto !important; min-width: 0; max-width: none !important; }
.single-product .product_meta { display: none !important; }
/* Accordion like the old page: full-width rows with a plus icon */
.single-product .ct-accordion-tab { border-bottom: 1px solid var(--vline); }
.single-product .ct-accordion-heading { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.1em 0; font-size: 16px; font-weight: 700; text-transform: none; background: none; border: 0; }
.single-product .ct-accordion-tab article .entry-content { padding: 0 0 1.2em; font-size: 15px; }
