/* =========================================================================
   Custom Moments theme
   ========================================================================= */

:root {
	--cm-bg: #FFF8F6;
	--cm-surface: #FFFFFF;
	--cm-ink: #2A1F24;
	--cm-ink-2: #4E4046;
	--cm-muted: #6B5A60;
	--cm-line: #EADBD8;
	--cm-field: #CDB9BE;
	--cm-accent: #A62B55;
	--cm-accent-dark: #7E1E40;
	--cm-pink: #F6DCE3;
	--cm-rose: #EBC3CE;
	--cm-sage: #DCE9E1;
	--cm-butter: #F7EBCF;
	--cm-radius: 20px;
	--cm-radius-lg: 28px;
	--cm-wrap: 1240px;
	--cm-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
	--cm-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cm-accent); }
a:hover { color: var(--cm-accent-dark); }
:focus-visible { outline: 3px solid var(--cm-accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--cm-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }

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

.cm-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--cm-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.cm-skip:focus { left: 8px; color: #fff; }

.cm-wrap { max-width: var(--cm-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons & text ---------- */
.cm-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--cm-accent);
	background: var(--cm-accent); color: #fff; font-family: var(--cm-body); font-weight: 600; font-size: 16px;
	line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.cm-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--cm-accent-dark); border-color: var(--cm-accent-dark); color: #fff;
}
.woocommerce button.button:disabled, .woocommerce button.button.disabled,
.woocommerce button.button.alt:disabled, .woocommerce button.button.alt.disabled { background: var(--cm-accent); color: #fff; opacity: .5; }
.cm-btn--ghost { background: transparent; color: var(--cm-ink); border-color: var(--cm-ink); }
.cm-btn--ghost:hover { background: var(--cm-ink); border-color: var(--cm-ink); color: #fff; }
.cm-btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.cm-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cm-accent); }
.cm-h1 { font-size: clamp(34px, 4.5vw, 52px); }
.cm-h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 0; }
.cm-textlink { font-weight: 600; font-size: 15px; }
.cm-textlink--dark { color: var(--cm-ink); display: inline-block; margin-top: 12px; }

/* ---------- Announcement & header ---------- */
.cm-announce { background: var(--cm-ink); color: var(--cm-bg); font-size: 14px; text-align: center; padding: 10px 16px; }

.cm-header { background: var(--cm-surface); border-bottom: 1px solid var(--cm-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .cm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cm-header { top: 0; } .cm-header { position: relative; } }

.cm-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
.cm-header__brand { flex: 0 0 auto; }
.cm-header__brand .custom-logo { max-height: 56px; width: auto; }

.cm-wordmark { display: inline-flex; flex-direction: column; line-height: 1; color: var(--cm-ink); text-decoration: none; }
.cm-wordmark:hover { color: var(--cm-ink); }
.cm-wordmark__name { font-family: var(--cm-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; text-transform: lowercase; }
.cm-accent { color: var(--cm-accent); }
.cm-wordmark__tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cm-muted); margin-top: 6px; }

.cm-nav { flex: 1 1 auto; }
.cm-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.cm-menu li { position: relative; display: flex; align-items: center; }
.cm-menu a { display: block; padding: 12px 0; color: var(--cm-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.cm-menu a:hover, .cm-menu .current-menu-item > a, .cm-menu .current-menu-ancestor > a { color: var(--cm-accent); }
.cm-subtoggle { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; padding: 0; color: inherit; display: inline-flex; align-items: center; justify-content: center; }
.cm-subtoggle span { width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.cm-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -12px; min-width: 220px;
	background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: 16px; box-shadow: 0 12px 32px rgba(42,31,36,.10);
	display: none; z-index: 60;
}
.cm-menu .sub-menu a { padding: 10px 12px; border-radius: 10px; }
.cm-menu .sub-menu a:hover { background: var(--cm-bg); }
.cm-menu li:hover > .sub-menu, .cm-menu li:focus-within > .sub-menu, .cm-menu li.is-open > .sub-menu { display: block; }

.cm-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cm-iconbtn { width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent; color: var(--cm-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.cm-iconbtn:hover { background: var(--cm-bg); color: var(--cm-ink); }
.cm-basket { height: 44px; padding: 0 16px; border-radius: 22px; background: var(--cm-pink); color: var(--cm-ink); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; margin-left: 4px; }
.cm-basket:hover { color: var(--cm-ink); background: var(--cm-rose); }
.cm-basket-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--cm-ink); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.cm-menu-toggle { display: none; }

.cm-search { border-top: 1px solid var(--cm-line); background: var(--cm-surface); padding: 16px 0; }
.cm-search form { display: flex; gap: 8px; max-width: 640px; }
.cm-search input[type="search"], .cm-404 input[type="search"] { flex: 1; }

@media (max-width: 960px) {
	.cm-menu-toggle { display: inline-flex; order: 3; }
	.cm-header__actions { order: 2; }
	.cm-basket__label { display: none; }
	.cm-nav { order: 4; flex-basis: 100%; display: none; }
	.cm-nav.is-open { display: block; }
	.cm-menu { flex-direction: column; padding-bottom: 8px; }
	.cm-menu li { flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--cm-line); }
	.cm-menu a { padding: 14px 0; font-size: 17px; }
	.cm-subtoggle { width: 44px; height: 44px; }
	.cm-menu .sub-menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; flex-basis: 100%; }
	.cm-menu li:hover > .sub-menu, .cm-menu li:focus-within > .sub-menu { display: none; }
	.cm-menu li.is-open > .sub-menu { display: block; }
	.cm-menu .sub-menu li { border: 0; }
}

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="password"],
input[type="number"], input[type="url"], select, textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
	font-family: var(--cm-body); font-size: 16px; color: var(--cm-ink); background: var(--cm-surface);
	border: 1px solid var(--cm-field); border-radius: 14px; padding: 12px 16px; min-height: 48px; width: 100%;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cm-accent); box-shadow: 0 0 0 3px rgba(166,43,85,.18); }
label { font-weight: 600; font-size: 15px; }

/* ---------- Media placeholders ---------- */
.cm-media { border-radius: var(--cm-radius); overflow: hidden; background: var(--cm-pink); }
.cm-media img { width: 100%; height: 100%; object-fit: cover; }
.cm-tint--pink { background: var(--cm-pink); }
.cm-tint--sage { background: var(--cm-sage); }
.cm-tint--butter { background: var(--cm-butter); }
.cm-tint--rose { background: var(--cm-rose); }

/* ---------- Homepage ---------- */
.cm-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.cm-hero__text { flex: 1 1 440px; min-width: 0; }
.cm-hero__title { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.cm-hero__lead { margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: var(--cm-ink-2); max-width: 520px; }
.cm-hero__media { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; aspect-ratio: 1 / 1; max-height: 560px; }
.cm-hero__big { grid-row: span 2; border-radius: 24px; }
.cm-hero__small { border-radius: 24px; }

.cm-trust { background: var(--cm-surface); border-top: 1px solid var(--cm-line); border-bottom: 1px solid var(--cm-line); }
.cm-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.cm-trust__item { display: flex; gap: 14px; align-items: center; }
.cm-trust__item .cm-icon { color: var(--cm-accent); flex: 0 0 auto; stroke-width: 1.6; }
.cm-trust__title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cm-trust__text { font-size: 14px; color: var(--cm-muted); line-height: 1.4; }

.cm-section { padding-top: 72px; padding-bottom: 24px; }
.cm-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.cm-section > .cm-h2 { margin-bottom: 32px; }

.cm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cm-cat { display: flex; flex-direction: column; gap: 12px; color: var(--cm-ink); text-decoration: none; }
.cm-cat:hover { color: var(--cm-accent); }
.cm-cat__img { aspect-ratio: 1 / 1; }
.cm-cat__img img { transition: transform .3s; }
.cm-cat:hover .cm-cat__img img { transform: scale(1.04); }
.cm-cat__name { font-weight: 600; font-size: 16px; }

.cm-band { background: var(--cm-surface); border-top: 1px solid var(--cm-line); border-bottom: 1px solid var(--cm-line); margin-top: 56px; }
.cm-band .cm-section { padding-top: 72px; padding-bottom: 72px; }
.cm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.cm-step { display: flex; flex-direction: column; gap: 10px; }
.cm-step__num { width: 48px; height: 48px; border-radius: 24px; background: var(--cm-pink); color: var(--cm-accent); font-family: var(--cm-display); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.cm-step__title { font-family: var(--cm-body); font-weight: 600; font-size: 19px; letter-spacing: 0; margin: 4px 0 0; }
.cm-step p { margin: 0; color: var(--cm-ink-2); }

.cm-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.cm-review { margin: 0; background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: var(--cm-radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.cm-stars { color: var(--cm-accent); font-size: 18px; letter-spacing: 3px; }
.cm-review blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.cm-review figcaption { font-size: 14px; color: var(--cm-muted); font-weight: 500; }

.cm-about { background: var(--cm-pink); border-radius: 32px; padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cm-about__img { flex: 1 1 280px; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 24px; }
.cm-about__text { flex: 1 1 380px; min-width: 0; }
.cm-about__text p { font-size: 17px; line-height: 1.65; color: #3D3035; margin: 20px 0 0; }

.cm-news { background: var(--cm-ink); color: var(--cm-bg); margin-top: 72px; }
.cm-news__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.cm-news__text { flex: 1 1 360px; }
.cm-news__text h2 { font-size: 32px; margin: 0; }
.cm-news__text p { margin: 8px 0 0; color: #E3D5D9; }
.cm-news__form { flex: 1 1 420px; }
.cm-news a { color: var(--cm-pink); }

/* ---------- Footer ---------- */
.cm-footer { background: var(--cm-surface); border-top: 1px solid var(--cm-line); margin-top: 72px; }
.cm-news + .cm-footer, .cm-home + .cm-footer { margin-top: 0; }
.cm-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.cm-footer__brand p { margin: 12px 0 0; font-size: 15px; color: var(--cm-ink-2); max-width: 300px; }
.cm-footer__brand .cm-wordmark__name { font-size: 24px; }
.cm-footer__title { font-family: var(--cm-body); font-weight: 600; font-size: 15px; letter-spacing: 0; margin: 0 0 12px; }
.cm-footer__list, .cm-footer .cm-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cm-footer .cm-menu li { border: 0; }
.cm-footer__list a, .cm-footer .cm-menu a { color: var(--cm-ink-2); text-decoration: none; font-size: 15px; padding: 0; font-weight: 400; }
.cm-footer__list a:hover, .cm-footer .cm-menu a:hover { color: var(--cm-accent); text-decoration: underline; }
.cm-footer__bottom { border-top: 1px solid var(--cm-line); padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--cm-muted); }
.cm-home { padding-bottom: 0; }

/* ---------- Generic pages ---------- */
.cm-page { padding-top: 48px; padding-bottom: 24px; }
.cm-page__head { margin-bottom: 24px; }
.cm-prose { max-width: 760px; font-size: 17px; }
.cm-page--wide .cm-prose { max-width: none; }
.cm-prose h2 { font-size: 28px; margin-top: 1.6em; }
.cm-prose h3 { font-size: 22px; margin-top: 1.4em; }
.cm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.cm-post__img img { border-radius: var(--cm-radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cm-post__title { font-size: 22px; margin-top: 16px; }
.cm-post__title a { color: var(--cm-ink); text-decoration: none; }

/* ---------- WooCommerce: general ---------- */
.cm-shop { padding-top: 24px; padding-bottom: 24px; }
.cm-breadcrumb, .woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--cm-muted); margin: 0 0 24px; }
.cm-breadcrumb a { color: var(--cm-muted); }
.cm-crumb-sep { margin: 0 8px; }
.woocommerce-products-header__title, .woocommerce .page-title { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 8px; }
.term-description { color: var(--cm-ink-2); max-width: 680px; }
.woocommerce .woocommerce-result-count { color: var(--cm-muted); font-size: 14px; margin: 8px 0 24px; }
.woocommerce .woocommerce-ordering { margin: 0 0 24px; }
.woocommerce .woocommerce-ordering select { width: auto; min-height: 44px; padding: 8px 40px 8px 16px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error,
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
	border: 1px solid var(--cm-line); border-top-width: 1px; border-radius: 16px; background: var(--cm-surface);
	color: var(--cm-ink); padding: 16px 20px 16px 52px; font-size: 15px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--cm-accent); top: 16px; }
.woocommerce-error { border-color: #E3B1BD; background: #FDF1F4; }
.woocommerce-error::before { color: var(--cm-accent); top: 16px; }

/* Product grid */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin: 0 0 32px; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .woocommerce ul.products, .woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .woocommerce ul.products, .woocommerce ul.products.columns-3, .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

.woocommerce ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important; padding: 0;
	display: flex; flex-direction: column; position: relative;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { color: var(--cm-ink); text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.woocommerce ul.products li.product a img {
	margin: 0 0 14px; border-radius: var(--cm-radius); background: var(--cm-pink); aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
	transition: transform .3s;
}
.woocommerce ul.products li.product:hover a img { transform: translateY(-3px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--cm-body); font-weight: 600; font-size: 16px; line-height: 1.35; letter-spacing: 0; padding: 0; margin: 0 0 6px; color: var(--cm-ink);
}
.woocommerce ul.products li.product .price { color: var(--cm-ink-2); font-size: 15px; font-weight: 500; margin: 0 0 14px; display: block; }
.woocommerce ul.products li.product .price del { color: var(--cm-muted); opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--cm-accent); font-weight: 600; }
.woocommerce ul.products li.product .star-rating { margin: 0 0 8px; font-size: 13px; color: var(--cm-accent); }
.woocommerce ul.products li.product .button {
	margin-top: auto; align-self: flex-start; min-height: 42px; padding: 8px 20px; font-size: 14px;
	background: transparent; color: var(--cm-ink); border-color: var(--cm-ink);
}
.woocommerce ul.products li.product .button:hover { background: var(--cm-ink); border-color: var(--cm-ink); color: #fff; }
.woocommerce ul.products li.product .added_to_cart { font-size: 14px; font-weight: 600; margin-top: 8px; }
.woocommerce ul.products li.product .button.loading::after { top: auto; right: 10px; }

.cm-badge, .woocommerce span.onsale {
	position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0;
	background: var(--cm-surface); color: var(--cm-accent); font-size: 12px; font-weight: 600; line-height: 1;
	padding: 7px 10px; border-radius: 999px; min-width: 0; min-height: 0;
}
.woocommerce span.onsale { left: auto; right: 12px; background: var(--cm-accent); color: #fff; }
.woocommerce ul.products li.product .onsale { margin: 0; top: 12px; right: 12px; left: auto; }

.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--cm-ink); background: var(--cm-surface); border: 1px solid var(--cm-line);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--cm-ink); color: #fff; border-color: var(--cm-ink); }

/* ---------- WooCommerce: single product ---------- */
.woocommerce div.product { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; position: relative; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product div.images { flex: 1 1 480px; min-width: 0; }
.woocommerce div.product div.summary { flex: 1 1 400px; min-width: 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { flex-basis: 100%; }
.woocommerce div.product span.onsale { top: 16px; left: 16px; right: auto; }

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: var(--cm-radius-lg); overflow: hidden; }
.woocommerce div.product div.images img { border-radius: var(--cm-radius-lg); background: var(--cm-pink); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 14px; opacity: .65; border: 2px solid transparent; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--cm-ink); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { background: var(--cm-surface); z-index: 5; }
.woocommerce-product-gallery__image { position: relative; }

.woocommerce div.product .product_title { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; margin: 0 0 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--cm-ink); font-size: 26px; font-weight: 600; margin: 0 0 20px; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--cm-accent); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--cm-ink-2); font-size: 17px; margin-bottom: 24px; }
.woocommerce div.product .stock { color: var(--cm-accent); font-weight: 600; font-size: 14px; }

.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 24px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty { width: 80px; min-height: 56px; border-radius: 999px; text-align: center; padding: 8px; }
.woocommerce div.product form.cart .single_add_to_cart_button { float: none; flex: 1 1 220px; min-height: 56px; font-size: 17px; }
.woocommerce div.product form.cart table.variations { margin-bottom: 16px; border: 0; }
.woocommerce div.product form.cart table.variations th, .woocommerce div.product form.cart table.variations td { display: block; padding: 0; text-align: left; border: 0; }
.woocommerce div.product form.cart table.variations td { margin-bottom: 16px; }
.woocommerce div.product form.cart .reset_variations { font-size: 14px; }

.cm-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 24px; }
.cm-note { background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: 16px; padding: 14px 16px; font-size: 14px; line-height: 1.45; }
.cm-note strong { display: block; font-weight: 600; }
.cm-note span { color: var(--cm-muted); }

.woocommerce div.product .product_meta { font-size: 14px; color: var(--cm-muted); display: flex; flex-direction: column; gap: 4px; }
.woocommerce div.product .product_meta a { color: var(--cm-muted); }
.woocommerce div.product .product_meta .tagged_as { display: none; }

.woocommerce div.product .woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--cm-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 4px; margin-right: 20px; font-weight: 600; color: var(--cm-muted); border-bottom: 2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--cm-ink); border-bottom-color: var(--cm-accent); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 760px; font-size: 16px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--cm-line); padding: 10px 12px; background: transparent; font-style: normal; text-align: left; }

.woocommerce .related > h2, .woocommerce .upsells > h2 { font-size: 32px; margin: 48px 0 24px; }

/* Personalisation */
.cm-personalise { flex-basis: 100%; display: flex; flex-direction: column; gap: 20px; margin-bottom: 8px; }
.cm-field label { display: block; margin-bottom: 8px; }
.cm-optional { font-weight: 400; color: var(--cm-muted); }
.cm-help { margin: 6px 0 0; font-size: 13px; color: var(--cm-muted); }
.cm-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.cm-choice legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.cm-pills, .cm-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-pill { position: relative; cursor: pointer; font-weight: 400; }
.cm-pill input, .cm-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cm-pill span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--cm-field); background: var(--cm-surface); font-size: 19px; color: var(--cm-ink); }
.cm-pill input:checked + span { background: var(--cm-ink); color: #fff; border-color: var(--cm-ink); }
.cm-pill input:focus-visible + span, .cm-swatch input:focus-visible + span { outline: 3px solid var(--cm-accent); outline-offset: 2px; }
.cm-swatch { cursor: pointer; }
.cm-swatch > span { display: block; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--cm-field); }
.cm-swatch input:checked + span { box-shadow: 0 0 0 3px var(--cm-surface), 0 0 0 5px var(--cm-accent); border-color: transparent; }

.cm-preview {
	position: absolute; left: 50%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none;
	width: 70%; text-align: center; line-height: 1.1; word-break: break-word; font-size: clamp(26px, 4vw, 48px);
	transition: color .15s;
}
.cm-preview.is-light { text-shadow: 0 1px 3px rgba(42,31,36,.55); }
.cm-preview-tag {
	position: absolute; top: 14px; left: 14px; z-index: 4; pointer-events: none;
	background: var(--cm-surface); color: var(--cm-accent); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
}

/* ---------- WooCommerce: basket, checkout, account ---------- */
.woocommerce table.shop_table { border: 1px solid var(--cm-line); border-radius: var(--cm-radius); background: var(--cm-surface); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-weight: 600; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 1px solid var(--cm-line); padding: 14px 16px; }
.woocommerce table.shop_table tr:first-child td, .woocommerce table.shop_table thead th { border-top: 0; }
.woocommerce table.cart img { width: 72px; border-radius: 12px; }
.woocommerce table.cart td.actions .coupon .input-text { width: 180px; min-height: 48px; padding: 8px 16px; border-radius: 999px; margin-right: 8px; }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout h3 { font-size: 26px; }
.woocommerce-checkout #payment { background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: var(--cm-radius); }
.woocommerce-checkout #payment div.payment_box { background: var(--cm-bg); color: var(--cm-ink); border-radius: 12px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--cm-bg); }
.woocommerce dl.variation, .woocommerce .wc-item-meta { font-size: 14px; color: var(--cm-muted); }
.woocommerce dl.variation dt { font-weight: 600; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--cm-ink); text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--cm-pink); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon { border: 1px solid var(--cm-line); border-radius: var(--cm-radius); background: var(--cm-surface); padding: 24px; }

/* Block-based basket & checkout */
.wc-block-cart, .wc-block-checkout { font-family: var(--cm-body); }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: 14px !important; }

/* ---------- Product search form ---------- */
.woocommerce-product-search { display: flex; gap: 8px; }
.woocommerce-product-search button { flex: 0 0 auto; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--cm-accent); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.cm-header__inner { gap: 8px; min-height: 64px; }
	.cm-header__brand { flex: 1 1 auto; min-width: 0; }
	.cm-header__actions { gap: 0; }
	.cm-header__actions .cm-account { display: none; }
	.cm-basket { padding: 0 10px; margin-left: 0; }
	.cm-header .cm-wordmark__name { font-size: 20px; }
	.cm-wrap { padding-left: 16px; padding-right: 16px; }
	.cm-hero__text, .cm-hero__media, .cm-about__text, .cm-news__text, .cm-news__form { flex-basis: 100%; }
	.cm-hero { padding-top: 40px; gap: 32px; }
	.cm-hero__lead { font-size: 17px; }
	.cm-btnrow .cm-btn { flex: 1 1 100%; }
	.cm-section { padding-top: 56px; }
	.cm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-wordmark__name { font-size: 24px; }
	.cm-wordmark__tag { display: none; }
	.cm-about { gap: 24px; }
	.cm-about__img { max-width: none; flex-basis: 100%; aspect-ratio: 4 / 3; }
}

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