/* =========================================================
   ARTSSHOP FRONT CLEAN
   Один чистый файл: шапка, родной MetaSlider, плитки, футер.
   ========================================================= */

html,
body {
  overflow-x: hidden !important;
}

.site-header {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  border: 0 !important;
  position: relative !important;
  z-index: 999 !important;
}

.site-header > .col-full {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.art-header {
  width: 100% !important;
  background: #fff !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.06) !important;
}

.art-header__inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px 18px 12px !important;
  display: grid !important;
  grid-template-columns: 170px minmax(0,1fr) 270px 70px !important;
  grid-template-rows: auto auto !important;
  gap: 12px 16px !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.art-header__logo {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.art-header__logo img,
.art-header__logo .custom-logo {
  width: 138px !important;
  max-width: 138px !important;
  height: auto !important;
  display: block !important;
}

.art-header-letter-wave {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(212,137,49,.55) !important;
  background: linear-gradient(135deg, #102f32 0%, #174d51 48%, #2b2118 100%) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.16), 0 0 20px rgba(212,137,49,.22), inset 0 1px 0 rgba(255,255,255,.18) !important;
  overflow: hidden !important;
}

.art-header-letter-wave__letter,
.art-header-letter-wave__space,
.art-header-letter-wave__star {
  display: inline-block !important;
  color: #fff4d8 !important;
  -webkit-text-fill-color: #fff4d8 !important;
  font-size: clamp(12px, 1.05vw, 16px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  white-space: pre !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 0 7px rgba(255,210,90,.18) !important;
  animation: artshopLetterGold 5.8s ease-in-out infinite !important;
  animation-delay: calc(var(--i) * .075s) !important;
}

.art-header-letter-wave__space {
  width: .55em !important;
  animation: none !important;
}

.art-header-letter-wave__star {
  margin: 0 12px !important;
  color: #ffd000 !important;
  -webkit-text-fill-color: #ffd000 !important;
}

@keyframes artshopLetterGold {
  0%, 100% {
    color: #fff4d8;
    -webkit-text-fill-color: #fff4d8;
  }
  45%, 55% {
    color: #ffd000;
    -webkit-text-fill-color: #ffd000;
    text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 0 10px rgba(255,208,0,.95), 0 0 20px rgba(255,176,0,.78);
  }
}

.art-header__contacts {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 3px !important;
  text-align: right !important;
}

.art-header__phone {
  color: #111 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
}

.art-header__wa {
  color: #118b42 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

.art-header__time {
  color: #555 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.art-header__cart {
  grid-column: 4 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.art-header__cart-link {
  width: 58px !important;
  height: 58px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 18px !important;
  background: #f4f4f4 !important;
  color: #111 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.08) !important;
}

.art-header__cart-count {
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #e00000 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.art-header__nav {
  grid-column: 2 / 5 !important;
  grid-row: 2 !important;
  display: block !important;
  width: 100% !important;
}

.art-header__menu {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 10px !important;
  list-style: none !important;
}

.art-header__menu li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.art-header__menu a {
  min-height: 46px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff 0%, #f7f2eb 100%) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  color: #171717 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* ===== РОДНОЙ METASLIDER ===== */

body.home #content,
body.home .site-content,
body.home .site-content > .col-full,
body.post-type-archive-product #content,
body.post-type-archive-product .site-content,
body.post-type-archive-product .site-content > .col-full,
body.post-type-archive-product #primary,
body.post-type-archive-product .content-area,
body.post-type-archive-product #main,
body.post-type-archive-product .site-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

body.home .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.home .woocommerce-products-header__title,
body.post-type-archive-product .woocommerce-products-header__title {
  display: none !important;
}

body.home .woocommerce-products-header .page-description,
body.post-type-archive-product .woocommerce-products-header .page-description {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.home #metaslider-id-328,
body.home #metaslider_container_328,
body.home #metaslider_328,
body.home #metaslider_328.flexslider,
body.post-type-archive-product #metaslider-id-328,
body.post-type-archive-product #metaslider_container_328,
body.post-type-archive-product #metaslider_328,
body.post-type-archive-product #metaslider_328.flexslider {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 230px !important;
  height: auto !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.home #metaslider_328 .flex-viewport,
body.post-type-archive-product #metaslider_328 .flex-viewport {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 230px !important;
  overflow: hidden !important;
}

body.home #metaslider_328 ul.slides,
body.post-type-archive-product #metaslider_328 ul.slides {
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home #metaslider_328 img,
body.post-type-archive-product #metaslider_328 img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 230px !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* ===== ПЛИТКИ КАТЕГОРИЙ ===== */

body.home ul.products:has(> li.product-category),
body.post-type-archive-product ul.products:has(> li.product-category) {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 8px !important;
  margin-bottom: 26px !important;
  padding: 6px 6px 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  gap: 6px !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  list-style: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.home ul.products:has(> li.product-category)::before,
body.home ul.products:has(> li.product-category)::after,
body.post-type-archive-product ul.products:has(> li.product-category)::before,
body.post-type-archive-product ul.products:has(> li.product-category)::after {
  content: none !important;
  display: none !important;
}

body.home ul.products li.product-category,
body.post-type-archive-product ul.products li.product-category,
body.home ul.products.columns-2 li.product-category,
body.home ul.products.columns-3 li.product-category,
body.home ul.products.columns-4 li.product-category,
body.home ul.products.columns-5 li.product-category,
body.home ul.products.columns-6 li.product-category {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.home ul.products li.product-category > a,
body.post-type-archive-product ul.products li.product-category > a {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,0.9) !important;
  box-sizing: border-box !important;
}

body.home ul.products li.product-category img,
body.post-type-archive-product ul.products li.product-category img {
  width: 100% !important;
  height: clamp(120px, 10vw, 170px) !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 18px 18px 0 0 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

body.home ul.products li.product-category .woocommerce-loop-category__title,
body.home ul.products li.product-category h2,
body.post-type-archive-product ul.products li.product-category .woocommerce-loop-category__title,
body.post-type-archive-product ul.products li.product-category h2 {
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 5px 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f1ea 100%) !important;
  color: #111111 !important;
  font-size: clamp(9px, 0.72vw, 13px) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0.01em !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}

body.home ul.products li.product-category mark.count,
body.home ul.products li.product-category .count,
body.post-type-archive-product ul.products li.product-category mark.count,
body.post-type-archive-product ul.products li.product-category .count {
  display: none !important;
}

body.home li.product-category .category-tooltip {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 10px) !important;
  width: min(310px, calc(100vw - 40px)) !important;
  padding: 14px 16px !important;
  transform: translateX(-50%) translateY(10px) !important;
  background: rgba(17,17,17,0.96) !important;
  color: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 38px rgba(0,0,0,0.24) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease !important;
}

body.home li.product-category:hover .category-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* ===== ФУТЕР ===== */

#colophon.site-footer,
footer.site-footer {
  margin-top: 32px !important;
  padding: 0 !important;
  background: radial-gradient(circle at 12% 0%, rgba(212,137,49,.20), transparent 34%), linear-gradient(135deg, #102f32 0%, #174d51 48%, #151716 100%) !important;
  color: #fff4d8 !important;
  overflow: hidden !important;
}

.art-footer {
  width: 100% !important;
  padding: 0 !important;
}

.art-footer__inner {
  width: min(1240px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  padding: 24px 0 18px !important;
  display: grid !important;
  grid-template-columns: 1.1fr .8fr 1fr !important;
  gap: 28px !important;
  align-items: center !important;
}

.art-footer__brand {
  display: grid !important;
  grid-template-columns: 130px minmax(0,1fr) !important;
  gap: 18px !important;
  align-items: center !important;
}

.art-footer__logo img,
.art-footer__logo .custom-logo {
  width: 110px !important;
  max-width: 110px !important;
  height: auto !important;
  max-height: 110px !important;
  object-fit: contain !important;
}

.art-footer__badge {
  min-height: 42px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  border: 1px solid rgba(255,255,255,.28) !important;
}

.art-footer__badge--mir {
  background: linear-gradient(90deg, #00a650 0 33%, #0099d8 33% 66%, #f58220 66% 100%) !important;
}

.art-footer__badge--yookassa {
  background: linear-gradient(135deg, #7b3ff2 0%, #8f4cff 48%, #111 100%) !important;
}

.site-footer .storefront-handheld-footer-bar {
  display: none !important;
}

@media (max-width: 768px) {
  .art-header__inner {
    padding: 10px 8px !important;
    grid-template-columns: 82px minmax(0,1fr) 56px !important;
    grid-template-rows: auto auto auto !important;
    gap: 8px !important;
  }

  .art-header__logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .art-header__logo img,
  .art-header__logo .custom-logo {
    width: 74px !important;
    max-width: 74px !important;
  }

  .art-header-letter-wave {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 36px !important;
    padding: 0 8px !important;
  }

  .art-header-letter-wave__letter,
  .art-header-letter-wave__space,
  .art-header-letter-wave__star {
    font-size: 9px !important;
    letter-spacing: .01em !important;
  }

  .art-header__contacts {
    grid-column: 1 / 4 !important;
    grid-row: 2 !important;
    align-items: center !important;
    text-align: center !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .art-header__cart {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  .art-header__nav {
    grid-column: 1 / 4 !important;
    grid-row: 3 !important;
  }

  .art-header__menu {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 7px !important;
  }

  .art-header__menu a {
    min-height: 38px !important;
    font-size: 11px !important;
    padding: 0 8px !important;
  }

  body.home ul.products:has(> li.product-category),
  body.post-type-archive-product ul.products:has(> li.product-category) {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 7px !important;
    padding: 5px 5px 0 !important;
  }

  body.home ul.products li.product-category img,
  body.post-type-archive-product ul.products li.product-category img {
    height: 112px !important;
    padding: 0 !important;
  }

  body.home ul.products li.product-category .woocommerce-loop-category__title,
  body.home ul.products li.product-category h2,
  body.post-type-archive-product ul.products li.product-category .woocommerce-loop-category__title,
  body.post-type-archive-product ul.products li.product-category h2 {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 10px !important;
  }

  body.home li.product-category .category-tooltip {
    display: none !important;
  }

  .art-footer__inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .art-footer__brand {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }

  .art-footer__badges,
  .art-footer__bottom {
    justify-content: center !important;
  }
}


/* =========================================================
   ARTSSHOP — ЛОГОТИПЫ И УБРАТЬ ПРЯМОУГОЛЬНИКИ ПРИ НАВЕДЕНИИ
   ========================================================= */

/* Убираем чёрные прямоугольники-подсказки над плитками */
body.home li.product-category .category-tooltip,
body.post-type-archive-product li.product-category .category-tooltip,
li.product-category .category-tooltip {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Убираем прямоугольные outline/рамки при наведении и клике */
body.home ul.products li.product-category a:hover,
body.home ul.products li.product-category a:focus,
body.home ul.products li.product-category a:active,
body.post-type-archive-product ul.products li.product-category a:hover,
body.post-type-archive-product ul.products li.product-category a:focus,
body.post-type-archive-product ul.products li.product-category a:active,
.art-header__logo-link:hover,
.art-header__logo-link:focus,
.art-header__logo-link:active,
.art-footer__logo a:hover,
.art-footer__logo a:focus,
.art-footer__logo a:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Шапка: логотип реагирует свечением */
.art-header__logo,
.art-header__logo-link,
.art-header__logo img,
.art-header__logo .custom-logo {
  transition:
    filter 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease !important;
}

.art-header__logo:hover img,
.art-header__logo-link:hover img,
.art-header__logo:hover .custom-logo,
.art-header__logo-link:hover .custom-logo {
  transform: scale(1.035) !important;
  filter:
    drop-shadow(0 0 8px rgba(255, 210, 90, 0.75))
    drop-shadow(0 0 18px rgba(212, 137, 49, 0.55))
    drop-shadow(0 0 30px rgba(23, 77, 81, 0.28)) !important;
}

/* Футер: логотип такого же размера как в шапке и слева */
.art-footer__inner {
  align-items: center !important;
}

.art-footer__brand {
  justify-self: start !important;
  align-self: center !important;

  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;

  text-align: left !important;
}

.art-footer__logo {
  width: 150px !important;
  max-width: 150px !important;
  min-width: 150px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.art-footer__logo a,
.art-footer__logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  width: 138px !important;
  max-width: 138px !important;

  transition:
    filter 0.28s ease,
    transform 0.28s ease !important;
}

.art-footer__logo img,
.art-footer__logo .custom-logo,
.art-footer img.custom-logo {
  width: 138px !important;
  max-width: 138px !important;
  height: auto !important;
  max-height: 138px !important;

  display: block !important;
  object-fit: contain !important;

  transition:
    filter 0.28s ease,
    transform 0.28s ease !important;
}

/* Футер: такое же свечение логотипа */
.art-footer__logo:hover img,
.art-footer__logo a:hover img,
.art-footer__logo:hover .custom-logo,
.art-footer__logo a:hover .custom-logo {
  transform: scale(1.035) !important;
  filter:
    drop-shadow(0 0 8px rgba(255, 210, 90, 0.75))
    drop-shadow(0 0 18px rgba(212, 137, 49, 0.55))
    drop-shadow(0 0 30px rgba(23, 77, 81, 0.28)) !important;
}

/* Текст возле нижнего логотипа тоже слева */
.art-footer__text {
  text-align: left !important;
}

/* На мобильном оставляем красиво по центру, чтобы не ломало */
@media (max-width: 768px) {
  .art-footer__brand {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .art-footer__logo,
  .art-footer__logo a,
  .art-footer__logo .custom-logo-link {
    justify-content: center !important;
  }

  .art-footer__text {
    text-align: center !important;
  }
}
