/* Звезда Марокко — UniShop2 3.6.7.0. Load after the theme via custom_style.
   No script, external resource, structural checkout or stock-state overrides. */
:root {
  --zm-blue: #005bff;
  --zm-blue-hover: #0046c7;
  --zm-ink: #172238;
  --zm-muted: #667085;
  --zm-page: #f5f7fa;
  --zm-line: #e7ecf3;
  --zm-radius: 16px;
}
body { background: var(--zm-page); }
header { background: #fff; border-bottom: 1px solid var(--zm-line); }
header .top-menu { background: #fff; }
header .top-menu .container { height: 32px; }
header .header-block { align-items: center; padding-top: 18px; padding-bottom: 18px; }
header.fixed .header-block { padding-top: 12px; padding-bottom: 12px; }
.header-logo__img { width: 230px; height: auto; max-width: 100%; }
.header-block__item-logo { flex: 0 0 230px; }
.header-block__item-search { min-width: 0; padding-left: 8px; padding-right: 16px; }
/* Keep the main shopping row focused on search; contact details remain in the footer. */
header .header-block__item-telephone { display: none; }
header .top-menu__currency, header .top-menu__language { display: none; }
.header-search__form {
  min-height: 48px;
  border: 2px solid var(--zm-blue);
  border-radius: 12px;
  background: #fff;
}
.header-search__input.form-control {
  height: 44px;
  min-width: 0;
  padding: 0 100px 0 15px;
  font-size: 15px;
  color: var(--zm-ink);
  background: #fff;
  border-radius: 10px;
}
.header-search__input::placeholder { color: #79869b; opacity: 1; }
.header-search__btn {
  right: 0;
  width: 64px;
  height: 44px;
  color: #fff;
  background: var(--zm-blue);
  border-radius: 0 9px 9px 0;
}
.header-search__btn:hover { color: #fff; background: var(--zm-blue-hover); border-radius: 0 9px 9px 0; }
.header-search .search-btn-clear { top: 12px; right: 72px; }
.header-search__category-btn {
  height: 44px;
  padding: 0 12px;
  color: var(--zm-blue);
  background: #eef4ff;
  border-radius: 10px 0 0 10px;
}
.header-search__form:focus-within { box-shadow: 0 0 0 3px rgba(0,91,255,.13); }
.header-menu__btn { height: 48px; padding: 0 19px; border-radius: 12px; font-size: 15px; }
.header-block__item-caption { color: var(--zm-muted); }
.live-search { border-radius: 14px; box-shadow: 0 12px 32px rgba(23,34,56,.13); }
.menu__level-1-a, .menu__level-2-a { transition: color .15s ease, background-color .15s ease; }

/* Keep UniShop's responsive column and carousel calculations intact. */
.grid-view .product-thumb.uni-item, .uni-module .product-thumb.uni-item {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--zm-radius);
  box-shadow: 0 2px 7px rgba(23,34,56,.035);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.grid-view .product-thumb__image, .uni-module .product-thumb__image {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-radius: 12px;
  background: #fff;
}
.grid-view .product-thumb__image > a, .uni-module .product-thumb__image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.12;
}
.grid-view .product-thumb__image > a > img, .uni-module .product-thumb__image > a > img {
  width: 100%;
  height: 100%;
  max-height: 290px;
  object-fit: contain;
  border-radius: 10px;
}
.grid-view .product-thumb__name, .uni-module .product-thumb__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--zm-ink);
}
.grid-view .product-thumb__price, .uni-module .product-thumb__price {
  line-height: 1.25;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.45px;
}
.grid-view .product-thumb__price .price-old, .uni-module .product-thumb__price .price-old {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.grid-view .product-thumb__rating, .uni-module .product-thumb__rating {
  margin-bottom: 10px;
  font-size: 12px;
}
.product-thumb__model { display: none; }
/* UniShop emits five outline stars and no review text for an unrated product. */
.product-thumb__rating:has(> .far.fa-star:nth-child(5)):not(:has(> .fas.fa-star, > .product-thumb__rating-text)) { display: none; }
.grid-view .product-thumb__cart, .uni-module .product-thumb__cart { margin-top: 12px; }
.grid-view .product-thumb__add-to-cart, .uni-module .product-thumb__add-to-cart {
  min-height: 42px;
  flex: 1 1 auto;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.product-thumb__cart-btns button { min-width: 34px; min-height: 34px; border-radius: 50%; }
.sorts-block__wrapper { padding: 12px; background: #fff; border-radius: 12px; }
.category-list__item { background: #fff; border-radius: 14px; }
.breadcrumb-h1 { padding-top: 18px; }
.footer { margin-top: 32px; padding-top: 32px; background: #fff; border-top: 1px solid var(--zm-line); }
.footer__text { line-height: 1.65; }

/* Original home introduction. Optional real product image fits .zm-hero__product. */
.zm-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(230px,.75fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  margin: 20px 0 24px;
  padding: clamp(24px,4vw,56px);
  border-radius: 24px;
  color: var(--zm-ink);
  background: linear-gradient(112deg,#eaf2ff 0%,#f5f8ff 57%,#e9eefb 100%);
}
.zm-hero__copy { position: relative; z-index: 1; max-width: 650px; }
.zm-hero__eyebrow { margin: 0 0 16px; color: #445d83; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; }
.zm-hero__title { margin: 0 0 16px; color: var(--zm-ink); font-size: clamp(28px,3.1vw,47px); line-height: 1.12; letter-spacing: -1.2px; }
.zm-hero__text { max-width: 480px; margin: 0 0 24px; color: #53647c; font-size: 16px; line-height: 1.65; }
.zm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.zm-hero__button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; color: #fff !important; background: var(--zm-blue); border-radius: 12px; font-size: 14px; font-weight: 600; }
.zm-hero__button:hover { background: var(--zm-blue-hover); }
.zm-hero__help { padding: 10px 4px; font-size: 14px; font-weight: 500; }
.zm-hero__art { position: relative; display: grid; place-items: center; min-height: 240px; }
.zm-hero__star { width: min(100%,260px); height: auto; opacity: .92; }
.zm-hero__product { margin: 0; }
.zm-hero__product img { display: block; width: 100%; max-height: 290px; object-fit: contain; mix-blend-mode: multiply; }
.zm-hero__product figcaption { padding-top: 8px; text-align: center; font-size: 12px; }
.zm-intro { margin: 0 0 26px; color: var(--zm-muted); font-size: 14px; line-height: 1.65; }

/* The theme adds a grey padded panel around HTML modules; remove it only for this hero. */
.home-page .html-module:has(> .zm-hero) { margin: 0 0 24px; padding: 0; background: transparent; border-radius: 0; }
.home-page .html-module:has(> .zm-brands) { min-width: 0; margin: 16px 0 0; padding: 0; background: transparent; border-radius: 0; }
.zm-brands {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 1px 8px;
  scrollbar-width: thin;
  scrollbar-color: #c8d6ed transparent;
  -webkit-overflow-scrolling: touch;
}
.zm-brands > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  white-space: nowrap;
  color: var(--zm-ink);
  background: #fff;
  border: 1px solid var(--zm-line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.zm-brands > a:hover { color: var(--zm-blue); border-color: #bbd1ff; background: #eef4ff; }
.zm-brands > a:focus-visible { outline-offset: -3px; }
.home-page .html-module .zm-hero {
  grid-template-columns: minmax(0,1.7fr) minmax(170px,.7fr);
  min-height: 260px;
  margin: 20px 0 0;
  padding: 28px 36px;
}
.home-page .html-module .zm-hero__eyebrow { margin-bottom: 10px; line-height: 1.4; }
.home-page .html-module .zm-hero__title { margin: 0 0 12px; font-size: clamp(27px,2.6vw,36px); line-height: 1.12; letter-spacing: -.9px; }
.home-page .html-module .zm-hero__text { max-width: 600px; margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.home-page .html-module .zm-hero__art { min-height: 180px; }
.home-page .html-module .zm-hero__star { width: min(100%,190px); }
.home-page .html-module .zm-hero__button { min-height: 42px; }
.home-page .html-module .zm-intro { display: none; }

/* The base theme removes outlines; restore a visible keyboard focus indicator. */
body :is(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 3px solid #005bff !important;
  outline-offset: 3px;
}
@media (hover:hover) and (pointer:fine) {
  .grid-view .product-thumb.uni-item:hover, .uni-module .product-thumb.uni-item:hover {
    border-color: #dbe5f6;
    box-shadow: 0 8px 22px rgba(23,34,56,.09);
  }
}
@media (min-width:992px) {
  .header-block__item-menu { padding-left: 14px; padding-right: 8px; }
  .header-block__item-account, .header-block__item-wishlist, .header-block__item-cart { padding-left: 12px; padding-right: 12px; }
  .header-block__item-telephone { padding-left: 10px; padding-right: 12px; }
  .header-phones__main { font-size: 14px; white-space: nowrap; }
}
@media (min-width:992px) and (max-width:1199px) {
  .header-block__item-logo { flex-basis: 180px; }
  .header-logo__img { width: 180px; }
  .header-menu__btn { padding: 0 12px; }
  .header-block__item-telephone { padding-left: 6px; padding-right: 6px; }
}
@media (max-width:991px) {
  .fly-menu .fly-menu__compare { display: none !important; }
  header .header-block { padding-top: 14px; padding-bottom: 14px; }
  .header-block__item-logo { flex: 1 1 auto; min-width: 0; }
  .header-logo__img { width: 205px; margin-left: 0; }
  #search2 { margin-bottom: 14px; }
  .zm-hero { grid-template-columns: minmax(0,1.5fr) minmax(130px,.5fr); padding: 26px; }
  .zm-hero__art { min-height: 180px; }
  .home-page .html-module .zm-hero { grid-template-columns: minmax(0,1.7fr) minmax(130px,.5fr); padding: 24px; }
}
@media (max-width:575px) {
  .header-menu__btn { position: relative; display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 48px; padding: 0; }
  .header-menu__btn .header-menu__icon { margin: 0; }
  /* Keep the accessible button name while using only its icon visually. */
  .header-menu__btn > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  body { background: var(--zm-page); }
  .header-logo__img { width: 172px; }
  .header-block__item-account, .header-block__item-wishlist, .header-block__item-cart { padding-left: 8px; padding-right: 8px; }
  .header-block__item-telephone { padding-left: 6px; padding-right: 6px; }
  .header-phones__main { font-size: 11px; }
  .header-search__input.form-control { font-size: 16px; }
  .header-search__category-btn { padding-left: 10px; padding-right: 10px; }
  .grid-view .product-thumb.uni-item, .uni-module .product-thumb.uni-item { padding: 9px; border-radius: 14px; }
  .grid-view .product-thumb__name, .uni-module .product-thumb__name { font-size: 13px; }
  .grid-view .product-thumb__price, .uni-module .product-thumb__price { font-size: 20px; }
  .grid-view .product-thumb__add-to-cart, .uni-module .product-thumb__add-to-cart { font-size: 12px; }
  .zm-hero { grid-template-columns: 1fr; margin-top: 14px; padding: 25px 22px; border-radius: 18px; }
  .zm-hero__title { max-width: 320px; font-size: 31px; letter-spacing: -.7px; }
  .zm-hero__text { font-size: 14px; }
  .zm-hero__art { display: none; }
  .zm-hero__eyebrow { font-size: 10px; letter-spacing: .8px; }
  .home-page .html-module .zm-hero { grid-template-columns: 1fr; min-height: 0; margin-top: 14px; padding: 23px 22px; }
  .home-page .html-module .zm-hero__title { max-width: 100%; font-size: 28px; }
  .home-page .html-module .zm-hero__text { font-size: 14px; }
  .zm-brands { gap: 8px; }
  .zm-brands > a { min-height: 36px; padding: 0 14px; font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  .grid-view .product-thumb.uni-item, .uni-module .product-thumb.uni-item,
  .menu__level-1-a, .menu__level-2-a { transition: none; }
}

/* UniShop uses a separate catalogue trigger next to mobile search. */
@media(max-width:575px){
  .main-menu > .menu-open { width:44px; min-width:44px; height:44px; padding:0; margin-right:10px; border-radius:12px; }
  .main-menu > .menu-open .menu-open__title { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .main-menu > .menu-open .menu-open__icon { margin:0; }
}
