/*
Theme Name: Shine M
Theme URI: https://e-shinem.com
Author: Elian & Claude
Description: Собствена блокова тема за Shine M — кремаво/злато, луксозно. Прототип на началната страница, 28.10.2026. Пише се като файлове в files/wp-content/themes/shine-m (изходникът: /home/elian/wpsite/theme-src/shine-m).
Version: 0.5.8
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: shine-m
*/

body { -webkit-font-smoothing: antialiased; }

/* ——— ОТРЯЗВАНЕ НА ВОДНИЯ ЗНАК „AI" (долу вляво) ———
   Всяка продуктова/категорийна/съдържателна снимка се увеличава леко с опорна точка горе вдясно,
   контейнерът крие преливащото → долният и левият ръб не се виждат. Файловете не се пипат. */
:root { --sm-crop: 1.053; --sm-crop-hover: 1.10; }
.sm-hero-img, .sm-tile-img, .sm-band-img, .sm-gallery .wp-block-image,
.sm-products .wc-block-grid__product-image, .sm-blog .wp-block-post-featured-image, .wp-block-post-featured-image,
.wc-block-components-product-image, .wc-block-grid__product-image, .woocommerce-product-gallery__image,
.wc-block-product-gallery-large-image__image-element, .wc-block-product-gallery-thumbnails__thumbnail,
.wc-block-cart-item__image, .wc-block-components-order-summary-item__image, .wc-block-mini-cart-item__image,
.products .product img:not(.sm-nocrop), .wc-block-grid__product-link img { overflow: hidden; }
.sm-hero-img img, .sm-tile-img img, .sm-band-img img, .sm-gallery .wp-block-image img,
.sm-products .wc-block-grid__product-image img, .wp-block-post-featured-image img,
.wc-block-components-product-image img, .wc-block-grid__product-image img, .woocommerce-product-gallery__image img,
.wc-block-product-gallery-large-image__image-element img, .wc-block-product-gallery-thumbnails__thumbnail img,
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img, .wc-block-mini-cart-item__image img {
  transform: scale(var(--sm-crop)); transform-origin: top right;
}
.wc-block-components-product-image, .wc-block-components-product-image a, .woocommerce-product-gallery__image a,
.wc-block-cart-item__image a, .wc-block-mini-cart-item__image a { display: block; overflow: hidden; }
.sm-logo img, .sm-icons img, .wc-block-components-payment-method-icons img { transform: none !important; }

/* ——— дребни типографски елементи ——— */
.sm-eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  color: var(--sm-gold-text); margin-bottom: 1rem;
}
.sm-eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--wp--preset--color--gold); flex: 0 0 auto; }
.sm-eyebrow.has-text-align-center { justify-content: center; }
.sm-eyebrow.has-text-align-center::after { content: ""; width: 2.5rem; height: 1px; background: var(--wp--preset--color--gold); }
h1 em, h2 em { font-style: italic; color: var(--sm-gold-text); font-weight: 400; }
.sm-section { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }

/* ——— хедър ——— */
.sm-header .sm-tagline { letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); margin: 0; }
.sm-header .sm-tagline a { color: inherit; }
.sm-header .sm-logo { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin: 0; text-decoration: none; }
.sm-header .sm-logo-img { display: block; width: 300px; height: auto; aspect-ratio: 600 / 182; transform: none !important; filter: drop-shadow(0 1px 1px rgba(58, 46, 38, .12)); }
.sm-header .sm-logo-caption { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); font-weight: 500; }
@media (max-width: 781px) { .sm-header .sm-logo-img { width: 220px; } .sm-header .sm-logo-caption { font-size: .56rem; letter-spacing: .22em; } }
.sm-footer .sm-footer-logo { display: block; margin: 0 0 1rem; }
.sm-footer .sm-footer-logo img { display: block; width: 240px; height: auto; aspect-ratio: 600 / 182; transform: none !important; }
.sm-icons { gap: 1.1rem; align-items: center; }
.sm-icons .wp-block-search__button { background: transparent; border: 0; color: var(--wp--preset--color--contrast); padding: 0; margin: 0; cursor: pointer; }
.sm-icons .wp-block-search__button svg { width: 24px; height: 24px; }
.sm-icons .wc-block-customer-account__account-icon svg,
.sm-icons .wc-block-mini-cart__icon { width: 24px; height: 24px; }
.sm-header .wp-block-navigation { padding: .9rem 0 .2rem; }
.sm-header .wp-block-navigation a:hover { color: var(--sm-gold-text); }
.sm-header .wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--gold-light); padding: .5rem 0; min-width: 220px; }
.sm-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: .5rem 1.25rem; }
/* 0.5.6 (негово): в мобилното меню „Бижута" не се показва — категориите стоят като обикновени пунктове.
   0.5.7: само ГОРНОТО ниво („Бижута") — категориите (.sm-cat) вече са подменюта с подкатегории и трябва да се виждат */
.sm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-submenu > .wp-block-navigation-item__content,
.sm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon { display: none !important; }
.sm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-submenu > .wp-block-navigation__submenu-container { border: 0 !important; padding: 0 !important; min-width: 0 !important; }
/* 0.5.7 подкатегориите: десктоп — второ падащо меню вдясно от категорията; телефон — с отстъп под нея, по-дребни */
.sm-header .wp-block-navigation .sm-cat > .wp-block-navigation__submenu-container { top: calc(-.5rem - 1px); }
.sm-header .wp-block-navigation .sm-cat > .wp-block-navigation__submenu-container a { font-size: .9em; }
.sm-header .wp-block-navigation__responsive-container.is-menu-open .sm-cat > .wp-block-navigation__submenu-icon { display: none !important; }
.sm-header .wp-block-navigation__responsive-container.is-menu-open .sm-cat > .wp-block-navigation__submenu-container { border: 0 !important; padding: .35rem 0 .2rem !important; min-width: 0 !important; gap: .55rem !important; }
.sm-header .wp-block-navigation__responsive-container.is-menu-open .sm-cat > .wp-block-navigation__submenu-container a { font-size: .85em; color: var(--wp--preset--color--contrast-2); padding: 0 !important; }
.sm-rule { border: 0; border-top: 1px solid var(--wp--preset--color--gold); opacity: .6; margin: 0; }
@media (max-width: 781px) { .sm-header .sm-tagline { display: none; } }
/* телефон: логото се свива, за да се съберат иконите в реда (иначе страницата става по-широка от екрана) */
@media (max-width: 600px) {
  .sm-header .sm-logo { min-width: 0; flex-shrink: 1; }
  .sm-header .sm-logo-img { width: 180px; max-width: 100%; }
  .sm-header .sm-logo-caption { letter-spacing: .16em; text-align: center; }
  .sm-icons { gap: .8rem; }
}

/* ——— hero ——— */
.sm-hero-img { position: relative; margin: 0; overflow: hidden; }
.sm-hero-img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sm-hero-img::after { content: ""; position: absolute; inset: 18px; border: 1px solid var(--wp--preset--color--gold); pointer-events: none; }
.sm-hero .wp-block-buttons { margin-top: 2rem; }

/* ——— бутони ——— */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
  background: transparent; border: 1px solid var(--wp--preset--color--contrast); color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--gold); color: var(--sm-gold-text); background: transparent; }
.sm-band .wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--gold); }
.sm-band .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--white); }

/* ——— доверие ——— */
.sm-trust p { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-align: center; color: var(--wp--preset--color--contrast-2); margin: 0; }
.sm-trust { border-top: 1px solid var(--wp--preset--color--gold-light); border-bottom: 1px solid var(--wp--preset--color--gold-light); }

/* ——— категории ——— */
.sm-tile .sm-tile-img { overflow: hidden; margin: 0; }
.sm-tile .sm-tile-img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .7s ease; }
.sm-tile:hover .sm-tile-img img { transform: scale(var(--sm-crop-hover)); }
.sm-tile h3 { margin: 1.1rem 0 0; }
.sm-tile h3 a { color: inherit; }
.sm-tile h3::after { content: ""; display: block; width: 2rem; height: 1px; background: var(--wp--preset--color--gold); margin: .6rem auto 0; transition: width .4s ease; }
.sm-tile:hover h3::after { width: 4rem; }

/* ——— нови продукти (woocommerce/product-new) ——— */
.sm-products .wc-block-grid__products { margin: 0; }
.sm-products .wc-block-grid__product { border: 0; padding: 0 .75rem 1.5rem; text-align: center; }
.sm-products .wc-block-grid__product-image { margin-bottom: 1rem; overflow: hidden; }
.sm-products .wc-block-grid__product-image img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .7s ease; }
.sm-products .wc-block-grid__product:hover .wc-block-grid__product-image img { transform: scale(var(--sm-crop-hover)); }
.sm-products .wc-block-grid__product-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 500; line-height: 1.25; margin: 0 0 .4rem; }
.sm-products .wc-block-grid__product-title a { color: var(--wp--preset--color--contrast); }
.sm-products .wc-block-grid__product-price { font-size: .9rem; letter-spacing: .04em; color: var(--wp--preset--color--contrast-2); margin-bottom: .9rem; }
.sm-products .wc-block-grid__product-price del { opacity: .55; margin-right: .4rem; }
.sm-products .wc-block-grid__product-onsale { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--white); border: 0; border-radius: 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; }
.sm-products .wc-block-grid__product-add-to-cart .wp-block-button__link,
.sm-products .wc-block-grid__product-add-to-cart .wp-block-button__link:focus {
  background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--contrast); border-radius: 0;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: .7rem 1.2rem; box-shadow: none;
}
.sm-products .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.sm-products .wc-block-grid__product-add-to-cart .added_to_cart { display: block; margin-top: .5rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-gold-text); }

/* ——— тъмна лента ——— */
.sm-band .sm-eyebrow { color: var(--sm-gold-text); }
.sm-band .sm-band-img { overflow: hidden; margin: 0; }
.sm-band .sm-band-img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ——— галерия ——— */
.sm-gallery img { transition: opacity .4s ease; }
.sm-gallery img:hover { opacity: .82; }

/* ——— блог: хъб „Символи", категории, карти ——— */
.sm-blog .wp-block-post-featured-image { overflow: hidden; }
.sm-blog .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.sm-blog .wp-block-query-title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.sm-blog .sm-blog-intro, .sm-blog .sm-blog-intro * { max-width: 640px; margin-left: auto; margin-right: auto; font-family: var(--wp--preset--font-family--body) !important; font-size: .95rem !important; line-height: 1.75 !important; color: var(--wp--preset--color--contrast-2) !important; font-weight: 400 !important; }
.sm-blog-cats { gap: .6rem; margin: var(--wp--preset--spacing--30) auto var(--wp--preset--spacing--40); }
.sm-blog-cats p { margin: 0; }
.sm-blog-cats a { display: inline-block; padding: .55rem 1.1rem; border: 1px solid var(--wp--preset--color--gold-light); background: var(--wp--preset--color--white); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); transition: border-color .25s, color .25s; }
.sm-blog-cats a:hover { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--contrast); }
.sm-post-grid .wp-block-post-template { gap: 1.75rem; }
.sm-post-grid .wp-block-post { display: flex; }
.sm-post-grid .sm-post-card { display: flex; flex-direction: column; width: 100%; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--gold-light); transition: border-color .3s ease, transform .3s ease; }
.sm-post-grid .sm-post-card:hover { border-color: var(--wp--preset--color--gold); transform: translateY(-2px); }
.sm-post-grid .sm-post-card .wp-block-post-featured-image { margin: 0; }
.sm-post-grid .sm-post-card .wp-block-post-featured-image img { display: block; width: 100%; transition: transform .7s ease; }
.sm-post-grid .sm-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.sm-post-grid .sm-post-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1 1 auto; border-top: 2px solid var(--wp--preset--color--gold); }
.sm-post-grid .sm-post-meta { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); margin-bottom: .75rem; gap: .5rem 1rem; }
.sm-post-grid .sm-post-meta .wp-block-post-terms a { color: var(--sm-gold-text); }
.sm-post-grid .sm-post-meta .wp-block-post-terms__separator { margin: 0 .3rem; }
.sm-post-grid .wp-block-post-title { font-size: 1.4rem; line-height: 1.2; margin: 0 0 .6rem; }
.sm-post-grid .wp-block-post-title a { color: var(--wp--preset--color--contrast); }
.sm-post-grid .wp-block-post-excerpt { font-size: .9rem; line-height: 1.7; color: var(--wp--preset--color--contrast-2); margin: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.sm-post-grid .wp-block-post-excerpt__excerpt { margin: 0 0 1rem; }
.sm-post-grid .wp-block-post-excerpt__more-text { margin-top: auto; }
.sm-post-grid .wp-block-post-excerpt__more-link { color: var(--sm-gold-text); letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; font-weight: 500; }
.sm-post-grid .wp-block-post-excerpt__more-link::after { content: " →"; }
.sm-blog .wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: 1.25rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; justify-content: center; }
.sm-blog .wp-block-query-pagination a, .sm-blog .wp-block-query-pagination .page-numbers { color: var(--wp--preset--color--contrast-2); padding: .3rem .2rem; }
.sm-blog .wp-block-query-pagination a:hover { color: var(--sm-gold-text); }
.sm-blog .wp-block-query-pagination .page-numbers.current { color: var(--wp--preset--color--contrast); border-bottom: 1px solid var(--wp--preset--color--gold); }
@media (max-width: 781px) { .sm-post-grid .wp-block-post-template { grid-template-columns: 1fr !important; } }

/* ——— единична публикация ——— */
.sm-post .sm-cat-terms { justify-content: center; margin-bottom: .75rem; }
.sm-post .sm-cat-terms a { color: var(--sm-gold-text); }
.sm-post .sm-cat-terms .wp-block-post-terms__separator { color: var(--wp--preset--color--gold-light); margin: 0 .35rem; }
.sm-post h1.wp-block-post-title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
.sm-post .sm-post-date { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.sm-post .sm-post-hero { overflow: hidden; }
.sm-post .sm-post-hero img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.sm-post .sm-post-content, .sm-post .sm-post-content *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(img):not(figure) { font-family: var(--wp--preset--font-family--body) !important; font-size: 1.05rem !important; line-height: 1.85 !important; color: var(--wp--preset--color--contrast) !important; text-align: left !important; }
.sm-post .sm-post-content p { margin: 0 0 1.25rem; }
.sm-post .sm-post-content strong, .sm-post .sm-post-content b { font-weight: 500; }
.sm-post .sm-post-content h2, .sm-post .sm-post-content h3, .sm-post .sm-post-content h4 { font-family: var(--wp--preset--font-family--heading) !important; color: var(--wp--preset--color--contrast) !important; margin: 2rem 0 1rem; }
.sm-post .sm-post-content img { max-width: 100%; height: auto; display: block; margin: 1.5rem auto; }
.sm-post .sm-post-content a { color: var(--sm-gold-text) !important; text-decoration: underline; text-underline-offset: 3px; }
.sm-post .sm-post-content p:first-of-type::first-letter { font-family: var(--wp--preset--font-family--heading); font-size: 3.2em; float: left; line-height: .85; padding: .08em .12em 0 0; color: var(--sm-gold-text); }
.sm-post .sm-post-nav { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.sm-post .sm-post-nav a { color: var(--wp--preset--color--contrast-2); }
.sm-post .sm-post-nav a:hover { color: var(--sm-gold-text); }
.sm-post .sm-post-nav .post-navigation-link-next { text-align: right; }

/* ——— футър ——— */
.sm-footer a { color: var(--wp--preset--color--base); }
.sm-footer a:hover { color: var(--sm-gold-text); }
.sm-footer .sm-footer-h { font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-weight: 500; color: var(--sm-gold-text); margin: 0 0 1rem; }
.sm-footer .sm-links { list-style: none; padding: 0; margin: 0; }
.sm-footer .sm-links li { margin: .5rem 0; font-size: .875rem; }
.sm-footer .sm-brand { font-family: var(--wp--preset--font-family--heading); font-size: 2.4rem; font-weight: 500; letter-spacing: .04em; margin: 0 0 .5rem; display: inline-block; background: linear-gradient(100deg, #E9D3A1 0%, #B08D57 45%, #E3C88D 75%, #B08D57 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sm-footer .sm-small { font-size: .78rem; color: var(--wp--preset--color--gold-light); letter-spacing: .04em; }
/* 0.5.5: връзка в текст се различава и без цвят (Lighthouse link-in-text-block) */
.sm-footer .sm-small a { text-decoration: underline; text-underline-offset: .2em; }
.sm-footer .sm-rule { border-top-color: var(--wp--preset--color--gold); opacity: .4; }

/* ——— продуктова страница ——— */
.sm-crumbs, .sm-crumbs .woocommerce-breadcrumb { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.sm-crumbs .woocommerce-breadcrumb a { color: var(--wp--preset--color--contrast-2); }
.sm-crumbs .woocommerce-breadcrumb a:hover { color: var(--sm-gold-text); }
.sm-product .sm-cat-terms { margin-bottom: .75rem; }
.sm-product .sm-cat-terms a { color: var(--sm-gold-text); }
.sm-product .sm-cat-terms .wp-block-post-terms__separator { color: var(--wp--preset--color--gold-light); margin: 0 .35rem; }
.sm-product h1.wp-block-post-title { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; }
.sm-product .sm-price { font-family: var(--wp--preset--font-family--body); font-size: 1.35rem; font-weight: 400; letter-spacing: .04em; color: var(--wp--preset--color--contrast); margin: 0 0 1.25rem; }
.sm-product .sm-price del { color: var(--wp--preset--color--contrast-2); opacity: .7; font-size: .95em; margin-right: .5rem; }
.sm-product .sm-price ins { text-decoration: none; }
.sm-product .sm-summary { color: var(--wp--preset--color--contrast-2); font-size: .95rem; line-height: 1.75; margin-bottom: 1.5rem; }
@media (min-width: 782px) { .sm-product .sm-buybox > * { position: static; } .sm-product .sm-buybox { position: sticky; top: 1.5rem; align-self: flex-start; } }

/* галерията (класическата на WooCommerce) */
.sm-product .woocommerce-product-gallery, .woocommerce.product .sm-product div.images { float: none; width: 100%; max-width: 100%; margin-bottom: 0; }
/* 29.10.2026: WooCommerce праща галерията с inline opacity:0 и я показва от JS — тук е видима веднага (LCP = снимката). */
.sm-product .woocommerce-product-gallery { opacity: 1 !important; }
.sm-product .wp-block-woocommerce-product-image-gallery { width: 100%; }
.sm-product .woocommerce-product-gallery__wrapper { margin: 0; }
.sm-product .woocommerce-product-gallery__image { background: var(--wp--preset--color--base-2); }
.sm-product .woocommerce-product-gallery__image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sm-product .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.sm-product .woocommerce-product-gallery .flex-control-thumbs li { width: calc(16.666% - .5rem); margin: 0; overflow: hidden; }
.sm-product .woocommerce-product-gallery .flex-control-thumbs img { aspect-ratio: 1; object-fit: cover; opacity: .55; transition: opacity .3s; cursor: pointer; }
.sm-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active, .sm-product .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.sm-product .woocommerce-product-gallery__trigger { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--gold-light); border-radius: 0; width: 40px; height: 40px; right: 1rem; top: 1rem; z-index: 9; }

/* формата за покупка */
.sm-product form.cart { margin: 0 0 1.5rem; }
.sm-product form.cart .variations { width: 100%; border: 0; margin-bottom: 1rem; }
.sm-product form.cart .variations th, .sm-product form.cart .variations td { border: 0; padding: .4rem 0; vertical-align: middle; }
.sm-product form.cart .variations th.label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); font-weight: 500; width: 7rem; text-align: left; }
.sm-product form.cart select, .sm-product form.cart .quantity .qty, .sm-product form.cart input[type=number] {
  font-family: var(--wp--preset--font-family--body); font-size: .9rem; color: var(--wp--preset--color--contrast);
  background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--gold-light); border-radius: 0; padding: .7rem .9rem; min-height: 3rem;
}
.sm-product form.cart select { width: 100%; max-width: 100%; }
.sm-product form.cart .reset_variations { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-gold-text); }
.sm-product form.cart .woocommerce-variation-price { font-size: 1.2rem; letter-spacing: .04em; margin: .75rem 0; }
.sm-product form.cart .woocommerce-variation-availability { font-size: .85rem; color: var(--wp--preset--color--contrast-2); }
.sm-product form.cart .woocommerce-variation-add-to-cart, .sm-product form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.sm-product form.cart .quantity { display: flex; }
.sm-product form.cart .quantity .qty { width: 5rem; text-align: center; }
.sm-product form.cart .single_add_to_cart_button, .sm-product form.cart .single_add_to_cart_button:focus {
  flex: 1 1 auto; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--contrast); border-radius: 0;
  font-family: var(--wp--preset--font-family--body); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 0 1.9rem; min-height: 3rem; cursor: pointer;
  transition: background .3s ease, border-color .3s ease;
}
.sm-product form.cart .single_add_to_cart_button:hover { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--white); }
.sm-product form.cart .single_add_to_cart_button.disabled, .sm-product form.cart .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }
.sm-product .stock { font-size: .85rem; letter-spacing: .04em; }
.sm-product .stock.in-stock { color: var(--sm-gold-text); }
.sm-product .stock.out-of-stock { color: var(--wp--preset--color--contrast-2); }

/* ——— НОВИЯТ блок за покупка (Add to Cart with Options): чипове вместо падащо меню ——— */
.sm-atc { margin: 0 0 1.5rem; }
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-description { display: none !important; } /* дублира краткото описание */
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute > .wp-block-group { margin: 0 0 1.1rem !important; gap: .55rem !important; }
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); font-weight: 500; }
.sm-atc .wc-block-product-filter-chips__fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sm-atc .wc-block-product-filter-chips__items { display: flex; flex-wrap: wrap; gap: .6rem; }
/* хапчета (Размер и всичко, което не е цвят) */
.sm-atc .wc-block-product-filter-chips__item {
  background: var(--wp--preset--color--white); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--gold-light); border-radius: 0;
  font-family: var(--wp--preset--font-family--body); font-size: .8rem; letter-spacing: .06em; padding: .6rem 1rem; min-width: 2.9rem; line-height: 1.2; cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease; box-shadow: none;
}
.sm-atc .wc-block-product-filter-chips__item:hover { border-color: var(--wp--preset--color--gold); }
.sm-atc .wc-block-product-filter-chips__item[aria-checked="true"] { border-color: var(--wp--preset--color--gold); background: var(--wp--preset--color--base-2); box-shadow: inset 0 0 0 1px var(--wp--preset--color--gold); color: var(--wp--preset--color--contrast); }
.sm-atc .wc-block-product-filter-chips__item[disabled], .sm-atc .wc-block-product-filter-chips__item:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.sm-atc .wc-block-product-filter-chips__item[hidden] { display: none; }
.sm-atc .wc-block-product-filter-chips__item:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 2px; }
/* цветни кръгове за атрибута Цвят (разпознава се по скритото поле на формата) */
.sm-atc .wc-block-product-filter-chips__item { --sw: #D9CFC1; } /* по подразбиране; картата по-долу го презаписва */
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute:has(input[name="attribute_pa_color"]) .wc-block-product-filter-chips__items { gap: .9rem 3.7rem; padding-left: 1.55rem; } /* 0.5.8: надписът (до 5.4rem) е по-широк от кръга (2.35rem) → центровете на 6.05rem, иначе съседните надписи се застъпват */
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute:has(input[name="attribute_pa_color"]) .wc-block-product-filter-chips__item {
  position: relative; width: 2.35rem; height: 2.35rem; min-width: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(58,46,38,.18);
  background: var(--sw); box-shadow: inset 0 0 0 3px var(--wp--preset--color--base); margin-bottom: 1.15rem;
}
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute:has(input[name="attribute_pa_color"]) .wc-block-product-filter-chips__item:hover { border-color: var(--wp--preset--color--gold); }
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute:has(input[name="attribute_pa_color"]) .wc-block-product-filter-chips__item[aria-checked="true"] { border: 2px solid var(--wp--preset--color--gold); box-shadow: inset 0 0 0 3px var(--wp--preset--color--base); background: var(--sw); }
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute:has(input[name="attribute_pa_color"]) .wc-block-product-filter-chips__label { position: absolute; left: 50%; top: calc(100% + .3rem); transform: translateX(-50%); white-space: nowrap; font-size: .58rem; letter-spacing: .04em; line-height: 1.1; color: var(--wp--preset--color--contrast-2); text-transform: lowercase; max-width: 5.4rem; overflow: hidden; text-overflow: ellipsis; display: block; }
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute:has(input[name="attribute_pa_color"]) .wc-block-product-filter-chips__item[disabled] { text-decoration: none; }
.sm-atc .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute:has(input[name="attribute_pa_color"]) .wc-block-product-filter-chips__item[disabled]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 1px; background: rgba(58,46,38,.5); transform: translate(-50%, -50%) rotate(-45deg); }
/* картата стойност → цвят (по началото/части от името; по-късното правило печели) */
.sm-atc .wc-block-product-filter-chips__item[aria-label*="бял"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="бяло"] { --sw: #FFFFFF; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="екрю"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="крем"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="шампанско"] { --sw: #F1E7D3; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="бежов"] { --sw: #D8C3A5; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="жълт"] { --sw: #E9C94A; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="оранжев"] { --sw: #E08A3C; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="червен"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="червено"] { --sw: #B3202C; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="бордо"] { --sw: #6E1423; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="розов"] { --sw: #E8A2B4; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="циклам"] { --sw: #C2185B; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="лилав"] { --sw: #7B4F9D; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="син"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="синьо"] { --sw: #2E4A8C; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="тюркоаз"] { --sw: #3AAFA9; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="зелен"] { --sw: #3E7B4F; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="кафяв"] { --sw: #6B4A2B; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="сив"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="сиво"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="опушен"] { --sw: #8E8B86; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="графит"] { --sw: #4A4A4A; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="черен"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="черн"] { --sw: #1E1A17; }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="седеф"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="перл"] { --sw: linear-gradient(135deg, #FFFFFF 0%, #EFE6F2 40%, #DCE9F0 70%, #FFFFFF 100%); }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="злат"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="златист"] { --sw: linear-gradient(135deg, #F3E2B3 0%, #C9A86A 45%, #9A763F 100%); }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="сребър"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="сребр"] { --sw: linear-gradient(135deg, #FFFFFF 0%, #C9CCD1 45%, #8F949B 100%); }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="розово злато"] { --sw: linear-gradient(135deg, #F6D9CF 0%, #D9A08E 50%, #B9735F 100%); }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="черно и бяло"] { --sw: linear-gradient(90deg, #1E1A17 50%, #FFFFFF 50%); }
.sm-atc .wc-block-product-filter-chips__item[aria-label*="хамелеон"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="разноцвет"], .sm-atc .wc-block-product-filter-chips__item[aria-label*="многоцвет"] { --sw: conic-gradient(#B3202C, #E9C94A, #3E7B4F, #2E4A8C, #7B4F9D, #B3202C); }
/* наличност · брояч · бутон */
.sm-atc .wc-block-components-product-stock-indicator { font-size: .8rem; letter-spacing: .06em; margin: .25rem 0 1rem !important; }
.sm-atc .wc-block-components-product-stock-indicator--in-stock { color: var(--sm-gold-text); }
.sm-atc .wc-block-components-product-stock-indicator--out-of-stock { color: var(--wp--preset--color--contrast-2); }
.sm-atc .wc-block-components-quantity-selector { border: 1px solid var(--wp--preset--color--gold-light) !important; border-radius: 0 !important; background: var(--wp--preset--color--white); min-height: 3rem; }
.sm-atc .wc-block-components-quantity-selector__input { font-family: var(--wp--preset--font-family--body); font-size: .9rem !important; }
.sm-atc .wc-block-components-quantity-selector__button { color: var(--wp--preset--color--contrast); min-width: 2.4rem; }
.sm-atc .wc-block-components-product-button { flex: 1 1 auto; }
.sm-atc .wc-block-components-product-button .wp-block-button__link, .sm-atc .wc-block-components-product-button button {
  width: 100%; min-height: 3rem; background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--contrast); border-radius: 0;
  font-family: var(--wp--preset--font-family--body); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 0 1.9rem; cursor: pointer; transition: background .3s ease, border-color .3s ease;
}
.sm-atc .wc-block-components-product-button .wp-block-button__link:hover, .sm-atc .wc-block-components-product-button button:hover { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--white); }
.sm-atc.is-invalid .wc-block-components-product-button .wp-block-button__link, .sm-atc .wc-block-components-product-button .wp-block-button__link[disabled], .sm-atc .wc-block-components-product-button .wp-block-button__link.disabled { opacity: .45; cursor: not-allowed; }
.sm-atc .wc-block-components-product-button .wc-block-components-product-button__button--placeholder, .sm-atc .added_to_cart { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-gold-text); }

.sm-product .sm-trust-list { list-style: none; margin: 0 0 1.25rem; padding: 1rem 0 0; border-top: 1px solid var(--wp--preset--color--gold-light); display: grid; gap: .45rem; }
.sm-product .sm-trust-list li { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); padding-left: 1.25rem; position: relative; }
.sm-product .sm-trust-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .5rem; height: 1px; background: var(--wp--preset--color--gold); }
.sm-product .sm-meta { font-size: .78rem; color: var(--wp--preset--color--contrast-2); letter-spacing: .04em; }
.sm-product .sm-meta .wp-block-group { gap: .5rem 1.5rem; }
.sm-product .sm-meta a { color: var(--wp--preset--color--contrast-2); }
.sm-product .sm-meta a:hover { color: var(--sm-gold-text); }

/* описание / допълнителна информация / отзиви */
.sm-product .sm-details .woocommerce-tabs ul.tabs, .sm-product .wc-tabs { display: flex; flex-wrap: wrap; gap: 0 2.25rem; margin: 0 0 1.5rem; padding: 0; list-style: none; border-bottom: 1px solid var(--wp--preset--color--gold-light); }
.sm-product .wc-tabs li { margin: 0; padding: 0; background: transparent; border: 0; }
.sm-product .wc-tabs li::before, .sm-product .wc-tabs li::after { display: none; }
.sm-product .wc-tabs li a { display: block; padding: .9rem 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--wp--preset--color--contrast-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sm-product .wc-tabs li.active a { color: var(--wp--preset--color--contrast); border-bottom-color: var(--wp--preset--color--gold); }
/* 0.5.5: неизбраният таб излизаше блед — WC (product-details is-style-minimal) дава на li opacity .65 → контраст < 4.5 (Lighthouse);
   избраният се отличава с по-тъмния цвят и златната линия */
.sm-product .wc-tabs li { opacity: 1 !important; }
.sm-product .wc-tabs li:not(.active) a { color: var(--wp--preset--color--contrast-2) !important; }
.sm-product .woocommerce-Tabs-panel h2:first-child { display: none; }
.sm-product .woocommerce-Tabs-panel { font-size: .95rem; line-height: 1.8; color: var(--wp--preset--color--contrast); }
/* старите описания носят вградени стилове (Times New Roman/Arial, цветове, размери) — надписват се */
.sm-product .woocommerce-Tabs-panel, .sm-product .woocommerce-Tabs-panel *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { font-family: var(--wp--preset--font-family--body) !important; color: var(--wp--preset--color--contrast) !important; font-size: .95rem !important; line-height: 1.8 !important; }
.sm-product .woocommerce-Tabs-panel h1, .sm-product .woocommerce-Tabs-panel h2:not(:first-child), .sm-product .woocommerce-Tabs-panel h3, .sm-product .woocommerce-Tabs-panel h4 { font-family: var(--wp--preset--font-family--heading) !important; color: var(--wp--preset--color--contrast) !important; }
.sm-product .sm-summary, .sm-product .sm-summary * { font-family: var(--wp--preset--font-family--body) !important; font-size: .95rem !important; color: var(--wp--preset--color--contrast-2) !important; }
.sm-product .woocommerce-Tabs-panel table.shop_attributes { border: 0; width: 100%; max-width: 640px; }
.sm-product .woocommerce-Tabs-panel table.shop_attributes th, .sm-product .woocommerce-Tabs-panel table.shop_attributes td { border: 0; border-bottom: 1px solid var(--wp--preset--color--gold-light); padding: .6rem 0; font-style: normal; }
.sm-product .woocommerce-Tabs-panel table.shop_attributes th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); font-weight: 500; width: 40%; }

.sm-product .woocommerce-Tabs-panel strong, .sm-product .woocommerce-Tabs-panel b { font-weight: 500; }

/* ——— КАРТИТЕ НА ПРОДУКТИТЕ (категория · подобни · product-collection навсякъде) ———
   Картата е колона с еднаква височина, бутонът е закотвен долу — заглавие с 1 или 3 реда не го мести. */
.sm-related h2 { text-align: center; }
.sm-cards .wc-block-product-template, .sm-related .wc-block-product-template { --wc-product-template-gap: 1.5rem; row-gap: 2.5rem; align-items: stretch; }
.sm-cards .wc-block-product, .sm-related .wc-block-product { display: flex; flex-direction: column; text-align: center; }
.sm-cards .wc-block-components-product-image, .sm-related .wc-block-components-product-image { margin: 0 0 .9rem; }
.sm-cards .wc-block-components-product-image img, .sm-related .wc-block-components-product-image img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.sm-cards .wp-block-post-title, .sm-related .wp-block-post-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.1rem; font-weight: 500; line-height: 1.25; text-align: center; margin: 0 0 .4rem; }
.sm-cards .wp-block-post-title a, .sm-related .wp-block-post-title a { color: var(--wp--preset--color--contrast); }
.sm-cards .wc-block-components-product-price, .sm-related .wc-block-components-product-price { text-align: center; display: block; font-size: .9rem; letter-spacing: .04em; color: var(--wp--preset--color--contrast-2); margin: 0 0 .9rem; }
.sm-cards .wc-block-components-product-price del, .sm-related .wc-block-components-product-price del { opacity: .55; margin-right: .4rem; }
.sm-cards .wc-block-components-product-button, .sm-related .wc-block-components-product-button { margin-top: auto; text-align: center; }
.sm-cards .wc-block-components-product-button .wp-block-button__link, .sm-related .wc-block-components-product-button .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--contrast); border-radius: 0; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .65rem 1rem; white-space: nowrap; }
.sm-cards .wc-block-components-product-button .wp-block-button__link:hover, .sm-related .wc-block-components-product-button .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.sm-cards .wc-block-components-product-sale-badge, .sm-related .wc-block-components-product-sale-badge { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--white); border: 0; border-radius: 0; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; }
/* същото подравняване и за „Нови продукти" на началната (стария блок product-new) */
/* телефон: две тесни колони → надписът на бутона се пренася, вместо да разширява картата и страницата */
@media (max-width: 600px) {
  .sm-cards .wc-block-components-product-button .wp-block-button__link, .sm-related .wc-block-components-product-button .wp-block-button__link { white-space: normal; letter-spacing: .06em; line-height: 1.35; padding: .6rem .5rem; max-width: 100%; }
}
.sm-products .wc-block-grid__product { display: flex; flex-direction: column; }
.sm-products .wc-block-grid__product-add-to-cart { margin-top: auto; }

/* ——— страница на категория / магазин ——— */
.sm-shop .wp-block-query-title { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0; }
.sm-shop .sm-term-desc, .sm-shop .sm-term-desc * { font-family: var(--wp--preset--font-family--body) !important; font-size: .95rem !important; line-height: 1.75 !important; color: var(--wp--preset--color--contrast-2) !important; font-weight: 400 !important; }
.sm-shop .sm-term-desc { margin: .9rem 0 0; }
.sm-shop .sm-term-desc p { margin: 0 0 .5rem; }
/* 0.5.7 СТРАНИЦАТА С ПОДКАТЕГОРИИТЕ (категория с режим „подкатегории" в WooCommerce): плочки снимка · име · брой */
/* размерът = картите на продуктите в категорията (4 колони, отстъп 1.5rem, редове 2.5rem) — негово 30.10 */
.sm-subcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; margin: 0 auto var(--wp--preset--spacing--50); }
/* WooCommerce вмъква съобщенията на магазина в първия div на списъка → цял ред над плочките, иначе заема първото квадратче */
.sm-subcats > .wc-block-components-notices { grid-column: 1 / -1; margin: 0; }
.sm-subcat { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--wp--preset--color--contrast); }
.sm-subcat-img { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--wp--preset--color--base-2); margin: 0 0 1rem; }
.sm-subcat-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--sm-crop)); transform-origin: top right; transition: transform .6s ease; }
.sm-subcat:hover .sm-subcat-img img { transform: scale(var(--sm-crop-hover)); }
.sm-subcat-name { font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.sm-subcat-name::after { content: ""; display: block; width: 2.5rem; height: 1px; background: var(--wp--preset--color--gold); margin: .7rem auto .55rem; }
.sm-subcat-count { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.sm-subcat:hover .sm-subcat-name { color: var(--sm-gold-text); }
@media (max-width: 781px) {
  .sm-subcats, .sm-subcats.sm-subcats--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .sm-subcat-name { font-size: 1.1rem; }
  .sm-subcat-count { font-size: .64rem; letter-spacing: .1em; }
}
.sm-shop .sm-toolbar { border-top: 1px solid var(--wp--preset--color--gold-light); border-bottom: 1px solid var(--wp--preset--color--gold-light); padding: .55rem 0; margin-bottom: var(--wp--preset--spacing--40); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.sm-shop .sm-toolbar p, .sm-shop .sm-toolbar .woocommerce-result-count { margin: 0; font-size: inherit; }
.sm-shop .sm-toolbar select, .sm-shop .sm-toolbar .orderby { border: 0; background: transparent; font-family: var(--wp--preset--font-family--body); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--contrast); cursor: pointer; padding: .3rem 1.6rem .3rem 0; }
.sm-shop .sm-toolbar .woocommerce-ordering { margin: 0; }
.sm-shop .wp-block-query-pagination { margin-top: var(--wp--preset--spacing--50); gap: 1.25rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.sm-shop .wp-block-query-pagination a, .sm-shop .wp-block-query-pagination .page-numbers { color: var(--wp--preset--color--contrast-2); padding: .3rem .2rem; }
.sm-shop .wp-block-query-pagination a:hover { color: var(--sm-gold-text); }
.sm-shop .wp-block-query-pagination .page-numbers.current { color: var(--wp--preset--color--contrast); border-bottom: 1px solid var(--wp--preset--color--gold); }
@media (max-width: 781px) { .sm-shop .sm-toolbar { gap: .5rem 1rem; } }

/* ——— КОЛИЧКА и КАСА (блоковете на WooCommerce) ——— */
.sm-cart .wp-block-post-title, .sm-checkout .wp-block-post-title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.sm-cart .sm-eyebrow, .sm-checkout .sm-eyebrow { margin-bottom: .5rem; }
.wc-block-cart, .wc-block-checkout { font-family: var(--wp--preset--font-family--body); }
/* заглавия и текстове в блоковете */
.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-components-order-summary__button-text, .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--wp--preset--font-family--heading) !important; font-weight: 500 !important; letter-spacing: .01em; }
.wc-block-components-checkout-step__title { font-size: 1.35rem !important; }
.wc-block-components-checkout-step__description { color: var(--wp--preset--color--contrast-2); font-size: .9rem; }
.wc-block-cart table.wc-block-cart-items th, .wc-block-cart .wc-block-cart-items__header { font-size: .72rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); font-weight: 500 !important; }
.wc-block-cart .wc-block-cart-items__header, .wc-block-cart .wc-block-cart-items .wc-block-cart-item__wrap, .wc-block-cart table.wc-block-cart-items td, .wc-block-cart table.wc-block-cart-items th { border-color: var(--wp--preset--color--gold-light) !important; }
.wc-block-cart .wc-block-cart-items .wc-block-cart-item__wrap .wc-block-components-product-name, .wc-block-components-order-summary-item__description .wc-block-components-product-name { font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 500; color: var(--wp--preset--color--contrast); text-decoration: none; }
.wc-block-cart .wc-block-cart-item__prices, .wc-block-cart .wc-block-cart-item__total { font-size: .95rem; letter-spacing: .04em; }
.wc-block-cart .wc-block-cart-item__remove-link { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.wc-block-cart .wc-block-cart-item__remove-link:hover { color: var(--sm-gold-text); }
.wc-block-cart .wc-block-components-product-metadata, .wc-block-components-product-details { font-size: .8rem; color: var(--wp--preset--color--contrast-2); }
/* краткото описание под продукта в количката/мини-количката/обобщението на касата — дублира името и носи стари удебелени стилове → скрито;
   избраните варианти (Цвят/Размер) остават */
.wc-block-components-product-metadata__description { display: none !important; }
.wc-block-components-product-details { font-size: .8rem; color: var(--sm-gold-text); }
.wc-block-cart .wc-block-cart-item__image img { border: 1px solid var(--wp--preset--color--gold-light); }
/* брояч на количеството в количката */
.wc-block-cart .wc-block-components-quantity-selector { border: 1px solid var(--wp--preset--color--gold-light) !important; border-radius: 0 !important; background: var(--wp--preset--color--white); }
.wc-block-cart .wc-block-components-quantity-selector::after { display: none; }
/* панели/обобщение */
.wc-block-components-sidebar .wc-block-components-panel, .wc-block-components-totals-wrapper, .wc-block-components-order-summary, .wc-block-components-totals-item { border-color: var(--wp--preset--color--gold-light) !important; }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { padding: 1.5rem; border: 1px solid var(--wp--preset--color--gold-light); background: var(--wp--preset--color--white); align-self: flex-start; }
.wc-block-components-totals-item { font-size: .92rem; }
.wc-block-components-totals-footer-item { font-size: 1.15rem; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--wp--preset--font-family--body); font-weight: 500; }
.wc-block-components-panel__button { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
/* бутони на блоковете */
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-totals-coupon__button {
  background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important; border: 1px solid var(--wp--preset--color--contrast) !important; border-radius: 0 !important;
  font-family: var(--wp--preset--font-family--body) !important; font-size: .8125rem !important; font-weight: 500 !important; letter-spacing: .14em !important; text-transform: uppercase; min-height: 3rem; box-shadow: none !important; transition: background .3s ease, border-color .3s ease;
}
.wc-block-components-button:not(.is-link):hover, .wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { background: var(--wp--preset--color--gold) !important; border-color: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--white) !important; }
.wc-block-components-totals-coupon__button.wc-block-components-button--secondary, .wc-block-components-button.outlined, .wc-block-components-button.contained.wc-block-components-button--secondary { background: transparent !important; color: var(--wp--preset--color--contrast) !important; }
.wc-block-components-button.is-link, .wc-block-components-checkout-return-to-cart-button { color: var(--wp--preset--color--contrast-2); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.wc-block-components-checkout-return-to-cart-button:hover { color: var(--sm-gold-text); }
/* полетата на касата */
.wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=number], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=url], .wc-block-components-text-input input[type=password],
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input, .wc-block-components-select .components-custom-select-control__button, .wc-block-components-form .wc-block-components-text-input input, .wc-block-components-textarea {
  border: 1px solid var(--wp--preset--color--gold-light) !important; border-radius: 0 !important; background: var(--wp--preset--color--white) !important; color: var(--wp--preset--color--contrast) !important; font-family: var(--wp--preset--font-family--body) !important; box-shadow: none !important;
}
.wc-block-components-text-input.is-active input, .wc-block-components-text-input input:focus, .wc-block-components-textarea:focus { border-color: var(--wp--preset--color--gold) !important; outline: none; box-shadow: 0 0 0 1px var(--wp--preset--color--gold) !important; }
.wc-block-components-text-input label, .wc-block-components-combobox label, .wc-block-components-select label { color: var(--wp--preset--color--contrast-2) !important; font-family: var(--wp--preset--font-family--body); }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-radius: 0 !important; border-color: var(--wp--preset--color--gold) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--wp--preset--color--contrast) !important; border-color: var(--wp--preset--color--contrast) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--wp--preset--color--base); }
/* радио списъци (доставка, плащане) */
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-color: var(--wp--preset--color--gold-light) !important; }
.wc-block-components-radio-control__input { border-color: var(--wp--preset--color--gold) !important; }
.wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--contrast) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--wp--preset--color--contrast) !important; }
.wc-block-components-radio-control__label, .wc-block-components-radio-control__secondary-label { font-size: .92rem; }
.wc-block-components-radio-control__description, .wc-block-components-radio-control__secondary-description { color: var(--wp--preset--color--contrast-2); font-size: .82rem; }
/* празна количка */
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title, .wp-block-woocommerce-empty-cart-block h2 { font-family: var(--wp--preset--font-family--heading); font-weight: 500; }
.wp-block-woocommerce-empty-cart-block .wp-block-separator { border-color: var(--wp--preset--color--gold); }
/* известия */
.wc-block-components-notice-banner { border-radius: 0 !important; }
.wc-block-components-notice-banner.is-success { background: var(--wp--preset--color--base-2) !important; border-color: var(--wp--preset--color--gold) !important; color: var(--wp--preset--color--contrast) !important; }
.wc-block-components-notice-banner.is-success > svg { background: var(--wp--preset--color--gold) !important; }

/* ——— МОЯТ ПРОФИЛ (класическият My Account на WooCommerce) ——— */
.sm-account .wp-block-post-title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.sm-account .panel-layout .so-panel, .sm-account .panel-grid-cell { padding: 0; margin: 0; }
/* вход / регистрация */
.sm-account .u-columns.col2-set, .woocommerce-page .sm-account .col2-set { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1000px; margin: 0 auto; }
.sm-account .col2-set > .col-1, .sm-account .col2-set > .col-2, .woocommerce-page .sm-account .col2-set .col-1, .woocommerce-page .sm-account .col2-set .col-2 { width: auto !important; float: none !important; max-width: none !important; }
.sm-account .col2-set::before, .sm-account .col2-set::after, .sm-account .woocommerce-Addresses::before, .sm-account .woocommerce-Addresses::after { display: none !important; content: none !important; }
.sm-account .u-columns h2 { font-size: 1.6rem; text-align: center; margin: 0 0 1rem; }
.sm-account form.woocommerce-form-login, .sm-account form.woocommerce-form-register, .sm-account form.woocommerce-ResetPassword, .sm-account form.woocommerce-EditAccountForm, .sm-account form.edit-account, .sm-account .woocommerce-address-fields {
  background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--gold-light) !important; border-radius: 0 !important; padding: 1.75rem !important; margin: 0 0 1.5rem;
}
.sm-account .woocommerce-form-row label, .sm-account .form-row label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); font-weight: 500; margin-bottom: .35rem; display: block; }
.sm-account .form-row .required { color: var(--sm-gold-text); text-decoration: none; }
.sm-account .form-row input.input-text, .sm-account .form-row textarea, .sm-account .form-row select, .sm-account .woocommerce-Input, .sm-account .password-input input {
  width: 100%; border: 1px solid var(--wp--preset--color--gold-light); border-radius: 0; background: var(--wp--preset--color--white); color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--body); font-size: .95rem; padding: .75rem .9rem; min-height: 3rem; box-shadow: none;
}
.sm-account .form-row input.input-text:focus, .sm-account .form-row textarea:focus, .sm-account .form-row select:focus { border-color: var(--wp--preset--color--gold); outline: none; box-shadow: 0 0 0 1px var(--wp--preset--color--gold); }
.sm-account .password-input { position: relative; }
.sm-account .show-password-input { top: .95rem; right: .9rem; }
.sm-account .woocommerce-form-login__rememberme { font-size: .9rem; margin-left: 1rem; }
.sm-account .woocommerce-LostPassword, .sm-account .lost_reset_password { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 1rem 0 0; }
.sm-account .woocommerce-LostPassword a { color: var(--wp--preset--color--contrast-2); }
.sm-account .woocommerce-LostPassword a:hover { color: var(--sm-gold-text); }
.sm-account .woocommerce-privacy-policy-text { font-size: .8rem; color: var(--wp--preset--color--contrast-2); line-height: 1.6; }
.sm-account .woocommerce-privacy-policy-text a { color: var(--sm-gold-text); }
.sm-account .woocommerce-password-strength, .sm-account .woocommerce-password-hint { font-size: .78rem; }
/* бутоните на формите */
.sm-account button.button, .sm-account .button, .sm-account input[type=submit] {
  background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--contrast); border-radius: 0;
  font-family: var(--wp--preset--font-family--body); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 0 1.9rem; min-height: 3rem; line-height: 3rem; cursor: pointer; transition: background .3s ease, border-color .3s ease;
}
.sm-account button.button:hover, .sm-account .button:hover, .sm-account input[type=submit]:hover { background: var(--wp--preset--color--gold); border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--white); }
/* влязъл клиент: навигация вляво, съдържание вдясно */
.sm-account .woocommerce-MyAccount-navigation { float: none; width: 100%; }
.sm-account .woocommerce-MyAccount-content { float: none; width: 100%; }
.sm-account .woocommerce:has(.woocommerce-MyAccount-navigation) { display: grid !important; grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "nav content"; gap: 3rem; align-items: start; }
.sm-account .woocommerce:has(.woocommerce-MyAccount-navigation)::before, .sm-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after { display: none !important; content: none !important; }
.sm-account .woocommerce-MyAccount-navigation { grid-area: nav; }
.sm-account .woocommerce-MyAccount-content { grid-area: content; }
.sm-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty { display: none; }
.sm-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--gold-light); }
.sm-account .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--wp--preset--color--gold-light); }
.sm-account .woocommerce-MyAccount-navigation li a { display: block; padding: .9rem .25rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.sm-account .woocommerce-MyAccount-navigation li a:hover, .sm-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--wp--preset--color--contrast); }
.sm-account .woocommerce-MyAccount-navigation li.is-active a { box-shadow: inset 3px 0 0 var(--wp--preset--color--gold); padding-left: .9rem; }
.sm-account .woocommerce-MyAccount-content p { font-size: .95rem; line-height: 1.75; }
.sm-account .woocommerce-MyAccount-content a:not(.button) { color: var(--sm-gold-text); }
.sm-account .woocommerce-MyAccount-content h2, .sm-account .woocommerce-MyAccount-content h3 { font-size: 1.5rem; margin: 0 0 1rem; }
/* таблици (поръчки, детайли) */
.sm-account table.shop_table { border: 0; border-collapse: collapse; width: 100%; font-size: .92rem; }
.sm-account table.shop_table th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); font-weight: 500; border: 0; border-bottom: 1px solid var(--wp--preset--color--gold); padding: .8rem .5rem; text-align: left; }
.sm-account table.shop_table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--gold-light); padding: .9rem .5rem; vertical-align: middle; }
.sm-account table.shop_table .button { min-height: 2.4rem; line-height: 2.4rem; padding: 0 1rem; font-size: .7rem; margin-right: .4rem; }
.sm-account table.shop_table .woocommerce-orders-table__cell-order-number a { font-family: var(--wp--preset--font-family--heading); font-size: 1.1rem; }
/* адреси */
.sm-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sm-account .woocommerce-Addresses .woocommerce-Address { width: auto; float: none; max-width: none; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--gold-light); padding: 1.5rem; }
.sm-account .woocommerce-Address-title h2, .sm-account .woocommerce-Address-title h3 { font-size: 1.25rem; display: inline-block; }
.sm-account .woocommerce-Address-title .edit { float: right; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-gold-text); }
.sm-account .woocommerce-Address address { font-style: normal; line-height: 1.7; color: var(--wp--preset--color--contrast-2); }
/* известия вътре в профила */
.sm-account .woocommerce-message, .sm-account .woocommerce-info, .sm-account .woocommerce-error { border-top: 2px solid var(--wp--preset--color--gold); background: var(--wp--preset--color--white); color: var(--wp--preset--color--contrast); border-radius: 0; }
.sm-account .woocommerce-message::before, .sm-account .woocommerce-info::before { color: var(--sm-gold-text); }
.sm-account .woocommerce-error { border-top-color: #b3202c; }
.sm-account .woocommerce-error::before { color: #b3202c; }
@media (max-width: 781px) {
  .sm-account .u-columns.col2-set, .woocommerce-page .sm-account .col2-set, .sm-account .woocommerce:has(.woocommerce-MyAccount-navigation), .sm-account .woocommerce-Addresses { grid-template-columns: 1fr; }
}

/* ——— ОБИКНОВЕНИ СТРАНИЦИ (За нас · Контакти · Плащане и доставка · Общи условия …) ——— */
.sm-page .wp-block-post-title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
/* старото съдържание носи вградени стилове (Times New Roman, размери, цветове) — изравняват се с темата */
.sm-page .sm-page-content, .sm-page .sm-page-content *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(img):not(figure):not(iframe):not(svg):not(:is(h1,h2,h3,h4,h5,h6) *) { font-family: var(--wp--preset--font-family--body) !important; font-size: 1rem !important; line-height: 1.8 !important; color: var(--wp--preset--color--contrast) !important; }
.sm-page .sm-page-content h1, .sm-page .sm-page-content h2, .sm-page .sm-page-content h3, .sm-page .sm-page-content h4 { font-family: var(--wp--preset--font-family--heading) !important; color: var(--wp--preset--color--contrast) !important; font-weight: 500 !important; line-height: 1.15 !important; margin: 1.75rem 0 .75rem; }
.sm-page .sm-page-content h1 { font-size: 2rem !important; }
.sm-page .sm-page-content h2, .sm-page .sm-page-content h4.western { font-size: 1.6rem !important; }
.sm-page .sm-page-content h3 { font-size: 1.3rem !important; }
.sm-page .sm-page-content h1 *, .sm-page .sm-page-content h2 *, .sm-page .sm-page-content h3 *, .sm-page .sm-page-content h4 *, .sm-page .sm-page-content h5 *, .sm-page .sm-page-content h6 * { font-size: inherit !important; font-family: inherit !important; color: inherit !important; font-weight: inherit !important; line-height: inherit !important; }
.sm-page .sm-page-content, .sm-page .sm-page-content * { text-align: left !important; }
.sm-page .sm-page-content em, .sm-page .sm-page-content i { font-style: normal; }
.sm-page .sm-page-content [align="center"], .sm-page .sm-page-content .has-text-align-center { text-align: center !important; }
.sm-page .sm-page-content p { margin: 0 0 1.1rem; }
.sm-page .sm-page-content p:empty, .sm-page .sm-page-content p.western:empty { display: none; }
.sm-page .sm-page-content strong, .sm-page .sm-page-content b { font-weight: 500 !important; }
.sm-page .sm-page-content a { color: var(--sm-gold-text) !important; text-decoration: underline; text-underline-offset: 3px; }
.sm-page .sm-page-content hr { border: 0; border-top: 1px solid var(--wp--preset--color--gold-light); margin: 1.5rem 0; }
.sm-page .sm-page-content ul, .sm-page .sm-page-content ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.sm-page .sm-page-content li { margin: .3rem 0; }
.sm-page .sm-page-content img { max-width: 100%; height: auto; display: block; margin: 1.25rem auto; }
.sm-page .sm-page-content iframe { max-width: 100%; width: 100%; border: 1px solid var(--wp--preset--color--gold-light); display: block; margin: .5rem 0 1.25rem; }
.sm-page .sm-page-content table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; }
.sm-page .sm-page-content td, .sm-page .sm-page-content th { border: 1px solid var(--wp--preset--color--gold-light); padding: .6rem .8rem; text-align: left; }
/* старите SiteOrigin панели — добавката я няма, затова решетката им се подрежда тук (тегла 0.6/0.4, 0.5/0.5, 1/3 …) */
.sm-page .panel-layout { display: block; }
.sm-page .panel-grid { display: flex; flex-wrap: wrap; gap: 2rem; margin: 0 0 1.5rem; }
.sm-page .panel-grid-cell { flex: 1 1 0; min-width: 0; }
.sm-page .panel-grid-cell[data-weight="0.6"] { flex-grow: 6; }
.sm-page .panel-grid-cell[data-weight="0.4"] { flex-grow: 4; }
.sm-page .panel-grid-cell[data-weight="0.7"] { flex-grow: 7; }
.sm-page .panel-grid-cell[data-weight="0.3"] { flex-grow: 3; }
.sm-page .panel-grid-cell[data-weight="0.5"] { flex-grow: 5; }
.sm-page .panel-grid-cell[data-weight="0.25"] { flex-grow: 25; }
.sm-page .panel-grid-cell[data-weight="0.75"] { flex-grow: 75; }
.sm-page .so-panel, .sm-page .textwidget, .sm-page .siteorigin-widget-tinymce { margin: 0; }
.sm-page .panel-grid:has(> .panel-grid-cell:nth-child(2)) { align-items: flex-start; }
/* Контакти: двете колони като карти */
.sm-page .panel-grid:has(> .panel-grid-cell:nth-child(2)) > .panel-grid-cell { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--gold-light); padding: 1.5rem 1.75rem; }
.sm-page .panel-grid:has(> .panel-grid-cell:nth-child(2)) > .panel-grid-cell hr:first-child, .sm-page .panel-grid-cell .textwidget > hr:first-child { display: none; }
@media (max-width: 781px) { .sm-page .panel-grid { flex-direction: column; } .sm-page .panel-grid-cell { flex: 1 1 auto; } }

/* ——— магазинът (адрес + карта в прозорец) ——— */
.sm-store { font-style: normal; }
.sm-store .sm-store-line { margin: 0 0 .45rem; font-size: .875rem; line-height: 1.55; }
.sm-store .sm-store-hours { color: var(--wp--preset--color--gold-light); }
.sm-store .sm-store-actions { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.sm-map-open {
  background: transparent; border: 1px solid var(--wp--preset--color--gold); color: var(--wp--preset--color--base); border-radius: 0; cursor: pointer;
  font-family: var(--wp--preset--font-family--body); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: .7rem 1.2rem;
  transition: background .3s ease, color .3s ease;
}
.sm-map-open:hover { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--white); }
.sm-footer .sm-map-ext { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-gold-text); }
.sm-map-dialog { border: 0; padding: 0; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); width: min(92vw, 900px); max-width: 900px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.sm-map-dialog::backdrop { background: rgba(58, 46, 38, .72); backdrop-filter: blur(2px); }
.sm-map-dialog .sm-map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem .9rem; border-bottom: 1px solid var(--wp--preset--color--gold-light); }
.sm-map-dialog .sm-map-title { font-family: var(--wp--preset--font-family--heading); font-size: 1.35rem; font-weight: 500; margin: 0 0 .2rem; line-height: 1.2; }
.sm-map-dialog .sm-map-sub { font-size: .8rem; color: var(--wp--preset--color--contrast-2); margin: 0; }
.sm-map-dialog .sm-map-sub a { color: var(--sm-gold-text); }
.sm-map-dialog .sm-map-close { background: transparent; border: 0; color: var(--wp--preset--color--contrast); font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.sm-map-dialog .sm-map-close:hover { color: var(--sm-gold-text); }
.sm-map-dialog iframe { display: block; width: 100%; height: min(70vh, 540px); border: 0; background: var(--wp--preset--color--base-2); }

/* ===== 29.10.2026 ДОСТЪПНОСТ (Lighthouse) =====
   Златото #B08D57 като ТЕКСТ имаше контраст 2.6–3.1 на кремавото (нужно 4.5) и 4.2 на тъмното.
   Текстът ползва --sm-gold-text: по-тъмно злато на светло, по-светло на тъмно. Линиите/рамките/фоновете са без промяна. */
:root { --sm-gold-text: #7E6034; }
.sm-footer, .sm-band, .has-contrast-background-color { --sm-gold-text: #C9A86A; }
/* Скритото чекмедже на мини-количката (aria-hidden) да не държи фокусируеми бутони, докато е затворено. */
.wc-block-components-drawer__screen-overlay--is-hidden { visibility: hidden; transition: visibility 0s linear .3s; }
.wc-block-components-drawer__screen-overlay:not(.wc-block-components-drawer__screen-overlay--is-hidden) { visibility: visible; transition-delay: 0s; }

/* ===== 29.10.2026 ГАЛЕРИЯТА БЕЗ ИЗМЕСТВАНЕ (продукт с 2+ снимки; Lighthouse CLS 0.37 на живо) =====
   (1) до старта на слайдера — само първата снимка (!important: правилото на WooCommerce за nth-child е по-силно);
   (2) мястото за реда с миниатюри е запазено отрано = точно редът след старта (1/6 − .5rem);
   (3) прозорецът на слайдера е винаги квадратен — при старта снимките не могат за миг да се наредят една под друга;
   (4) миниатюрите 1/6 — правилото на WooCommerce (.woocommerce div.product div.images …) ги правеше 1/4. */
.sm-product .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:nth-child(n+2) { display: none !important; }
.sm-product .woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)):not(:has(.flex-control-thumbs)) { padding-bottom: calc(16.666% - .5rem); }
.sm-product .woocommerce-product-gallery .flex-viewport { width: 100%; aspect-ratio: 1; height: auto !important; overflow: hidden; }
.woocommerce .sm-product div.images.woocommerce-product-gallery .flex-control-thumbs li { width: calc(16.666% - .5rem); float: none; margin: 0; }

/* ===== 29.10.2026 ГАЛЕРИЯТА НА ЦЯЛАТА КОЛОНА — WooCommerce: .woocommerce .wp-block-woocommerce-product-image-gallery { max-width: 512px } ===== */
.woocommerce .sm-product .wp-block-woocommerce-product-image-gallery { max-width: 100%; }
