/*
Theme Name: Zifasha
Theme URI: https://zifasha.com
Author: Zifasha
Description: Fast, Flipkart-style WooCommerce storefront for Zifasha jewellery: big search, category strip, banners, deal rows, clean product page with Add to Cart and Buy Now.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 7.4
WC requires at least: 8.0
License: GNU General Public License v2 or later
Text Domain: zifasha
*/

:root {
	--zf-primary: #e8467c;
	--zf-primary-dark: #b5365f;
	--zf-primary-soft: #fdeef3;
	--zf-cart: #ff9f00;
	--zf-bg: #f1f3f6;
	--zf-card: #ffffff;
	--zf-text: #212121;
	--zf-muted: #6b6b6b;
	--zf-line: #e6e8ec;
	--zf-green: #26a541;
	--zf-green-dark: #388e3c;
	--zf-foot: #23121c;
	--zf-radius: 10px;
	--zf-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
	--zf-header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.zf {
	margin: 0;
	background: var(--zf-bg);
	color: var(--zf-text);
	font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.zf img { max-width: 100%; height: auto; }
.zf a { color: inherit; text-decoration: none; }
.zf button, .zf input, .zf select, .zf textarea { font: inherit; color: inherit; }
.zf h1, .zf h2, .zf h3 { line-height: 1.25; margin: 0 0 .5em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.zf-skip:focus { clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px; background: #fff; padding: 8px 12px; border-radius: 6px; }
.zf :focus-visible { outline: 2px solid var(--zf-primary); outline-offset: 2px; }
.zf-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.zf-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.zf-main { min-height: 50vh; padding-bottom: 24px; }
.zf-box { background: var(--zf-card); border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); }
.zf-btn, .zf .button, .zf button.button, .zf input[type="submit"], .zf .wp-element-button, .zf .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px; border: 0; border-radius: 8px;
	background: var(--zf-primary); color: #fff; font-weight: 600; cursor: pointer;
	text-decoration: none; transition: background .15s, transform .15s;
}
.zf-btn:hover, .zf .button:hover, .zf input[type="submit"]:hover { background: var(--zf-primary-dark); color: #fff; }
.zf-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.zf-icon-btn:hover { background: var(--zf-bg); }

/* ---------- Announcement + header ---------- */
.zf-announce { background: var(--zf-primary); color: #fff; font-size: 12.5px; font-weight: 500; text-align: center; padding: 6px 0; }
.zf-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--zf-line); }
.admin-bar .zf-header { top: 32px; }
.zf-header-row { display: flex; align-items: center; gap: 24px; height: var(--zf-header-h); }
.zf-menu-btn { display: none; }
.zf-logo { flex: 0 0 auto; display: flex; align-items: center; }
.zf-logo img, .zf-logo .custom-logo { display: block; width: auto; max-height: 40px; }
.zf-logo-text { font-size: 24px; font-weight: 700; letter-spacing: .12em; color: var(--zf-primary); text-transform: uppercase; }
.zf-header-search { flex: 1 1 auto; max-width: 720px; }
.zf-search { position: relative; display: flex; align-items: center; background: var(--zf-primary-soft); border-radius: 10px; }
.zf-search input[type="search"] {
	flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 44px; border: 1px solid transparent;
	border-radius: 10px; background: transparent; font-size: 15px; outline: none;
	-webkit-appearance: none; appearance: none;
}
.zf-search input[type="search"]:focus { background: #fff; border-color: var(--zf-primary); }
.zf-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.zf-search button { position: absolute; left: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--zf-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.zf-suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
	background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .16); overflow: hidden;
}
.zf-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.zf-suggest a:hover, .zf-suggest a.is-active { background: var(--zf-bg); }
.zf-suggest img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.zf-suggest .zf-sg-name { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zf-suggest .zf-sg-price { font-weight: 600; }
.zf-suggest .zf-sg-all { justify-content: center; color: var(--zf-primary); font-weight: 600; border-top: 1px solid var(--zf-line); }
.zf-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.zf-action, .zf-actions .zf-cart-link {
	position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
	border-radius: 10px; font-weight: 500; font-size: 15px; white-space: nowrap;
}
.zf-action:hover, .zf-actions .zf-cart-link:hover { background: var(--zf-bg); }
.zf-cart-count {
	position: absolute; top: 4px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--zf-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
	border: 2px solid #fff; box-sizing: content-box;
}
.zf-cart-count.is-empty { display: none; }
.zf-account { position: relative; }
.zf-dropdown {
	position: absolute; right: 0; top: 100%; z-index: 60; width: 240px; padding: 6px 0; background: #fff;
	border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.zf-account:hover .zf-dropdown, .zf-account:focus-within .zf-dropdown { opacity: 1; visibility: visible; transform: none; }
.zf-dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14px; }
.zf-dropdown a:hover { background: var(--zf-bg); }
.zf-dropdown .zf-icon { width: 18px; height: 18px; color: var(--zf-muted); }
.zf-dropdown-head { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--zf-line); font-size: 14px; }
.zf-dropdown-head a { padding: 0; color: var(--zf-primary); font-weight: 600; }
.zf-mobile-search { display: none; }

/* ---------- Category strip ---------- */
.zf-catbar { background: #fff; margin-bottom: 12px; box-shadow: var(--zf-shadow); }
.zf-cats, .zf-catbar-menu {
	display: flex; justify-content: center; gap: 8px; margin: 0; padding: 12px 0; list-style: none;
	overflow-x: auto; scrollbar-width: none;
}
.zf-cats::-webkit-scrollbar, .zf-catbar-menu::-webkit-scrollbar { display: none; }
.zf-cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 4px; text-align: center; }
.zf-cat-img {
	display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
	background: var(--zf-primary-soft); color: var(--zf-primary); overflow: hidden; transition: transform .2s;
}
.zf-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.zf-cat-img .zf-icon { width: 28px; height: 28px; }
.zf-cats a:hover .zf-cat-img { transform: translateY(-2px); }
.zf-cat-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.zf-cats a:hover .zf-cat-name { color: var(--zf-primary); }
.zf-catbar-menu a { display: block; padding: 8px 14px; font-weight: 600; white-space: nowrap; border-radius: 8px; }
.zf-catbar-menu a:hover { background: var(--zf-primary-soft); color: var(--zf-primary); }

/* ---------- Homepage ---------- */
.zf-home { display: flex; flex-direction: column; gap: 12px; }
.zf-hero { position: relative; border-radius: var(--zf-radius); overflow: hidden; background: #fff; box-shadow: var(--zf-shadow); }
.zf-hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.zf-hero-track::-webkit-scrollbar { display: none; }
.zf .zf-slide {
	position: relative; flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center;
	justify-content: space-between; aspect-ratio: 16 / 5; min-height: 220px; padding: 0 6%; overflow: hidden; color: #fff;
}
.zf-slide.has-image { padding: 0; }
.zf-slide.has-image img { width: 100%; height: 100%; object-fit: cover; }
.zf-slide-1 { background: linear-gradient(110deg, #c2185b 0%, #e8467c 55%, #f7a1bf 100%); }
.zf-slide-2 { background: linear-gradient(110deg, #6a1b4d 0%, #a4306f 55%, #e57fae 100%); }
.zf-slide-3 { background: linear-gradient(110deg, #8a4b08 0%, #c98a1a 55%, #f2c46d 100%); }
.zf-slide::after {
	content: ""; position: absolute; right: -8%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); pointer-events: none;
}
.zf-slide.has-image::after { display: none; }
.zf-slide-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 55%; }
.zf-slide-kicker { font-size: 12px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; opacity: .9; }
.zf-slide-title { font-size: clamp(26px, 4vw, 48px); font-weight: 700; line-height: 1.05; }
.zf-slide-text { font-size: clamp(14px, 1.5vw, 18px); opacity: .95; }
.zf-slide-cta { margin-top: 8px; padding: 10px 22px; border-radius: 8px; background: #fff; color: var(--zf-text); font-weight: 700; font-size: 14px; }
.zf-slide-photo { position: relative; z-index: 1; height: 88%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); border: 6px solid rgba(255, 255, 255, .6); }
.zf-slide-photo img { width: 100%; height: 100%; object-fit: cover; }
.zf-hero-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.zf-hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s, background .2s; }
.zf-hero-dots button[aria-current="true"] { width: 22px; background: #fff; }

.zf-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 0; padding: 14px 16px; list-style: none; }
.zf-trust li { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14px; }
.zf-trust .zf-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--zf-primary-soft); color: var(--zf-primary); box-sizing: content-box; }

.zf-section { padding: 16px; }
.zf-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.zf-section-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.zf-btn-round { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--zf-primary); color: #fff !important; }
.zf-btn-round:hover { background: var(--zf-primary-dark); }

.zf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.zf-row > * { scroll-snap-align: start; }
.zf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.zf-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.zf-tile {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 140px; padding: 18px;
	border-radius: var(--zf-radius); overflow: hidden; box-shadow: var(--zf-shadow);
}
.zf-tile-1 { background: linear-gradient(135deg, #fff1f5, #ffd6e4); }
.zf-tile-2 { background: linear-gradient(135deg, #fff8e6, #ffe2a8); }
.zf-tile-3 { background: linear-gradient(135deg, #f3edff, #dccdfd); }
.zf-tile-copy { display: flex; flex-direction: column; gap: 4px; }
.zf-tile-sub { font-size: 13px; color: var(--zf-muted); font-weight: 500; }
.zf-tile-title { font-size: 22px; font-weight: 700; }
.zf-tile-cta { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--zf-primary); }
.zf-tile-cta .zf-icon { width: 16px; height: 16px; }
.zf-tile img { width: 104px; height: 104px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transition: transform .25s; }
.zf-tile:hover img { transform: scale(1.06) rotate(-3deg); }

/* ---------- Product card ---------- */
.zf-card { position: relative; height: 100%; border: 1px solid var(--zf-line); border-radius: var(--zf-radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.zf-card:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.zf-card-link { display: flex; flex-direction: column; height: 100%; }
.zf-card-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--zf-radius) var(--zf-radius) 0 0; background: #fafafa; }
.zf-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.zf-card:hover .zf-card-img img { transform: scale(1.05); }
.zf-card-badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 4px; background: var(--zf-green); color: #fff; font-size: 11.5px; font-weight: 700; }
.zf-card-out { position: absolute; inset: auto 0 0 0; padding: 6px; background: rgba(33, 33, 33, .78); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.zf-card.is-out .zf-card-img img { filter: grayscale(.6); opacity: .8; }
.zf-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.zf-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; min-height: 2.8em; }
.zf-card:hover .zf-card-title { color: var(--zf-primary); }
.zf-card-note { font-size: 12px; color: var(--zf-muted); }
.zf-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.zf-now { font-weight: 700; font-size: 16px; color: var(--zf-text); }
.zf-now ins { text-decoration: none; }
.zf-was { color: var(--zf-muted); font-size: 13px; }
.zf-off { color: var(--zf-green-dark); font-weight: 700; font-size: 13px; }
.zf-rating { display: flex; align-items: center; gap: 6px; }
.zf-rating-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 4px; background: var(--zf-green-dark); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; }
.zf-rating-pill .zf-icon { width: 11px; height: 11px; fill: #fff; stroke: none; }
.zf-rating-count { color: var(--zf-muted); font-size: 12.5px; font-weight: 500; }

/* ---------- Breadcrumb ---------- */
.zf-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 0; font-size: 12.5px; color: var(--zf-muted); }
.zf-crumbs a:hover { color: var(--zf-primary); }
.zf-crumb-sep { color: #b0b0b0; }

/* ---------- Shop / category ---------- */
.zf-shop { display: grid; grid-template-columns: 260px 1fr; gap: 12px; align-items: start; }
.zf-filters { position: sticky; top: calc(var(--zf-header-h) + 12px); padding: 0 0 8px; }
.zf-filters-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--zf-line); }
.zf-filters-head h2 { margin: 0; font-size: 18px; }
.zf-filters-close { display: none; }
.zf-filter-box { padding: 14px 16px; border-bottom: 1px solid var(--zf-line); }
.zf-filter-box:last-child { border-bottom: 0; }
.zf-filter-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--zf-muted); }
.zf-filter-list { margin: 0; padding: 0; list-style: none; }
.zf-filter-list a { display: flex; justify-content: space-between; padding: 7px 10px; margin: 0 -10px; border-radius: 6px; font-size: 14px; }
.zf-filter-list a:hover { background: var(--zf-bg); }
.zf-filter-list a.is-active { background: var(--zf-primary-soft); color: var(--zf-primary); font-weight: 600; }
.zf-filter-list span { color: var(--zf-muted); font-size: 12px; }
.zf-filter-list .zf-clear { color: var(--zf-primary); font-weight: 600; }
.zf-results { padding: 16px; min-width: 0; }
.zf-results-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.zf-results-title { margin: 0; font-size: 20px; }
.zf .woocommerce-result-count { margin: 0; color: var(--zf-muted); font-size: 13px; }
.zf-filter-toggle { display: none; }
.zf-sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 10px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--zf-line); font-size: 14px; }
.zf-sort-label { font-weight: 600; }
.zf-sortbar a { padding: 4px 0; border-bottom: 2px solid transparent; color: var(--zf-muted); }
.zf-sortbar a:hover { color: var(--zf-text); }
.zf-sortbar a.is-active { color: var(--zf-primary); border-color: var(--zf-primary); font-weight: 600; }
.zf .term-description, .zf .page-description { margin-bottom: 16px; color: var(--zf-muted); }
.zf-grid-shop { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.zf-empty { padding: 40px 16px; text-align: center; }
.zf-empty .zf-search { max-width: 480px; margin: 16px auto; }
.zf .woocommerce-pagination { margin-top: 20px; text-align: center; }
.zf .woocommerce-pagination ul { display: inline-flex; gap: 6px; margin: 0; padding: 0; list-style: none; border: 0; }
.zf .woocommerce-pagination li { border: 0 !important; }
.zf .woocommerce-pagination a, .zf .woocommerce-pagination span { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 50%; font-weight: 600; }
.zf .woocommerce-pagination a:hover { background: var(--zf-bg); }
.zf .woocommerce-pagination .current { background: var(--zf-primary); color: #fff; }

/* ---------- Single product ---------- */
.zf-single { padding: 20px; }
.zf-single div.product { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 8px 36px; align-items: start; position: relative; }
.zf-single div.product > .woocommerce-product-gallery { position: relative; top: 0 !important; width: auto !important; float: none !important; margin: 0; opacity: 1 !important; }
.zf-single div.product > .summary { width: auto !important; float: none !important; margin: 0; min-width: 0; }
.zf-single div.product > .woocommerce-tabs,
.zf-single div.product > .related,
.zf-single div.product > .upsells,
.zf-single div.product > section { grid-column: 1 / -1; }
.zf .woocommerce-product-gallery { position: relative; }
.zf .woocommerce-product-gallery__wrapper { margin: 0; }
.zf-single .woocommerce-product-gallery__wrapper {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
	border: 1px solid var(--zf-line); border-radius: var(--zf-radius); background: #fafafa;
}
.zf-single .woocommerce-product-gallery__wrapper::-webkit-scrollbar { display: none; }
.zf-single .woocommerce-product-gallery__image,
.zf-single .woocommerce-product-gallery__image:nth-child(n+2) { flex: 0 0 100%; width: 100% !important; display: block !important; margin: 0 !important; padding: 0 !important; scroll-snap-align: start; }
.zf-single .woocommerce-product-gallery__image a { display: block; }
.zf-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.zf-thumbs button { flex: 0 0 64px; width: 64px; height: 64px; padding: 0; border: 2px solid var(--zf-line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; opacity: .75; transition: border-color .15s, opacity .15s; }
.zf-thumbs button:hover, .zf-thumbs button[aria-current="true"] { border-color: var(--zf-primary); opacity: 1; }
.zf-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zf-gallery-count { position: absolute; left: 12px; bottom: 12px; z-index: 4; padding: 2px 10px; border-radius: 12px; background: rgba(33, 33, 33, .7); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
@media (max-width: 767px) { .zf-thumbs { display: none; } }
@media (min-width: 768px) { .zf-gallery-count { display: none; } }
.zf .woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--zf-shadow); font-size: 0; display: flex; align-items: center; justify-content: center; }
.zf .woocommerce-product-gallery__trigger::before { content: ""; width: 18px; height: 18px; background: var(--zf-text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.zf .woocommerce-product-gallery__trigger span, .zf .woocommerce-product-gallery__trigger img { display: none !important; }

.zf .summary .product_title { font-size: 22px; font-weight: 500; line-height: 1.35; margin: 0 0 8px; }
.zf-single-rating { display: inline-flex; margin-bottom: 8px; }
.zf-single-price { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 14px; }
.zf-special { color: var(--zf-green-dark); font-size: 14px; font-weight: 600; }
.zf-single-price .zf-now { font-size: 30px; }
.zf-single-price .zf-was { font-size: 16px; }
.zf-single-price .zf-off { font-size: 16px; }
.zf-tax-note { font-size: 12px; color: var(--zf-muted); }
.zf .summary .woocommerce-product-details__short-description { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--zf-line); border-radius: var(--zf-radius); }
.zf .woocommerce-product-details__short-description h3 { font-size: 15px; margin: 0 0 6px; }
.zf .woocommerce-product-details__short-description ul { margin: 0; padding-left: 18px; }
.zf .woocommerce-product-details__short-description li { margin: 3px 0; }
.zf .summary .stock { font-weight: 600; color: var(--zf-green-dark); }
.zf .summary .stock.out-of-stock { color: #c62828; }

.zf form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.zf form.cart .quantity { display: flex; }
.zf .quantity .qty { width: 72px; height: 50px; border: 1px solid var(--zf-line); border-radius: 8px; text-align: center; font-weight: 600; }
.zf form.cart .single_add_to_cart_button {
	flex: 1 1 180px; min-height: 52px; border: 0; border-radius: 8px; color: #fff; font-size: 16px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .02em; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); margin: 0 !important;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.zf form.cart .single_add_to_cart_button:not(.zf-buy-now) { background: var(--zf-cart) !important; }
.zf form.cart .single_add_to_cart_button:not(.zf-buy-now)::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6'/%3E%3Ccircle cx='10' cy='20.5' r='1.3'/%3E%3Ccircle cx='17' cy='20.5' r='1.3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6'/%3E%3Ccircle cx='10' cy='20.5' r='1.3'/%3E%3Ccircle cx='17' cy='20.5' r='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }
.zf form.cart .zf-buy-now { background: var(--zf-primary) !important; }
.zf form.cart .zf-buy-now::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.zf form.cart .single_add_to_cart_button:hover { filter: brightness(.94); }
.zf form.cart .single_add_to_cart_button.loading { opacity: .7; }
.zf form.cart .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.zf .variations { width: 100%; margin: 0 0 8px; border-collapse: collapse; }
.zf .variations th, .zf .variations td { padding: 6px 0; text-align: left; }
.zf .variations select { min-width: 200px; height: 44px; padding: 0 12px; border: 1px solid var(--zf-line); border-radius: 8px; background: #fff; }
.zf .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.zf .reset_variations { margin-left: 8px; color: var(--zf-primary); font-size: 13px; }

.zf-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; padding: 14px 16px; list-style: none; border: 1px solid var(--zf-line); border-radius: var(--zf-radius); }
.zf-services li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; }
.zf-services .zf-icon { width: 20px; height: 20px; padding: 7px; border-radius: 50%; background: var(--zf-primary-soft); color: var(--zf-primary); box-sizing: content-box; }
.zf .product_meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--zf-muted); }
.zf .product_meta a { color: var(--zf-primary); }

.zf .woocommerce-tabs { margin-top: 24px; border: 1px solid var(--zf-line); border-radius: var(--zf-radius); overflow: hidden; }
.zf .woocommerce-tabs ul.tabs { display: flex; gap: 0; margin: 0; padding: 0 8px; list-style: none; border-bottom: 1px solid var(--zf-line); overflow-x: auto; }
.zf .woocommerce-tabs ul.tabs::before, .zf .woocommerce-tabs ul.tabs li::before, .zf .woocommerce-tabs ul.tabs li::after { display: none !important; }
.zf .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
.zf .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 16px; font-weight: 600; color: var(--zf-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.zf .woocommerce-tabs ul.tabs li.active a { color: var(--zf-primary); border-color: var(--zf-primary); }
.zf .woocommerce-tabs .panel { margin: 0; padding: 18px 20px; }
.zf .woocommerce-tabs .panel ul { padding-left: 18px; }
.zf .shop_attributes { width: 100%; border-collapse: collapse; }
.zf .shop_attributes th, .zf .shop_attributes td { padding: 10px 12px; border-bottom: 1px solid var(--zf-line); text-align: left; vertical-align: top; }
.zf .shop_attributes th { width: 30%; color: var(--zf-muted); font-weight: 500; }
.zf .shop_attributes p { margin: 0; }
.zf #reviews .commentlist { margin: 0; padding: 0; list-style: none; }
.zf #reviews .comment_container { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--zf-line); }
.zf #reviews .avatar { width: 40px; height: 40px; border-radius: 50%; }
.zf .star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; font-size: 14px; line-height: 1; overflow: hidden; }
.zf .star-rating::before { content: "★★★★★"; position: absolute; inset: 0; color: #d8d8d8; letter-spacing: .1em; }
.zf .star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; font-size: 0; }
.zf .star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; font-size: 14px; color: var(--zf-green-dark); letter-spacing: .1em; }
.zf p.stars a { color: var(--zf-cart); font-size: 0; }
.zf p.stars a::before { content: "★"; font-size: 24px; }
.zf p.stars span { display: inline-flex; gap: 4px; }
.zf p.stars:hover a, .zf p.stars.selected a { color: var(--zf-cart); }
.zf p.stars a:hover ~ a, .zf p.stars.selected a.active ~ a { color: #d8d8d8; }
.zf .comment-form textarea, .zf .comment-form input[type="text"], .zf .comment-form input[type="email"] { width: 100%; padding: 10px 12px; border: 1px solid var(--zf-line); border-radius: 8px; }

.zf .related, .zf .upsells { margin-top: 24px; }
.zf .related > h2, .zf .upsells > h2 { font-size: 20px; }
.zf ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.zf ul.products::before, .zf ul.products::after { display: none !important; }
.zf ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0; }

/* ---------- Notices ---------- */
.zf .woocommerce-message, .zf .woocommerce-info, .zf .woocommerce-error, .zf .wc-block-components-notice-banner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
	margin: 0 0 14px; padding: 12px 16px; list-style: none; border-radius: 8px; border: 0; border-left: 4px solid var(--zf-green); background: #eef8f0;
}
.zf .woocommerce-info { border-left-color: var(--zf-primary); background: var(--zf-primary-soft); }
.zf .woocommerce-error { border-left-color: #c62828; background: #fdecec; }
.zf .woocommerce-message::before, .zf .woocommerce-info::before, .zf .woocommerce-error::before { display: none; }
.zf .woocommerce-message .button { order: 2; min-height: 36px; padding: 0 16px; }

/* ---------- Pages, cart, checkout, account ---------- */
.zf-page { padding: 24px; margin-top: 12px; }
.zf-page.is-elementor { padding: 0; margin-top: 0; }
.zf-page-title { font-size: 24px; margin-bottom: 16px; }
.zf-prose { font-size: 15px; line-height: 1.7; }
.zf-prose > *:first-child { margin-top: 0; }
.zf-prose a { color: var(--zf-primary); }
.zf-post-list { margin: 0; padding: 0; list-style: none; }
.zf-post-list li { padding: 14px 0; border-bottom: 1px solid var(--zf-line); }
.zf-post-list a { font-weight: 600; font-size: 16px; }
.zf-post-list p { margin: 4px 0 0; color: var(--zf-muted); }
.zf .woocommerce form .form-row input.input-text, .zf .woocommerce form .form-row textarea, .zf .woocommerce form .form-row select,
.zf .woocommerce-page form .form-row input.input-text, .zf input.input-text, .zf select.orderby {
	min-height: 44px; padding: 8px 12px; border: 1px solid #d5d8de; border-radius: 8px; background: #fff;
}
.zf .woocommerce form .form-row input.input-text:focus, .zf input.input-text:focus { border-color: var(--zf-primary); outline: none; box-shadow: 0 0 0 3px var(--zf-primary-soft); }
.zf table.shop_table { width: 100%; border-collapse: collapse; border: 1px solid var(--zf-line); border-radius: var(--zf-radius); overflow: hidden; }
.zf table.shop_table th, .zf table.shop_table td { padding: 12px; border-bottom: 1px solid var(--zf-line); text-align: left; }
.zf table.shop_table img { width: 64px; border-radius: 8px; }
.zf .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--zf-line); border-radius: var(--zf-radius); overflow: hidden; }
.zf .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--zf-line); }
.zf .woocommerce-MyAccount-navigation li.is-active a { background: var(--zf-primary-soft); color: var(--zf-primary); font-weight: 600; }
.zf #place_order, .zf .checkout-button, .zf .wc-block-components-checkout-place-order-button, .zf .wc-block-cart__submit-button { background: var(--zf-primary) !important; color: #fff !important; min-height: 52px; font-size: 16px; font-weight: 700; border-radius: 8px; }

/* ---------- Footer ---------- */
.zf-footer { margin-top: 24px; background: var(--zf-foot); color: #d9c9d2; font-size: 13.5px; }
.zf-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.zf-foot-title { margin: 0 0 12px; color: #9e8592; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.zf-foot-about p { margin: 0 0 12px; line-height: 1.7; max-width: 380px; }
.zf-foot-list, .zf-foot-contact { margin: 0; padding: 0; list-style: none; }
.zf-foot-list li, .zf-foot-contact li { margin: 0 0 8px; }
.zf-foot-list a:hover, .zf-foot-contact a:hover { color: #fff; text-decoration: underline; }
.zf-foot-contact a { display: inline-flex; align-items: center; gap: 8px; }
.zf-foot-contact .zf-icon { width: 18px; height: 18px; }
.zf-foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.zf-foot-bottom .zf-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.zf-foot-pay { display: inline-flex; align-items: center; gap: 8px; }
.zf-foot-pay .zf-icon { width: 18px; height: 18px; }
.zf-bottom-nav { display: none; }

/* ---------- Drawer (mobile menu) ---------- */
.zf-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .45); }
.zf-drawer[hidden] { display: none; }
.zf-drawer-panel { width: min(86vw, 330px); height: 100%; overflow-y: auto; background: #fff; animation: zf-in .22s ease-out; }
@keyframes zf-in { from { transform: translateX(-100%); } to { transform: none; } }
.zf-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; background: var(--zf-primary); color: #fff; }
.zf-drawer-head a { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.zf-drawer-head .zf-icon-btn { color: #fff; }
.zf-drawer-head .zf-icon-btn:hover { background: rgba(255, 255, 255, .15); }
.zf-drawer-list { margin: 0; padding: 8px 0; list-style: none; border-bottom: 1px solid var(--zf-line); }
.zf-drawer-list a { display: flex; align-items: center; gap: 14px; padding: 12px 18px; font-size: 15px; }
.zf-drawer-list a:hover { background: var(--zf-bg); }
.zf-drawer-list .zf-icon { width: 20px; height: 20px; color: var(--zf-muted); }
body.zf-lock { overflow: hidden; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.zf-header-row { gap: 14px; }
	.zf-hide-sm { display: none !important; }
	.zf-shop { grid-template-columns: 1fr; }
	.zf-filters {
		position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(86vw, 320px); border-radius: 0; overflow-y: auto;
		transform: translateX(-105%); transition: transform .25s; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0);
	}
	.zf-filters.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
	.zf-filters-close { display: inline-flex; }
	.zf-filter-toggle {
		display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 36px; padding: 0 14px;
		border: 1px solid var(--zf-line); border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer;
	}
	.zf-filter-toggle .zf-icon { width: 18px; height: 18px; }
	.zf-foot-grid { grid-template-columns: 1fr 1fr; }
	.zf-cats { justify-content: flex-start; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	:root { --zf-header-h: 56px; }
	body.zf { font-size: 14px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
	.admin-bar .zf-header { top: 0; }
	.zf-wrap { padding: 0 12px; }
	.zf-header-row { gap: 4px; }
	.zf-menu-btn { display: inline-flex; margin-left: -8px; }
	.zf-logo img, .zf-logo .custom-logo { max-height: 30px; }
	.zf-header-search { display: none; }
	.zf-mobile-search { display: block; padding-bottom: 10px; }
	.zf-actions .zf-label { display: none; }
	.zf-action, .zf-actions .zf-cart-link { padding: 0 8px; }
	.zf-actions .zf-cart-link { padding-right: 14px; margin-right: -6px; }
	.zf-actions .zf-cart-count { left: 18px; }
	.zf-account .zf-dropdown { display: none; }
	.zf-catbar { margin-bottom: 8px; }
	.zf-cats { gap: 2px; padding: 10px 0; }
	.zf-cats a { width: 76px; }
	.zf-cat-img { width: 54px; height: 54px; }
	.zf-cat-name { font-size: 12px; }
	.zf-home { gap: 8px; }
	.zf-slide { aspect-ratio: 16 / 9; min-height: 180px; padding: 0 5%; }
	.zf-slide.has-image { aspect-ratio: 16 / 7; min-height: 0; }
	.zf-slide-copy { max-width: 58%; gap: 4px; }
	.zf-slide-title { font-size: 24px; }
	.zf-slide-text { font-size: 13px; }
	.zf-slide-cta { padding: 8px 14px; font-size: 13px; }
	.zf-slide-kicker { font-size: 10px; }
	.zf-slide-photo { height: 74%; border-width: 4px; }
	.zf-trust { grid-template-columns: repeat(3, 1fr); padding: 12px 8px; gap: 4px; }
	.zf-trust li { flex-direction: column; text-align: center; gap: 6px; font-size: 11.5px; line-height: 1.3; }
	.zf-trust .zf-icon { width: 22px; height: 22px; }
	.zf-section { padding: 12px; }
	.zf-section-head h2 { font-size: 17px; }
	.zf-row { grid-auto-columns: 46%; gap: 8px; }
	.zf-grid, .zf-grid-shop, .zf ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.zf-tiles { grid-template-columns: 1fr; gap: 8px; }
	.zf-tile { min-height: 110px; }
	.zf-tile img { width: 84px; height: 84px; }
	.zf-card-body { padding: 8px 10px 10px; gap: 4px; }
	.zf-card-title { font-size: 13px; }
	.zf-now { font-size: 15px; }
	.zf-was, .zf-off { font-size: 12px; }
	.zf-results { padding: 12px; }
	.zf-sortbar { flex-wrap: nowrap; overflow-x: auto; gap: 16px; white-space: nowrap; scrollbar-width: none; }
	.zf-crumbs { padding: 8px 0; }

	.zf-single { padding: 12px; }
	.zf-single div.product { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.zf-single div.product > .woocommerce-product-gallery { margin-bottom: 12px; }
	.zf .summary .product_title { font-size: 18px; }
	.zf-single-price .zf-now { font-size: 26px; }
	/* Buy bar fixed at the bottom on product pages. */
	.zf-has-buybar { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
	.zf-has-buybar .zf-bottom-nav { display: none !important; }
	/* White bar behind the two buttons, also covering the iPhone home-indicator area. */
	.zf-has-buybar .summary form.cart::after {
		content: "" !important; display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 69; width: 100%;
		height: calc(64px + env(safe-area-inset-bottom)); background: #fff;
		box-shadow: 0 -1px 0 var(--zf-line), 0 -4px 14px rgba(0, 0, 0, .08);
	}
	.zf-has-buybar .summary form.cart .single_add_to_cart_button {
		position: fixed; z-index: 70; bottom: calc(8px + env(safe-area-inset-bottom));
		width: calc(50% - 12px); height: 48px; min-height: 0; padding: 0 8px; border-radius: 10px;
		font-size: 15px; line-height: 1; letter-spacing: .03em; box-shadow: none;
	}
	.zf-has-buybar .summary form.cart .single_add_to_cart_button::before { width: 18px; height: 18px; flex: 0 0 18px; }
	.zf-has-buybar .summary form.cart .single_add_to_cart_button:not(.zf-buy-now) { left: 8px; }
	.zf-has-buybar .summary form.cart .zf-buy-now { right: 8px; }
	.zf-has-buybar.zf-no-buynow .summary form.cart .single_add_to_cart_button { width: calc(100% - 16px); }
	.zf form.cart .wsb-button { display: none !important; }
	.zf .woocommerce-tabs .panel { padding: 14px; }

	.zf-page { padding: 16px; }
	.zf-foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 28px; }
	.zf-foot-about { grid-column: 1 / -1; }
	.zf-foot-bottom .zf-wrap { flex-direction: column; }

	.zf-bottom-nav {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr);
		height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		background: #fff; box-shadow: 0 -1px 0 var(--zf-line), 0 -4px 12px rgba(0, 0, 0, .05);
	}
	.zf-bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--zf-muted); }
	.zf-bottom-nav a.is-active { color: var(--zf-primary); }
	.zf-bottom-nav .zf-label { display: inline; }
	.zf-bottom-nav .zf-cart-count { top: 4px; left: calc(50% + 4px); }
}

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

/* ---------- ShopBuilder gallery (swiper) inside this theme ---------- */
.zf-single .rtsb-vg-main-slider-wrapper { max-width: 100%; }
.zf-single .rtsb-carousel-slider { border: 1px solid var(--zf-line); border-radius: var(--zf-radius); overflow: hidden; background: #fafafa; }
.zf-single .rtsb-carousel-slider img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.zf-single .rtsb-carousel-slider .swiper-arrow { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--zf-shadow); color: var(--zf-text); }
.zf-single .rtsb-vg-thumb-slider { margin-top: 10px; overflow: hidden; }
.zf-single .rtsb-vg-thumb-slider:not(.swiper-initialized) .swiper-wrapper { display: flex; flex-wrap: nowrap; gap: 8px; width: auto !important; overflow-x: auto; scrollbar-width: none; transform: none !important; }
.zf-single .rtsb-vg-thumb-slider:not(.swiper-initialized) .swiper-slide { flex: 0 0 64px; width: 64px !important; height: 64px !important; margin: 0 !important; }
.zf-single .rtsb-vs-thumb-item { width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; border: 2px solid var(--zf-line); border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .75; transition: border-color .15s, opacity .15s; }
.zf-single .rtsb-vs-thumb-item img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }
.zf-single .swiper-slide-thumb-active .rtsb-vs-thumb-item, .zf-single .rtsb-thumb:hover .rtsb-vs-thumb-item { border-color: var(--zf-primary); opacity: 1; }

/* ---------- Wishlist ---------- */
.zf-card .zf-wish { position: absolute; top: 8px; right: 8px; z-index: 3; }
.zf-wish { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; color: #9e9e9e; background: #fff; transition: color .15s, transform .15s; }
.zf-wish-icon { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.zf-wish-icon .zf-icon { width: 18px; height: 18px; }
.zf-wish:hover { color: var(--zf-primary); }
.zf-wish[aria-pressed="true"] { color: var(--zf-primary); }
.zf-wish[aria-pressed="true"] .zf-icon { fill: currentColor; }
.zf-wish.is-pop { transform: scale(1.18); }
.zf-wish-pill { height: 40px; padding: 0 16px; margin: 0 0 6px; border: 1px solid var(--zf-line); border-radius: 20px; font-weight: 600; font-size: 14px; color: var(--zf-text); }
.zf-wish-pill .zf-icon { width: 18px; height: 18px; color: var(--zf-primary); }
.zf-wish-link .zf-cart-count { left: 22px; }
.zf-wishlist .zf-card .zf-wish-remove { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--zf-muted); }
.zf-wishlist .zf-wish-remove:hover { color: #c62828; }
.zf-wishlist .zf-empty .zf-icon { width: 48px; height: 48px; color: var(--zf-primary); }

/* ---------- Contact cards ---------- */
.zf-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 24px; padding: 0; list-style: none; }
.zf-contact-cards a { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--zf-line); border-radius: var(--zf-radius); color: var(--zf-text) !important; }
.zf-contact-cards a:hover { border-color: var(--zf-primary); }
.zf-contact-cards .zf-icon { width: 22px; height: 22px; padding: 10px; border-radius: 50%; background: var(--zf-primary-soft); color: var(--zf-primary); box-sizing: content-box; }
.zf-contact-cards span { display: flex; flex-direction: column; font-size: 14px; }
.zf-contact-cards strong { font-size: 12px; color: var(--zf-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.zf-prose .zf-ticks { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.zf-prose .zf-ticks li { padding: 10px 14px; border-radius: 8px; background: var(--zf-primary-soft); font-weight: 500; }
.zf-prose .zf-ticks li::before { content: "✓ "; color: var(--zf-primary); font-weight: 700; }
.zf .wpcf7 input[type="text"], .zf .wpcf7 input[type="email"], .zf .wpcf7 input[type="tel"], .zf .wpcf7 textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d5d8de; border-radius: 8px; background: #fff; }
.zf .wpcf7 textarea { min-height: 120px; }
.zf .wpcf7 label { display: block; font-weight: 500; font-size: 14px; }
.zf .wpcf7 p { margin: 0 0 12px; }
.zf .woocommerce-form-track-order { max-width: 520px; }
.zf .woocommerce-form-track-order .form-row { margin-bottom: 12px; }
.zf .woocommerce-form-track-order input.input-text { width: 100%; }
.zf .summary form.cart .quantity { align-items: center; gap: 12px; }
.zf .summary form.cart .quantity::before { content: "Quantity"; font-weight: 600; font-size: 14px; color: var(--zf-muted); }
.zf .summary form.cart .quantity .qty { height: 44px; width: 64px; }

/* ---------- Quantity stepper ---------- */
.zf .summary form.cart .quantity.zf-qty .qty { width: 52px; height: 40px; border-radius: 0; border-left: 0; border-right: 0; -moz-appearance: textfield; }
.zf .quantity.zf-qty .qty::-webkit-inner-spin-button, .zf .quantity.zf-qty .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.zf-qty-btn { width: 40px; height: 40px; padding: 0; border: 1px solid var(--zf-line); background: #fff; color: var(--zf-text); font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.zf-qty-btn:first-of-type { border-radius: 8px 0 0 8px; margin-left: 0; }
.zf .quantity.zf-qty .qty + .zf-qty-btn { border-radius: 0 8px 8px 0; }
.zf-qty-btn:hover:not(:disabled) { background: var(--zf-primary-soft); color: var(--zf-primary); }
.zf-qty-btn:disabled { color: #c4c4c4; cursor: not-allowed; }
.zf .summary form.cart .quantity.zf-qty { gap: 0; height: 42px; align-items: stretch; }
.zf .summary form.cart .quantity.zf-qty .qty, .zf .summary form.cart .quantity.zf-qty .zf-qty-btn { height: auto !important; margin: 0; padding: 0; box-sizing: border-box; }
.zf .summary form.cart .quantity.zf-qty::before { align-self: center; }
.zf .summary form.cart .quantity.zf-qty::before { margin-right: 12px; }

/* ---------- Product page, Flipkart-style (v1.2.0) ---------- */
.zf-single .woocommerce-product-gallery { position: relative; }
.zf-gallery-actions { position: absolute; top: 12px; right: 12px; z-index: 6; display: flex; flex-direction: column; gap: 10px; }
.summary > .zf-gallery-actions { position: static; flex-direction: row; margin: 8px 0; }
.zf-gallery-actions .zf-wish, .zf-share {
	position: static; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .15); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--zf-text);
}
.zf-gallery-actions .zf-icon, .zf-share .zf-icon { width: 20px; height: 20px; }
.zf-share.is-copied { color: var(--zf-green-dark); }
.zf-share.is-copied::after { content: "Link copied"; position: absolute; right: 48px; padding: 4px 8px; border-radius: 6px; background: #212121; color: #fff; font-size: 12px; white-space: nowrap; }
.zf-single .woocommerce-product-gallery__trigger { top: auto !important; bottom: 12px; right: 12px; }
.zf-gallery-rating { position: absolute; left: 12px; bottom: 14px; z-index: 6; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.zf-gallery-rating .zf-rating-pill { background: none; color: var(--zf-text); padding: 0; font-size: 14px; }
.zf-gallery-rating .zf-rating-pill .zf-icon { fill: var(--zf-green-dark); }
.zf-gallery-bar { display: none; height: 3px; margin: 10px 4px 0; border-radius: 2px; background: var(--zf-line); overflow: hidden; }
.zf-gallery-bar span { display: block; height: 100%; border-radius: 2px; background: var(--zf-text); transition: transform .25s; }
.zf-single-brand { margin: 0 0 2px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zf-muted); }
.zf-price-big { align-items: center; gap: 4px 12px; }
.zf-price-big .zf-off-big { color: var(--zf-green-dark); font-size: 28px; font-weight: 700; }
.zf-price-big .zf-was { font-size: 22px; }
.zf-price-big .zf-now { font-size: 30px; }
.zf-box-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.zf-delivery, .zf-highlights { margin: 16px 0; }
.zf-delivery ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--zf-line); border-radius: 14px; }
.zf-delivery li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--zf-line); font-size: 15px; }
.zf-delivery li:last-child { border-bottom: 0; }
.zf-delivery li > .zf-icon { width: 22px; height: 22px; padding: 9px; border-radius: 10px; background: var(--zf-bg); color: var(--zf-text); box-sizing: content-box; flex: 0 0 auto; }
.zf-delivery li span { display: flex; flex-direction: column; gap: 2px; }
.zf-delivery small { color: var(--zf-muted); font-size: 13px; }
/* Services become a row of chips */
.zf-services { display: flex; gap: 10px; padding: 0; border: 0; overflow-x: auto; scrollbar-width: none; }
.zf-services::-webkit-scrollbar { display: none; }
.zf-services li { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--zf-line); border-radius: 12px; white-space: nowrap; font-size: 14px; }
.zf-services .zf-icon { padding: 0; background: none; width: 20px; height: 20px; }
.zf .zf-highlights .woocommerce-product-details__short-description { margin: 0; }
/* Similar products row */
.zf .related > h2 { display: flex; align-items: center; justify-content: space-between; }
/* Bottom buttons: Add to cart outlined, Buy yellow (Customizer "Add to Cart button colour" = Buy colour) */
.zf form.cart .single_add_to_cart_button:not(.zf-buy-now) { background: #fff !important; color: var(--zf-text) !important; border: 1px solid #d5d8de !important; box-shadow: none; text-transform: none; }
.zf form.cart .single_add_to_cart_button:not(.zf-buy-now)::before { display: none; }
.zf form.cart .zf-buy-now { background: var(--zf-cart) !important; color: #212121 !important; text-transform: none; }
.zf form.cart .zf-buy-now::before { display: none; }
.zf form.cart .single_add_to_cart_button { font-size: 17px; letter-spacing: 0; }

@media (max-width: 767px) {
	/* Edge-to-edge photo like the app */
	.zf-single { margin: 0 -12px; padding: 0; border-radius: 0; box-shadow: none; background: transparent; }
	.zf-single div.product { background: #fff; margin: 0; padding: 0 16px 16px; }
	.zf-single div.product > .woocommerce-product-gallery { margin: 0 -16px 12px; }
	.zf-single .woocommerce-product-gallery__wrapper { border: 0; border-radius: 0; }
	.zf-thumbs { display: none; }
	.zf-gallery-count { display: none; }
	.zf-gallery-bar { display: block; margin: 10px 16px 0; }
	.zf-crumbs { display: none; }
	.zf .summary .product_title { font-size: 17px; font-weight: 400; }
	.zf-price-big .zf-off-big { font-size: 24px; }
	.zf-price-big .zf-was { font-size: 18px; }
	.zf-price-big .zf-now { font-size: 26px; }
	.zf-has-buybar .summary form.cart .single_add_to_cart_button { height: 50px; border-radius: 12px; font-size: 16px; }
}

/* Tabs + quantity fixes */
.zf .woocommerce-tabs ul.tabs { display: flex !important; flex-wrap: nowrap; }
.zf .woocommerce-tabs ul.tabs li { display: block !important; flex: 0 0 auto; float: none !important; }
.zf .woocommerce-tabs .panel { padding: 18px 20px !important; margin: 0 !important; }
.zf .summary form.cart .quantity.zf-qty .qty { min-height: 0 !important; }
@media (max-width: 767px) { .zf .woocommerce-tabs .panel { padding: 14px 16px !important; } }
.zf .woocommerce-tabs ul.tabs li a { padding: 14px 16px !important; }

/* =========================================================
   Cart, checkout, account, order received (v1.3.0)
   ========================================================= */
.zf-flow-page { padding: 0; margin-top: 0; background: transparent; box-shadow: none; }
.zf-flow .zf-announce { display: none; }

/* Steps */
.zf-steps { display: flex; align-items: center; gap: 0; margin: 12px 0; padding: 14px 16px; list-style: none; background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); counter-reset: none; }
.zf-steps li { display: flex; align-items: center; flex: 1; gap: 8px; font-size: 14px; font-weight: 600; color: var(--zf-muted); }
.zf-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 10px; background: var(--zf-line); border-radius: 1px; }
.zf-steps li.is-done:not(:last-child)::after { background: var(--zf-green); }
.zf-steps a { display: flex; align-items: center; gap: 8px; }
.zf-step-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 2px solid var(--zf-line); background: #fff; font-size: 13px; }
.zf-steps li.is-current { color: var(--zf-text); }
.zf-steps li.is-current .zf-step-dot { border-color: var(--zf-primary); background: var(--zf-primary); color: #fff; }
.zf-steps li.is-done .zf-step-dot { border-color: var(--zf-green); background: var(--zf-green); color: #fff; }

/* Shared block look */
.zf .wc-block-cart, .zf .wc-block-checkout { margin: 0 !important; }
.zf .wc-block-components-sidebar-layout { gap: 12px; margin: 0 !important; }
.zf .wc-block-components-main, .zf .wc-block-components-sidebar { padding: 0 !important; }
.zf .wc-block-components-product-metadata { display: none !important; }
.zf .wc-block-components-product-name { font-size: 15px !important; font-weight: 500; color: var(--zf-text) !important; text-decoration: none !important; line-height: 1.35; }
.zf .wc-block-components-product-badge,
.zf .wc-block-components-sale-badge { border: 0 !important; background: none !important; color: var(--zf-green-dark) !important; font-size: 13px !important; font-weight: 700 !important; padding: 0 !important; text-transform: none !important; }
.zf .wc-block-components-product-price__regular { color: var(--zf-muted); font-size: 13px; }
.zf .wc-block-components-product-price__value.is-discounted, .zf .wc-block-cart-item__prices .wc-block-components-product-price__value { font-weight: 700; }
.zf .wc-block-components-quantity-selector { border-radius: 8px !important; border-color: var(--zf-line) !important; }
.zf .wc-block-components-quantity-selector::after { border: 0 !important; }
.zf .wc-block-components-totals-item__label, .zf .wc-block-components-totals-item__value { font-size: 15px; }
.zf .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.zf .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 18px !important; font-weight: 700 !important; }
.zf .wc-block-components-totals-shipping .wc-block-components-totals-item__value,
.zf .wc-block-components-totals-item__value strong { color: var(--zf-green-dark); }
.zf .wc-block-components-panel__button, .zf .wc-block-components-totals-coupon-link { font-weight: 600 !important; color: var(--zf-primary) !important; }

/* Cart */
.zf .wc-block-cart .wc-block-components-main { background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); padding: 4px 16px !important; }
.zf .wc-block-cart-items { border: 0 !important; margin: 0 !important; }
.zf .wc-block-cart-items__header { display: none !important; }
.zf .wc-block-cart-items__row { border-bottom: 1px solid var(--zf-line) !important; padding: 16px 0 !important; }
.zf .wc-block-cart-items__row:last-child { border-bottom: 0 !important; }
.zf .wc-block-cart-item__image img { width: 96px !important; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--zf-line); }
.zf .wc-block-cart-item__remove-link { color: var(--zf-muted) !important; font-size: 13px !important; text-transform: uppercase; font-weight: 600 !important; text-decoration: none !important; }
.zf .wc-block-cart .wc-block-components-sidebar { background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); padding: 16px !important; align-self: start; }
.zf .wc-block-cart__totals-title { display: block !important; margin: 0 0 8px !important; padding-bottom: 12px; border-bottom: 1px solid var(--zf-line); color: var(--zf-muted) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase !important; text-align: left !important; }
.zf .wc-block-cart__submit-button, .zf .wc-block-components-checkout-place-order-button {
	min-height: 52px !important; border-radius: 10px !important; border: 0 !important;
	background: var(--zf-cart) !important; color: #212121 !important; font-size: 17px !important; font-weight: 700 !important; text-transform: none !important;
}
.zf .wc-block-cart__submit-button:hover, .zf .wc-block-components-checkout-place-order-button:hover { filter: brightness(.95); }

/* Savings line + trust strip */
.zf-savings { margin: 12px 0 0; padding: 12px 16px; border-radius: var(--zf-radius); background: #eaf6ec; color: var(--zf-green-dark); font-weight: 700; font-size: 15px; text-align: center; }
.zf-trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 12px 0 0; padding: 14px 16px; list-style: none; background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); color: var(--zf-muted); font-size: 13px; font-weight: 600; }
.zf-trust-strip li { display: flex; align-items: center; gap: 6px; }
.zf-trust-strip .zf-icon { width: 18px; height: 18px; color: var(--zf-primary); }

/* Checkout */
.zf .wc-block-checkout__form { counter-reset: zfstep; }
.zf .wc-block-checkout .wc-block-components-checkout-step {
	position: relative; margin: 0 0 12px !important; padding: 16px 16px 18px 16px !important; background: #fff;
	border: 0 !important; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); counter-increment: zfstep;
}
.zf .wc-block-components-checkout-step::before, .zf .wc-block-components-checkout-step::after { display: none !important; }
.zf .wc-block-components-checkout-step__heading { margin: 0 0 12px !important; }
.zf .wc-block-components-checkout-step__title { display: flex; align-items: center; gap: 10px; font-size: 16px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .03em; color: var(--zf-text); }
.zf .wc-block-components-checkout-step__title::before {
	content: counter(zfstep); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px;
	border-radius: 6px; background: var(--zf-primary-soft); color: var(--zf-primary); font-size: 13px;
}
.zf .wc-block-components-checkout-step__container, .zf .wc-block-components-checkout-step__content { padding: 0 !important; margin: 0 !important; }
.zf .wc-block-components-checkout-step__description { color: var(--zf-muted); }
.zf .wc-block-components-text-input input, .zf .wc-block-components-text-input textarea,
.zf .wc-blocks-components-select .wc-blocks-components-select__select, .zf .wc-block-components-combobox .wc-block-components-combobox-control input {
	border-radius: 10px !important; border-color: #d5d8de !important; background: #fff !important;
}
.zf .wc-block-components-text-input input:focus, .zf .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--zf-primary) !important; box-shadow: 0 0 0 3px var(--zf-primary-soft) !important; outline: none !important;
}
.zf .wc-block-components-text-input.is-active label, .zf .wc-block-components-text-input label { color: var(--zf-muted) !important; }
.zf .wc-block-components-radio-control__option,
.zf .wc-block-components-radio-control-accordion-option { border-radius: 10px !important; }
.zf .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.zf .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--zf-primary) !important; background: var(--zf-primary-soft);
}
.zf .wc-block-components-radio-control__input:checked { border-color: var(--zf-primary) !important; }
.zf .wc-block-components-radio-control__input:checked::before { background: var(--zf-primary) !important; }
.zf .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--zf-primary) !important; border-color: var(--zf-primary) !important; }
.zf .wc-block-components-address-card { border-radius: 10px; }
.zf .wc-block-checkout__actions { margin-top: 4px; }
.zf .wc-block-checkout__actions_row { gap: 12px; }
.zf .wc-block-components-checkout-return-to-cart-button { color: var(--zf-muted) !important; font-weight: 600; text-decoration: none !important; }
.zf .wc-block-checkout__terms { font-size: 13px; color: var(--zf-muted); }
.zf .wc-block-checkout .wc-block-components-sidebar { background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); padding: 16px !important; align-self: start; }
.zf .wc-block-components-checkout-order-summary__title-text { font-size: 16px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .03em; }
.zf .wc-block-components-order-summary-item__quantity { background: var(--zf-primary) !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
.zf .wc-block-components-order-summary-item__image img { border-radius: 8px; }
.zf .wc-block-checkout__main .wc-block-components-checkout-order-summary__title { padding: 0 !important; }
.zf .wc-block-checkout__sidebar.is-sticky { top: calc(var(--zf-header-h) + 16px) !important; }

/* Mobile bottom bar (built by zifasha.js) */
.zf-flow-bar { display: none; }
@media (max-width: 767px) {
	.zf-flow .zf-mobile-search { display: none; }
	.zf-flow .zf-bottom-nav { display: none !important; }
	.zf-flow.zf-has-flowbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
	.zf-flow-bar:not([hidden]) {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--zf-line), 0 -4px 14px rgba(0, 0, 0, .08);
	}
	.zf-flow-total { display: flex; flex-direction: column; line-height: 1.2; }
	.zf-flow-total strong { font-size: 20px; }
	.zf-flow-total small { color: var(--zf-green-dark); font-weight: 600; font-size: 13px; }
	.zf-flow-go { flex: 0 0 52%; min-height: 50px; border-radius: 12px; background: var(--zf-cart) !important; color: #212121 !important; font-size: 17px; }
	.zf .wc-block-cart__submit-container--sticky { display: none !important; }
	.zf-flow .zf-main > .zf-wrap { padding: 0; }
	.zf-steps { margin: 0 0 8px; border-radius: 0; padding: 12px; }
	.zf-step-label { font-size: 12.5px; }
	.zf-steps li:not(:last-child)::after { margin: 0 6px; }
	.zf .wc-block-cart .wc-block-components-main, .zf .wc-block-cart .wc-block-components-sidebar, .zf .wc-block-checkout .wc-block-components-sidebar { border-radius: 0; margin: 0; }
	.zf .wc-block-checkout .wc-block-components-checkout-step { margin: 0 0 8px !important; border-radius: 0; }
	.zf-savings, .zf-trust-strip { border-radius: 0; }
	.zf .wc-block-checkout__terms { padding: 0 16px; }
	.zf .wc-block-cart__submit-container, .zf .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { display: none !important; }
	.zf .wc-block-checkout__actions { padding: 0 16px; }
	.zf .wc-block-checkout__actions_row { justify-content: center !important; }
}

/* Account: login / register */
.zf-login-hero { position: relative; overflow: hidden; margin: 0 0 12px; padding: 24px 22px; border-radius: var(--zf-radius); background: linear-gradient(120deg, var(--zf-primary-dark), var(--zf-primary)); color: #fff; }
.zf-login-hero h2 { margin: 0 0 6px; font-size: 26px; color: #fff; }
.zf-login-hero p { margin: 0; max-width: 70%; opacity: .95; }
.zf-login-hero .zf-icon { position: absolute; right: 18px; bottom: -10px; width: 110px; height: 110px; opacity: .18; }
.zf .woocommerce-account .u-columns, .woocommerce-account .zf #customer_login, .zf #customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zf #customer_login::before, .zf #customer_login::after { display: none; }
.zf #customer_login > div { width: auto !important; float: none !important; padding: 20px; background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); }
.zf #customer_login h2 { font-size: 18px; margin: 0 0 12px; }
.zf .woocommerce-form-login, .zf .woocommerce-form-register { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.zf .woocommerce-form-row input.input-text { width: 100%; }
.zf .woocommerce-form-login__submit, .zf .woocommerce-form-register__submit { width: 100%; min-height: 48px; margin-top: 8px !important; background: var(--zf-primary) !important; }
.zf .woocommerce-form-login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.zf .woocommerce-LostPassword { margin: 12px 0 0; }
.zf .woocommerce-LostPassword a, .zf .woocommerce-privacy-policy-text a { color: var(--zf-primary); }
.zf .woocommerce-privacy-policy-text { font-size: 13px; color: var(--zf-muted); }

/* Account: logged in */
.woocommerce-account.logged-in .zf-flow-page .woocommerce { display: grid; grid-template-columns: 270px 1fr; gap: 12px; align-items: start; }
.woocommerce-account.logged-in .zf-flow-page .woocommerce::before, .woocommerce-account.logged-in .zf-flow-page .woocommerce::after { display: none; }
.zf-account-hello { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 12px; background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); }
.zf-account-hello span:last-child { display: flex; flex-direction: column; }
.zf-account-hello small { color: var(--zf-muted); font-size: 12px; }
.zf-account-hello strong { font-size: 16px; }
.zf-account-avatar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--zf-primary); color: #fff; font-weight: 700; font-size: 18px; }
.woocommerce-account.logged-in .zf .woocommerce-MyAccount-navigation { width: auto !important; float: none !important; }
.zf .woocommerce-MyAccount-navigation ul { background: #fff; border: 0; box-shadow: var(--zf-shadow); }
.zf .woocommerce-MyAccount-navigation li a { font-weight: 500; }
.zf .woocommerce-MyAccount-navigation li.is-active a { border-left: 3px solid var(--zf-primary); }
.woocommerce-account.logged-in .zf .woocommerce-MyAccount-content { width: auto !important; float: none !important; padding: 20px; background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); min-width: 0; }
.zf .woocommerce-orders-table { border-radius: var(--zf-radius); }
.zf .woocommerce-orders-table .button, .zf .woocommerce-MyAccount-content .button { min-height: 36px; padding: 0 14px; font-size: 13px; }
.zf .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.zf .woocommerce-Addresses::before, .zf .woocommerce-Addresses::after { display: none; }
.zf .woocommerce-Address { width: auto !important; float: none !important; padding: 16px; border: 1px solid var(--zf-line); border-radius: var(--zf-radius); }

@media (max-width: 767px) {
	.zf #customer_login { grid-template-columns: 1fr; }
	.woocommerce-account.logged-in .zf-flow-page .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.zf .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 8px; padding: 8px; scrollbar-width: none; }
	.zf .woocommerce-MyAccount-navigation li a { padding: 8px 14px; border: 1px solid var(--zf-line); border-radius: 20px; white-space: nowrap; }
	.zf .woocommerce-MyAccount-navigation li.is-active a { border: 1px solid var(--zf-primary); }
	.zf .woocommerce-orders-table thead { display: none; }
	.zf .woocommerce-orders-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--zf-line); }
	.zf .woocommerce-orders-table td { display: flex; justify-content: space-between; padding: 4px 0 !important; border: 0 !important; }
	.zf .woocommerce-orders-table td::before { content: attr(data-title); color: var(--zf-muted); font-size: 13px; }
}

/* Order received */
.zf .woocommerce-order { background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); padding: 20px; }
.zf .woocommerce-thankyou-order-received, .zf .wc-block-order-confirmation-status {
	display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 18px; padding: 22px 16px; text-align: center;
	border-radius: var(--zf-radius); background: #eaf6ec; color: var(--zf-green-dark); font-size: 18px; font-weight: 700;
}
.zf .woocommerce-thankyou-order-received::before { content: "✓"; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--zf-green); color: #fff; font-size: 30px; }
.zf .woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 20px !important; padding: 0 !important; list-style: none; }
.zf .woocommerce-order-overview::before, .zf .woocommerce-order-overview::after { display: none; }
.zf .woocommerce-order-overview li { margin: 0 !important; padding: 12px 14px !important; border: 1px solid var(--zf-line) !important; border-radius: 10px; font-size: 12px; text-transform: uppercase; color: var(--zf-muted); float: none !important; }
.zf .woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 15px; color: var(--zf-text); text-transform: none; }
.zf .woocommerce-order-details__title, .zf .woocommerce-column__title { font-size: 18px; }
.zf .woocommerce-customer-details address { padding: 14px; border: 1px solid var(--zf-line) !important; border-radius: 10px; font-style: normal; }

.zf .wc-block-cart__totals-title { font-size: 0 !important; }
.zf .wc-block-cart__totals-title::after { content: "Price details"; font-size: 14px; }
.zf .wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block,
.zf .wc-block-checkout__main .wc-block-components-checkout-order-summary__content { background: #fff; }
.zf .wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block { padding: 16px; margin-bottom: 8px; border: 0; }

.zf .wc-block-checkout__order-notes { margin: 0 0 12px !important; padding: 14px 16px !important; background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); }
@media (max-width: 767px) { .zf .wc-block-checkout__order-notes { margin: 0 0 8px !important; border-radius: 0; } }
@media (min-width: 768px) {
	.zf .wc-block-components-sidebar-layout { flex-wrap: nowrap !important; align-items: flex-start; }
	.zf .wc-block-components-sidebar-layout .wc-block-components-main { width: calc(65% - 6px) !important; flex: 0 0 auto; }
	.zf .wc-block-components-sidebar-layout .wc-block-components-sidebar { width: calc(35% - 6px) !important; flex: 0 0 auto; position: sticky; top: calc(var(--zf-header-h) + 16px); }
}

/* ---------- Checkout in two screens: Address, Payment (v1.4.0) ---------- */
body[data-zf-co="address"] .wc-block-checkout__payment-method,
body[data-zf-co="address"] .wc-block-checkout__order-notes,
body[data-zf-co="address"] .wc-block-checkout__terms,
body[data-zf-co="address"] .wc-block-checkout__actions,
body[data-zf-co="address"] .zf-addr-sum { display: none !important; }
body[data-zf-co="payment"] .wc-block-checkout__contact-fields,
body[data-zf-co="payment"] .wc-block-checkout__shipping-fields,
body[data-zf-co="payment"] .wc-block-checkout__billing-fields,
body[data-zf-co="payment"] .wc-block-checkout__shipping-option,
body[data-zf-co="payment"] .wp-block-woocommerce-checkout-shipping-method-block,
body[data-zf-co="payment"] .wp-block-woocommerce-checkout-pickup-options-block { display: none !important; }
body[data-zf-co="payment"] .wc-block-checkout__form { counter-reset: zfstep 0; }
.zf-addr-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 14px 16px; background: #fff; border-radius: var(--zf-radius); box-shadow: var(--zf-shadow); }
.zf-addr-sum > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.zf-addr-label { color: var(--zf-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.zf-addr-sum strong { font-size: 15px; }
.zf-addr-sum [data-zf-addr-text] { color: var(--zf-muted); }
.zf-addr-change { flex: 0 0 auto; height: 36px; padding: 0 16px; border: 1px solid var(--zf-line); border-radius: 8px; background: #fff; color: var(--zf-primary); font-weight: 700; cursor: pointer; }
.zf-steps li[data-zf-step="address"] { cursor: default; }
body[data-zf-co="payment"] .zf-steps li[data-zf-step="address"] { cursor: pointer; }
/* Desktop: the bar also carries Continue / Place Order on checkout */
@media (min-width: 768px) {
	.zf-flow-bar.zf-flow-bar-all:not([hidden]) {
		position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px;
		max-width: 1280px; margin: 12px auto 0; padding: 12px 16px; background: #fff; border-radius: var(--zf-radius) var(--zf-radius) 0 0; box-shadow: 0 -4px 14px rgba(0, 0, 0, .08);
	}
	.zf-flow-bar-all .zf-flow-total { display: flex; flex-direction: column; }
	.zf-flow-bar-all .zf-flow-total strong { font-size: 22px; }
	.zf-flow-bar-all .zf-flow-total small { color: var(--zf-green-dark); font-weight: 600; }
	.zf-flow-bar-all .zf-flow-go { min-width: 260px; min-height: 52px; border-radius: 12px; background: var(--zf-cart) !important; color: #212121 !important; font-size: 17px; }
	.zf .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { display: none !important; }
}
@media (max-width: 767px) { .zf-addr-sum { margin: 0 0 8px; border-radius: 0; } }
@media (max-width: 767px) {
	/* Payment screen shows the full order summary next to Place Order, so drop the small one at the top. */
	body[data-zf-co="payment"] .wc-block-checkout__sidebar { display: none !important; }
}

/* ---------- Order received fixes (v1.4.1) ---------- */
.zf .woocommerce-order-overview::before, .zf .woocommerce-order-overview::after,
.zf ul.order_details::before, .zf ul.order_details::after { content: none !important; display: none !important; }
.zf .woocommerce-order-overview li { min-width: 0; overflow-wrap: anywhere; }
.zf .woocommerce-order-overview li strong { overflow-wrap: anywhere; word-break: break-word; }
.zf .woocommerce-table--order-details { table-layout: fixed; }
.zf .woocommerce-table--order-details th, .zf .woocommerce-table--order-details td { vertical-align: middle; }
.zf .woocommerce-table--order-details thead th:last-child,
.zf .woocommerce-table--order-details td:last-child { width: 38%; text-align: right; }
.zf .woocommerce-table--order-details tfoot th { font-weight: 600; color: var(--zf-muted); }
.zf .woocommerce-table--order-details tfoot td { font-weight: 700; }
.zf .woocommerce-table--order-details tfoot tr:nth-last-child(2) td, .zf .woocommerce-table--order-details tfoot tr:nth-last-child(2) th { font-size: 17px; color: var(--zf-text); }
.zf .woocommerce-customer-details .col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.zf .woocommerce-customer-details .col2-set::before, .zf .woocommerce-customer-details .col2-set::after { content: none !important; display: none !important; }
.zf .woocommerce-customer-details .col2-set .col-1, .zf .woocommerce-customer-details .col2-set .col-2 { width: auto !important; float: none !important; }
.zf .woocommerce-customer-details address { overflow-wrap: anywhere; line-height: 1.7; }
.zf .woocommerce-customer-details--phone, .zf .woocommerce-customer-details--email { margin: 6px 0 0; }
.zf .woocommerce-customer-details a { text-decoration: none; color: var(--zf-text); }
.zf-thankyou-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; }
.zf-thankyou-actions .zf-btn { flex: 1 1 200px; min-height: 50px; border-radius: 12px; }
.zf-btn-outline { background: #fff !important; color: var(--zf-primary) !important; border: 1px solid var(--zf-primary) !important; }
.zf-steps li { min-width: 0; }
@media (max-width: 767px) {
	.zf-steps { gap: 4px; }
	.zf-steps li { gap: 6px; }
	.zf-steps li:not(:last-child)::after { min-width: 8px; margin: 0 2px; }
	.zf-step-label { font-size: 12px; line-height: 1.2; }
	.zf-step-dot { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }
	.zf .woocommerce-order { padding: 16px; border-radius: 0; }
}
.zf .woocommerce-order-overview__email, .zf .woocommerce-order-overview__payment-method { grid-column: 1 / -1; }
.zf .woocommerce-order-overview li strong { word-break: normal; }
.zf .zf-prose a.zf-btn, .zf .zf-prose a.zf-btn:hover { color: #fff; text-decoration: none; }
.zf .zf-prose a.zf-btn-outline, .zf .zf-prose a.zf-btn-outline:hover { color: var(--zf-primary) !important; }
