/*
Theme Name: Zeviras
Theme URI: https://www.zeviras.com/
Author: Zeviras
Description: Lightweight custom jewellery theme with WooCommerce support, a custom-design enquiry form and an editable homepage.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zeviras
*/

/* ---------- Design tokens (change colours here) ---------- */
:root {
	--zv-ink: #1c1a17;
	--zv-ivory: #faf7f2;
	--zv-cream: #f1ebe0;
	--zv-gold: #b08d4f;
	--zv-gold-dark: #8f6f36;
	--zv-line: #e4dccd;
	--zv-muted: #6f685c;
	--zv-white: #ffffff;
	--zv-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--zv-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--zv-radius: 2px;
	--zv-max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--zv-ivory);
	color: var(--zv-ink);
	font-family: var(--zv-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--zv-gold); text-underline-offset: 3px; }
a:hover { color: var(--zv-gold-dark); }
h1, h2, h3, h4 { font-family: var(--zv-serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.zv-wrap { width: 100%; max-width: var(--zv-max); margin: 0 auto; padding: 0 20px; }
.zv-muted { color: var(--zv-muted); }
.zv-center { text-align: center; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	background: var(--zv-white); padding: 10px 16px; z-index: 1000;
}
:focus-visible { outline: 2px solid var(--zv-gold); outline-offset: 2px; }

/* ---------- Buttons & forms ---------- */
.zv-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-block; background: var(--zv-ink); color: var(--zv-white);
	border: 1px solid var(--zv-ink); border-radius: var(--zv-radius);
	padding: 13px 28px; font: 500 .85rem/1 var(--zv-sans);
	letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.zv-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--zv-gold-dark); border-color: var(--zv-gold-dark); color: var(--zv-white);
}
.zv-btn--ghost { background: transparent; color: var(--zv-ink); }
.zv-btn--ghost:hover { background: var(--zv-ink); border-color: var(--zv-ink); }
.zv-btn--light { background: var(--zv-ivory); color: var(--zv-ink); border-color: var(--zv-ivory); }
.zv-btn--light:hover { background: var(--zv-gold); border-color: var(--zv-gold); color: var(--zv-white); }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"],
input[type="password"], input[type="number"], select, textarea,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
	width: 100%; padding: 12px 14px; background: var(--zv-white);
	border: 1px solid var(--zv-line); border-radius: var(--zv-radius);
	font: inherit; color: inherit;
}
label { display: block; font-size: .85rem; margin-bottom: 4px; color: var(--zv-muted); }

.zv-form__grid { display: grid; gap: 0 20px; grid-template-columns: 1fr 1fr; }
.zv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zv-notice { padding: 14px 18px; margin-bottom: 20px; border-left: 3px solid var(--zv-gold); background: var(--zv-cream); }
.zv-notice--err { border-color: #b3402f; }

/* ---------- Header ---------- */
.zv-announce { background: var(--zv-ink); color: var(--zv-ivory); text-align: center; font-size: .8rem; letter-spacing: .08em; padding: 8px 12px; }
.zv-topbar { background: var(--zv-ink); color: #d8cfbf; font-size: .8rem; letter-spacing: .04em; }
.zv-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.zv-topbar__contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.zv-topbar__contact a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--zv-ivory); }
.zv-topbar__contact a:hover { color: var(--zv-gold); }
.zv-topbar__contact svg { color: var(--zv-gold); flex-shrink: 0; }
.zv-topbar__notice { color: #d8cfbf; letter-spacing: .08em; }
.zv-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .96); border-bottom: 1px solid var(--zv-line); backdrop-filter: blur(6px); }
.zv-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.zv-logo { text-decoration: none; display: inline-flex; align-items: center; }
.zv-logo img { max-height: 44px; width: auto; }
.zv-logo__text { font-family: var(--zv-serif); font-size: 1.9rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
/* Brand logo */
.zv-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--zv-ink); line-height: 1; }
.zv-brand__mark { width: 40px; height: 40px; flex-shrink: 0; overflow: visible; }
.zv-brand__line { fill: none; stroke: var(--zv-gold); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.zv-brand__fill { fill: var(--zv-gold); opacity: .22; }
.zv-brand__fill--soft { opacity: .12; }
.zv-brand__spark { fill: var(--zv-gold); }
.zv-brand__text { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.zv-brand__name { font-family: var(--zv-serif); font-weight: 600; font-size: 1.75rem; letter-spacing: .26em; text-transform: uppercase; margin-right: -.26em; }
.zv-brand__tag { font-family: var(--zv-sans); font-size: .56rem; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--zv-gold-dark); margin-right: -.42em; }
.zv-brand__tag::before, .zv-brand__tag::after { content: ""; display: inline-block; width: 14px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 8px 2px; opacity: .7; }
.zv-logo:hover .zv-brand__spark { animation: zv-twinkle .9s ease; transform-origin: 33px 7.5px; }
@keyframes zv-twinkle { 50% { transform: scale(1.5) rotate(45deg); opacity: .6; } }
.zv-brand--footer { color: var(--zv-ivory); }
.zv-brand--footer .zv-brand__tag { color: var(--zv-gold); }
.zv-brand--footer .zv-brand__fill { opacity: .3; }
.zv-nav { flex: 1; }
.zv-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 28px; }
.zv-menu > li { position: relative; }
.zv-menu a { text-decoration: none; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; display: block; padding: 24px 0; }
.zv-menu .sub-menu {
	list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -16px; min-width: 220px;
	background: var(--zv-white); border: 1px solid var(--zv-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.zv-menu li:hover > .sub-menu, .zv-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.zv-menu .sub-menu a { padding: 9px 20px; text-transform: none; letter-spacing: .02em; font-size: .92rem; }
.zv-actions { display: flex; align-items: center; gap: 4px; }
.zv-icon-btn { position: relative; background: none; border: 0; padding: 10px; color: var(--zv-ink); cursor: pointer; display: inline-flex; }
.zv-cart-count {
	position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
	background: var(--zv-gold); color: var(--zv-white); font-size: .68rem; line-height: 17px; text-align: center;
}
.zv-search { border-top: 1px solid var(--zv-line); padding: 14px 0; background: var(--zv-white); }
.zv-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.zv-burger span { display: block; width: 22px; height: 2px; background: var(--zv-ink); margin: 5px 0; }
.zv-sub-toggle { display: none; }

/* ---------- Homepage ---------- */
.zv-hero { background: linear-gradient(135deg, var(--zv-cream), var(--zv-ivory)); }
.zv-hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.zv-hero__inner:not(:has(.zv-hero__media)) { grid-template-columns: 1fr; text-align: center; padding-top: 110px; padding-bottom: 110px; }
.zv-hero__copy { max-width: 560px; margin: 0 auto; }
.zv-hero__inner:has(.zv-hero__media) .zv-hero__copy { margin: 0; }
.zv-eyebrow { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--zv-gold-dark); margin-bottom: 14px; }
.zv-hero__text { font-size: 1.1rem; color: var(--zv-muted); margin-bottom: 28px; }
.zv-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.zv-trust { border-bottom: 1px solid var(--zv-line); background: var(--zv-white); }
.zv-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.zv-trust__item { display: flex; flex-direction: column; font-size: .85rem; color: var(--zv-muted); }
.zv-trust__item strong { color: var(--zv-ink); font-size: .9rem; letter-spacing: .04em; }

.zv-section { padding: 70px 0; }
.zv-section--tint { background: var(--zv-cream); }
.zv-title { text-align: center; margin-bottom: 36px; }
.zv-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.zv-cat { text-decoration: none; text-align: center; }
.zv-cat__img { display: block; aspect-ratio: 1; background: var(--zv-cream); overflow: hidden; margin-bottom: 12px; }
.zv-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.zv-cat:hover .zv-cat__img img { transform: scale(1.05); }
.zv-cat__name { font-family: var(--zv-serif); font-size: 1.3rem; }

.zv-custom { background: var(--zv-ink); color: var(--zv-ivory); padding: 64px 0; }
.zv-custom__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.zv-custom h2 { color: var(--zv-ivory); }
.zv-ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: #d8cfbf; font-size: .92rem; }
.zv-ticks li::before { content: "\25C6"; color: var(--zv-gold); margin-right: 8px; font-size: .7rem; }

/* Homepage text section */
.zv-about-home { background: var(--zv-white); border-top: 1px solid var(--zv-line); }
.zv-readmore { max-width: 860px; margin: 0 auto; }
.zv-readmore__body { color: #3d3830; font-size: 1.02rem; }
.zv-readmore__body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.6em; }
.zv-readmore__body > h2:first-child { margin-top: 0; text-align: center; }
.zv-readmore__body > h2:first-child + p { text-align: center; font-size: 1.1rem; color: var(--zv-muted); }
.zv-readmore__body h3 { color: var(--zv-gold-dark); margin-top: 1.4em; }
.zv-readmore__body ul, .zv-readmore__body ol { padding-left: 1.3em; }
.zv-readmore__body li { margin-bottom: .5em; }
.zv-readmore__body li::marker { color: var(--zv-gold); }
.zv-readmore__body a { color: var(--zv-gold-dark); }
.zv-readmore__actions { display: none; text-align: center; margin: 24px 0 0; }
.zv-readmore.is-js .zv-readmore__actions { display: block; }
.zv-readmore.is-collapsed .zv-readmore__body { max-height: 420px; overflow: hidden; position: relative; }
.zv-readmore.is-collapsed .zv-readmore__body::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--zv-white));
}

/* ---------- Generic pages ---------- */
.zv-page { padding-top: 48px; padding-bottom: 80px; }
.zv-page--narrow { max-width: 820px; }
.zv-page__title { margin-bottom: 28px; }
.zv-content > * + * { margin-top: 1em; }
.zv-content img { height: auto; }
.zv-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.zv-post h2 { font-size: 1.4rem; margin-top: 12px; }
.zv-post a { text-decoration: none; }
.zv-feature { margin-bottom: 24px; }
.navigation.pagination { margin-top: 40px; text-align: center; }
.page-numbers { display: inline-block; padding: 6px 12px; text-decoration: none; }
.page-numbers.current { border-bottom: 2px solid var(--zv-gold); }

/* ---------- WooCommerce ---------- */
.woocommerce-breadcrumb { font-size: .82rem; color: var(--zv-muted); margin-bottom: 20px; }
.woocommerce-breadcrumb a { text-decoration: none; }
.woocommerce-products-header__title, .woocommerce .page-title { margin-bottom: 20px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { font-size: .88rem; color: var(--zv-muted); margin-bottom: 24px; }

.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; margin: 0 0 30px; padding: 0; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto; float: none; margin: 0; text-align: center; position: relative;
}
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: cover; background: var(--zv-cream); margin: 0 0 12px; transition: opacity .3s; }
.woocommerce ul.products li.product:hover a img { opacity: .92; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 500 1rem/1.35 var(--zv-sans); padding: 0; margin-bottom: 4px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price {
	color: var(--zv-ink); font-weight: 500;
}
.woocommerce ul.products li.product .button { margin-top: 10px; padding: 10px 18px; font-size: .75rem; }
.woocommerce span.onsale {
	background: var(--zv-gold); color: var(--zv-white); border-radius: var(--zv-radius);
	min-height: 0; min-width: 0; line-height: 1; padding: 7px 10px; font-size: .72rem; letter-spacing: .08em; top: 10px; left: 10px; right: auto; margin: 0;
}

.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100%; float: none; margin: 0; }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.woocommerce div.product p.price { font-size: 1.5rem; margin: 10px 0 18px; }
.woocommerce div.product form.cart { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.woocommerce div.product form.cart .variations { width: 100%; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { display: block; padding: 0; text-align: left; }
.woocommerce div.product form.cart .variations label { color: var(--zv-ink); font-weight: 500; margin: 12px 0 4px; }
.woocommerce .quantity .qty { width: 70px; padding: 12px 8px; text-align: center; border: 1px solid var(--zv-line); }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; border-bottom: 1px solid var(--zv-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; margin: 0 24px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 0; font-weight: 500; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--zv-gold); }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { text-align: center; margin: 30px 0 24px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: var(--zv-cream); border-top: 0; border-left: 3px solid var(--zv-gold); color: var(--zv-ink); padding: 14px 18px 14px 50px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--zv-gold); }
.woocommerce table.shop_table { border: 1px solid var(--zv-line); border-radius: 0; background: var(--zv-white); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--zv-line); }
.woocommerce-checkout #payment { background: var(--zv-cream); border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background: var(--zv-white); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }

/* ---------- Footer ---------- */
.zv-footer { background: var(--zv-ink); color: #d8cfbf; padding-top: 56px; margin-top: 0; }
.zv-footer a { text-decoration: none; }
.zv-footer a:hover { color: var(--zv-gold); }
.zv-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.zv-footer__hours { font-size: .88rem; color: #a79f90; margin-top: 12px; }
.zv-footer__contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; margin-bottom: 12px; }
.zv-footer__contact svg { color: var(--zv-gold); flex-shrink: 0; margin-top: 3px; }
.zv-footer__menu a { transition: color .2s; }
.zv-footer__brand { display: inline-block; margin-bottom: 18px; color: var(--zv-ivory); }
.zv-footer a.zv-footer__brand:hover { color: var(--zv-ivory); }
.zv-footer .zv-muted { color: #a79f90; }
.zv-footer__title { font: 600 .8rem/1 var(--zv-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--zv-ivory); margin-bottom: 16px; }
.zv-footer__menu { list-style: none; margin: 0; padding: 0; }
.zv-footer__menu li { margin-bottom: 8px; font-size: .92rem; }
.zv-footer__bottom { border-top: 1px solid #38342d; margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: .82rem; color: #a79f90; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zv-wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
	background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.zv-wa-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 960px) {
	.woocommerce ul.products, .woocommerce-page ul.products, .zv-cats { grid-template-columns: repeat(2, 1fr); }
	.zv-trust__grid { grid-template-columns: repeat(2, 1fr); }
	.zv-posts { grid-template-columns: 1fr 1fr; }
	.zv-hero__inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }

	.zv-burger { display: block; }
	.zv-nav {
		position: fixed; inset: 0 auto 0 0; width: min(84vw, 340px); background: var(--zv-ivory); padding: 80px 24px 24px;
		transform: translateX(-100%); transition: transform .25s; overflow-y: auto; z-index: 70; box-shadow: 6px 0 30px rgba(0, 0, 0, .12);
	}
	.zv-nav.is-open { transform: none; }
	.zv-menu { flex-direction: column; gap: 0; justify-content: flex-start; }
	.zv-menu a { padding: 14px 0; border-bottom: 1px solid var(--zv-line); }
	.zv-menu .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.zv-menu .menu-item-has-children > a { flex: 1; }
	.zv-sub-toggle { display: block; background: none; border: 0; padding: 12px; cursor: pointer; font-size: 1rem; }
	.zv-menu .sub-menu {
		position: static; width: 100%; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none;
		padding: 0 0 0 14px; display: none;
	}
	.zv-menu .is-open > .sub-menu { display: block; }
	.zv-logo { position: absolute; left: 50%; transform: translateX(-50%); }
	.zv-footer__grid { grid-template-columns: 1fr 1fr; }
	.zv-topbar__row { justify-content: center; padding: 6px 0; }
	.zv-topbar__notice { display: none; }
	.zv-header__row { position: relative; }
	body.zv-nav-open { overflow: hidden; }
}
@media (max-width: 600px) {
	.zv-section { padding: 48px 0; }
	.zv-form__grid { grid-template-columns: 1fr; }
	.zv-posts { grid-template-columns: 1fr; }
	.zv-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.zv-topbar__contact { gap: 14px; justify-content: center; font-size: .76rem; }
	.zv-footer__bottom { flex-direction: column; text-align: center; }
	.zv-logo__text { font-size: 1.45rem; }
	.zv-brand { gap: 8px; }
	.zv-brand__mark { width: 30px; height: 30px; }
	.zv-brand__name { font-size: 1.3rem; letter-spacing: .2em; margin-right: -.2em; }
	.zv-brand__tag { font-size: .48rem; letter-spacing: .3em; margin-right: -.3em; }
	.zv-brand__tag::before, .zv-brand__tag::after { width: 8px; margin: 0 5px 2px; }
	.woocommerce ul.products, .woocommerce-page ul.products { gap: 22px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
