/* Saraf · round 15, the home page language on every page: shop, category, product, cart, account.
   The home's grammar: paper, a Hebrew label with a gold number, a Karantina title with one wine word, a quiet 4:5 grid,
   real photographs edge to edge, the wine button with square corners. Markup hooks in includes/catalog.php (body classes sfc-*). */

/* ---------- the label above every title (the home's "03 העבודות") ---------- */
.sfc-eyebrow { display: inline-flex; align-items: baseline; gap: .7em; font-family: var(--f-sans); font-weight: 600; font-size: .92rem; line-height: 1.2; letter-spacing: .02em; color: var(--sf-wine) !important; text-decoration: none !important; direction: rtl; }
.sfc-eyebrow__n { font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; line-height: 1; letter-spacing: 0; color: var(--sf-gold); }
.sfc-eyebrow__line { display: inline-block; width: 34px; height: 1px; background: var(--sf-gold); align-self: center; }
a.sfc-eyebrow:hover span { color: var(--sf-wine-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ==========================================================================
   Shop and category: the title band becomes a home chapter head on paper
   ========================================================================== */
html body.sfc-archive .wd-page-title { background: var(--sf-paper) !important; border-bottom: 0 !important; text-align: start !important; margin: 0 !important; padding: calc(var(--hdr-h) + clamp(36px, 5vw, 72px)) 0 0 !important; }
html body.sfc-archive .wd-page-title > .container { text-align: start !important; display: block; }
html body.sfc-archive .wd-page-title .wd-title-wrapp { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; text-align: start; }
html body.sfc-archive .wd-page-title .wd-title-wrapp .sfc-eyebrow { order: -1; }
html body.sfc-archive .wd-page-title .title { margin: 0 !important; text-align: start; line-height: .9; }
.sfc-lead { margin: 4px 0 0; max-width: 52ch; font-family: var(--f-sans); font-size: var(--fs-lead); line-height: 1.5; color: var(--sf-ink-soft); text-align: start; }

/* category navigation: quiet text links on one hairline, each with its small gold number (desktop: the phone keeps the theme's "קטגוריות" accordion) */
@media (min-width: 1025px) {
	html body.sfc-archive .wd-page-title .wd-nav-product-cat { counter-reset: sfcat; display: flex !important; width: 100%; justify-content: flex-start !important; flex-wrap: wrap; gap: 8px 34px !important; margin: clamp(32px, 4vw, 52px) 0 0 !important; padding: 16px 0 0 !important; border-top: 1px solid var(--sf-line); }
	html body.sfc-archive .wd-page-title .wd-nav-product-cat > li { counter-increment: sfcat; margin: 0 !important; }
	html body.sfc-archive .wd-page-title .wd-nav-product-cat > li > a { display: inline-flex !important; align-items: baseline; gap: 7px; padding: 4px 0 !important; font-size: 1rem !important; font-weight: 500 !important; color: var(--sf-ink-soft) !important; border-bottom: 1px solid transparent !important; }
	html body.sfc-archive .wd-page-title .wd-nav-product-cat > li > a::before { content: counter(sfcat, decimal-leading-zero) !important; display: inline !important; position: static !important; width: auto !important; height: auto !important; background: none !important; opacity: 1 !important; transform: none !important; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1; color: var(--sf-gold); }
	html body.sfc-archive .wd-page-title .wd-nav-product-cat > li > a:hover { color: var(--sf-ink) !important; }
	html body.sfc-archive .wd-page-title .wd-nav-product-cat > li.wd-active > a, html body.sfc-archive .wd-page-title .wd-nav-product-cat > li.current-cat > a { color: var(--sf-wine) !important; border-bottom-color: var(--sf-wine) !important; }
	html body.sfc-archive .wd-page-title .wd-nav-product-cat .nav-link-summary, html body.sfc-archive .wd-page-title .wd-nav-product-cat .nav-link-text { padding: 0 !important; }
}

/* the toolbar: breadcrumbs and sort on the same grid, one hairline under them */
html body.sfc-archive main.wd-content-layout { padding-top: 0 !important; }
html body.sfc-archive .shop-loop-head { margin: 0 0 clamp(28px, 3.4vw, 44px) !important; padding: 18px 0 14px !important; }
html body.sfc-archive:is(.tax-product_cat, .tax-product_tag) .term-description { display: none; }

/* ==========================================================================
   Cards: the home's "עבודות נבחרות". A 4:5 photograph on paper, the name in Karantina, kind and price small under it
   ========================================================================== */
html body.sfc-archive .wd-products, html body.sfc-product .related-and-upsells .wd-products, html body.sfc-archive .products.wd-grid-g { --wd-gap-lg: 28px; row-gap: clamp(36px, 4vw, 56px) !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product { --wd-align: flex-start; text-align: start !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-wrapper { transition: transform .5s var(--ease-out); }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-top { background: var(--sf-paper-2); border-radius: 2px; margin: 0 0 14px !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-image-link { aspect-ratio: 4 / 5; padding: 0 !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product.sf-studio .product-image-link img, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-image-link > img { width: 100% !important; height: 100% !important; object-fit: cover !important; mix-blend-mode: normal !important; transition: transform 1.2s var(--ease-out); }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .hover-img { display: none !important; }
@media (hover: hover) {
	html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product:hover .product-wrapper { transform: translateY(-4px); }
	html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product:hover .product-image-link > img { transform: scale(1.04); }
}
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-labels { top: 12px; inset-inline-start: 12px; }

html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-bottom { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; row-gap: 4px; padding: 0 !important; text-align: start; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-bottom > * { grid-column: 1 / -1; margin: 0 !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-entities-title, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-entities-title a { font-family: var(--f-display) !important; font-weight: 700 !important; font-size: 1.6rem !important; line-height: 1.02 !important; letter-spacing: 0; color: var(--sf-ink) !important; text-align: start; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-entities-title a:hover { color: var(--sf-wine) !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-bottom > .wd-product-cats { display: block !important; grid-column: 1; font-size: .88rem; color: var(--sf-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-product-cats a { color: var(--sf-ink-soft) !important; font-size: .88rem !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-product-cats a:not(:first-of-type), html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-product-cats .wd-meta-sep { display: none !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-bottom > .wrap-price { grid-column: 2; justify-self: end; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-bottom > .wd-product-cats ~ .wrap-price { grid-row: 2; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .price, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .sf-inquiry-label { font-size: .9rem !important; font-weight: 500; color: var(--sf-ink) !important; white-space: nowrap; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .price .amount, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .price bdi { color: inherit !important; }
/* the action: a quiet text link with a hairline, wine on hover (WooCommerce's own ajax button, untouched underneath) */
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn { margin: 10px 0 0 !important; justify-self: start; display: flex !important; gap: 14px; align-items: baseline; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn > a, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn .button, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .sf-inquiry-btn, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .add_to_cart_button { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; height: auto !important; min-height: 0 !important; line-height: 1.5 !important; padding: 2px 0 !important; background: transparent !important; color: var(--sf-ink) !important; border: 0 !important; border-bottom: 1px solid var(--sf-line) !important; border-bottom-color: color-mix(in srgb, currentColor 35%, transparent) !important; border-radius: 0 !important; font-family: var(--f-sans) !important; font-size: .92rem !important; font-weight: 600 !important; box-shadow: none !important; transition: color .25s, border-color .25s; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn > a:hover, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn .button:hover { background: transparent !important; color: var(--sf-wine) !important; border-color: var(--sf-wine) !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn .wd-action-icon, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn .button::before, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn .button::after { display: none !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn .button, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-add-btn .button > span { white-space: nowrap; margin: 0 !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product.product-grid-item .wd-add-btn.wd-add-btn-replace :is(.add-to-cart-loop, .button, a) .wd-action-text { display: inline !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; line-height: inherit !important; opacity: 1 !important; transform: none !important; position: static !important; color: inherit !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product.product-grid-item .wd-add-btn.wd-add-btn-replace > a { display: inline-flex !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .added_to_cart { font-size: .92rem; font-weight: 600; color: var(--sf-wine) !important; border-bottom: 1px solid currentColor; padding: 2px 0; }

/* pagination: gold numbers, the current one in ink on a hairline */
html body.sfc-archive .woocommerce-pagination { margin-top: clamp(48px, 5vw, 72px) !important; }
html body.sfc-archive .woocommerce-pagination .page-numbers li .page-numbers { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--sf-gold); background: none !important; border-radius: 0 !important; }
html body.sfc-archive .woocommerce-pagination .page-numbers li :is(.next, .prev) { font-size: 0 !important; }
html body.sfc-archive .woocommerce-pagination .page-numbers li :is(.next, .prev)::before { font-size: 13px; color: var(--sf-ink); }
html body.sfc-archive .woocommerce-pagination .page-numbers li .page-numbers.current { color: var(--sf-ink); border-bottom: 1px solid var(--sf-wine) !important; }
html body.sfc-archive .main-page-wrapper { padding-bottom: var(--sp-ch); }

/* ==========================================================================
   Product page
   ========================================================================== */
html body.sfc-product .single-breadcrumbs-wrapper { display: none !important; }
html body.sfc-product .summary-inner { padding-top: 6px; }
html body.sfc-product .summary-inner > .sfc-eyebrow { margin: 0 0 16px; }
html body.sfc-product .summary-inner .product_title { margin: 0 0 14px !important; }
html body.sfc-product .summary-inner > .price { font-family: var(--f-sans) !important; font-size: 1.35rem !important; font-weight: 500 !important; color: var(--sf-ink) !important; margin: 0 0 14px !important; }
html body.sfc-product .summary-inner > .price .sf-inquiry-label { font-size: 1.05rem; font-weight: 600; color: var(--sf-ink-soft); }
html body.sfc-product .summary-inner > .price .sf-inquiry-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sf-gold); margin-inline-end: 8px; vertical-align: middle; }
html body.sfc-product .woocommerce-product-details__short-description { font-size: var(--fs-lead); line-height: 1.5; color: var(--sf-ink-soft); max-width: 46ch; margin-bottom: 26px !important; }

/* the calm gallery: the 4:5 photograph on paper, no frame, thumbnails as small paper tiles */
html body.sfc-product .woocommerce-product-gallery .wd-gallery-images, html body.sfc-product .woocommerce-product-gallery__wrapper { border: 0 !important; border-radius: 2px !important; background: var(--sf-paper-2) !important; }
html body.sfc-product .woocommerce-product-gallery .wd-gallery-images img, html body.sfc-product .woocommerce-product-gallery__image img { mix-blend-mode: normal !important; background: var(--sf-paper-2); }
html body.sfc-product .wd-gallery-thumb .wd-carousel-item img { border-radius: 2px !important; mix-blend-mode: normal !important; opacity: .55; transition: opacity .3s; }
html body.sfc-product .wd-gallery-thumb .wd-carousel-item.wd-thumb-active img, html body.sfc-product .wd-gallery-thumb .wd-carousel-item:hover img { opacity: 1; }
html body.sfc-product .product-labels .product-label { border-radius: 2px !important; }

/* variations, quantity and the wine button of the home (58px, square corners) */
html body.sfc-product table.variations th.label, html body.sfc-product table.variations .label label { font-family: var(--f-sans); font-weight: 600; font-size: .92rem; color: var(--sf-ink); }
html body.sfc-product .variations select { height: 52px; border-radius: 2px !important; border: 1px solid var(--sf-line) !important; background-color: var(--sf-paper) !important; font-family: var(--f-sans); color: var(--sf-ink) !important; }
html body.sfc-product .wd-swatches-product .wd-swatch { border-radius: 2px !important; }
html body.sfc-product form.cart .quantity input.qty, html body.sfc-product form.cart .quantity .minus, html body.sfc-product form.cart .quantity .plus { height: 58px !important; border-radius: 0 !important; border-color: var(--sf-line) !important; background: transparent; color: var(--sf-ink); }
html body.sfc-product form.cart .quantity { border-radius: 2px; }
html body.sfc-product .single_add_to_cart_button, html body.sfc-product .sf-inquiry__btn { min-height: 58px !important; height: 58px; padding: 0 2.2em !important; border-radius: 2px !important; font-family: var(--f-sans) !important; font-size: 1.08rem !important; font-weight: 600 !important; letter-spacing: .01em; background: var(--sf-wine) !important; border-color: var(--sf-wine) !important; color: #FAF7F2 !important; }
html body.sfc-product .single_add_to_cart_button:hover, html body.sfc-product .sf-inquiry__btn:hover { background: var(--sf-wine-deep) !important; border-color: var(--sf-wine-deep) !important; }
html body.sfc-product .single_add_to_cart_button.disabled { opacity: .55; }
html body.sfc-product .sf-inquiry { background: none !important; padding: 0 !important; margin: 0 0 6px !important; gap: 18px; }
html body.sfc-product .sf-inquiry__text { font-size: 1rem; line-height: 1.55; color: var(--sf-ink-soft); max-width: 46ch; }
html body.sfc-product .sf-trust { margin-top: 26px; }
html body.sfc-product .wd-wishlist-btn a { font-family: var(--f-sans); font-weight: 500; color: var(--sf-ink-soft); }
html body.sfc-product .product_meta { border-top: 1px solid var(--sf-line); padding-top: 14px; }

/* tabs: the labels at the start of the grid, one hairline, the active one underlined in wine */
html body.sfc-product .product-tabs-wrapper { margin-top: var(--sp-ch); padding: 0 !important; border: 0 !important; background: none !important; }
html body.sfc-product .woocommerce-tabs .wd-nav-tabs-wrapper { text-align: start !important; border-bottom: 1px solid var(--sf-line); margin-bottom: 28px; }
html body.sfc-product .woocommerce-tabs .wd-nav-tabs { justify-content: flex-start !important; gap: 34px; }
html body.sfc-product .woocommerce-tabs .wd-nav-tabs > li > a { padding: 0 0 14px !important; }
html body.sfc-product .woocommerce-tabs .wd-nav-tabs > li > a .nav-link-text { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--sf-ink-soft); }
html body.sfc-product .woocommerce-tabs .wd-nav-tabs > li.active > a .nav-link-text { color: var(--sf-ink); }
html body.sfc-product .woocommerce-tabs .wd-nav-tabs > li > a::after { background: var(--sf-wine) !important; height: 1px !important; }
html body.sfc-product .woocommerce-Tabs-panel { font-size: 1.05rem; line-height: 1.65; color: var(--sf-ink-soft); max-width: 68ch; }

/* a real home, edge to edge (the home's "at home" chapter), then "עוד מהסדנה" */
html body.sfc-product .sfc-athome { width: 100vw; max-width: none; margin: var(--sp-ch) calc(50% - 50vw) 0; min-height: 76vh; }
html body.sfc-product .sfc-athome .athome__media { inset: 0; }
html body.sfc-product .sfc-athome .athome__img { object-position: 50% 72%; }
html body.sfc-product .sfc-athome .athome__card a { text-decoration: none; }
html body.sfc-product .sfc-athome .athome__card a .sf-ico { width: 18px; height: 18px; }
html body.sfc-product .related-and-upsells { padding-top: var(--sp-ch) !important; padding-bottom: var(--sp-ch) !important; }
html body.sfc-product .related-and-upsells .title, html body.sfc-product .related-and-upsells .slider-title { font-family: var(--f-display) !important; font-weight: 700 !important; font-size: var(--fs-h2) !important; line-height: .92 !important; color: var(--sf-ink) !important; text-align: start !important; margin: 0 0 clamp(28px, 3vw, 44px) !important; padding: 0 !important; border: 0 !important; }
html body.sfc-product .related-and-upsells .title span { border: 0 !important; padding: 0 !important; }
html body.sfc-product .related-and-upsells .title::before, html body.sfc-product .related-and-upsells .title::after { display: none !important; }
html body.sfc-product .related-and-upsells .wd-nav-arrows .wd-arrow-inner { border-radius: 2px; }

/* ==========================================================================
   Cart, checkout, account: the same head, the same type, the same buttons
   ========================================================================== */
.sfc-phead { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: clamp(12px, 2vw, 28px) 0 clamp(32px, 4vw, 56px); text-align: start; }
.sfc-phead__title { margin: 0 !important; font-family: var(--f-display) !important; font-weight: 700 !important; font-size: var(--fs-h2) !important; line-height: .92 !important; color: var(--sf-ink) !important; }
html body:is(.sfc-cart, .sfc-account) .main-page-wrapper > .container, html body:is(.sfc-cart, .sfc-account) main.wd-content-layout.container { max-width: var(--wrap) !important; padding-inline: var(--gutter) !important; margin-inline: auto !important; }
html body:is(.sfc-cart, .sfc-account) .main-page-wrapper { padding-bottom: var(--sp-ch); }

/* empty cart: no grey clip-art, a quiet sentence, the wine button, then new pieces as the home grid */
html body.woocommerce-cart.sfc-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-family: var(--f-sans) !important; font-weight: 600 !important; font-size: 1.15rem !important; line-height: 1.45 !important; letter-spacing: 0 !important; color: var(--sf-ink-soft) !important; text-align: start !important; margin: 0 0 22px !important; }
html body.sfc-cart .wc-block-cart__empty-cart__title::before { display: none !important; content: none !important; }
html body.woocommerce-cart.sfc-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p { margin: 0 !important; font-size: inherit !important; }
html body.woocommerce-cart.sfc-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p a { display: inline-flex !important; align-items: center; justify-content: center; min-height: 58px; padding: 0 2.2em !important; border: 1px solid var(--sf-wine) !important; border-radius: 2px !important; background: var(--sf-wine) !important; color: #FAF7F2 !important; font-family: var(--f-sans) !important; font-size: 1.08rem !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: .01em; text-decoration: none !important; transition: background .25s, border-color .25s; }
html body.woocommerce-cart.sfc-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p a:hover { background: var(--sf-wine-deep) !important; border-color: var(--sf-wine-deep) !important; }
html body.sfc-cart .wp-block-woocommerce-empty-cart-block { text-align: start; }
html body.sfc-cart .wp-block-woocommerce-empty-cart-block > p, html body.sfc-cart .wp-block-woocommerce-empty-cart-block .has-text-align-center { text-align: start !important; }
html body.sfc-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator { margin: var(--sp-ch) 0 0 !important; border: 0 !important; border-top: 1px solid var(--sf-line) !important; width: 100% !important; max-width: none !important; height: 0 !important; background: none !important; opacity: 1 !important; }
html body.sfc-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator::before, html body.sfc-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator::after { display: none !important; }
html body.sfc-cart .wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) { font-family: var(--f-display) !important; font-weight: 700 !important; font-size: var(--fs-h2) !important; line-height: .92; text-align: start !important; margin: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px) !important; color: var(--sf-ink); }
html body.sfc-cart .wc-block-grid__products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0 !important; }
html body.sfc-cart .wc-block-grid__product { flex: none !important; max-width: none !important; width: auto !important; text-align: start !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
@media (max-width: 767px) { html body.sfc-cart .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }
html body.sfc-cart .wc-block-grid__product-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sf-paper-2); border-radius: 2px; margin: 0 0 14px !important; }
html body.sfc-cart .wc-block-grid__product-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--ease-out); }
html body.sfc-cart .wc-block-grid__product:hover .wc-block-grid__product-image img { transform: scale(1.04); }
html body.sfc-cart .wc-block-grid__product-title { font-family: var(--f-display) !important; font-weight: 700 !important; font-size: 1.6rem !important; line-height: 1.02; color: var(--sf-ink) !important; margin: 0 0 4px !important; }
html body.sfc-cart .wc-block-grid__product-price { font-size: .9rem !important; color: var(--sf-ink) !important; margin: 0 0 10px !important; }
html body.sfc-cart .wc-block-grid__product-add-to-cart .wp-block-button__link, html body.sfc-cart .wc-block-grid__product .add_to_cart_button { background: transparent !important; color: var(--sf-ink) !important; border: 0 !important; border-bottom: 1px solid var(--sf-line) !important; border-bottom-color: color-mix(in srgb, currentColor 35%, transparent) !important; border-radius: 0 !important; padding: 2px 0 !important; min-height: 0 !important; font-family: var(--f-sans) !important; font-size: .92rem !important; font-weight: 600 !important; text-transform: none !important; }
html body.sfc-cart .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { color: var(--sf-wine) !important; border-color: var(--sf-wine) !important; }

/* filled cart and checkout: hairline tables, totals on paper-2, Karantina headings */
html body.sfc-cart .wc-block-cart-items, html body.sfc-cart .wc-block-cart-items th, html body.sfc-cart .wc-block-cart-items td { border-color: var(--sf-line) !important; }
html body.sfc-cart .wc-block-cart-items__header, html body.sfc-cart .wc-block-cart-items th { font-family: var(--f-sans) !important; font-weight: 600 !important; font-size: .88rem !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--sf-ink-soft) !important; }
html body.sfc-cart .wc-block-components-product-name { font-family: var(--f-display) !important; font-weight: 700 !important; font-size: 1.6rem !important; line-height: 1 !important; color: var(--sf-ink) !important; text-decoration: none !important; }
html body.sfc-cart .wc-block-cart-item__image img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--sf-paper-2); border-radius: 2px; }
html body.sfc-cart .wc-block-cart__sidebar .wc-block-components-sidebar-layout__inner, html body.sfc-cart .wp-block-woocommerce-cart-order-summary-block, html body.sfc-cart .wc-block-checkout__sidebar { background: var(--sf-paper-2); border-radius: 2px; padding: 24px; }
html body.sfc-cart .wc-block-cart__totals-title, html body.sfc-cart .wc-block-components-title, html body.sfc-cart .wc-block-components-checkout-step__title { font-family: var(--f-display) !important; font-weight: 700 !important; font-size: 1.9rem !important; line-height: 1 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--sf-ink) !important; }
html body.sfc-cart .wc-block-components-quantity-selector { border-radius: 2px !important; border-color: var(--sf-line) !important; }
html body.sfc-cart .wc-block-components-quantity-selector::after { border-radius: 2px !important; border-color: var(--sf-line) !important; }
html body.sfc-cart .wc-block-components-text-input input, html body.sfc-cart .wc-block-components-combobox .components-combobox-control__input, html body.sfc-cart .wc-blocks-components-select__select, html body.sfc-cart .wc-block-components-textarea { border-radius: 2px !important; border-color: var(--sf-line) !important; background: var(--sf-paper) !important; color: var(--sf-ink) !important; }

/* account: the login and register forms on the grid, hairline fields, the wine button */
html body.woocommerce-account.sfc-account.sfc-account :is(.woocommerce > h2, .u-column1 > h2, .u-column2 > h2, .wd-login-title, .woocommerce-form-login-wrapper h2, .col-login h2, .wd-registration-page h2) { font-family: var(--f-sans) !important; font-weight: 600 !important; font-size: 1.15rem !important; line-height: 1.3 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--sf-ink) !important; text-align: start !important; margin: 0 0 18px !important; }
html body.sfc-account .woocommerce form .form-row label, html body.sfc-account .woocommerce-form label { font-family: var(--f-sans); font-weight: 600; font-size: .92rem; color: var(--sf-ink); }
html body.sfc-account .woocommerce form .form-row input.input-text, html body.sfc-account .woocommerce-form input.input-text, html body.sfc-account .woocommerce form .form-row select { height: 52px; border-radius: 2px !important; border: 1px solid var(--sf-line) !important; background: var(--sf-paper) !important; color: var(--sf-ink) !important; box-shadow: none !important; }
html body.sfc-account .woocommerce form .form-row input.input-text:focus { border-color: var(--sf-gold) !important; }
html body.sfc-account .woocommerce form.login, html body.sfc-account .woocommerce form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; }
html body:is(.sfc-account, .sfc-cart) :is(.woocommerce-form-login__submit, .woocommerce-form-register__submit, button.woocommerce-Button, button[name="save_address"], #place_order, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-totals-coupon__button) { min-height: 54px !important; padding: 0 2em !important; border-radius: 2px !important; border: 1px solid var(--sf-wine) !important; background: var(--sf-wine) !important; color: #FAF7F2 !important; font-family: var(--f-sans) !important; font-size: 1.02rem !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: .01em !important; box-shadow: none !important; }
html body:is(.sfc-account, .sfc-cart) :is(.woocommerce-form-login__submit, .woocommerce-form-register__submit, button.woocommerce-Button, button[name="save_address"], #place_order, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-totals-coupon__button):hover { background: var(--sf-wine-deep) !important; border-color: var(--sf-wine-deep) !important; color: #FAF7F2 !important; }
html body.sfc-account .woocommerce-MyAccount-content :is(table .button, table .woocommerce-button, .woocommerce-Address-title a, .woocommerce-pagination .button) { display: inline !important; min-height: 0 !important; height: auto !important; padding: 2px 0 !important; margin: 0 12px 0 0 !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--sf-line) !important; border-bottom-color: color-mix(in srgb, currentColor 35%, transparent) !important; border-radius: 0 !important; color: var(--sf-ink) !important; font-family: var(--f-sans) !important; font-size: .92rem !important; font-weight: 600 !important; line-height: 1.5 !important; box-shadow: none !important; }
html body.sfc-account .woocommerce-MyAccount-content :is(table .button, table .woocommerce-button, .woocommerce-Address-title a):hover { color: var(--sf-wine) !important; background: transparent !important; }
html body.sfc-account .woocommerce-form-login__submit { width: 100%; }
html body.sfc-account .wd-registration-page { margin-inline: 0 !important; max-width: 520px; }
html body.sfc-account .woocommerce-LostPassword a, html body.sfc-account .lost_password a { color: var(--sf-ink-soft); border-bottom: 1px solid var(--sf-line); border-bottom-color: color-mix(in srgb, currentColor 30%, transparent); }
html body.sfc-account .woocommerce-form-login__rememberme input, html body.sfc-account input[type="checkbox"] { accent-color: var(--sf-wine); }
/* logged in: the account menu as quiet text links on one hairline */
html body.sfc-account .woocommerce-MyAccount-navigation { background: none !important; padding: 0 !important; border-radius: 0 !important; }
html body.sfc-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sf-line); }
html body.sfc-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--sf-line); }
html body.sfc-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0 !important; font-family: var(--f-sans); font-weight: 500; color: var(--sf-ink-soft) !important; background: none !important; }
html body.sfc-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--sf-wine) !important; }

/* phones: the head and grids keep the same grammar, smaller */
@media (max-width: 767px) {
	html body.sfc-archive .wd-page-title { padding-top: calc(var(--hdr-h) + 28px) !important; }
	html body.sfc-archive .wd-page-title .wd-nav-product-cat { margin-top: 22px !important; }
	html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-entities-title, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .wd-entities-title a { font-size: 1.3rem !important; }
	html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-bottom { grid-template-columns: minmax(0, 1fr); }
	html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-bottom > .wrap-price, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-element-bottom > .wd-product-cats ~ .wrap-price { grid-column: 1; grid-row: auto; justify-self: start; }
	html body.sfc-product .sfc-athome { min-height: 0; }
	html body.sfc-product .woocommerce-tabs .wd-nav-tabs-wrapper { border-bottom: 0; }
	.sfc-phead { margin-bottom: 28px; }
	.sfc-phead__title { font-size: 3rem !important; }
	html body.woocommerce-cart.sfc-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-size: 1.08rem !important; margin: 0 0 18px !important; }
	html body.woocommerce-cart.sfc-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title + p a { width: 100%; }
	html body.woocommerce-cart.sfc-cart .wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) { font-size: 2.4rem !important; }
}

/* 13.10.2026: product photos now sit on the site paper (background removed), so the cards show the whole piece, never a crop */
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product.sf-studio .product-image-link img, html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-image-link > img { object-fit: contain !important; }
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-image-link { background: var(--sf-paper); }

/* 13.10.2026: product photos sit on the site paper now. One square frame for every slide (no tall empty block under a wide photo), the whole piece, same paper behind */
html body.sfc-product .woocommerce-product-gallery .wd-gallery-images, html body.sfc-product .woocommerce-product-gallery__wrapper { background: var(--sf-paper) !important; }
html body.sfc-product .wd-gallery-images .woocommerce-product-gallery__image, html body.sfc-product .wd-gallery-images .wd-carousel-item { display: flex; align-items: center; justify-content: center; }
html body.sfc-product .wd-gallery-images .woocommerce-product-gallery__image img, html body.sfc-product .wd-gallery-images .woocommerce-product-gallery__image > a > img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain !important; background: var(--sf-paper) !important; }
html body.sfc-product .wd-gallery-thumb .wd-carousel-item img { aspect-ratio: 1 / 1; object-fit: contain !important; background: var(--sf-paper) !important; }
/* the quantity − / + read as buttons */
html body.sfc-product form.cart .quantity .minus, html body.sfc-product form.cart .quantity .plus { color: var(--sf-ink) !important; background: transparent !important; font-size: 1.2rem !important; font-weight: 600; opacity: 1 !important; }
html body.sfc-product form.cart .quantity .minus:hover, html body.sfc-product form.cart .quantity .plus:hover { color: var(--sf-wine) !important; }
/* same seamless paper for the shop cards and the product gallery */
html body:is(.sfc-archive, .sfc-product, .sfc-cart) .wd-product .product-image-link img, html body.sfc-product .wd-gallery-images .woocommerce-product-gallery__image img, html body.sfc-product .wd-gallery-thumb .wd-carousel-item img { mix-blend-mode: darken !important; }

/* Orel 18.10.2026: the shop head carries a photo (vars printed by sfc_shop_hero_vars) */
body.sfc-shop-hero .wd-page-title { position: relative; isolation: isolate; background: #2A1C15; padding-block: clamp(120px, 14vw, 190px) clamp(28px, 4vw, 44px); }
html body.sfc-shop-hero .wd-page-title .wd-page-title-bg { display: block !important; position: absolute; inset: 0; background: var(--sfc-hero) var(--sfc-pos, center 60%) / cover no-repeat !important; opacity: 1 !important; z-index: -2; }
body.sfc-shop-hero .wd-page-title::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(to bottom, rgba(110,22,38,.42) 0%, rgba(110,22,38,0) 38%), linear-gradient(to top, rgba(20,13,11,.9) 0%, rgba(20,13,11,.5) 55%, rgba(20,13,11,.32) 100%); }
body.sfc-shop-hero .wd-page-title .entry-title, body.sfc-shop-hero .wd-page-title h1 { color: var(--sf-paper) !important; }
body.sfc-shop-hero .wd-page-title .sfc-eyebrow, body.sfc-shop-hero .wd-page-title .sfc-eyebrow span, body.sfc-shop-hero .wd-page-title .sfc-eyebrow__n { color: var(--sf-gold-soft) !important; }
body.sfc-shop-hero .wd-page-title .wd-nav-product-cat > li > a, body.sfc-shop-hero .wd-page-title .wd-nav-product-cat > li > a .nav-link-text, body.sfc-shop-hero .wd-page-title .wd-btn-show-cat, body.sfc-shop-hero .wd-page-title .wd-btn-show-cat .wd-action-text { color: rgba(247,242,235,.88) !important; }
body.sfc-shop-hero .wd-page-title .wd-nav-product-cat > li > a:hover .nav-link-text, body.sfc-shop-hero .wd-page-title .wd-nav-product-cat > li.wd-active > a .nav-link-text { color: #fff !important; }
body.sfc-shop-hero .wd-page-title .wd-nav-product-cat > li > a::before, body.sfc-shop-hero .wd-page-title .wd-nav-product-cat > li > a .nav-link-summary { color: var(--sf-gold-soft) !important; }
body.sfc-shop-hero .wd-page-title .wd-nav-product-cat { border-color: rgba(247,242,235,.22) !important; }
body.sfc-shop-hero .whb-header:not(.whb-sticked) .wd-header-nav .nav-link-text, body.sfc-shop-hero .whb-header:not(.whb-sticked) .wd-tools-icon { color: var(--sf-paper); }
@media (max-width: 767px) {
	body.sfc-shop-hero .wd-page-title { padding-block: 110px 26px; }
	html body.sfc-shop-hero .wd-page-title .wd-page-title-bg { background-image: var(--sfc-hero-m) !important; background-position: center 55% !important; }
}
/* the product page: a band of the category's photo behind the header (vars from sfc_shop_hero_vars) */
body.sfc-prod-band .wd-page-wrapper { position: relative; }
body.sfc-prod-band .wd-page-wrapper::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 168px; z-index: 0; pointer-events: none;
	background: linear-gradient(to bottom, rgba(110,22,38,.45) 0%, rgba(110,22,38,0) 60%), linear-gradient(to top, rgba(20,13,11,.72), rgba(20,13,11,.45)), var(--sfc-hero) var(--sfc-pos, center 55%) / cover no-repeat; }
body.sfc-prod-band .wd-page-content { position: relative; z-index: 1; }
@media (max-width: 767px) {
	body.sfc-prod-band .wd-page-wrapper::before { height: 150px; background-image: linear-gradient(to bottom, rgba(110,22,38,.45) 0%, rgba(110,22,38,0) 60%), linear-gradient(to top, rgba(20,13,11,.72), rgba(20,13,11,.45)), var(--sfc-hero-m); background-position: center 45%; }
	body.sfc-prod-band .wd-page-content { padding-top: 86px; }
}
body.sfc-shop-hero .wd-page-title .sfc-lead { color: rgba(247,242,235,.86) !important; }
body.sfc-prod-band .wd-page-content { background: transparent !important; }
