/* ==========================================================================
   pretty.ge — hair care & tools
   One bold move: classic Georgian Mtavruli headlines (BPG Nino Mtavruli).
   Everything else stays quiet: white paper, ink, chestnut for prices & links.
   ========================================================================== */

/* Fonts (self-hosted) -------------------------------------------------- */
@font-face {
	font-family: "BPG Nino Mtavruli";
	src: url("../fonts/bpg-nino-mtavruli.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "BPG Nino Mtavruli";
	src: url("../fonts/bpg-nino-mtavruli-bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "FiraGO";
	src: url("../fonts/firago-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "FiraGO";
	src: url("../fonts/firago-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "FiraGO";
	src: url("../fonts/firago-600.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}

/* Tokens --------------------------------------------------------------- */
html:root {
	--pg-paper: #ffffff;
	--pg-stone: #f3f1ee;
	--pg-ink: #17181b;
	--pg-graphite: #5d5b58;
	--pg-chestnut: #7a3e2b;
	--pg-blush: #eadbd3;
	--pg-line: #e4e0db;

	--pg-display: "BPG Nino Mtavruli", "FiraGO", sans-serif;
	--pg-text: "FiraGO", "Noto Sans Georgian", system-ui, sans-serif;

	/* radius hierarchy: big media > product cards > fields; buttons are pills */
	--pg-r-media: 28px;
	--pg-r-card: 16px;
	--pg-r-field: 10px;

	--pg-wrap: min(1320px, 100% - 32px);
	--pg-space: clamp(64px, 9vw, 120px);

	/* Blocksy palette → header, footer, shop and forms follow automatically */
	--theme-palette-color-1: var(--pg-ink);
	--theme-palette-color-2: var(--pg-chestnut);
	--theme-palette-color-3: #3a3937;
	--theme-palette-color-4: var(--pg-ink);
	--theme-palette-color-5: var(--pg-line);
	--theme-palette-color-6: var(--pg-stone);
	--theme-palette-color-7: var(--pg-paper);
	--theme-palette-color-8: var(--pg-paper);

	--theme-font-family: var(--pg-text);
	--theme-headings-font-family: var(--pg-display);
	--theme-button-border-radius: 999px;
	--theme-form-field-border-radius: var(--pg-r-field);
}

/* Base ----------------------------------------------------------------- */
body {
	font-family: var(--pg-text);
	font-size: 16px;
	line-height: 1.6;
	color: #3a3937;
	background: var(--pg-paper);
	-webkit-font-smoothing: antialiased;
}

html:root body,
.ct-container-full,
#main-container {
	background-color: var(--pg-paper);
}

h1, h2, h3, h4, h5, h6,
.product_title,
.woocommerce-loop-product__title,
.page-title,
.entry-title {
	font-family: var(--pg-display);
	font-weight: 700;
	color: var(--pg-ink);
	letter-spacing: 0.02em;
	line-height: 1.2;
	overflow-wrap: break-word; /* last resort only: a single word wider than its box */
	hyphens: none;
}

a {
	color: var(--pg-ink);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--pg-chestnut);
}

:focus-visible {
	outline: 2px solid var(--pg-chestnut);
	outline-offset: 3px;
}

/* Buttons -------------------------------------------------------------- */
.pg-btn,
.button,
button[type="submit"],
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .single_add_to_cart_button,
.checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 30px;
	border: 1.5px solid var(--pg-ink);
	border-radius: 999px;
	background: var(--pg-ink);
	color: var(--pg-paper);
	font-family: var(--pg-text);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.pg-btn:hover,
.button:hover,
button[type="submit"]:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.checkout-button:hover {
	background: var(--pg-paper);
	color: var(--pg-ink);
}

.pg-link {
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--pg-chestnut);
	text-decoration-thickness: 1.5px;
}

/* Announcement bar ----------------------------------------------------- */
.pg-announce {
	padding: 9px 16px;
	background: var(--pg-stone);
	color: var(--pg-ink);
	font-size: 14px;
	text-align: center;
}

/* Homepage ------------------------------------------------------------- */
.pg-home > *,
.pg-foot {
	box-sizing: border-box;
}

.pg-home > * {
	width: var(--pg-wrap);
	margin-inline: auto;
}

/* Hero: the type is the visual */
.pg-hero {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: center;
	padding-block: clamp(32px, 5vw, 72px) clamp(40px, 6vw, 88px);
}

.pg-hero__title {
	margin: 0 0 24px;
	font-size: clamp(30px, 3.4vw, 54px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: 0.02em;
	text-wrap: balance;
}

.pg-hero__lead {
	max-width: 42ch;
	margin: 0 0 32px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--pg-graphite);
}

.pg-hero__media,
.pg-story__media {
	overflow: hidden;
	border-radius: var(--pg-r-media);
	background: var(--pg-blush);
}

.pg-hero__media {
	aspect-ratio: 1 / 1;
}

.pg-hero__media img,
.pg-story__media img,
.pg-cat__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hair-type links */
.pg-concerns {
	margin-top: 40px;
}

.pg-concerns__label {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--pg-graphite);
}

.pg-concerns ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pg-concerns a {
	display: inline-block;
	padding: 8px 16px;
	border: 1.5px solid var(--pg-line);
	border-radius: 999px;
	font-size: 15px;
	text-decoration: none;
	transition: border-color .2s ease;
}

.pg-concerns a:hover {
	border-color: var(--pg-ink);
	color: var(--pg-ink);
}

/* Promise row */
.pg-perks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding: 28px clamp(20px, 3vw, 40px);
	border-radius: var(--pg-r-card);
	background: var(--pg-stone);
}

.pg-perks p {
	margin: 0;
	font-size: 15px;
	color: var(--pg-graphite);
}

.pg-perks strong {
	display: block;
	font-weight: 600;
	color: var(--pg-ink);
}

/* Sections */
.pg-section {
	padding-top: var(--pg-space);
}

.pg-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 32px;
}

.pg-section__title {
	margin: 0 0 32px;
	font-size: clamp(24px, 2.4vw, 36px);
}

.pg-section__head .pg-section__title {
	margin: 0;
}

/* Categories */
.pg-cats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 24px);
}

.pg-cat {
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-decoration: none;
}

.pg-cat__img {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--pg-r-card);
	background: var(--pg-blush);
}

.pg-cat__name {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--pg-ink);
}

.pg-cat:hover .pg-cat__name {
	color: var(--pg-chestnut);
}

/* Story */
.pg-story {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(28px, 6vw, 96px);
	align-items: center;
	padding-top: var(--pg-space);
}

.pg-story__media {
	aspect-ratio: 5 / 4;
}

.pg-story__text h2 {
	margin: 0 0 18px;
	font-size: clamp(24px, 2.6vw, 40px);
	line-height: 1.2;
}

.pg-story__text p {
	max-width: 44ch;
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--pg-graphite);
}

.pg-home > :last-child {
	padding-bottom: var(--pg-space);
}

/* Footer band ----------------------------------------------------------- */
.pg-foot {
	display: grid;
	grid-template-columns: 2fr repeat(3, 1fr);
	gap: 32px;
	width: var(--pg-wrap);
	margin: var(--pg-space) auto 0;
	padding: clamp(32px, 5vw, 56px);
	border-radius: var(--pg-r-media);
	background: var(--pg-ink);
	color: #c9c6c1;
}

.pg-foot a {
	color: var(--pg-paper);
	text-decoration: none;
}

.pg-foot a:hover {
	color: var(--pg-blush);
	text-decoration: underline;
}

.pg-foot__logo {
	margin: 0 0 12px;
	font-family: var(--pg-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--pg-paper);
}

.pg-foot__brand p:last-child {
	max-width: 32ch;
	margin: 0;
	font-size: 15px;
}

.pg-foot h2 {
	margin: 0 0 14px;
	font-family: var(--pg-text);
	font-size: 15px;
	font-weight: 600;
	color: var(--pg-paper);
}

.pg-foot ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pg-foot li {
	margin: 0 0 8px;
	font-size: 15px;
}

/* WooCommerce: product cards ------------------------------------------- */
.products .product {
	text-align: left;
}

.products .product .ct-media-container,
.products .product figure,
.products .product img {
	border-radius: var(--pg-r-card);
}

.products .product .ct-media-container,
.products .product figure {
	overflow: hidden;
	background: var(--pg-stone);
}

.woocommerce-loop-product__title {
	font-family: var(--pg-text) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
}

.price,
.products .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-family: var(--pg-text);
	font-weight: 600;
	color: var(--pg-chestnut);
}

.price del {
	font-weight: 400;
	color: var(--pg-graphite);
	opacity: .75;
}

.price ins {
	text-decoration: none;
}

.onsale,
.woocommerce span.onsale {
	min-height: auto;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--pg-chestnut);
	color: var(--pg-paper);
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
}

.products .product .button {
	min-height: 42px;
	padding: 0 20px;
	font-size: 14px;
}

/* WooCommerce: shop archive -------------------------------------------- */
.woocommerce-products-header .page-title,
.hero-section .page-title {
	font-size: clamp(26px, 3vw, 42px);
}

.woocommerce-result-count {
	color: var(--pg-graphite);
	font-size: 14px;
}

.woocommerce-ordering select,
select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea {
	border-radius: var(--pg-r-field);
}

/* WooCommerce: single product ------------------------------------------ */
.single-product .product_title {
	font-size: clamp(22px, 2.2vw, 32px);
	margin-bottom: 12px;
}

.single-product div.product p.price {
	font-size: 24px;
}

.single-product .woocommerce-product-gallery img {
	border-radius: var(--pg-r-media);
}

.single-product .woocommerce-product-details__short-description {
	font-size: 17px;
	color: var(--pg-graphite);
}

.single-product .quantity .qty {
	border-radius: 999px;
	min-height: 50px;
}

.pg-buy-notes {
	margin: 20px 0 0;
	padding: 18px 22px;
	border-radius: var(--pg-r-card);
	background: var(--pg-stone);
	list-style: none;
	font-size: 15px;
}

.pg-buy-notes li {
	margin: 0;
	padding: 3px 0 3px 22px;
	position: relative;
}

.pg-buy-notes li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .78em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pg-chestnut);
}

.woocommerce-tabs .tabs a {
	font-weight: 500;
}

/* WooCommerce: cart & checkout ----------------------------------------- */
.pg-ship {
	margin: 0 0 28px;
	padding: 18px 22px;
	border-radius: var(--pg-r-card);
	background: var(--pg-stone);
	font-size: 15px;
	color: var(--pg-ink);
}

.pg-ship .amount {
	font-weight: 600;
	color: var(--pg-chestnut);
}

.pg-ship__bar {
	display: block;
	height: 6px;
	margin-top: 12px;
	border-radius: 999px;
	background: var(--pg-line);
	overflow: hidden;
}

.pg-ship__bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--pg-chestnut);
}

.cart_totals,
.woocommerce-checkout-review-order,
#order_review {
	border-radius: var(--pg-r-card);
}

/* Content pages --------------------------------------------------------- */
.page:not(.woocommerce-page) .entry-content {
	max-width: 70ch;
}

.page:not(.woocommerce-page) .entry-content h2 {
	margin-top: 1.6em;
	font-size: clamp(22px, 2.4vw, 30px);
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1099px) {
	.pg-cats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pg-foot {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.pg-hero,
	.pg-story {
		grid-template-columns: 1fr;
	}

	.pg-hero {
		padding-top: 20px;
	}

	/* long Georgian words must fit a phone width without breaking */
	.pg-hero__title {
		font-size: clamp(24px, 7vw, 32px);
	}

	.pg-hero__lead,
	.pg-story__text p {
		font-size: 16px;
	}

	.pg-story__text h2,
	.pg-section__title {
		font-size: clamp(22px, 6vw, 28px);
	}

	.pg-hero__media {
		order: -1;
		aspect-ratio: 5 / 4;
		border-radius: var(--pg-r-card);
	}

	.pg-perks {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.pg-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pg-foot {
		grid-template-columns: 1fr;
		border-radius: var(--pg-r-card);
	}
}

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