/*
Theme Name: ШАРм — рабочая версия
Description: Рабочая версия ШАРм: главная, 229 товаров, категории, карточки и коммерческие страницы.
Author: ШАРм
Version: 5.9.0
Requires at least: 6.4
*/

/* SHARM v4.9.1 — logo only, no PHP modifications */
.wp-block-site-title a{
  display:block;
  width:145px;
  height:58px;
  background-image:url('./assets/sharm-logo.png');
  background-repeat:no-repeat;
  background-position:left center;
  background-size:contain;
  font-size:0 !important;
  line-height:0;
  text-decoration:none;
}
.sharm-inline-brand{
  display:block;
  width:145px;
  height:58px;
  font-size:0 !important;
  background-image:url('./assets/sharm-logo.png');
  background-repeat:no-repeat;
  background-position:left center;
  background-size:contain;
  text-decoration:none;
}
@media(max-width:760px){
  .wp-block-site-title a,.sharm-inline-brand{width:125px;height:52px;}
}

/* SHARM v5.0 — commercial readability and header */
body{
  font-size:18px;
  line-height:1.55;
  color:#211D22;
  background:
    radial-gradient(circle at 8% 6%, rgba(207,115,160,.10), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(250,234,242,.85), transparent 30%),
    #FFF9FC;
}
h1,h2,h3{color:#17151A;}
h1{font-weight:800;}
h2{font-weight:800;}
.wp-block-site-title a{
  display:block;
  width:155px;
  height:66px;
  background-image:url('./assets/sharm-logo.png');
  background-repeat:no-repeat;
  background-position:left center;
  background-size:contain;
  font-size:0 !important;
  line-height:0;
  text-decoration:none;
}
.wp-block-site-title a::after{content:none;}
.wp-block-navigation-item__content{
  font-size:17px;
  font-weight:700;
  color:#211D22 !important;
}
.wp-block-navigation .wp-block-navigation__submenu-container{
  background:#FFF9FC !important;
  border:1px solid #EBDCE5 !important;
  border-radius:18px !important;
  box-shadow:0 18px 45px rgba(33,29,34,.10);
  padding:8px !important;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
  font-size:15px;
  font-weight:650;
  padding:9px 12px !important;
  border-radius:12px;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover{
  background:#FAEAF2;
}
.sharm-header-call a,
.sharm-header-write a{
  min-height:46px;
  padding:11px 18px !important;
  font-size:16px !important;
  font-weight:800 !important;
  border-radius:999px !important;
}
.sharm-header-write a{
  background:#FFFFFF !important;
  border:1px solid #CF73A0 !important;
  color:#211D22 !important;
}
@media(max-width:900px){
  .wp-block-site-title a{width:135px;height:58px;}
  body{font-size:17px;}
}
@media(max-width:700px){
  .wp-block-columns{flex-wrap:wrap !important;}
  .wp-block-site-title a{width:125px;height:54px;}
  .sharm-header-call a,
  .sharm-header-write a{font-size:15px !important;padding:10px 14px !important;}
  .wp-block-navigation-item__content{font-size:18px;}
  .wp-block-navigation__responsive-container.is-menu-open{
    padding:24px 20px !important;
    background:#FFF9FC !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{
    align-items:stretch !important;
  }
}

/* SHARM v5.2 mobile/header refinements */
.sharm-topbar .wp-block-columns{align-items:center}
.sharm-topbar .wp-block-site-title a{
  width:160px;height:66px;
  background-image:url('./assets/sharm-logo.png');
  background-position:left center;background-repeat:no-repeat;background-size:contain;
  font-size:0!important;
}
.sharm-top-call a,.sharm-top-max a{
  min-height:46px!important;
  padding:11px 18px!important;
  border-radius:999px!important;
  font-size:16px!important;
  font-weight:800!important;
}
.sharm-top-max a{background:#fff!important;border:1px solid #CF73A0!important;color:#211D22!important}
.sharm-category-tile{
  min-height:230px!important;
  padding:20px!important;
  overflow:hidden!important;
}
.sharm-category-tile strong{
  position:relative!important;
  z-index:4!important;
  max-width:48%!important;
  font-size:22px!important;
  line-height:1.08!important;
}
.sharm-category-count{position:relative!important;z-index:4!important}
.sharm-category-art{
  position:absolute!important;
  right:2px!important;
  bottom:-3px!important;
  width:72%!important;
  height:88%!important;
  z-index:1!important;
}
.sharm-category-art img{
  width:100%!important;height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  mix-blend-mode:multiply!important;
}
.sharm-arrow{
  top:16px!important;
  right:16px!important;
  bottom:auto!important;
  width:34px!important;
  height:34px!important;
  font-size:19px!important;
  background:rgba(255,249,252,.96)!important;
  z-index:5!important;
}
@media(max-width:760px){
  body{font-size:17px!important}
  .sharm-topbar{padding:10px 14px 8px!important}
  .sharm-topbar .wp-block-columns{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px 14px!important}
  .sharm-topbar .wp-block-column{width:auto!important;flex-basis:auto!important;margin:0!important}
  .sharm-topbar .wp-block-column:first-child{grid-column:1/-1}
  .sharm-topbar .wp-block-site-title a{width:145px;height:58px}
  .sharm-topbar .wp-block-navigation__responsive-container.is-menu-open{
    display:flex!important;align-items:flex-start!important;
    background:#FFF9FC!important;padding:20px!important;
  }
  .sharm-topbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{
    align-items:flex-start!important;width:100%!important;
  }
  .sharm-topbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation{
    width:100%!important;
  }
  .sharm-topbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{
    display:block!important;
    position:static!important;
    width:100%!important;
    margin:8px 0 12px!important;
    padding:8px 0 4px 18px!important;
    border-left:2px solid #CF73A0!important;
    border-top:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }
  .sharm-topbar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{
    font-size:18px!important;
    padding:9px 0!important;
  }
  .sharm-category-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .sharm-category-tile{min-height:205px!important;padding:16px!important;border-radius:22px!important}
  .sharm-category-tile strong{font-size:20px!important;max-width:54%!important}
  .sharm-category-art{width:74%!important;height:84%!important;right:-2px!important;bottom:0!important}
  .sharm-arrow{width:32px!important;height:32px!important;top:14px!important;right:14px!important;font-size:18px!important}
  .sharm-category-count{font-size:12px!important}
  .sharm-top-call a,.sharm-top-max a{font-size:14px!important;padding:10px 12px!important}
}
@media(max-width:480px){
  .sharm-topbar .wp-block-columns{grid-template-columns:1fr 1fr!important}
  .sharm-topbar .wp-block-site-title a{width:130px;height:52px}
  .sharm-category-tile{min-height:190px!important}
  .sharm-category-tile strong{font-size:19px!important}
  .sharm-category-art{width:76%!important;height:82%!important}
}

/* SHARM v5.3 — approved mobile/desktop header */
.sharm-real-header{max-width:1200px;margin:0 auto;background:#FFF9FC}
.sharm-real-head{display:grid;grid-template-columns:180px 1fr auto;gap:28px;align-items:center;padding:18px 20px 16px}
.sharm-real-logo{display:block;width:160px}
.sharm-real-logo img{display:block;width:100%;height:auto}
.sharm-real-location{display:flex;flex-direction:column;gap:2px;line-height:1.25}
.sharm-real-location strong{font-size:17px}.sharm-real-location span{font-size:15px}.sharm-real-location small{font-size:13px;color:#777078}
.sharm-real-contact{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.sharm-real-contact a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:999px;text-decoration:none;font-size:15px;font-weight:800}
.sharm-call-btn{background:#CF73A0;color:#fff}.sharm-max-btn{background:#fff;border:1px solid #CF73A0;color:#211D22}
.sharm-real-nav{display:flex;align-items:center;gap:18px;padding:11px 20px;border-top:1px solid #F0E5EB;border-bottom:1px solid #F0E5EB;background:rgba(250,234,242,.72)}
.sharm-desktop-links{display:flex;align-items:center;gap:24px}
.sharm-desktop-links a,.sharm-catalog-menu summary{color:#211D22;text-decoration:none;font-size:16px;font-weight:700;cursor:pointer;list-style:none}
.sharm-catalog-menu{position:relative}.sharm-catalog-menu summary::-webkit-details-marker{display:none}
.sharm-dropdown{display:none;position:absolute;top:calc(100% + 11px);left:0;min-width:250px;padding:8px;background:#FFF9FC;border:1px solid #EBDCE5;border-radius:16px;box-shadow:0 18px 45px rgba(33,29,34,.10);z-index:9999}
.sharm-catalog-menu[open] .sharm-dropdown{display:flex;flex-direction:column}
.sharm-dropdown a{padding:9px 12px;border-radius:10px}.sharm-dropdown a:hover{background:#FAEAF2}
.sharm-catalog-toggle{display:none}.sharm-nav-icons{margin-left:auto;display:flex;gap:12px}.sharm-nav-icons a{text-decoration:none;color:#211D22;font-size:29px;line-height:1}
.sharm-mobile-nav{display:none}
@media(max-width:800px){
  .sharm-real-head{grid-template-columns:145px 1fr;gap:12px 18px;padding:12px 14px 10px}
  .sharm-real-logo{width:135px}
  .sharm-real-location strong{font-size:15px}.sharm-real-location span{font-size:13px}.sharm-real-location small{font-size:11px}
  .sharm-real-contact{grid-column:1/-1;justify-content:stretch}.sharm-real-contact a{flex:1;min-height:44px;font-size:14px;padding:10px 12px}
  .sharm-real-nav{padding:10px 14px;gap:10px}
  .sharm-catalog-toggle{display:inline-flex;align-items:center;gap:7px;border:0;background:#CF73A0;color:#fff;padding:11px 16px;border-radius:14px;font-size:16px;font-weight:800;cursor:pointer}
  .sharm-desktop-links{display:none}.sharm-nav-icons{margin-left:auto}.sharm-nav-icons a{font-size:28px}
  .sharm-mobile-nav{display:flex;flex-direction:column;gap:4px;padding:12px 18px 18px;background:#FFF9FC;border-bottom:1px solid #F0E5EB}
  .sharm-mobile-nav[hidden]{display:none!important}
  .sharm-mobile-nav>a,.sharm-mobile-nav summary{padding:11px 0;color:#211D22;text-decoration:none;font-size:18px;font-weight:750;cursor:pointer}
  .sharm-mobile-nav details summary{list-style:none}.sharm-mobile-nav details summary::-webkit-details-marker{display:none}
  .sharm-mobile-sub{display:flex;flex-direction:column;gap:3px;margin:0 0 5px 14px;padding-left:14px;border-left:2px solid #CF73A0}
  .sharm-mobile-sub a{color:#211D22;text-decoration:none;font-size:16px;padding:7px 0}
}
@media(max-width:480px){
  .sharm-real-head{grid-template-columns:1fr 1fr;gap:8px 14px}
  .sharm-real-logo{width:128px}.sharm-real-contact a{font-size:13px;padding:9px 10px}
}

/* SHARM v5.4 — hero photo and visual contact buttons */
.sharm-real-contact a{
  gap:8px;
}
.sharm-contact-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.sharm-call-btn .sharm-contact-icon{color:#fff}
.sharm-max-btn .sharm-contact-icon{color:#CF73A0}
.sharm-hero-image{
  position:relative;
  border-radius:36px;
  overflow:hidden;
  background:#FAEAF2;
  min-height:560px;
}
.sharm-hero-image img{
  width:100%;
  height:100%;
  min-height:560px;
  display:block;
  object-fit:cover;
  object-position:center center;
}
@media(max-width:800px){
  .sharm-real-contact a{gap:6px}
  .sharm-contact-icon svg{width:18px;height:18px}
  .sharm-hero-image{
    min-height:420px;
    margin-top:8px;
  }
  .sharm-hero-image img{
    min-height:420px;
    object-position:center center;
  }
}

/* SHARM v5.5 — payment illustrations and Yandex map */
.sharm-payment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px}
.sharm-payment-card{background:#fff;border:1px solid #eee3e9;border-radius:26px;padding:14px 16px 20px;overflow:hidden}
.sharm-payment-art{width:100%;aspect-ratio:1.2/.82;border-radius:20px;overflow:hidden;background:#fff9fc;margin-bottom:14px}
.sharm-payment-art img{width:100%;height:100%;object-fit:cover;display:block}
.sharm-payment-card h3{margin:0 0 6px;font-size:20px}.sharm-payment-card p{margin:0;color:#777078;font-size:15px;line-height:1.45}
.sharm-address-section{display:grid;grid-template-columns:.82fr 1.18fr;gap:22px;margin-top:48px;align-items:stretch}
.sharm-address-card{margin-top:22px;background:#fff;border:1px solid #eee3e9;border-radius:26px;padding:25px}
.sharm-address-card h3{font-size:25px;margin:0 0 8px}.sharm-address-card p{margin:5px 0;color:#5f5960;font-size:17px}
.sharm-map-wrap iframe{width:100%;min-height:420px;display:block;border:0;border-radius:28px;box-shadow:0 12px 35px rgba(33,29,34,.08)}
@media(max-width:1000px){.sharm-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sharm-address-section{grid-template-columns:1fr}}
@media(max-width:560px){.sharm-payment-grid{grid-template-columns:1fr 1fr;gap:12px}.sharm-payment-card{padding:10px 10px 16px;border-radius:20px}.sharm-payment-art{border-radius:16px;margin-bottom:10px}.sharm-payment-card h3{font-size:17px}.sharm-payment-card p{font-size:13px}.sharm-map-wrap iframe{min-height:320px}}

/* SHARM v5.6 — image-only payment illustrations */
.sharm-payment-art img{
  object-fit:contain !important;
  background:#fff9fc;
}

/* SHARM v5.7 — visual contact buttons */
.sharm-call-btn,.sharm-max-btn{gap:8px;}
.sharm-call-btn .sharm-contact-icon,.sharm-max-btn .sharm-contact-icon{width:22px;height:22px;flex:0 0 22px;background-size:contain;background-position:center;background-repeat:no-repeat;display:inline-block;}
.sharm-call-btn .sharm-contact-icon{background-image:url('./assets/contacts/phone.svg');}
.sharm-max-btn .sharm-contact-icon{background-image:url('./assets/contacts/max.svg');}
.sharm-call-btn .sharm-contact-icon svg,.sharm-max-btn .sharm-contact-icon svg{display:none;}

/* SHARM v5.8 — definitive hero and contact-icon fix */
.sharm-real-contact .sharm-contact-icon{
  width:24px!important;height:24px!important;flex:0 0 24px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:none!important;
}
.sharm-real-contact .sharm-contact-icon img{
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;
}
.sharm-real-contact .sharm-call-btn,
.sharm-real-contact .sharm-max-btn{
  display:inline-flex!important;align-items:center!important;gap:8px!important;
}
.sharm-hero-image img{
  object-fit:cover!important;
  object-position:center center!important;
}

/* SHARM v5.9 — cart, checkout, shareable order card */
.sharm-legal-box{background:#fff;border:1px solid #eee3e9;border-radius:24px;padding:24px;line-height:1.6}
.sharm-actions button.sharm-primary{border:0;cursor:pointer;font:inherit;font-weight:800}
.sharm-card-actions .sharm-btn,.sharm-card-actions .sharm-cart-btn{min-height:42px}

/* SHARM v5.10 — modal hidden fix */
.sharm-cart-overlay[hidden],
.sharm-cart-drawer[hidden],
.sharm-checkout-modal[hidden],
.sharm-share-modal[hidden]{
  display:none !important;
}
.sharm-share-panel .sharm-cart-head button{
  position:relative;
  z-index:5;
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#fff;
  color:#211D22;
  border:1px solid #eadfe6;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

/* SHARM v5.13 — SEO category pages */
.sharm-seo-page{padding-top:48px}
.sharm-seo-meta-line{margin:22px 0 28px;padding:12px 16px;background:#FAEAF2;border-radius:14px;color:#655f65;display:inline-block}
.sharm-seo-meta-line strong{color:#A34F78}
.sharm-seo-bottom{margin-top:65px}
.sharm-seo-bottom h2{font-size:38px}
.sharm-seo-grid{margin-top:8px}

/* SHARM v5.17 — SEO copy, internal linking, commercial CTA */
.sharm-seo-copy{
  max-width:900px;
  margin:56px auto 0;
}
.sharm-seo-copy h2,
.sharm-seo-related h2{
  font-size:34px;
  margin:0 0 14px;
}
.sharm-seo-copy p{
  font-size:18px;
  line-height:1.7;
  color:#655f65;
  margin:0 0 14px;
}
.sharm-seo-related{
  margin-top:48px;
}
.sharm-related-links{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.sharm-related-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:56px;
  padding:12px 16px;
  background:#fff;
  border:1px solid #eee3e9;
  border-radius:18px;
  text-decoration:none;
  color:#211D22;
  font-weight:750;
}
.sharm-related-link span{
  color:#CF73A0;
  font-size:20px;
}
.sharm-seo-cta{
  margin-top:48px;
  padding:36px 28px;
  border-radius:30px;
  background:#FAEAF2;
}
.sharm-seo-cta h2{
  margin:0 0 6px;
  font-size:34px;
}
.sharm-seo-cta p{
  margin:0;
  color:#655f65;
  font-size:17px;
}
.sharm-seo-cta .sharm-contact-actions{
  margin-top:20px;
}
@media(max-width:900px){
  .sharm-related-links{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .sharm-seo-copy{margin-top:40px}
  .sharm-seo-copy h2,.sharm-seo-related h2,.sharm-seo-cta h2{font-size:27px}
  .sharm-seo-copy p{font-size:16px}
  .sharm-related-links{grid-template-columns:1fr}
}

/* SHARM v5.18 — product SEO content and related products */
.sharm-breadcrumbs{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:26px;
  color:#777078;
  font-size:14px;
}
.sharm-breadcrumbs a{
  color:#655f65;
  text-decoration:none;
}
.sharm-breadcrumbs span:last-child{
  color:#211D22;
  font-weight:600;
}
.sharm-product-seo{
  max-width:900px;
  margin:56px 0 0;
}
.sharm-product-seo h2,
.sharm-product-categories h2{
  font-size:36px;
  margin:0 0 14px;
}
.sharm-product-seo p{
  font-size:18px;
  line-height:1.7;
  color:#655f65;
  margin:0 0 14px;
}
.sharm-product-facts{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:22px;
}
.sharm-product-facts div{
  background:#FAEAF2;
  border-radius:18px;
  padding:15px;
  color:#3d363c;
  font-weight:650;
  line-height:1.4;
}
.sharm-product-categories{
  margin-top:48px;
}
.sharm-product-related{
  margin-top:55px;
}
@media(max-width:760px){
  .sharm-product-seo{margin-top:40px}
  .sharm-product-seo h2,.sharm-product-categories h2{font-size:28px}
  .sharm-product-seo p{font-size:16px}
  .sharm-product-facts{grid-template-columns:1fr}
  .sharm-product-related{margin-top:40px}
}

/* SHARM v5.19 — product-specific SEO text */
.sharm-product-seo strong{
  color:#211D22;
}

/* SHARM v5.20 — compact product category block */
.sharm-product-categories{
  margin-top:34px;
}
.sharm-product-categories h2{
  font-size:26px !important;
  margin:0 0 12px !important;
}
.sharm-product-category-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.sharm-product-category-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 14px;
  background:#FAEAF2;
  border:1px solid #ead6e1;
  border-radius:14px;
  color:#211D22;
  text-decoration:none;
  font-weight:750;
}
.sharm-product-category-pill span{
  color:#CF73A0;
  font-size:18px;
  line-height:1;
}
@media(max-width:560px){
  .sharm-product-categories{margin-top:28px}
  .sharm-product-categories h2{font-size:23px !important}
  .sharm-product-category-pill{
    min-height:40px;
    padding:8px 12px;
    font-size:14px;
  }
}

/* SHARM v5.21 — migrated SEO content from legacy homepage */
.sharm-home-seo{
  padding:20px 20px 65px;
  max-width:900px;
}
.sharm-home-seo h2{
  font-size:clamp(34px,4vw,52px);
  margin:18px 0 14px;
}
.sharm-home-seo p{
  color:#655f65;
  font-size:18px;
  line-height:1.7;
  margin:0 0 14px;
}
.sharm-faq{
  padding:30px 20px 70px;
}
.sharm-faq h2{
  font-size:clamp(34px,4vw,52px);
  margin:18px 0 24px;
}
.sharm-faq-item{
  background:#fff;
  border:1px solid #eee3e9;
  border-radius:18px;
  margin-bottom:10px;
  overflow:hidden;
}
.sharm-faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:18px 20px;
  font-size:17px;
  font-weight:800;
  color:#211D22;
}
.sharm-faq-item summary::-webkit-details-marker{display:none}
.sharm-faq-item summary:after{
  content:"+";
  float:right;
  color:#CF73A0;
  font-size:24px;
  line-height:1;
}
.sharm-faq-item[open] summary:after{content:"−"}
.sharm-faq-answer{
  padding:0 20px 20px;
  color:#655f65;
  font-size:16px;
  line-height:1.65;
}
@media(max-width:560px){
  .sharm-home-seo{padding:10px 14px 45px}
  .sharm-home-seo h2,.sharm-faq h2{font-size:29px}
  .sharm-home-seo p{font-size:16px}
  .sharm-faq{padding:20px 14px 50px}
  .sharm-faq-item summary{padding:15px}
  .sharm-faq-answer{padding:0 15px 16px}
}
