/* Vial Drops: styles on top of theme.json */

body {
	--vd-radius: 10px;
	--vd-ink: var(--wp--preset--color--contrast);
	--vd-green: var(--wp--preset--color--dark);
	--vd-leaf: var(--wp--preset--color--oak);
	--vd-gold: var(--wp--preset--color--accent-2);
	--vd-line: var(--wp--preset--color--line);
}

.wp-site-blocks > * + * { margin-block-start: 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
h1 em, h2 em { font-style: italic; font-weight: 400; }

.vd-eyebrow {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 0;
}

/* ---------- Top bar ---------- */
.vd-topbar { font-size: 0.8rem; }
.vd-topbar p { margin: 0; }
.vd-topbar a { color: inherit; text-decoration: none; }
.vd-topbar a:hover { text-decoration: underline; }
.vd-topbar-help { opacity: 0.85; min-width: 180px; }
.vd-announcement-text { margin: 0; text-align: center; font-weight: 600; letter-spacing: 0.02em; }
.vd-topbar .vd-currency { border-color: rgba(247, 242, 235, 0.35); }
.vd-topbar .vd-currency a { color: rgba(247, 242, 235, 0.8); }
.vd-topbar .vd-currency a.is-active { background: var(--vd-gold); color: var(--vd-green); }
@media (max-width: 781px) { .vd-topbar-help { display: none; } .vd-announcement-text { text-align: left; font-size: 0.74rem; } }

/* ---------- Header ---------- */
.vd-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .vd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vd-header { top: 0; } }
.vd-header .wp-block-navigation a { text-decoration: none; }
.vd-header .wp-block-navigation-item__content:hover { color: var(--vd-leaf); }
.vd-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--vd-line) !important;
	border-radius: var(--vd-radius);
	padding: 0.5rem 0 !important;
	box-shadow: 0 12px 30px rgba(46, 42, 38, 0.08);
	min-width: 250px !important;
	font-weight: 500;
}
.vd-header .wp-block-navigation__submenu-container a { padding: 0.45rem 1.1rem !important; }
.vd-header-icons .wp-block-search__button { background: transparent; color: var(--vd-ink); border: 0; padding: 6px; }
.vd-header-icons .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }
.vd-header-icons .wc-block-mini-cart__button { padding: 6px; }
.vd-header-icons .wc-block-mini-cart__badge { background: var(--vd-gold); color: var(--vd-green); font-weight: 700; }
@media (max-width: 600px) { .vd-header-icons .wp-block-search { display: none; } }

/* ---------- Logo ---------- */
.vd-logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none !important; color: var(--vd-green); }
.vd-logo__icon svg { width: 46px; height: 46px; display: block; }
.vd-logo__text { display: flex; flex-direction: column; line-height: 1; }
.vd-logo__main { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.95rem; letter-spacing: 0.01em; white-space: nowrap; }
.vd-logo__sub { font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--wp--preset--color--oak); margin-top: 0.3rem; }
.vd-logo--light { color: var(--wp--preset--color--base) !important; }
.vd-logo--light .vd-logo__sub { color: var(--vd-gold); }
@media (max-width: 600px) {
	.vd-header .vd-logo__main { font-size: 1.5rem; }
	.vd-header .vd-logo__icon svg { width: 36px; height: 36px; }
	.vd-header .vd-logo__sub { font-size: 0.5rem; }
}

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background 0.2s, color 0.2s, border-color 0.2s; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid currentColor;
	background: transparent;
	color: var(--vd-green);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--vd-green); border-color: var(--vd-green); color: var(--wp--preset--color--base); }
.vd-btn-gold > .wp-block-button__link { background: var(--vd-gold) !important; color: var(--vd-green) !important; }
.vd-btn-gold > .wp-block-button__link:hover { background: #E4B597 !important; }
.vd-btn-ghost > .wp-block-button__link { color: var(--wp--preset--color--base) !important; border-color: rgba(247, 242, 235, 0.6) !important; }
.vd-btn-ghost > .wp-block-button__link:hover { background: var(--wp--preset--color--base) !important; color: var(--vd-green) !important; }

/* ---------- Hero ---------- */
.vd-hero { min-height: 600px; }
.vd-hero .wp-block-media-text__content { padding: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem) !important; max-width: 640px; margin-left: auto; }
.vd-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.04; margin: 1rem 0 1.25rem; }
.vd-hero h1 em { color: var(--vd-gold); }
.vd-hero-lead { font-size: 1.1rem; opacity: 0.88; max-width: 30rem; }
.vd-hero-buttons { margin-top: 2rem !important; gap: 0.75rem; }
@media (max-width: 600px) {
	.vd-hero .wp-block-media-text__media { min-height: 300px; }
	.vd-hero .wp-block-media-text__content { padding: 2.25rem 1.25rem 2.75rem !important; }
}

/* ---------- Trust bar ---------- */
.vd-trust-item p { margin: 0; padding-left: 2.6rem; position: relative; line-height: 1.45; }
.vd-trust-item p::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 1.9rem; height: 1.9rem; transform: translateY(-50%);
	background: var(--vd-leaf); -webkit-mask: var(--vd-icon) center / contain no-repeat; mask: var(--vd-icon) center / contain no-repeat;
}
.vd-trust-item strong { font-weight: 700; }
.vd-i-truck { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v9H2zM13 9h4l3 3v3h-7z'/%3E%3Ccircle cx='6' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E"); }
.vd-i-leaf { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19C5 10 10 5 20 4c0 10-5 15-14 15z'/%3E%3Cpath d='M5 19l8-8'/%3E%3C/svg%3E"); }
.vd-i-return { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h11a5 5 0 010 10H9'/%3E%3Cpath d='M8 5L4 9l4 4'/%3E%3C/svg%3E"); }
.vd-i-lock { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3C/svg%3E"); }
@media (max-width: 781px) {
	.wp-block-columns.vd-trust-cols { flex-wrap: wrap !important; row-gap: 1rem; }
	.wp-block-columns.vd-trust-cols > .wp-block-column { flex: 0 0 calc(50% - 1rem) !important; }
}

/* ---------- Section heads ---------- */
.vd-section-head { margin-bottom: var(--wp--preset--spacing--40); gap: 0.5rem 2rem; }
.vd-section-head h2 { margin: 0; }
.vd-more { margin: 0; }
.vd-more a { color: var(--vd-leaf); font-weight: 700; text-decoration: none; }
.vd-more a:hover { color: var(--vd-green); text-decoration: underline; }

/* ---------- Category cards ---------- */
.vd-cat-grid { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.vd-cat-grid > * { margin: 0 !important; }
@media (max-width: 1000px) { .vd-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vd-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.vd-cat { position: relative; }
.vd-cat .wp-block-image { margin: 0 0 0.75rem; border-radius: var(--vd-radius); overflow: hidden; background: var(--wp--preset--color--base-2); }
.vd-cat .wp-block-image img { width: 100%; display: block; transition: transform 0.6s ease; }
.vd-cat:hover .wp-block-image img { transform: scale(1.04); }
.vd-cat-name { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.15rem; line-height: 1.25; }
.vd-cat-name a { color: var(--vd-ink); text-decoration: none; }
.vd-cat-name a::after { content: ""; position: absolute; inset: 0; }
.vd-cat-sub { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--wp--preset--color--contrast-2); }

/* ---------- Product grid ---------- */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem 1.25rem;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: left; display: flex; flex-direction: column; }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.9rem; } }
.woocommerce ul.products li.product a img {
	aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 0.85rem !important;
	border-radius: var(--vd-radius); background: var(--wp--preset--color--base-2); transition: opacity 0.3s;
}
.woocommerce ul.products li.product a:hover img { opacity: 0.9; }
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.98rem !important; font-weight: 600; line-height: 1.35;
	padding: 0 !important; margin: 0 0 0.35rem; color: var(--vd-ink);
}
.woocommerce ul.products li.product .price {
	color: var(--vd-green) !important; font-weight: 700; font-size: 1.05rem !important;
	display: block; margin-bottom: 0.75rem;
}
.woocommerce ul.products li.product .button {
	margin-top: auto !important; align-self: flex-start;
	background: transparent !important; color: var(--vd-green) !important;
	border: 1.5px solid var(--vd-green) !important; border-radius: 6px !important;
	font-family: var(--wp--preset--font-family--body); font-size: 0.82rem !important; font-weight: 700 !important;
	padding: 0.6rem 1.1rem !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--vd-green) !important; color: var(--wp--preset--color--base) !important; }
.woocommerce span.onsale { display: none; }

/* WooCommerce blocks */
.wc-block-components-product-name, .wp-block-post-title a { text-decoration: none; }
.wp-block-woocommerce-product-collection .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: 1rem !important; }
.wp-block-woocommerce-product-image img, .wc-block-components-product-image img { border-radius: var(--vd-radius); }
.wp-block-add-to-cart-form .single_add_to_cart_button,
.wc-block-components-button:not(.is-link),
.wp-block-button__link.add_to_cart_button { border-radius: 6px !important; font-weight: 700 !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .wp-block-woocommerce-product-price .wc-block-components-product-price { font-size: 1.6rem !important; font-weight: 700; color: var(--vd-green); }
.woocommerce-product-gallery img { border-radius: var(--vd-radius); }

/* Delivery note on product pages */
.vd-product-note { list-style: none; margin: 1.25rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); background: #fff; font-size: 0.9rem; line-height: 1.5; }
.vd-product-note li { padding-left: 1.5rem; position: relative; margin: 0.25rem 0; }
.vd-product-note li::before { content: "✓"; position: absolute; left: 0; color: var(--vd-leaf); font-weight: 700; }

/* ---------- Spring routine ---------- */
.vd-season-img img { border-radius: var(--vd-radius); width: 100%; }
.vd-steps { padding-left: 0; list-style: none; counter-reset: s; margin: 1.5rem 0 2rem; }
.vd-steps li { counter-increment: s; position: relative; padding: 0.85rem 0 0.85rem 3.2rem; border-top: 1px solid var(--vd-line); }
.vd-steps li:last-child { border-bottom: 1px solid var(--vd-line); }
.vd-steps li::before {
	content: counter(s); position: absolute; left: 0; top: 0.8rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
	background: var(--vd-green); color: var(--wp--preset--color--base); display: grid; place-items: center;
	font-family: var(--wp--preset--font-family--heading); font-weight: 600;
}
.vd-steps a { white-space: nowrap; font-weight: 700; font-size: 0.88rem; margin-left: 0.25rem; }
.vd-steps a::after { content: " →"; }

/* ---------- Story ---------- */
.vd-story .wp-block-media-text__content { padding: clamp(2rem, 6vw, 6rem) !important; max-width: 660px; }
.vd-story h2 em { color: var(--vd-leaf); }
@media (max-width: 600px) { .vd-story .wp-block-media-text__media { min-height: 320px; } }

/* ---------- FAQ ---------- */
.vd-q, .wp-block-details { border-top: 1px solid var(--vd-line); padding: 1.1rem 0; margin: 0 !important; }
.vd-q:last-child { border-bottom: 1px solid var(--vd-line); }
.wp-block-details summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: -0.15rem; font-size: 1.4rem; font-weight: 400; color: var(--vd-leaf); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details p { margin: 0.75rem 0 0; color: var(--wp--preset--color--contrast-2); }

/* ---------- CTA ---------- */
.vd-cta h2 { margin: 0 0 0.4rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.vd-cta p { margin: 0; opacity: 0.9; max-width: 40rem; }
.vd-cta-text { flex: 1 1 420px; }

/* ---------- Footer ---------- */
.vd-footer a { text-decoration: none; }
.vd-footer a:hover { color: var(--vd-gold) !important; }
.wp-block-columns.vd-footer-cols { display: grid !important; grid-template-columns: 1.25fr 1fr 0.9fr 1.15fr; gap: 2.5rem; }
.vd-footer-cols > .wp-block-column { margin: 0 !important; }
.vd-company a { overflow-wrap: normal; word-break: keep-all; }
.vd-footer-blurb { font-size: 0.92rem; opacity: 0.8; max-width: 22rem; margin-top: 1.1rem; }
.vd-footer-heading { margin: 0 0 0.9rem; font-family: var(--wp--preset--font-family--body); font-size: 0.8rem !important; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.vd-footer-heading + .vd-footer-links + .vd-footer-heading, .vd-footer-links + .vd-footer-heading { margin-top: 1.75rem; }
.vd-footer-links, .vd-company { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; line-height: 2; }
.vd-company li { line-height: 1.55; margin-bottom: 0.7rem; }
.vd-company-label { display: block; color: var(--vd-gold); font-size: 0.78rem; font-weight: 600; }
.vd-footer-rule { border-color: rgba(247, 242, 235, 0.15) !important; background: rgba(247, 242, 235, 0.15) !important; opacity: 1; }
.vd-copyright { margin: 0; font-size: 0.82rem; opacity: 0.7; }
@media (max-width: 900px) { .wp-block-columns.vd-footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .wp-block-columns.vd-footer-cols { grid-template-columns: 1fr; } }

/* ---------- Pages ---------- */
.vd-contact { list-style: none; padding: 1.25rem 1.4rem; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); background: #fff; }
.vd-contact li { margin-bottom: 0.4rem; }
.vd-contact li:last-child { margin-bottom: 0; }

/* Contact form */
.vd-form { max-width: 760px; }
.vd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) { .vd-form__row { grid-template-columns: 1fr; } }
.vd-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
.vd-form input, .vd-form textarea {
	width: 100%; box-sizing: border-box; padding: 0.8rem 0.9rem; font: inherit;
	border: 1px solid #D3CAB8; background: #fff; border-radius: 6px;
}
.vd-form input:focus, .vd-form textarea:focus { outline: 2px solid var(--vd-leaf); outline-offset: 0; border-color: transparent; }
.vd-form button { cursor: pointer; border: 0; }
.vd-hp { position: absolute !important; left: -9999px !important; }
.vd-notice { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 3px solid; border-radius: 4px; }
.vd-notice--ok { background: #EEF1EA; border-color: var(--vd-leaf); }
.vd-notice--error { background: #F8EAE6; border-color: #B5523B; }

/* ---------- Currency switcher ---------- */
.vd-currency { display: flex; gap: 0.1rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--vd-line); border-radius: 999px; padding: 2px; white-space: nowrap; }
.vd-currency a { text-decoration: none; padding: 0.2rem 0.6rem; border-radius: 999px; }
.wp-block-button.is-style-outline > .wp-block-button__link { padding: calc(0.95rem - 1.5px) calc(2rem - 1.5px); }
.vd-trust { padding-left: var(--wp--style--root--padding-left, 1rem) !important; padding-right: var(--wp--style--root--padding-right, 1rem) !important; }
.wp-block-post-content h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-top: 2.25rem; margin-bottom: 0.5rem; }
.wp-block-post-content h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.35rem; font-family: var(--wp--preset--font-family--body); font-weight: 700; letter-spacing: 0; }

/* Vial Drops: Cormorant headings read smaller than other serifs, so give them a little more size. */
h1.wp-block-heading { font-size: clamp(2.6rem, 5vw, 4.1rem); line-height: 1.05; letter-spacing: 0; }
h2.wp-block-heading { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: 0; }
.vd-cat-name { font-size: 1.4rem; }
