/*
Theme Name: Phoenix
Theme URI: https://phoenixblades.store/
Author: Phoenix Blades
Description: A WooCommerce theme for hand-forged blade makers. White header, full-bleed photography, cream product cards and a black footer. Built to match a Dawn-style storefront layout.
Version: 2.3.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phoenix
Tags: e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   Tokens
   ========================================================= */

:root {
	--ph-black: #000000;      /* announcement bar, footer, buttons, bands */
	--ph-ink: #121212;        /* body copy */
	--ph-muted: #6f6f6f;      /* section descriptions, meta */
	--ph-cream: #f7e8d6;      /* product card body panel */
	--ph-tan: #a67b4d;        /* accent links */
	--ph-line: #e2e2e2;
	--ph-white: #ffffff;
	--ph-star: #1a1a1a;
	--ph-star-review: #f5a623;
	--ph-green: #7cb518;
	--ph-green-dark: #6ba010;

	--ph-font: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;

	--ph-wrap: 1200px;
	--ph-bleed: 1600px;
	--ph-gap: 1.25rem;
	--ph-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--ph-white);
	color: var(--ph-ink);
	font-family: var(--ph-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--ph-ink);
	outline-offset: 2px;
}

h1, h2, h3, h4 {
	font-family: var(--ph-font);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; }
h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h3 { font-size: 1.05rem; }

.ph-wrap { width: min(100% - 3rem, var(--ph-wrap)); margin-inline: auto; }

.ph-skip { position: absolute; left: -9999px; background: var(--ph-black); color: #fff; padding: 0.75rem 1rem; z-index: 999; }
.ph-skip:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Utility: full-width black band. Add "ph-band" to a Group block. */
.ph-band {
	background: var(--ph-black);
	color: #fff;
	text-align: center;
	padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.ph-band h2, .ph-band h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.ph-band p { color: rgba(255, 255, 255, 0.75); max-width: 40ch; margin-inline: auto; }

/* =========================================================
   Announcement bar (Store Kit) sits above the header
   ========================================================= */

.sk-announcement {
	background: var(--ph-black) !important;
	color: #fff !important;
	font-size: 0.8125rem;
	letter-spacing: 0;
	text-transform: none;
	padding: 0.6rem 1rem;
}

/* =========================================================
   Header — white, logo left, nav beside it, icons right
   ========================================================= */

.ph-header {
	background: var(--ph-white);
	color: var(--ph-ink);
	border-bottom: 1px solid var(--ph-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.ph-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 68px;
	padding-block: 0.5rem;
}

.ph-header__brand { flex: 0 0 auto; }
.ph-nav { flex: 1 1 auto; }
.ph-header__tools { flex: 0 0 auto; display: flex; align-items: center; gap: 0.15rem; }

.ph-brand { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; margin: 0; }
.ph-brand a { text-decoration: none; }
.custom-logo { max-height: 46px; width: auto; display: block; }

.ph-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: flex-start;
}

.ph-menu a {
	display: block;
	padding: 0.25rem 0;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--ph-ink);
	transition: color 0.2s var(--ph-ease);
}
.ph-menu a:hover { color: var(--ph-tan); }
.ph-menu .current-menu-item > a { color: var(--ph-tan); }

.ph-menu li { position: relative; }

/* Parent items with children get a caret. */
.ph-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px; height: 5px;
	margin-left: 0.4em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.ph-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 240px;
	background: var(--ph-white);
	border: 1px solid var(--ph-line);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s var(--ph-ease), transform 0.2s var(--ph-ease), visibility 0.2s;
	z-index: 10;
}
.ph-menu li:hover > .sub-menu,
.ph-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ph-menu .sub-menu a { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.ph-menu .sub-menu a:hover { background: #f6f6f6; color: var(--ph-tan); }

.ph-icon {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	background: none; border: 0; color: inherit;
	cursor: pointer; position: relative; text-decoration: none;
}

.ph-icon__glyph {
	display: grid;
	place-items: center;
	transition: transform 0.2s var(--ph-ease), opacity 0.2s var(--ph-ease);
}
.ph-icon__glyph svg { display: block; }
.ph-icon:hover .ph-icon__glyph { transform: translateY(-1px); opacity: 0.7; }

.ph-cartcount {
	position: absolute; top: 3px; right: 1px;
	min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 999px;
	background: var(--ph-black); color: #fff;
	font-size: 0.65rem; line-height: 17px; text-align: center;
}
.ph-cartcount.is-empty { display: none; }

.ph-burger { display: none; width: 40px; height: 40px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.ph-burger__bars, .ph-burger__bars::before, .ph-burger__bars::after {
	position: absolute; left: 10px; width: 20px; height: 1.5px;
	background: currentColor; transition: transform 0.25s var(--ph-ease), opacity 0.2s;
}
.ph-burger__bars { top: 19px; }
.ph-burger__bars::before { content: ""; top: -6px; left: 0; }
.ph-burger__bars::after { content: ""; top: 6px; left: 0; }
.ph-burger[aria-expanded="true"] .ph-burger__bars { transform: rotate(45deg); }
.ph-burger[aria-expanded="true"] .ph-burger__bars::before { opacity: 0; }
.ph-burger[aria-expanded="true"] .ph-burger__bars::after { transform: rotate(-90deg); top: 0; }

.ph-search { background: #fafafa; border-top: 1px solid var(--ph-line); padding: 1rem 0; }
.ph-search input[type="search"], .ph-search input[type="text"] {
	width: 100%; padding: 0.7rem 1rem;
	border: 1px solid var(--ph-line); background: #fff;
	color: var(--ph-ink); font-family: var(--ph-font);
}
.ph-search button { display: none; }

@media (max-width: 1024px) {
	.ph-burger { display: block; }
	.ph-header__brand { flex: 1 1 auto; text-align: center; }
	.ph-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--ph-line);
		max-height: 0; overflow: hidden;
		transition: max-height 0.3s var(--ph-ease);
	}
	.ph-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.ph-menu { flex-direction: column; gap: 0; padding: 0.5rem 1.5rem 1.5rem; }
	.ph-menu a { padding: 0.8rem 0; border-bottom: 1px solid #eee; }
	.ph-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
}

/* =========================================================
   Hero — a photograph, full bleed, no overlay by default
   ========================================================= */

.ph-hero {
	width: 100%;
	margin: 0;
	background: #f2f2f2;
	background-size: cover;
	background-position: center;
	position: relative;
	aspect-ratio: 1920 / 900;
	max-height: 720px;
}

/* Text only appears when the Customizer fields are filled. */
.ph-hero:not(.has-text) .ph-hero__inner { display: none; }

.ph-hero.has-text.has-image::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.ph-hero__inner {
	position: relative; z-index: 1;
	height: 100%;
	display: flex; flex-direction: column; justify-content: flex-end;
	max-width: 34rem;
	color: #fff;
	padding: 0 clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 4rem);
}
.ph-hero__title {
	color: #fff;
	margin-bottom: 0.35em;
	font-weight: 600;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.ph-hero__sub {
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 1.75rem;
	font-size: 1rem;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.ph-hero .ph-rule { display: none; }

@media (max-width: 700px) {
	.ph-hero { aspect-ratio: 4 / 3; max-height: none; }
}

/* =========================================================
   Buttons
   ========================================================= */

.ph-btn::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.55em;
	transition: transform 0.2s var(--ph-ease);
}
.ph-btn:hover::after { transform: translateX(3px); }

.ph-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce div.product form.cart .button {
	display: inline-block;
	background: var(--ph-black);
	color: #fff;
	font-family: var(--ph-font);
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	border: 1px solid var(--ph-black);
	border-radius: 0;
	padding: 0.85em 2.2em;
	cursor: pointer;
	line-height: 1.3;
	transition: background 0.2s var(--ph-ease), color 0.2s var(--ph-ease);
}
.ph-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce div.product form.cart .button:hover {
	background: #fff;
	color: var(--ph-black);
}

.woocommerce div.product form.cart .button { width: 100%; }

/* =========================================================
   Intro block and section headings
   ========================================================= */

.ph-main { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.ph-main > .ph-wrap { padding-top: clamp(2rem, 5vw, 3.25rem); }

/* Centred intro: give a Group block the class "ph-intro". */
.ph-intro { text-align: center; max-width: 46rem; margin-inline: auto; }
.ph-intro h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }
.ph-intro p { color: var(--ph-muted); }

.ph-sechead { margin: 0 0 1.1rem; }
.ph-sechead__title { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; margin-bottom: 0.35em; }
.ph-sechead__desc { color: var(--ph-muted); font-size: 0.9rem; margin: 0; max-width: none; }
.ph-rule { display: none; }

.ph-content { max-width: 72ch; }
.ph-page { padding-top: clamp(2rem, 5vw, 3.25rem); }

/* Trust row */
.ph-trust { border-top: 1px solid var(--ph-line); margin-top: 3rem; padding: 2.5rem 0; }
.ph-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--ph-gap); text-align: center; }
.ph-trust__title { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.3em; }
.ph-trust__text { margin: 0; color: var(--ph-muted); font-size: 0.85rem; }

/* Blog */
.ph-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.ph-post__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ph-post__title { font-size: 1.15rem; margin: 0.8rem 0 0.3rem; }
.ph-post__title a { text-decoration: none; }
.ph-post__meta { font-size: 0.78rem; color: var(--ph-muted); margin: 0 0 0.5rem; }

/* =========================================================
   WooCommerce product grid and cards
   ========================================================= */

.ph-shop.has-sidebar > .ph-wrap {
	display: grid; grid-template-columns: 240px 1fr;
	gap: 2.5rem; align-items: start;
}
.ph-shop.has-sidebar .ph-sechead,
.ph-shop.has-sidebar .woocommerce-breadcrumb { grid-column: 1 / -1; }
@media (max-width: 900px) { .ph-shop.has-sidebar > .ph-wrap { grid-template-columns: 1fr; } }

.woocommerce-breadcrumb { font-size: 0.8rem; color: var(--ph-muted); margin: 0 0 1rem; }

.woocommerce ul.products,
.sk-carousel__track.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--ph-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products li.product,
.sk-carousel__track.products > li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: var(--ph-cream);
	padding: 0;
	border: 0;
	position: relative;
	overflow: hidden;
	text-align: center;
	display: flex;
	flex-direction: column;
}

/* Image sits flush at the top, square, no padding. */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .sk-card__media { display: block; }

.woocommerce ul.products li.product img,
.sk-card__media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	border-radius: 0;
}

.sk-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #eee; }

/* The product link wraps the badge and the square photo, so the badge can
   anchor to the bottom of the image without knowing its height. */
.woocommerce ul.products li.product > a { position: relative; display: block; }

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
span.onsale.sk-badge {
	position: absolute;
	top: auto;
	bottom: 0.6rem;
	left: 0.6rem;
	right: auto;
	margin: 0;
	z-index: 3;
	background: var(--ph-black);
	color: #fff;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	padding: 0.45em 0.9em;
	min-height: 0;
	min-width: 0;
}

/* Card body */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ph-ink);
	padding: 0.85rem 0.75rem 0.4rem;
	margin: 0;
	text-decoration: none;
}

.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { text-decoration: underline; }

.woocommerce ul.products li.product .star-rating,
.sk-card__reviews {
	margin: 0 auto 0.15rem;
	float: none;
	font-size: 0.78em;
}
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before { color: var(--ph-star); }

.sk-card__reviews {
	display: flex;
	justify-content: center;
	gap: 0.3rem;
	font-size: 0.72rem;
	color: var(--ph-muted);
	padding: 0 0.75rem;
}
.sk-card__avg { font-weight: 600; color: var(--ph-ink); }
.sk-card__avg::before { content: "\2605"; color: var(--ph-star); margin-inline-end: 0.2em; }

.woocommerce ul.products li.product .price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--ph-ink);
	margin: 0;
	padding: 0.35rem 0.75rem 1rem;
	margin-top: auto;
}
.woocommerce ul.products li.product .price del {
	color: #9a8b7a;
	opacity: 1;
	font-size: 0.78rem;
	font-weight: 400;
	order: -1;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; font-weight: 600; }

/* Add to cart on cards: hidden to match the reference, which links through. */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .added_to_cart { display: none; }

@media (max-width: 1000px) {
	.woocommerce ul.products,
	.sk-carousel__track.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
	.woocommerce ul.products,
	.sk-carousel__track.products { grid-template-columns: repeat(2, 1fr); }
}

/* Store Kit section: heading, grid, centred black View all button. */
.sk-section { margin-block: clamp(2.5rem, 5vw, 3.75rem); }
.sk-section__title { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; margin: 0 0 0.35em; }
.sk-section__desc { color: var(--ph-muted); font-size: 0.9rem; max-width: none; margin: 0 0 1.25rem; }
.sk-carousel__nav { display: none !important; }
.sk-carousel__track.products { overflow: visible; scroll-snap-type: none; }
.sk-section__more { text-align: center; margin: 1.75rem 0 0; }
.sk-section__link {
	display: inline-block;
	background: var(--ph-black);
	color: #fff;
	border: 1px solid var(--ph-black);
	padding: 0.8em 2.4em;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition: background 0.2s var(--ph-ease), color 0.2s var(--ph-ease);
}
.sk-section__link:hover { background: #fff; color: var(--ph-black); }

/* =========================================================
   Single product
   ========================================================= */

.woocommerce div.product .images,
.woocommerce div.product .woocommerce-product-gallery {
	position: relative;
}
.woocommerce div.product span.onsale {
	top: 1rem;
	left: 1rem;
	bottom: auto;
}

.woocommerce div.product .product_title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; line-height: 1.25; }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
	font-size: 1.15rem; font-weight: 600; color: var(--ph-ink);
}
.woocommerce div.product p.price del { color: var(--ph-muted); font-size: 0.9rem; font-weight: 400; order: -1; }
.woocommerce div.product p.price ins { text-decoration: none; }

.woocommerce div.product .summary { border-bottom: 0; }
.woocommerce div.product form.cart { border-top: 1px solid var(--ph-line); padding-top: 1.25rem; }
.woocommerce div.product form.cart .quantity input.qty {
	border: 1px solid var(--ph-line); padding: 0.6rem; width: 4.5rem; text-align: center;
}

.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 1.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--ph-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border-radius: 0; background: transparent; border-color: var(--ph-line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 0.9rem; font-weight: 600; }

.woocommerce table.shop_attributes th { font-weight: 600; }
.woocommerce table.shop_table, .woocommerce table.shop_attributes { border-radius: 0; }

.woocommerce .star-rating { color: var(--ph-star-review); }
.woocommerce #reviews .star-rating span::before,
.woocommerce #reviews .star-rating::before { color: var(--ph-star-review); }

.woocommerce .related > h2,
.woocommerce .upsells > h2 { font-size: 1.1rem; font-weight: 700; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--ph-black); background: #fafafa; border-radius: 0;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ph-black); }

/* =========================================================
   Widgets and footer
   ========================================================= */

.ph-widget { margin-bottom: 1.75rem; }
.ph-widget__title { font-size: 0.85rem; font-weight: 700; color: var(--ph-ink); margin: 0 0 0.6rem; }

.ph-footer {
	background: var(--ph-black);
	color: rgba(255, 255, 255, 0.72);
	padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem;
	font-size: 0.85rem;
}
.ph-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.72); }
.ph-footer a:hover { color: #fff; }
.ph-footer .ph-brand { color: #fff; font-size: 1rem; margin-bottom: 0.6rem; }
.ph-footer .ph-brand a { color: #fff; }

.ph-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2rem;
}
.ph-footer__about { max-width: 32ch; margin: 0 0 1rem; }

.ph-footer__contact, .ph-social, .ph-footer__menu { list-style: none; margin: 0; padding: 0; }
.ph-footer__contact li, .ph-footer__menu li { margin-bottom: 0.5rem; }

.ph-footer__heading {
	font-size: 0.85rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.9rem;
}

.ph-social { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1rem; }
.ph-social a { font-size: 0.75rem; }

.ph-footer__news { margin-top: 2.5rem; max-width: 24rem; }
.ph-footer__news input[type="email"], .ph-footer__news input[type="text"] {
	width: 100%; padding: 0.75rem 1rem;
	background: transparent; color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
}
.ph-footer__news input::placeholder { color: rgba(255, 255, 255, 0.55); }

.ph-footer__pay { margin-top: 2rem; }
.ph-footer__pay img { max-height: 26px; width: auto; }

.ph-footer__legal {
	margin: 2rem 0 0; padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.75rem; color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   Motion
   ========================================================= */

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

/* =========================================================
   Product gallery: WooCommerce's built-in slider, restyled
   ========================================================= */

.woocommerce-product-gallery { position: relative; }

.woocommerce-product-gallery .flex-viewport {
	border: 1px solid var(--ph-line);
	overflow: hidden;
	background: #f7f7f7;
}

.woocommerce-product-gallery img { transition: transform 0.4s var(--ph-ease); }

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 4;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s var(--ph-ease), transform 0.2s var(--ph-ease);
}
.woocommerce-product-gallery:hover .woocommerce-product-gallery__trigger { opacity: 1; transform: none; }

/* Thumbnail rail */
.flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}
.flex-control-thumbs li { width: calc(25% - 0.45rem); }
.flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	cursor: pointer;
	opacity: 0.65;
	border: 1px solid transparent;
	transition: opacity 0.2s var(--ph-ease), border-color 0.2s var(--ph-ease);
}
.flex-control-thumbs img:hover { opacity: 1; }
.flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--ph-tan);
}

/* Prev / next arrows, matching the black circular buttons used elsewhere */
.woocommerce-product-gallery .flex-direction-nav a {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	text-indent: -9999px;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.2s var(--ph-ease);
}
.woocommerce-product-gallery:hover .flex-direction-nav a { opacity: 1; }
.woocommerce-product-gallery .flex-direction-nav a::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 8px; height: 8px;
	border-right: 2px solid var(--ph-ink);
	border-bottom: 2px solid var(--ph-ink);
}
.woocommerce-product-gallery .flex-direction-nav a.flex-prev { left: 0.75rem; }
.woocommerce-product-gallery .flex-direction-nav a.flex-prev::after { transform: translate(-30%, -50%) rotate(135deg); }
.woocommerce-product-gallery .flex-direction-nav a.flex-next { right: 0.75rem; }
.woocommerce-product-gallery .flex-direction-nav a.flex-next::after { transform: translate(-70%, -50%) rotate(-45deg); }

/* =========================================================
   Product page trust bar
   ========================================================= */

.ph-product-trust { margin: 1.5rem 0 0; }

/* Shipping promise line */
.ph-ship-line {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1.1rem;
	padding: 0.7rem 0.9rem;
	background: #f5f7f0;
	border: 1px solid #e4e9da;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #3d4a24;
}
.ph-ship-line .ph-trust-svg { color: var(--ph-green-dark); flex: none; }

/* Icon trust badges — two columns, quiet and reassuring */
.ph-trust-badges {
	list-style: none;
	margin: 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--ph-line);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1.25rem;
}
.ph-trust-badges li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--ph-ink);
}
.ph-trust-badges .ph-trust-svg {
	color: var(--ph-tan);
	flex: none;
}

@media (max-width: 480px) {
	.ph-trust-badges { grid-template-columns: 1fr; }
}

/* =========================================================
   Sticky mobile add-to-cart bar
   ========================================================= */

.ph-sticky-atc {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 90;
	background: #fff;
	border-top: 1px solid var(--ph-line);
	box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(100%);
	transition: transform 0.25s var(--ph-ease);
	padding: 0.75rem 0;
}
.ph-sticky-atc.is-visible { transform: translateY(0); }

.ph-sticky-atc__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.ph-sticky-atc__title {
	flex: 1 1 auto;
	font-size: 0.85rem;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ph-sticky-atc__price {
	flex: none;
	font-size: 0.95rem;
	font-weight: 600;
	display: none;
}
.ph-sticky-atc__price del { color: var(--ph-muted); font-weight: 400; font-size: 0.8rem; margin-right: 0.3em; }
.ph-sticky-atc__btn { flex: none; padding: 0.65em 1.6em; font-size: 0.85rem; }

@media (min-width: 480px) { .ph-sticky-atc__price { display: block; } }
@media (min-width: 1025px) { .ph-sticky-atc { display: none; } }

/* =========================================================
   Scroll reveal
   ---------------------------------------------------------
   JS adds .is-visible once an element enters the viewport.
   Elements are visible by default so nothing breaks if JS
   fails to load — this is a progressive enhancement only.
   ========================================================= */

.ph-reveal {
	opacity: 1;
	transform: none;
}
.js-reveal-ready .ph-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s var(--ph-ease), transform 0.6s var(--ph-ease);
}
.js-reveal-ready .ph-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* =========================================================
   Card and section polish
   ========================================================= */

.woocommerce ul.products li.product,
.sk-carousel__track.products > li.product {
	transition: box-shadow 0.3s var(--ph-ease), transform 0.3s var(--ph-ease);
}
.woocommerce ul.products li.product:hover,
.sk-carousel__track.products > li.product:hover {
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
	transform: translateY(-3px);
}

.woocommerce ul.products li.product .sk-card__media,
.woocommerce ul.products li.product > a > img,
.sk-card__media {
	overflow: hidden;
}
.woocommerce ul.products li.product img {
	transition: transform 0.5s var(--ph-ease);
}
.woocommerce ul.products li.product:hover img,
.sk-carousel__track.products > li.product:hover img {
	transform: scale(1.045);
}

/* Quick "View product" pill, fades in over the image on hover. */
.woocommerce ul.products li.product > a { position: relative; overflow: hidden; }
.woocommerce ul.products li.product .ph-quickview {
	position: absolute;
	left: 50%;
	bottom: 0.9rem;
	transform: translate(-50%, 10px);
	background: rgba(255, 255, 255, 0.95);
	color: var(--ph-ink);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 0.5em 1.1em;
	border-radius: 999px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s var(--ph-ease), transform 0.25s var(--ph-ease);
	white-space: nowrap;
	z-index: 3;
}
.woocommerce ul.products li.product:hover .ph-quickview {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Button micro-interaction: a slight press on click. */
.ph-btn:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active,
.woocommerce #respond input#submit:active {
	transform: translateY(1px) scale(0.98);
}

/* Hero content settles in on load rather than appearing instantly. */
@keyframes ph-hero-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}
.ph-hero__inner > * { animation: ph-hero-in 0.7s var(--ph-ease) both; }
.ph-hero__inner > *:nth-child(2) { animation-delay: 0.08s; }
.ph-hero__inner > *:nth-child(3) { animation-delay: 0.16s; }

/* =========================================================
   Accordion (native <details>, no JS required)
   ---------------------------------------------------------
   Wrap product-description sections in [ph_accordion] from
   Store Kit to get the same collapsible pattern used for
   Shipping, Personalization and Care Info on premium stores.
   ========================================================= */

.ph-accordion {
	border-top: 1px solid var(--ph-line);
}
.ph-accordion:last-of-type { border-bottom: 1px solid var(--ph-line); }

.ph-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 0;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.92rem;
	list-style: none;
}
.ph-accordion__summary::-webkit-details-marker { display: none; }

.ph-accordion__icon {
	flex: none;
	width: 18px; height: 18px;
	position: relative;
}
.ph-accordion__icon::before,
.ph-accordion__icon::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	background: var(--ph-ink);
	transition: transform 0.25s var(--ph-ease);
}
.ph-accordion__icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.ph-accordion__icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.ph-accordion[open] .ph-accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.ph-accordion__body { padding: 0 0 1.1rem; color: var(--ph-muted); font-size: 0.92rem; }
.ph-accordion__body > *:first-child { margin-top: 0; }
.ph-accordion__body > *:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.ph-hero__inner > * { animation: none; }
	.js-reveal-ready .ph-reveal { opacity: 1; transform: none; transition: none; }
	.woocommerce ul.products li.product:hover img { transform: none; }
}

/* =========================================================
   Homepage banner slider
   ========================================================= */

.ph-slider {
	position: relative;
	width: 100%;
	margin: 0;
	overflow: hidden;
	background: #f2f2f2;
}

.ph-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.ph-slider__track::-webkit-scrollbar { display: none; }

.ph-slider__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	aspect-ratio: 1920 / 900;
	max-height: 720px;
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
}

.ph-slider__slide.has-text::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.18) 70%);
}

.ph-slider__inner {
	position: relative;
	z-index: 1;
	max-width: 34rem;
	color: #fff;
	padding-inline: clamp(1.5rem, 4vw, 3.5rem);
}
.ph-slider__title { color: #fff; margin: 0 0 0.3em; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 400; }
.ph-slider__sub { color: rgba(255, 255, 255, 0.9); margin: 0 0 1.5rem; }

@media (max-width: 700px) {
	.ph-slider__slide { aspect-ratio: 4 / 3; max-height: none; }
}

/* Arrows: same circular button used on the product gallery. */
.ph-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px; height: 44px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--ph-ink);
	opacity: 0;
	transition: opacity 0.2s var(--ph-ease), transform 0.2s var(--ph-ease);
}
.ph-slider:hover .ph-slider__arrow,
.ph-slider__arrow:focus-visible { opacity: 1; }
.ph-slider__arrow--prev { left: 1rem; }
.ph-slider__arrow--next { right: 1rem; }
.ph-slider__arrow:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 700px) {
	.ph-slider__arrow { display: none; }
}

/* Dots */
.ph-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 0.5rem;
}
.ph-slider__dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
	transition: background 0.2s var(--ph-ease), transform 0.2s var(--ph-ease);
}
.ph-slider__dot.is-active {
	background: #fff;
	transform: scale(1.3);
}
.ph-slider__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.ph-slider__track { scroll-behavior: auto; }
}

/* =========================================================
   1.9 Design refinement pass
   ---------------------------------------------------------
   A tighter, more confident system: bigger type steps,
   disciplined spacing rhythm, and quiet depth. Inspired by
   the spec-forward, whitespace-heavy presentation used by
   established blade brands, adapted to Phoenix's palette.
   ========================================================= */

:root {
	/* A more deliberate type scale (major third). */
	--ph-step-0: 1rem;
	--ph-step-1: 1.25rem;
	--ph-step-2: 1.563rem;
	--ph-step-3: 1.953rem;
	--ph-step-4: 2.441rem;
	--ph-step-5: clamp(2.5rem, 5vw, 3.75rem);
	/* Consistent vertical rhythm between major sections. */
	--ph-section: clamp(3.5rem, 8vw, 6.5rem);
}

body {
	font-size: 16.5px;
	line-height: 1.65;
	letter-spacing: 0.002em;
}

/* Sharper, more characterful headings with tighter tracking. */
h1, .ph-hero__title, .ph-slider__title { letter-spacing: -0.025em; }
h2 { letter-spacing: -0.018em; }

/* --- Section rhythm: give every major block room to breathe --- */

.sk-section { margin-block: var(--ph-section); }
.ph-trust { margin-top: var(--ph-section); padding-block: clamp(2.5rem, 5vw, 3.75rem); }

/* Section headings get an eyebrow-style uppercase label treatment. */
.sk-section__title,
.ph-sechead__title {
	font-size: var(--ph-step-3);
	font-weight: 600;
	letter-spacing: -0.015em;
	position: relative;
	padding-bottom: 0.5rem;
}

/* A short accent underline beneath each section title — the one
   deliberate flourish, tying section heads to the brass accent. */
.sk-section__title::after,
.ph-sechead__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 2px;
	background: var(--ph-tan);
}

.sk-section__desc,
.ph-sechead__desc {
	font-size: 1rem;
	max-width: 58ch;
	color: var(--ph-muted);
}

/* --- Product cards: quieter borders, more considered spacing --- */

.woocommerce ul.products li.product,
.sk-carousel__track.products > li.product {
	background: var(--ph-cream);
	transition: box-shadow 0.35s var(--ph-ease), transform 0.35s var(--ph-ease);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.82rem;
	line-height: 1.45;
	letter-spacing: 0.002em;
	padding: 1rem 0.85rem 0.4rem;
}

.woocommerce ul.products li.product .price {
	padding: 0.35rem 0.85rem 1.15rem;
	font-size: 1.1rem;
	letter-spacing: -0.01em;
}

/* Refined hover: deeper lift, softer shadow, brass hairline. */
.woocommerce ul.products li.product:hover,
.sk-carousel__track.products > li.product:hover {
	box-shadow: 0 18px 40px rgba(20, 23, 26, 0.12);
	transform: translateY(-4px);
}

/* --- Buttons: a touch more presence and padding --- */

.ph-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce div.product form.cart .button,
.sk-section__link {
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	padding-block: 0.9em;
}

/* --- Single product: spec-forward layout, brand-style --- */

.woocommerce div.product .product_title {
	font-size: var(--ph-step-4);
	line-height: 1.15;
	letter-spacing: -0.025em;
	font-weight: 600;
}

.single-product div.product .summary .woocommerce-product-details__short-description {
	font-size: 1.05rem;
	color: #3a3f43;
	line-height: 1.7;
	margin-block: 1rem 1.5rem;
}

/* Attribute/spec table styled like a data sheet — knife buyers
   read these before anything else, so make them legible. */
.woocommerce div.product .woocommerce-product-attributes,
.woocommerce table.shop_attributes {
	border: 1px solid var(--ph-line);
	border-collapse: separate;
	border-spacing: 0;
}
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	padding: 0.7rem 1rem;
	font-size: 0.9rem;
	border-bottom: 1px solid var(--ph-line);
}
.woocommerce table.shop_attributes th {
	background: #faf9f7;
	font-weight: 600;
	width: 40%;
	letter-spacing: 0.01em;
}
.woocommerce table.shop_attributes tr:last-child th,
.woocommerce table.shop_attributes tr:last-child td { border-bottom: 0; }

/* --- Breadcrumb: quieter, more refined --- */
.woocommerce-breadcrumb {
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	color: var(--ph-muted);
	margin-bottom: 1.5rem;
}

/* --- Category/shop archive header gets more presence --- */
.ph-shop .ph-sechead__title {
	font-size: var(--ph-step-4);
	letter-spacing: -0.02em;
}

/* --- Footer: tighten and refine --- */
.ph-footer { font-size: 0.86rem; }
.ph-footer__heading {
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.72rem;
	opacity: 0.9;
}
.ph-footer__menu a,
.ph-footer__contact a { transition: opacity 0.2s var(--ph-ease); opacity: 0.82; }
.ph-footer__menu a:hover,
.ph-footer__contact a:hover { opacity: 1; }

/* =========================================================
   Orchestrated scroll reveal — refined
   ---------------------------------------------------------
   Slightly longer travel and a soft stagger, applied to more
   element types across all page templates. Still opt-out via
   reduced-motion and safe if JS fails (visible by default).
   ========================================================= */

.js-reveal-ready .ph-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ph-ease), transform 0.7s var(--ph-ease);
}
.js-reveal-ready .ph-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Page content headings and paragraphs ease in on content pages. */
.js-reveal-ready .ph-content > h2,
.js-reveal-ready .ph-content > h3,
.js-reveal-ready .ph-page .ph-content > p { will-change: opacity, transform; }

@media (prefers-reduced-motion: reduce) {
	.js-reveal-ready .ph-reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   2.0 Product card redesign
   ---------------------------------------------------------
   A cleaner, brand-grade card: near-white body, clear price
   hierarchy, no stray underlines, tidy badge, one confident
   action. Overrides earlier card rules intentionally.
   ========================================================= */

/* Card shell: white with a hairline, not a heavy cream block.
   The cream now appears only as a subtle footer accent strip. */
.woocommerce ul.products li.product,
.sk-carousel__track.products > li.product {
	background: #fff;
	border: 1px solid var(--ph-line);
	border-radius: 4px;
	overflow: hidden;
	text-align: left;
	transition: box-shadow 0.35s var(--ph-ease),
	            transform 0.35s var(--ph-ease),
	            border-color 0.35s var(--ph-ease);
}

.woocommerce ul.products li.product:hover,
.sk-carousel__track.products > li.product:hover {
	border-color: #cfcfca;
	box-shadow: 0 16px 36px rgba(20, 23, 26, 0.10);
	transform: translateY(-4px);
}

/* Image sits on a very light neutral, not cream — lets real
   product photography read as clean and professional. */
.woocommerce ul.products li.product > a,
.woocommerce ul.products li.product .sk-card__media {
	background: #f6f6f4;
}

.woocommerce ul.products li.product img,
.sk-card__media img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 0.75rem;
}

.woocommerce ul.products li.product > a img {
	transition: transform 0.5s var(--ph-ease);
}

/* Title: no underline, clear weight, comfortable line length. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.005em;
	color: var(--ph-ink);
	padding: 0.9rem 1rem 0.35rem;
	text-decoration: none;
}
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product a:hover,
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title {
	text-decoration: none;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
	color: var(--ph-tan);
}

/* Price: left-aligned, sale price emphasized, old price muted. */
.woocommerce ul.products li.product .price {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 0.5rem;
	padding: 0.15rem 1rem 1rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ph-ink);
	margin-top: auto;
}
.woocommerce ul.products li.product .price del {
	order: 2;
	color: var(--ph-muted);
	font-weight: 400;
	font-size: 0.82rem;
	opacity: 0.85;
}
.woocommerce ul.products li.product .price ins {
	order: 1;
	text-decoration: none;
	font-weight: 700;
	color: var(--ph-ink);
}

/* Badge: smaller, tucked in the top-left of the image, on-brand. */
.woocommerce ul.products li.product .onsale,
.sk-carousel__track.products > li.product .onsale,
span.onsale.sk-badge {
	top: 0.7rem;
	left: 0.7rem;
	bottom: auto;
	right: auto;
	background: var(--ph-ink);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.35em 0.7em;
	border-radius: 3px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Old hover pill no longer used — actions now live in .ph-card-actions. */
.woocommerce ul.products li.product .ph-quickview { display: none !important; }

/* Star rating: left-aligned, subtle, sits under the title. */
.woocommerce ul.products li.product .star-rating {
	margin: 0 1rem 0.5rem;
	font-size: 0.8em;
}

/* Give the card body a clear vertical layout so price pins to bottom. */
.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
}

/* =========================================================
   2.1 Card action buttons (CIVIVI-style)
   ---------------------------------------------------------
   A prominent green Add to Cart, with a secondary outlined
   Quick View beneath it. Green is scoped to this button only
   — it is not a site-wide accent.
   ========================================================= */

.ph-card-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.25rem 1rem 1.1rem;
	margin-top: auto;
}

/* Primary: Add to Cart — green, full width, confident. */
.woocommerce ul.products li.product .ph-card-actions .button.add_to_cart_button,
.woocommerce ul.products li.product .ph-card-actions a.added_to_cart {
	display: block !important;
	width: 100%;
	background: var(--ph-green);
	color: #fff;
	border: 1px solid var(--ph-green);
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: center;
	padding: 0.8em 1em;
	text-transform: none;
	transition: background 0.2s var(--ph-ease), border-color 0.2s var(--ph-ease);
	margin: 0;
}
.woocommerce ul.products li.product .ph-card-actions .button.add_to_cart_button::after {
	content: none; /* strip the inherited arrow on card buttons */
}
.woocommerce ul.products li.product .ph-card-actions .button.add_to_cart_button:hover,
.woocommerce ul.products li.product .ph-card-actions a.added_to_cart:hover {
	background: var(--ph-green-dark);
	border-color: var(--ph-green-dark);
	color: #fff;
}

/* Loading/added state dot from WooCommerce — keep it readable on green. */
.woocommerce ul.products li.product .ph-card-actions .button.loading::after {
	color: #fff;
}

/* "View cart" link WooCommerce injects after adding — style as text. */
.woocommerce ul.products li.product .ph-card-actions a.added_to_cart {
	background: var(--ph-ink);
	border-color: var(--ph-ink);
	font-size: 0.78rem;
	padding: 0.55em 1em;
}

/* Secondary: Quick View — outlined, understated. */
.ph-card-actions .ph-quickview-btn {
	display: block;
	width: 100%;
	background: #fff;
	color: var(--ph-ink);
	border: 1px solid var(--ph-line);
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
	padding: 0.7em 1em;
	text-decoration: none;
	transition: border-color 0.2s var(--ph-ease), background 0.2s var(--ph-ease);
}
.ph-card-actions .ph-quickview-btn::after { content: none; }
.ph-card-actions .ph-quickview-btn:hover {
	border-color: var(--ph-ink);
	background: #faf9f7;
}

/* Star rating + review count row, left aligned above the price. */
.woocommerce ul.products li.product .star-rating {
	margin: 0.1rem 1rem 0.4rem;
	float: none;
}

/* Tighten spacing now that actions live at the foot of the card. */
.woocommerce ul.products li.product .price {
	padding-bottom: 0.6rem;
}

/* =========================================================
   2.2 Card action fix — force green button, kill underlines
   ---------------------------------------------------------
   Targets the add-to-cart link by every class WooCommerce may
   give it, and removes underlines leaking from global <a>
   styles. Higher specificity + explicit properties so this
   wins regardless of the loop markup variant.
   ========================================================= */

/* Kill ALL underlines inside a product card, everywhere. */
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product a:hover,
.woocommerce ul.products li.product a:focus {
	text-decoration: none !important;
}

/* Title: clean bold, never underlined, even on hover. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	text-decoration: none !important;
	border-bottom: 0 !important;
}

/* The Add to Cart link — match it by its own class, not by
   requiring .button, since the loop link may lack .button. */
.woocommerce ul.products li.product .ph-card-actions a[href*="add-to-cart"],
.woocommerce ul.products li.product .ph-card-actions a.add_to_cart_button,
.woocommerce ul.products li.product .ph-card-actions .add_to_cart_button {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	background: var(--ph-green) !important;
	color: #fff !important;
	border: 1px solid var(--ph-green) !important;
	border-radius: 4px !important;
	font-size: 0.92rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: none !important;
	padding: 0.85em 1em !important;
	margin: 0 !important;
	line-height: 1.3 !important;
	cursor: pointer;
	transition: background 0.2s var(--ph-ease), border-color 0.2s var(--ph-ease);
}
.woocommerce ul.products li.product .ph-card-actions a[href*="add-to-cart"]::after,
.woocommerce ul.products li.product .ph-card-actions a.add_to_cart_button::after {
	content: none !important;
}
.woocommerce ul.products li.product .ph-card-actions a[href*="add-to-cart"]:hover,
.woocommerce ul.products li.product .ph-card-actions a.add_to_cart_button:hover {
	background: var(--ph-green-dark) !important;
	border-color: var(--ph-green-dark) !important;
	color: #fff !important;
}

/* The "View cart" link WooCommerce swaps in after adding —
   distinguish it from the green button: dark, smaller. */
.woocommerce ul.products li.product .ph-card-actions a.added_to_cart {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	background: var(--ph-ink) !important;
	color: #fff !important;
	border: 1px solid var(--ph-ink) !important;
	border-radius: 4px !important;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	text-align: center !important;
	text-decoration: none !important;
	padding: 0.6em 1em !important;
	margin: 0 !important;
}

/* Quick view: outlined secondary. */
.ph-card-actions .ph-quickview-btn {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	background: #fff !important;
	color: var(--ph-ink) !important;
	border: 1px solid var(--ph-line) !important;
	border-radius: 4px !important;
	font-size: 0.86rem !important;
	font-weight: 600 !important;
	text-align: center !important;
	text-decoration: none !important;
	padding: 0.72em 1em !important;
	transition: border-color 0.2s var(--ph-ease), background 0.2s var(--ph-ease);
}
.ph-card-actions .ph-quickview-btn:hover {
	border-color: var(--ph-ink) !important;
	background: #faf9f7 !important;
}

/* Price row: single clean line, sale price bold, old price muted
   and struck — but lighter so it doesn't dominate like the shot. */
.woocommerce ul.products li.product .price {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	padding: 0.1rem 1rem 0.75rem;
	font-size: 1.15rem;
	font-weight: 700;
}
.woocommerce ul.products li.product .price ins {
	order: 1;
	text-decoration: none !important;
	color: var(--ph-ink);
	font-weight: 700;
}
.woocommerce ul.products li.product .price del {
	order: 2;
	color: #a8a29a !important;
	font-weight: 400;
	font-size: 0.8rem;
}
.woocommerce ul.products li.product .price del span {
	text-decoration: line-through;
}
