/* The Mail Touch – theme styles. Colors and fonts come from theme.json. */

:root {
	--tmt-paper: var(--wp--preset--color--paper, #F8F2EC);
	--tmt-sand: var(--wp--preset--color--sand, #F1E6DD);
	--tmt-blush: var(--wp--preset--color--blush, #EED9CF);
	--tmt-ink: var(--wp--preset--color--ink, #1C1A19);
	--tmt-muted: var(--wp--preset--color--muted, #4E4642);
	--tmt-red: var(--wp--preset--color--heart, #C81E28);
	--tmt-line: var(--wp--preset--color--line, #DCCFC5);
	--tmt-serif: var(--wp--preset--font-family--serif, "Instrument Serif", Georgia, serif);
	--tmt-sans: var(--wp--preset--font-family--sans, Jost, system-ui, sans-serif);
	--tmt-shadow: 0 18px 36px rgba(60, 35, 25, 0.14), 0 2px 5px rgba(60, 35, 25, 0.08);
	--tmt-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5C6 16 2.5 12.6 2.5 8.8 2.5 6.1 4.6 4 7.2 4c1.9 0 3.6 1 4.8 2.6C13.2 5 14.9 4 16.8 4c2.6 0 4.7 2.1 4.7 4.8 0 3.8-3.5 7.2-9.5 11.7z'/%3E%3C/svg%3E");
}

body { overflow-x: hidden; }
em { font-style: italic; }
h1 em, h2 em { color: inherit; }
.tmt-hero h1 em, .tmt-why h2 em { color: var(--tmt-red); }
img { max-width: 100%; height: auto; }

.tmt-eyebrow {
	margin: 0;
	font-size: 13px !important;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: #6B605A;
}
.tmt-lead { font-size: 19px; font-weight: 300; line-height: 1.65; color: var(--tmt-muted); max-width: 470px; }

/* Outline button */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--tmt-ink);
	border: 1px solid var(--tmt-ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--tmt-ink); color: var(--tmt-paper); }

/* Sections */
.tmt-main { margin-top: 0; }
.tmt-main > * { margin-block-start: 0 !important; }
.tmt-section { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.tmt-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 56px;
}
.tmt-section-head > * { margin: 0 !important; }
.tmt-section-head p { max-width: 360px; font-weight: 300; color: var(--tmt-muted); }
.tmt-section-head h2 { margin: 0; }
.tmt-underline-link a { font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* Header */
.tmt-header { padding-top: 22px; padding-bottom: 22px; position: relative; z-index: 20; }
.tmt-header-inner { gap: 16px; align-items: center !important; }
.tmt-header-actions { align-items: center !important; }
.tmt-header .wp-block-woocommerce-customer-account { display: none; }
.tmt-logo img { height: 64px; width: auto; display: block; }
.tmt-logo { margin: 0; }
.tmt-header-actions { gap: 22px; }
.tmt-nav { font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; gap: 30px; }
.tmt-nav a { text-decoration: none; }
.tmt-nav .wp-block-navigation__submenu-container {
	background: #fff !important;
	border: 0 !important;
	border-radius: 14px;
	padding: 10px !important;
	box-shadow: 0 20px 40px rgba(60, 35, 25, 0.14);
	min-width: 250px !important;
	text-transform: none;
	letter-spacing: 0;
}
.tmt-nav .wp-block-navigation__submenu-container a {
	font-family: var(--tmt-serif);
	font-size: 22px;
	padding: 8px 14px !important;
	border-radius: 8px;
}
.tmt-nav .wp-block-navigation__submenu-container a:hover { background: var(--tmt-paper); color: var(--tmt-ink); }
.tmt-nav .wp-block-navigation__responsive-container-open,
.tmt-nav .wp-block-navigation__responsive-container-close {
	width: 46px; height: 46px; border: 1px solid var(--tmt-ink); border-radius: 50%;
	align-items: center; justify-content: center;
}
@media (max-width: 599px) {
	.tmt-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: inline-flex; }
}
.tmt-nav .wp-block-navigation__responsive-container-close { display: inline-flex; }
.tmt-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--tmt-paper) !important;
	padding: 24px !important;
}
.tmt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch !important;
	padding-top: 72px;
}
.tmt-nav .is-menu-open .wp-block-navigation-item a {
	font-family: var(--tmt-serif);
	font-size: 32px;
	text-transform: none;
	letter-spacing: 0;
}
.tmt-nav .is-menu-open .wp-block-navigation__submenu-container a { font-size: 24px; padding: 4px 0 4px 16px !important; }
.tmt-nav .is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; background: transparent !important; padding: 0 !important; }

/* Mini cart */
.tmt-header .wc-block-mini-cart__button {
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--tmt-ink); color: var(--tmt-paper);
	display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.tmt-header .wc-block-mini-cart__amount { display: none; }
.tmt-header .wc-block-mini-cart__badge { background: var(--tmt-red); color: #fff; border: 0; }

@media (max-width: 820px) {
	.tmt-logo img { height: 46px; }
	.tmt-header-actions { gap: 10px; }
}

/* Photo "print" frames: white border, slight tilt */
.tmt-print { margin: 0; }
.tmt-print img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	background: #fff;
	padding: 12px;
	box-sizing: border-box;
	border-radius: 6px;
	box-shadow: var(--tmt-shadow);
}
.tmt-print-hero img {
	padding: clamp(10px, 1.4vw, 18px);
	border-radius: 8px;
	transform: rotate(2deg);
	box-shadow: 0 30px 60px rgba(60, 35, 25, 0.18), 0 3px 8px rgba(60, 35, 25, 0.08);
}

/* Hero */
.tmt-hero { padding-top: 56px; padding-bottom: 112px; }
.tmt-hero-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
	gap: 56px;
	align-items: center;
}
.tmt-hero-grid > * { margin: 0 !important; }
.tmt-hero-text > * + * { margin-top: 28px !important; }
.tmt-hero h1 { margin-top: 0; }

/* Ribbon */
.tmt-ribbon {
	background: var(--tmt-ink);
	color: var(--tmt-paper);
	padding: 22px 32px;
	gap: 18px 32px !important;
	margin: 0 !important;
}
.tmt-ribbon p {
	margin: 0 !important;
	font-family: var(--tmt-serif);
	font-size: 30px;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	gap: 32px;
}
.tmt-ribbon p:not(:last-child)::after {
	content: "";
	width: 14px; height: 14px;
	background: #F08A8F;
	-webkit-mask: var(--tmt-heart) center / contain no-repeat;
	mask: var(--tmt-heart) center / contain no-repeat;
}

/* A card for every chapter – scrolls sideways past four */
.tmt-chapters-wrap { position: relative; }
.tmt-chapters {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 12px 6px 28px;
	margin: -12px -6px 0 !important;
	scrollbar-width: none;
}
.tmt-chapters::-webkit-scrollbar { display: none; }
.tmt-chapter {
	flex: 0 0 calc((100% - 3 * 28px) / 4);
	min-width: 240px;
	scroll-snap-align: start;
	margin: 0 !important;
}
.tmt-chapter > * + * { margin-top: 18px !important; }
.tmt-chapter h3 { margin-bottom: 0; }
.tmt-chapter h3 a { text-decoration: none; }
.tmt-chapter p { margin-top: 6px !important; font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--tmt-muted); }
.tmt-chapter:nth-child(4n+1) .tmt-print img { transform: rotate(-1.5deg); }
.tmt-chapter:nth-child(4n+2) .tmt-print img { transform: rotate(1.2deg); }
.tmt-chapter:nth-child(4n+3) .tmt-print img { transform: rotate(-0.8deg); }
.tmt-chapter:nth-child(4n+4) .tmt-print img { transform: rotate(1.6deg); }
.tmt-scroll-btn {
	position: absolute;
	top: 34%;
	width: 48px; height: 48px;
	border-radius: 50%;
	border: 1px solid var(--tmt-ink);
	background: var(--tmt-paper);
	color: var(--tmt-ink);
	display: none;
	align-items: center; justify-content: center;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 8px 18px rgba(60, 35, 25, 0.12);
}
.tmt-chapters-wrap.is-scrollable .tmt-scroll-btn { display: inline-flex; }
.tmt-scroll-btn[disabled] { opacity: 0.3; cursor: default; }
.tmt-scroll-prev { left: -16px; }
.tmt-scroll-next { right: -16px; }
@media (max-width: 820px) { .tmt-scroll-btn { display: none !important; } .tmt-chapter { flex-basis: 78%; } }

/* Best sellers and all product grids */
.tmt-bestsellers { background: var(--tmt-sand); }
.woocommerce ul.products,
.tmt-grid ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
	gap: 32px;
	margin: 0 !important;
	padding: 0;
}
.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;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.woocommerce ul.products li.product a img {
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 18px;
	margin: 0 0 10px !important;
	background: #E3D9CE;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--tmt-serif);
	font-size: 26px !important;
	line-height: 1.15;
	padding: 0 4px !important;
	font-weight: 400;
}
.woocommerce ul.products li.product .price {
	color: var(--tmt-ink) !important;
	padding: 0 4px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 15px !important;
	margin: 0 !important;
}
.tmt-price-box { font-weight: 500; }
.tmt-price-single { font-size: 13px; font-weight: 300; color: var(--tmt-muted); }
.woocommerce ul.products li.product .button {
	align-self: flex-start;
	margin: 10px 4px 0 !important;
	min-height: 46px;
	display: inline-flex;
	align-items: center;
	padding: 0 24px !important;
	border: 1px solid var(--tmt-ink) !important;
	background: transparent !important;
	color: var(--tmt-ink) !important;
	border-radius: 999px !important;
	font-family: var(--tmt-sans);
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.woocommerce ul.products li.product .button:hover { background: var(--tmt-ink) !important; color: var(--tmt-paper) !important; }

/* Why */
.tmt-why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 72px;
	align-items: start;
}
.tmt-why-grid > * { margin: 0 !important; }
.tmt-why h2 { font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: 1.02; }
.tmt-reasons { display: flex; flex-direction: column; gap: 36px; padding-top: 10px; }
.tmt-reasons > * { margin: 0 !important; }
.tmt-reason { position: relative; padding-left: 38px; }
.tmt-reason::before {
	content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px;
	background: var(--tmt-red);
	-webkit-mask: var(--tmt-heart) center / contain no-repeat;
	mask: var(--tmt-heart) center / contain no-repeat;
}
.tmt-reason h3 { margin: 0 0 8px; }
.tmt-reason p { margin: 0; font-weight: 300; line-height: 1.65; color: var(--tmt-muted); }

/* Reviews */
.tmt-reviews { background: var(--tmt-ink); color: var(--tmt-paper); text-align: center; }
.tmt-reviews .tmt-eyebrow { color: #CFC3BA; }
.tmt-reviews h2 { margin: 12px 0 56px; }
.tmt-review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 28px;
	align-items: start;
	text-align: left;
}
.tmt-review-grid > * { margin: 0 !important; }
.tmt-review {
	background: var(--tmt-paper);
	color: var(--tmt-ink);
	border: 0 !important;
	border-radius: 18px;
	padding: clamp(26px, 2.5vw, 36px) !important;
	margin: 0 !important;
}
.tmt-review::before { content: "★★★★★"; display: block; color: var(--tmt-red); letter-spacing: 4px; margin-bottom: 18px; }
.tmt-review p { font-family: var(--tmt-serif); font-size: 26px; line-height: 1.25; margin: 0; }
.tmt-review cite { display: block; margin-top: 20px; font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #6B605A; }
.tmt-review-grid > :nth-child(1) { transform: rotate(-1.5deg); }
.tmt-review-grid > :nth-child(2) { transform: rotate(1deg); margin-top: 48px !important; }
.tmt-review-grid > :nth-child(3) { transform: rotate(-0.5deg); margin-top: 12px !important; }
@media (max-width: 700px) { .tmt-review-grid > * { margin-top: 0 !important; } }

/* Bulk panel and tiers */
.tmt-bulk { padding-bottom: 96px; }
.tmt-bulk-panel {
	background: var(--tmt-blush);
	border-radius: 28px;
	padding: clamp(32px, 4.5vw, 64px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}
.tmt-bulk-panel > * { margin: 0 !important; }
.tmt-bulk-text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 16px; }
.tmt-bulk-text > * { margin: 0 !important; }
.tmt-bulk-text h2 { font-size: clamp(2.4rem, 3.8vw, 3.4rem); }
.tmt-bulk-photo { flex: 1 1 360px; margin: 0; }
.tmt-bulk-photo img { aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px; transform: rotate(-2deg); box-shadow: 0 20px 44px rgba(60, 35, 25, 0.14); }
.tmt-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 8px 0; }
.tmt-tier { background: var(--tmt-paper); border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.tmt-page .tmt-tier { background: var(--tmt-blush); }
.tmt-tier-off { font-family: var(--tmt-serif); font-size: 32px; line-height: 1; }
.tmt-tier-qty { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #5E534D; }

/* FAQ */
.tmt-faq { padding-top: 32px; }
.tmt-faq h2 { margin-bottom: 36px; }
.tmt-faq .wp-block-details { border-top: 1px solid var(--tmt-line); padding: 24px 0; margin: 0 !important; }
.tmt-faq .wp-block-details:last-child { border-bottom: 1px solid var(--tmt-line); }
.tmt-faq summary { font-family: var(--tmt-serif); font-size: 26px; cursor: pointer; }
.tmt-faq details p { margin: 14px 0 0; font-weight: 300; line-height: 1.65; color: var(--tmt-muted); }

/* Footer */
.tmt-footer { background: var(--tmt-sand); padding-top: 88px; padding-bottom: 40px; margin-top: 0 !important; }
.tmt-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; align-items: start; }
.tmt-footer-grid > * { margin: 0 !important; }
.tmt-footer-logo img { width: 100%; max-width: 300px; }
.tmt-footer-col p { margin: 0 0 12px; font-size: 15px; font-weight: 300; line-height: 2; }
.tmt-footer-col .tmt-eyebrow { font-size: 12px !important; color: var(--tmt-ink); letter-spacing: 0.24em; }
.tmt-footer a { text-decoration: none; }
.tmt-copyright { border-top: 1px solid var(--tmt-line); padding-top: 24px; margin-top: 56px !important; font-size: 13px; font-weight: 300; color: #5E534D; }

/* Inner pages */
.tmt-page { padding-top: 48px; padding-bottom: 96px; }
.tmt-page-intro > * + * { margin-top: 24px; }
.tmt-shop { padding-top: 24px; padding-bottom: 96px; }

/* Forms */
.tmt-form { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.tmt-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 20px; }
.tmt-form label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.tmt-form input, .tmt-form textarea {
	width: 100%; box-sizing: border-box;
	font: inherit; font-weight: 300;
	padding: 14px 16px; min-height: 50px;
	background: #fff; border: 1px solid var(--tmt-line); border-radius: 12px; color: var(--tmt-ink);
}
.tmt-form input:focus, .tmt-form textarea:focus { outline: 2px solid var(--tmt-ink); outline-offset: 1px; }
.tmt-form button { border: 0; cursor: pointer; }
.tmt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tmt-form-msg { padding: 16px 20px; border-radius: 12px; margin-top: 16px; }
.tmt-form-msg.is-success { background: #E5EEE3; }
.tmt-form-msg.is-error { background: #F6DCDC; }

/* Cart nudge and product pricing table */
.tmt-nudge {
	background: var(--tmt-blush);
	border-radius: 14px;
	padding: 14px 20px;
	margin: 0 0 24px;
	font-weight: 500;
}
.tmt-nudge::before {
	content: ""; display: inline-block; vertical-align: -2px; margin-right: 10px; width: 16px; height: 16px;
	background: var(--tmt-red);
	-webkit-mask: var(--tmt-heart) center / contain no-repeat;
	mask: var(--tmt-heart) center / contain no-repeat;
}
.tmt-tier-table { margin: 24px 0; padding: 20px; background: var(--tmt-sand); border-radius: 16px; }
.tmt-tier-title { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.tmt-tier-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tmt-tier-table th, .tmt-tier-table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--tmt-line); }
.tmt-tier-table th { font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.tmt-box-note { margin: 12px 0 0; font-size: 14px; font-weight: 300; color: var(--tmt-muted); }

/* Single product page (classic WooCommerce template) */
.woocommerce div.product div.images img { border-radius: 18px; }
.woocommerce div.product .product_title { font-family: var(--tmt-serif); font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.02; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--tmt-ink) !important; display: flex; flex-direction: column; gap: 2px; font-size: 18px; }
.woocommerce div.product form.cart .variations select {
	min-height: 48px; padding: 0 14px; border: 1px solid var(--tmt-line); border-radius: 12px; background: #fff; font: inherit;
}
.woocommerce div.product form.cart .variations th label { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.woocommerce div.product form.cart .button,
.woocommerce .button.alt, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--tmt-ink) !important; color: var(--tmt-paper) !important;
	border-radius: 999px !important; padding: 16px 32px !important;
	font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0.2em; text-transform: uppercase;
}
.woocommerce div.product form.cart .button:hover { background: var(--tmt-red) !important; }
.woocommerce div.product .quantity .qty { min-height: 50px; border-radius: 12px; border: 1px solid var(--tmt-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border-color: var(--tmt-line); }
.woocommerce .woocommerce-breadcrumb { font-size: 13px; color: var(--tmt-muted); }
.woocommerce .woocommerce-breadcrumb a { color: var(--tmt-muted); }
.woocommerce span.onsale { background: var(--tmt-red); }
.woocommerce .woocommerce-products-header__title { font-family: var(--tmt-serif); font-weight: 400; }
.woocommerce .woocommerce-ordering select { min-height: 44px; border-radius: 999px; padding: 0 16px; border: 1px solid var(--tmt-line); background: #fff; }
