/*
Theme Name: Crafted Magic
Theme URI: https://www.facebook.com/profile.php?id=61568579744196
Author: Crafted Magic
Description: Блокова тема за магазин за ръчно изработени изделия с WooCommerce. Всички страници и шаблони (начало, магазин, категории, продукт, количка, плащане, горна лента, футър) се редактират с Gutenberg от Външен вид → Редактор. Бърз преглед на продукта с галерия, персонализация, форма за поръчка по желание към WhatsApp и бутон за Facebook Messenger.
Version: 2.3.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crafted-magic
Tags: e-commerce, full-site-editing, block-patterns, block-styles, wide-blocks, custom-colors, custom-logo, editor-style
*/

/* ===================================================================== General */
html.cm-no-scroll { overflow: hidden; }
.cm-main { padding-top: 2rem; padding-bottom: 4rem; }
.cm-front { padding-top: 0; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }

.cm-gradient-text {
	background-image: linear-gradient(90deg, #E46527, #F38344, #46664E);
	-webkit-background-clip: text; background-clip: text;
	color: transparent; -webkit-text-fill-color: transparent;
}

/* ===================================================================== Header */
.cm-site-header { position: sticky; top: 0; z-index: 40; }
.admin-bar .cm-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cm-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .cm-site-header { top: 0; } }
.cm-header {
	background: rgba(250, 246, 240, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(253, 228, 206, .6); box-shadow: 0 1px 2px rgba(0,0,0,.05);
	padding-top: .55rem; padding-bottom: .55rem;
}
.cm-brand { gap: .75rem; min-width: 0; }
.cm-brand-text { gap: .25rem !important; }
.cm-header .wp-block-site-logo img { width: 68px !important; height: 68px !important; object-fit: contain; border-radius: 0; filter: drop-shadow(0 2px 4px rgba(122,54,30,.12)); }
.cm-header .wp-block-site-logo a { display: block; line-height: 0; transition: transform .25s ease; }
.cm-header .wp-block-site-logo a:hover { transform: rotate(-4deg) scale(1.06); }
.cm-footer-logo { display: block; width: max-content; line-height: 0; margin: 0 0 .25rem; }
.cm-footer-logo + .wp-block-site-title { margin-top: .5rem !important; }
.cm-footer-logo img { width: 136px; height: 136px; object-fit: contain; }
.cm-header .wp-block-site-tagline { margin: 0; }

/* Brand lockup: "Работилничка" (Caveat, green) + "Еднорог" (Pacifico, orange → rose) */
.cm-site-mark a { display: block; line-height: 0; transition: transform .25s ease; }
.cm-site-mark a:hover { transform: rotate(-6deg) scale(1.05); }
.cm-site-mark svg { display: block; }
.wp-block-site-title { overflow: visible; }
.wp-block-site-title a { overflow: visible; display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: .3em; white-space: nowrap; }
.cm-title-lead, .cm-title-accent {
	font-family: var(--wp--preset--font-family--brand); font-weight: 400; line-height: 1.2;
	-webkit-background-clip: text; background-clip: text; color: transparent !important;
	/* layer 1: a light streak that glides across now and then; layer 2: glossy top-to-bottom colour */
	--cm-shine: linear-gradient(105deg, transparent 43%, rgba(255,255,255,.75) 50%, transparent 57%);
	background-size: 250% 100%, 100% 100%; background-position: 100% 0, 0 0; background-repeat: no-repeat;
	/* room for the deep tails of д, р, у, ф – the colour is painted only inside this box */
	display: inline-block; padding: .12em .18em .32em .04em; margin: -.12em -.18em -.32em -.04em;
	-webkit-box-decoration-break: clone; box-decoration-break: clone; overflow: visible;
	filter: drop-shadow(0 1px 1px rgba(80,40,20,.18));
	animation: cm-shine 6s ease-in-out infinite;
}
.cm-title-lead { background-image: var(--cm-shine), linear-gradient(180deg, #8DBB98 0%, #5C8066 45%, #456B51 60%, #2F513B 100%); }
.cm-title-accent { background-image: var(--cm-shine), linear-gradient(180deg, #FDB585 0%, #F08249 42%, #E46527 58%, #C9481C 100%); animation-delay: .5s; }
@keyframes cm-shine { 0%, 60% { background-position: 100% 0, 0 0; } 90%, 100% { background-position: 0 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .cm-title-lead, .cm-title-accent { animation: none; } }
.cm-header .wp-block-site-title { font-size: 1.75rem; }
.cm-header .cm-brand-text { gap: 0 !important; }
.cm-header .wp-block-site-tagline { margin-top: .3rem; padding-left: .1rem; font-size: .66rem; }
.cm-footer-brand { font-size: 1.9rem !important; }
.cm-footer-brand .cm-title-lead, .cm-footer-brand .cm-title-accent { filter: drop-shadow(0 2px 5px rgba(0,0,0,.5)); }
.cm-footer-brand .cm-title-lead { background-image: var(--cm-shine), linear-gradient(180deg, #E4F4E7 0%, #B5D9BD 45%, #93C29F 60%, #6FA27D 100%); }
.cm-footer-brand .cm-title-accent { background-image: var(--cm-shine), linear-gradient(180deg, #FFD9BC 0%, #F9A774 45%, #F48A50 60%, #E46527 100%); }
/* Plain title inside the editor (the lockup is applied on the site) */
.editor-styles-wrapper .wp-block-site-title { font-family: var(--wp--preset--font-family--brand); font-weight: 400; line-height: 1.35; padding-bottom: .1em; }
@media (max-width: 1180px) and (min-width: 601px) {
	.cm-header .wp-block-site-title { font-size: 1.45rem; }
	.cm-header .wp-block-site-title a { flex-direction: column; align-items: flex-start; }
	.cm-header .cm-title-lead { margin-bottom: -.45em; }
}
@media (max-width: 600px) {
	.cm-header .wp-block-site-title { font-size: 1.3rem; }
	.cm-header .wp-block-site-title a { flex-direction: column; align-items: flex-start; }
	.cm-header .cm-title-lead { margin-bottom: -.45em; }
	.cm-header .wp-block-site-logo img { width: 52px !important; height: 52px !important; }
}
.cm-header-actions { gap: .5rem; }
.cm-header .wc-block-mini-cart__button {
	background: #F38344; color: #fff; border-radius: 12px; padding: .55rem .9rem;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}
.cm-header .wc-block-mini-cart__button:hover { background: #E46527; }
.cm-header .wc-block-mini-cart__badge { background: #fff; color: #BD4C1D; }
.cm-header .wc-block-customer-account a { background: #FEF3E7; color: #973F1F; border-radius: 12px; padding: .55rem; display: inline-flex; }
@media (max-width: 600px) { .cm-header .wp-block-site-tagline { display: none; } }

/* ===================================================================== Cards (pages, shop head, filters…) */
.is-style-cm-card {
	background: rgba(255, 255, 255, .95); border: 1px solid #FDE4CE; border-radius: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
}
.cm-page-card > .wp-block-post-title { margin-top: 0; }
.cm-shop-head { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.cm-shop-head .wp-block-query-title { margin: .25rem 0 0; font-size: var(--wp--preset--font-size--xx-large); }
.cm-shop-head .wp-block-term-description { margin: .25rem 0 0; color: #57534E; }
.cm-shop-head .woocommerce-breadcrumb, .cm-single-product .woocommerce-breadcrumb { font-size: .875rem; color: #78716C; margin: 0; }

/* ===================================================================== Shop layout with filter column */
.cm-shop-columns { gap: 2rem; align-items: flex-start !important; margin-top: 2rem; }
@media (min-width: 782px) {
	.cm-shop-sidebar { position: sticky; top: 7rem; }
}
.cm-filter-card { padding: 1.5rem; }
.cm-filter-title { font-size: 1.25rem; margin: 0 0 1rem; }
.cm-filter-card .wc-block-product-filters { font-size: .9rem; }
.cm-filter-card :where(h3, h4, .wp-block-heading) { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #78716C; }
.cm-filter-card .wc-block-product-filter-checkbox-list__input:checked { accent-color: #E46527; }
.cm-results-bar {
	background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border: 1px solid #FDE4CE; border-radius: 1rem; padding: .6rem 1.25rem; margin-bottom: 1.25rem;
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.cm-results-bar p, .cm-results-bar form { margin: 0; }
.cm-results-bar .woocommerce-result-count { font-weight: 600; color: #57534E; font-size: .9rem; }
.cm-results-bar select { border: 1px solid #FDE4CE; border-radius: .75rem; padding: .45rem .75rem; background: #FFFAF5; }
@media (max-width: 781px) {
	.cm-shop-columns { flex-direction: column; }
	.cm-shop-sidebar { flex-basis: auto !important; width: 100%; }
}

/* ===================================================================== Product cards */
.cm-product-grid.wc-block-product-template__responsive { gap: 1.5rem; }
.cm-product-grid.wc-block-product-template__responsive.columns-2 { grid-template-columns: repeat(auto-fill, minmax(max(220px, calc(50% - .75rem)), 1fr)); }
.cm-product-grid.wc-block-product-template__responsive.columns-3 { grid-template-columns: repeat(auto-fill, minmax(max(220px, calc(33.333% - 1rem)), 1fr)); }
.cm-product-grid.wc-block-product-template__responsive.columns-4 { grid-template-columns: repeat(auto-fill, minmax(max(220px, calc(25% - 1.125rem)), 1fr)); }
.cm-product-grid.wc-block-product-template__responsive.columns-5 { grid-template-columns: repeat(auto-fill, minmax(max(200px, calc(20% - 1.2rem)), 1fr)); }
.cm-product-grid .wc-block-product {
	position: relative; display: flex; flex-direction: column; background: #fff;
	border: 1px solid rgba(253,228,206,.8); border-radius: 1.5rem; overflow: hidden; cursor: pointer;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,.08); transition: box-shadow .3s, transform .3s; text-align: left;
}
.cm-product-grid .wc-block-product:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.12); transform: translateY(-2px); }
.cm-product-grid .wc-block-components-product-image { margin: 0 !important; background: #FEF3E7; overflow: hidden; }
.cm-product-grid .wc-block-components-product-image img { transition: transform .5s; width: 100%; }
.cm-product-grid .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.05); }
.cm-card-body { padding: 1.1rem 1.25rem 1.25rem; gap: .5rem !important; flex: 1; }
.cm-card-title { font-size: 1.05rem !important; line-height: 1.35; margin: 0 !important; }
.cm-card-title a { text-decoration: none; color: #1C1917; }
.cm-product-grid .wc-block-product:hover .cm-card-title a { color: #E46527; }
.cm-card-excerpt { font-size: .78rem; color: #57534E; line-height: 1.6; margin: 0; flex: 1; }
.cm-card-excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-card-excerpt .wp-block-post-excerpt__more-text { display: none; }
.cm-card-footer { width: 100%; border-top: 1px solid #F5F5F4; padding-top: .75rem; margin-top: auto; gap: .5rem; }
.cm-card-footer .wc-block-components-product-price { font-size: 1.2rem; margin: 0 !important; text-align: left !important; }
.cm-quick-view-btn {
	display: inline-flex; align-items: center; gap: .4rem; border: 0; cursor: pointer;
	background: #FEF3E7; color: #973F1F; font: 600 .78rem/1 var(--wp--preset--font-family--body);
	padding: .7rem 1rem; border-radius: .75rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: background .2s, color .2s; white-space: nowrap;
}
.cm-quick-view-btn:hover, .wc-block-product:hover .cm-quick-view-btn { background: #F38344; color: #fff; }
.cm-product-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; margin: 0 !important; }
.cm-product-badge span { display: inline-block; background: #F38344; color: #fff; font-size: .7rem; font-weight: 700; padding: .3rem .65rem; border-radius: 9999px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.cm-product-badge.is-inline { position: static; }
.cm-product-badge.is-preview { position: static; opacity: .8; }
.cm-product-grid .wc-block-components-product-sale-badge { border-radius: 9999px; background: #E46527; color: #fff; border: 0; font-size: .7rem; }

/* ===================================================================== Product page */
.cm-product-card { padding: clamp(1.25rem, 3vw, 2.5rem); }
.cm-product-columns { gap: clamp(1.5rem, 4vw, 3rem); }
.cm-product-cats { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.cm-product-cats a { text-decoration: none; }
.cm-product-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important; margin-top: .25rem; }
.cm-single-product .wp-block-woocommerce-product-gallery img { border-radius: 1rem; }
.cm-single-product form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cm-single-product form.cart .quantity input { border: 1px solid #E7E5E4; border-radius: .75rem; padding: 0 .5rem; width: 5rem; height: 3rem; font-size: 1rem; text-align: center; box-sizing: border-box; }
.cm-single-product form.cart .single_add_to_cart_button { min-height: 3rem; }
.cm-single-product form.cart .single_add_to_cart_button { flex: 1; min-width: 12rem; }
.cm-personalization { width: 100%; background: rgba(254,243,231,.6); border: 1px solid #FDE4CE; border-radius: 1rem; padding: 1rem; }
.cm-personalization label { display: block; font-weight: 700; font-size: .875rem; color: #292524; margin-bottom: .4rem; }
.cm-personalization label i { color: #E46527; }
.cm-personalization :is(input, textarea) { width: 100%; resize: vertical; border: 1px solid #E7E5E4; border-radius: .75rem; padding: .65rem .85rem; background: #fff; font: inherit; }
.cm-details-tab { color: #57534E; }

/* ===================================================================== Quick view popup */
.cm-qv { position: fixed; inset: 0; z-index: 100; background: rgba(28,25,23,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity .2s; }
.cm-qv[hidden] { display: none; }
.cm-qv.is-open { opacity: 1; }
.cm-qv__dialog { position: relative; background: #fff; border-radius: 1.5rem; width: 100%; max-width: 60rem; max-height: 92vh; overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,.35); transform: scale(.96); transition: transform .2s; }
.cm-qv.is-open .cm-qv__dialog { transform: none; }
.cm-qv__close { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: #F5F5F4; color: #57534E; cursor: pointer; font-size: 1.1rem; }
.cm-qv__close:hover { background: #E7E5E4; }
.cm-qv__body { padding: clamp(1.25rem, 3vw, 2rem); }
.cm-qv__loading, .cm-qv__error { padding: 4rem; text-align: center; font-size: 2rem; color: #F7AA73; }
.cm-qv__error { font-size: 1rem; color: #57534E; }
.cm-qv__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .cm-qv__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.cm-qv__media { position: relative; }
.cm-qv__badge { position: absolute; top: .75rem; left: .75rem; background: #F38344; color: #fff; font-size: .75rem; font-weight: 700; padding: .35rem .75rem; border-radius: 9999px; }
.cm-qv__info > * + * { margin-top: 1rem; }
.cm-qv__cats { font-size: .75rem; font-weight: 700; color: #E46527; text-transform: uppercase; letter-spacing: .06em; margin: 0; padding-right: 3rem; }
.cm-qv__title { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: .25rem 0 0 !important; padding-right: 2.5rem; }
.cm-qv__price { font-family: var(--wp--preset--font-family--heading); font-size: 1.6rem; font-weight: 700; color: #BD4C1D; }
.cm-qv__price del { color: #A8A29E; font-size: 1.1rem; margin-right: .4rem; }
.cm-qv__price ins { text-decoration: none; }
.cm-qv__desc { font-size: .9rem; color: #57534E; }
.cm-qv__desc > :first-child { margin-top: 0; }
.cm-qv__details { font-size: .8rem; color: #57534E; background: #FFFAF5; border: 1px solid #FDE4CE; padding: .75rem; border-radius: .75rem; }
.cm-qv__details i { color: #F38344; }
.cm-qv__custom { display: block; background: rgba(254,243,231,.6); border: 1px solid #FDE4CE; padding: 1rem; border-radius: 1rem; }
.cm-qv__custom span { display: block; font-size: .8rem; font-weight: 700; color: #292524; margin-bottom: .4rem; }
.cm-qv__custom span i { color: #E46527; }
.cm-qv__custom :is(input, textarea) { width: 100%; resize: vertical; border: 1px solid #E7E5E4; border-radius: .75rem; padding: .6rem .8rem; font: inherit; font-size: .9rem; }
.cm-qv__buy { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.cm-qv__add { flex: 1; min-width: 12rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer; border: 0; }
.cm-qv__add:disabled { opacity: .7; cursor: wait; }
.cm-qty { display: inline-flex; align-items: center; border: 1px solid #E7E5E4; border-radius: .75rem; background: #FAFAF9; overflow: hidden; }
.cm-qty button { border: 0; background: transparent; padding: 0 .9rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: #57534E; height: 100%; }
.cm-qty button:hover { background: #E7E5E4; }
.cm-qty input { width: 3rem; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.cm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cm-qv__added { font-size: .9rem; color: #047857; font-weight: 600; }
.cm-qv__stock { color: #B91C1C; font-weight: 600; }
.cm-qv__more { display: inline-block; font-size: .8rem; font-weight: 600; }

/* Gallery */
.cm-gallery__stage { position: relative; aspect-ratio: 1 / 1; border-radius: 1rem; overflow: hidden; background: #FEF3E7; border: 1px solid #FDE4CE; user-select: none; }
.cm-gallery__stage.is-empty { display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #FBCCA6; }
.cm-gallery__stage > img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.cm-gallery__nav, .cm-gallery__zoom {
	position: absolute; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.9); color: #44403C; border-radius: 50%; box-shadow: 0 4px 6px -1px rgba(0,0,0,.15); transition: background .2s;
}
.cm-gallery__nav { top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; }
.cm-gallery__nav.is-prev { left: .75rem; }
.cm-gallery__nav.is-next { right: .75rem; }
.cm-gallery__zoom { bottom: .75rem; left: .75rem; width: 2.25rem; height: 2.25rem; font-size: .85rem; }
.cm-gallery__nav:hover, .cm-gallery__zoom:hover { background: #fff; }
.cm-gallery__counter { position: absolute; bottom: .75rem; right: .75rem; background: rgba(28,25,23,.6); color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 9999px; }
.cm-gallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem 0 .25rem; }
.cm-gallery__thumb { flex: 0 0 4rem; height: 4rem; border-radius: .75rem; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .7; background: #FEF3E7; transition: opacity .2s, border-color .2s; }
.cm-gallery__thumb:hover { opacity: 1; }
.cm-gallery__thumb.is-active { border-color: #F38344; opacity: 1; }
.cm-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Full screen */
.cm-lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cm-lightbox[hidden] { display: none; }
.cm-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: .75rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); user-select: none; }
.cm-lightbox__close, .cm-lightbox__nav { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cm-lightbox__close:hover, .cm-lightbox__nav:hover { background: rgba(255,255,255,.28); }
.cm-lightbox__close { top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; font-size: 1.25rem; }
.cm-lightbox__nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 1.1rem; }
.cm-lightbox__nav[hidden] { display: none; }
.cm-lightbox__nav.is-prev { left: 1rem; }
.cm-lightbox__nav.is-next { right: 1rem; }
.cm-lightbox__counter { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 600; }

/* Toast */
.cm-toast { position: fixed; right: 1.5rem; bottom: 6.5rem; z-index: 120; background: #1C1917; color: #fff; padding: .85rem 1.25rem; border-radius: 1rem;
	font-size: .875rem; font-weight: 500; box-shadow: 0 20px 25px -5px rgba(0,0,0,.3); transform: translateY(1rem); opacity: 0; pointer-events: none; transition: all .3s; }
.cm-toast.is-visible { transform: none; opacity: 1; }
@media (max-width: 640px) { .cm-toast { left: 1rem; right: 1rem; bottom: 5.5rem; } }

/* ===================================================================== Footer */
.cm-footer { padding-top: 4rem; padding-bottom: 3rem; margin-top: 0; }
.cm-footer a { color: #D6D3D1; text-decoration: none; }
.cm-footer a:hover { color: #F7AA73; }
.cm-footer .wp-block-heading { font-size: 1.1rem; margin-bottom: 1rem; }
.cm-footer-brand a { color: #fff !important; }
.cm-footer-text, .cm-contact-line { color: #A8A29E; font-size: .875rem; }
.cm-contact-line { margin: .5rem 0 !important; }
.cm-contact-line::before { font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands'; font-weight: 900; color: #F38344; display: inline-block; width: 1.4rem; }
.cm-contact-address::before { content: '\f3c5'; }
.cm-contact-email::before { content: '\f0e0'; }
.cm-contact-phone::before { content: '\f095'; }
.cm-footer-cats ul { list-style: none; padding: 0; margin: 0; }
.cm-footer-cats li { margin: .5rem 0; font-size: .875rem; }
.cm-footer-bottom { border-top: 1px solid #292524; margin-top: 2.5rem !important; padding-top: 1.5rem; font-size: .75rem; color: #78716C; }
.cm-footer-bottom p { margin: 0; }

/* Messenger button */
.cm-messenger { margin: 0 !important; }
.cm-messenger-fab {
	position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
	display: flex; align-items: center; gap: .6rem; height: 3.75rem; padding: 0 1.15rem 0 1.05rem;
	border-radius: 9999px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: .95rem;
	background: linear-gradient(135deg, #0099ff 0%, #a033ff 60%, #ff5280 100%);
	box-shadow: 0 10px 25px -6px rgba(160, 51, 255, .45), 0 4px 10px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s;
}
.cm-messenger-fab:hover { transform: translateY(-3px) scale(1.03); }
.cm-messenger-fab i { font-size: 1.7rem; line-height: 1; }
.cm-messenger-fab::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: inherit; animation: cm-pulse 2.6s ease-out infinite; }
@keyframes cm-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 640px) {
	.cm-messenger-fab { right: 1rem; bottom: 1rem; width: 3.6rem; height: 3.6rem; padding: 0; justify-content: center; }
	.cm-messenger-fab span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cm-messenger-fab::before { animation: none; } }
.cm-messenger.is-preview .cm-messenger-fab { position: static; display: inline-flex; }
.cm-editor-hint { font-size: .8rem; color: #78716C; font-style: italic; }

/* ===================================================================== Custom request form */
.cm-order-form { margin-top: 2.5rem !important; }
.cm-order-form__form { background: #fff; border: 1px solid #FDE4CE; border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
	text-align: left; display: grid; gap: 1.25rem; max-width: 56rem; margin: 0 auto; }
.cm-order-form__row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cm-order-form__row { grid-template-columns: 1fr 1fr; } }
.cm-order-form label { display: grid; gap: .45rem; font-size: .875rem; font-weight: 600; color: #44403C; }
.cm-order-form :is(input, select, textarea) { width: 100%; border: 1px solid #E7E5E4; border-radius: .75rem; padding: .75rem 1rem; font: inherit; font-weight: 400; color: #292524; background: #fff; box-sizing: border-box; }
.cm-order-form :is(input, select, textarea):focus { outline: 2px solid #F7AA73; outline-offset: 0; border-color: transparent; }
.cm-order-form__footer { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cm-order-form__footer p { margin: 0; font-size: .75rem; color: #78716C; }
.cm-order-form__footer button { display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; border: 0; }
.cm-order-form__footer button i { font-size: 1.2rem; }
.cm-order-form__warning { margin: 0; font-size: .8rem; color: #B91C1C; }
.cm-order-form__buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.cm-order-form__fb.wp-element-button { background: #fff !important; color: #1877F2 !important; border: 1.5px solid #1877F2 !important; }
.cm-order-form__fb.wp-element-button:hover { background: #EEF4FF !important; }
.cm-order-form__footer button[disabled] { opacity: .6; cursor: wait; }
.cm-order-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cm-order-form__form { position: relative; }
.cm-order-form__status { margin: 0; padding: .75rem 1rem; border-radius: .75rem; font-size: .9rem; }
.cm-order-form__status.is-ok { background: #E3EBE4; color: #2F513B; }
.cm-order-form__status.is-err { background: #FDECEA; color: #B91C1C; }
@media (max-width: 600px) { .cm-order-form__buttons, .cm-order-form__buttons button { width: 100%; justify-content: center; } }

/* ===================================================================== Home page sections (block styles) */
.is-style-cm-hero { text-align: center; padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 2rem; }
.is-style-cm-hero > * { margin-left: auto !important; margin-right: auto !important; }
.is-style-cm-hero h1 { max-width: 60rem; }
.is-style-cm-hero p { max-width: 42rem; }
.cm-hero-search { max-width: 48rem !important; margin-top: 2rem !important; }
.cm-hero-search .wp-block-search__inside-wrapper { background: #fff; border: 1px solid #FDE4CE !important; border-radius: 1rem; padding: .5rem !important; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); }
.cm-hero-search .wp-block-search__input { border: 0 !important; padding: .75rem 1rem !important; font-size: 1rem; background: transparent; }
.cm-hero-search .wp-block-search__button { border-radius: .75rem !important; margin-left: .5rem; }

/* Home: "Избрани продукти" (products marked with the star) */
.cm-featured {
	position: relative; margin-top: 1.5rem; margin-bottom: 1rem; padding: 2rem 2rem 2.25rem;
	background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(254,243,231,.85));
	border: 1px solid rgba(253,228,206,.9); border-radius: 2rem;
	box-shadow: 0 10px 30px -12px rgba(122,54,30,.18);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cm-featured__head { gap: .35rem !important; margin-bottom: 1.5rem; text-align: center; }
.cm-featured__head .is-style-cm-pill { margin: 0 auto !important; }
.cm-featured__head h2 { margin: 0; }
.cm-featured .wc-block-product { position: relative; }
.cm-featured .wc-block-product::after {
	content: "★"; position: absolute; top: .6rem; right: .6rem; z-index: 3; width: 2rem; height: 2rem;
	display: grid; place-items: center; border-radius: 999px; background: #fff; color: #E9A23B;
	font-size: 1.05rem; box-shadow: 0 2px 6px rgba(0,0,0,.12); pointer-events: none;
}
/* fewer than 4 picks → centred instead of leaving empty columns */
.cm-featured .cm-product-grid.wc-block-product-template__responsive.columns-4 { grid-template-columns: repeat(auto-fit, minmax(220px, calc(25% - 1.125rem))); justify-content: center; }
@media (max-width: 600px) { .cm-featured .cm-product-grid.wc-block-product-template__responsive.columns-4 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cm-featured { padding: 1.25rem 1rem 1.5rem; border-radius: 1.5rem; } }
.cm-home-products { padding-top: 1rem; padding-bottom: 2rem; }
.cm-home-products > * + * { margin-top: 2rem; }

.is-style-cm-lead { font-size: 1.125rem; line-height: 1.7; color: #57534E; }
.is-style-cm-badge {
	width: fit-content; padding: .5rem 1rem; border-radius: 9999px; background: rgba(253,228,206,.7);
	border: 1px solid #FBCCA6; color: #973F1F; font-weight: 500; font-size: .875rem; line-height: 1.4;
	box-shadow: 0 1px 2px rgba(0,0,0,.05); animation: cm-soft-pulse 2.4s ease-in-out infinite;
}
@keyframes cm-soft-pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .is-style-cm-badge { animation: none; } }
.is-style-cm-pill, .is-style-cm-pill-sage {
	width: fit-content; padding: .375rem 1rem; border-radius: 9999px; background: rgba(251,204,166,.6); color: #7A361E;
	font-weight: 600; font-size: .75rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .05em;
}
.is-style-cm-pill-sage { background: #E3EBE4; color: #46664E; }
:is(.is-style-cm-hero, .is-style-cm-band) :is(.is-style-cm-pill, .is-style-cm-pill-sage) { margin-left: auto !important; margin-right: auto !important; }

.is-style-cm-band {
	background: rgba(255,255,255,.4); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
	border-top: 1px solid #FDE4CE; border-bottom: 1px solid #FDE4CE;
	padding-top: 4rem; padding-bottom: 4rem; text-align: center; scroll-margin-top: 6rem; margin-top: 3rem !important; margin-bottom: 3rem !important;
}
.is-style-cm-band > p:not([class*="is-style"]) { max-width: 40rem; margin-left: auto !important; margin-right: auto !important; color: #57534E; }

.is-style-cm-about { gap: 3rem; align-items: center !important; padding-top: 4rem; padding-bottom: 4rem; scroll-margin-top: 6rem; }
.is-style-cm-about > .wp-block-column:first-child { position: relative; }
.is-style-cm-about > .wp-block-column:last-child > p:not([class*="is-style"]) { color: #57534E; }
.is-style-cm-photo { margin: 0; }
.is-style-cm-photo img { width: 100%; height: 400px; object-fit: cover; border-radius: 1.5rem; border: 4px solid #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

.is-style-cm-badge-box, .is-style-cm-badge-box p { color: #fff; }
.is-style-cm-badge-box { background: #5C8066; padding: 1.5rem; border-radius: 1rem; max-width: 20rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,.15); }
.is-style-cm-badge-box > p:first-child { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0; }
.is-style-cm-badge-box > p + p { font-size: .75rem; color: #E3EBE4; margin-top: .25rem; line-height: 1.5; }
@media (min-width: 640px) {
	.is-style-cm-about > .wp-block-column:first-child > .is-style-cm-badge-box { position: absolute; right: -1.5rem; bottom: -1.5rem; z-index: 2; margin: 0; }
}

[class*="is-style-cm-feature-"] { position: relative; padding-left: 3.5rem; min-height: 2.5rem; }
[class*="is-style-cm-feature-"]::before {
	position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center;
	font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 1rem; background: #FEF3E7; color: #BD4C1D;
}
.is-style-cm-feature-heart::before { content: '\f004'; }
.is-style-cm-feature-gift::before { content: '\f06b'; background: #E3EBE4; color: #46664E; }
.is-style-cm-feature-star::before { content: '\f005'; }
[class*="is-style-cm-feature-"] > h4 { font-size: 1rem; margin: 0; color: #292524; }
[class*="is-style-cm-feature-"] > p { font-size: .875rem; color: #57534E; margin-top: .25rem; line-height: 1.6; }

/* Product categories as pills */
.is-style-cm-pills .wc-block-product-categories-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.is-style-cm-pills .wc-block-product-categories-list-item { margin: 0; }
.is-style-cm-pills .wc-block-product-categories-list-item > a {
	display: inline-block; padding: .65rem 1.25rem; border-radius: 9999px; background: #fff; border: 1px solid #FDE4CE;
	color: #44403C; font-weight: 600; font-size: .875rem; text-decoration: none; transition: background .2s;
}
.is-style-cm-pills .wc-block-product-categories-list-item > a:hover { background: #FEF3E7; color: #973F1F; }
.is-style-cm-pills .wc-block-product-categories-list--depth-1 { display: none; }

/* WooCommerce buttons & notices in the theme colours */
.wc-block-components-button:not(.is-link), .wp-block-button__link { border-radius: 12px; }
.is-style-outline > .wp-block-button__link { background: rgba(255,255,255,.9); color: #973F1F; border: 1px solid #FDE4CE; box-shadow: 0 4px 6px -1px rgba(0,0,0,.08); }
.is-style-outline > .wp-block-button__link:hover { background: #F38344; color: #fff; }

/* ===================================================================== Basket, checkout, order confirmation, account – on white cards */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .woocommerce-order-received main > .wp-block-group, .woocommerce-account .woocommerce {
	background: rgba(255,255,255,.96); border: 1px solid #FDE4CE; border-radius: 1.5rem;
	padding: clamp(1.25rem, 3vw, 2.5rem) !important; box-shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
}
.woocommerce-checkout main, .woocommerce-cart main { padding-top: 2rem; padding-bottom: 4rem; }
.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button { border-radius: 12px !important; }
.cm-filter-card > .cm-filter-title { font-size: 1.25rem; text-transform: none; letter-spacing: normal; color: #1C1917; }

/* ===================================================================== Home page category buttons (filter on the page) */
.cm-cat-filter__buttons { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .5rem; justify-content: flex-start; scrollbar-width: none; }
.cm-cat-filter__buttons::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cm-cat-filter__buttons { justify-content: center; flex-wrap: wrap; } }
.cm-cat-btn {
	display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; cursor: pointer;
	padding: .65rem 1.25rem; border-radius: 9999px; border: 1px solid #FDE4CE; background: #fff; color: #44403C;
	font: 600 .875rem/1.2 var(--wp--preset--font-family--body); transition: background .2s, color .2s, box-shadow .2s;
}
.cm-cat-btn:hover { background: #FEF3E7; }
.cm-cat-btn.is-active { background: #E46527; color: #fff; border-color: #E46527; box-shadow: 0 4px 6px -1px rgba(0,0,0,.12); }
.cm-cat-btn.is-active i { color: #fff !important; }
.cm-cat-btn .is-orange { color: #F38344; }
.cm-cat-btn .is-green { color: #5C8066; }
.cm-cat-btn .is-pink { color: #EC4899; }
.cm-cat-btn .is-amber { color: #F59E0B; }
.cm-cat-btn .is-rose { color: #F43F5E; }
.cm-cat-btn .is-emerald { color: #10B981; }
.cm-cat-filter__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.cm-cat-filter__meta p { margin: 0; color: #57534E; font-weight: 500; }
.cm-cat-filter__meta strong { color: #BD4C1D; }
.cm-cat-filter__note { font-size: .75rem !important; color: #78716C !important; }
.cm-cat-filter__note i { color: #10B981; }
.cm-cat-filter__empty { text-align: center; background: #fff; border: 1px dashed #FBCCA6; border-radius: 1.5rem; padding: 2.5rem 1rem; color: #57534E; margin-top: 1.5rem; }
.cm-cat-filter__empty[hidden] { display: none; }
.cm-home-products .cm-cat-filter + * { margin-top: 1.5rem; }

/* ===================================================================== Background photo starts below the menu
   The photo (Appearance → Editor → Styles → Background) is drawn again on a fixed layer that begins under
   the sticky menu, anchored to its top edge, so the handwritten text at the top of the photo is never
   hidden behind the menu or the admin bar. */
body:not(.editor-styles-wrapper)::before {
	content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
	top: var(--cm-header-bottom, 82px);
	background-image: inherit; background-color: inherit;
	background-size: cover; background-position: 50% 0; background-repeat: no-repeat;
}

/* Contact band: the unicorn reading the messages */
.cm-reading-unicorn { margin: 0 auto .5rem !important; }
.cm-reading-unicorn img { width: min(260px, 70vw) !important; height: auto; filter: drop-shadow(0 10px 18px rgba(122,54,30,.12)); animation: cm-unicorn-bob 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes cm-unicorn-bob { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cm-reading-unicorn img { animation: none; } }
@media (max-width: 600px) { .is-style-cm-band > p:not([class*="is-style"]) { padding-left: 1rem; padding-right: 1rem; } }

/* Order comment (every product) */
.cm-order-comment { margin-top: .75rem; background: #fff; }
.cm-order-comment label i, .cm-qv__comment span i { color: #5C8066 !important; }
.cm-optional, .cm-qv__comment em { font-weight: 400; color: #78716C; font-style: normal; }
.cm-qv__comment { background: #fff; margin-top: .75rem; }
.cm-personalization :is(input, textarea), .cm-qv__custom :is(input, textarea) { box-sizing: border-box; max-width: 100%; display: block; }
.cm-wc-wrap > .cm-wc-title { margin: 0 0 1rem; text-shadow: 0 1px 12px rgba(250,246,240,.9); }
.cm-wc-wrap > .wp-block-post-content > .wp-block-woocommerce-cart, .cm-wc-wrap > .wp-block-post-content > .wp-block-woocommerce-checkout { box-sizing: border-box; max-width: 100%; margin-left: 0; margin-right: 0; }
