/* =========================================================
   ARTSSHOP — ЧИСТЫЙ ФИНАЛЬНЫЙ CSS
   Плитки, слайдер, фильтр, футер, капча, бегущая строка, лейблы.
   ========================================================= */


/* =========================================================
   БАЗА
   ========================================================= */

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

body {
  background: #ffffff !important;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent !important;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
}


/* =========================================================
   БЕГУЩАЯ СТРОКА ПОД МЕНЮ
   Цвета и скорость приходят из админки через CSS-переменные
   ========================================================= */

.artsshop-ticker {
  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: 0 !important;
  margin-bottom: 14px !important;

  overflow: hidden !important;

  background:
    linear-gradient(
      135deg,
      var(--artsshop-ticker-bg, #174d51) 0%,
      #102f32 100%
    ) !important;

  border-top: 1px solid rgba(255,255,255,0.18) !important;
  border-bottom: 1px solid rgba(0,0,0,0.20) !important;

  box-shadow:
    0 10px 26px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;

  z-index: 20 !important;
}

.artsshop-ticker::before,
.artsshop-ticker::after {
  content: "" !important;

  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;

  width: 80px !important;
  z-index: 2 !important;

  pointer-events: none !important;
}

.artsshop-ticker::before {
  left: 0 !important;
  background: linear-gradient(90deg, rgba(0,0,0,0.28), transparent) !important;
}

.artsshop-ticker::after {
  right: 0 !important;
  background: linear-gradient(270deg, rgba(0,0,0,0.28), transparent) !important;
}

.artsshop-ticker__track {
  display: flex !important;
  align-items: center !important;

  width: max-content !important;
  padding: 10px 0 !important;

  animation: artsshopTickerMove var(--artsshop-ticker-speed, 22s) linear infinite !important;
  will-change: transform !important;
}

.artsshop-ticker__track span {
  display: inline-flex !important;
  align-items: center !important;

  padding: 0 44px !important;

  color: var(--artsshop-ticker-color, #ffffff) !important;

  font-size: clamp(13px, 1.05vw, 18px) !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;

  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.32),
    0 0 14px rgba(255,255,255,0.30) !important;
}

.artsshop-ticker__track span::before,
.artsshop-ticker__track span::after {
  content: "✦" !important;
  margin: 0 18px !important;
  opacity: 0.9 !important;
}

.artsshop-ticker:hover .artsshop-ticker__track {
  animation-play-state: paused !important;
}

@keyframes artsshopTickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* =========================================================
   ГЛАВНАЯ, СЛАЙДЕР, КАТЕГОРИИ
   ========================================================= */

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

body.home .artshop-filters {
  display: none !important;
}

/* Контент на всю ширину для главной/каталога */
body.home #content > .col-full,
body.post-type-archive-product #content > .col-full {
  width: 100% !important;
  max-width: none !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

/* Категории: видимые плитки сами растягиваются */
body.home ul.products:has(li.product-category),
body.post-type-archive-product ul.products:has(li.product-category) {
  width: 100% !important;
  max-width: none !important;

  margin: 18px auto 34px !important;
  padding: 0 4px !important;

  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 10px !important;

  align-items: stretch !important;
  justify-content: stretch !important;

  list-style: none !important;
}

body.home ul.products li.product-category,
body.post-type-archive-product ul.products 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: hidden !important;

  border-radius: 22px !important;
  background: #ffffff !important;

  box-shadow:
    0 12px 28px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.85) !important;

  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease !important;
}

body.home ul.products li.product-category.first,
body.home ul.products li.product-category.last,
body.post-type-archive-product ul.products li.product-category.first,
body.post-type-archive-product ul.products li.product-category.last {
  clear: none !important;
  margin: 0 !important;
}

body.home ul.products li.product-category > a,
body.post-type-archive-product ul.products li.product-category > a {
  display: flex !important;
  flex-direction: column !important;

  width: 100% !important;
  height: 100% !important;

  border-radius: 22px !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

body.home ul.products li.product-category img,
body.post-type-archive-product ul.products li.product-category img {
  display: block !important;

  width: 100% !important;
  height: clamp(115px, 10vw, 170px) !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover !important;
  object-position: center !important;

  border-radius: 22px 22px 0 0 !important;

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

body.home ul.products li.product-category .woocommerce-loop-category__title,
body.post-type-archive-product ul.products li.product-category .woocommerce-loop-category__title {
  min-height: 58px !important;

  margin: 0 !important;
  padding: 12px 8px !important;

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

  background: linear-gradient(180deg, #ffffff 0%, #f6f1ea 100%) !important;

  color: #171717 !important;

  font-size: clamp(11px, 0.85vw, 15px) !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

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

body.home ul.products li.product-category:hover,
body.post-type-archive-product ul.products li.product-category:hover {
  transform: translateY(-6px) scale(1.012) !important;

  box-shadow:
    0 18px 42px rgba(0,0,0,0.18),
    0 0 22px rgba(212,137,49,0.20),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;

  z-index: 5 !important;
}

body.home ul.products li.product-category:hover img,
body.post-type-archive-product ul.products li.product-category:hover img {
  transform: scale(1.06) !important;
  filter: saturate(1.08) contrast(1.04) !important;
}

body.home ul.products li.product-category:hover .woocommerce-loop-category__title,
body.post-type-archive-product ul.products li.product-category:hover .woocommerce-loop-category__title {
  background: linear-gradient(135deg, #2b2118 0%, #111111 58%, #174d51 100%) !important;
  color: #ffffff !important;
}


/* =========================================================
   ФИЛЬТР ТОВАРОВ
   ========================================================= */

body.tax-product_cat .artshop-filters,
body.post-type-archive-product:not(.home) .artshop-filters {
  width: 100% !important;
  max-width: none !important;

  margin: 16px auto 26px !important;
  padding: 18px !important;

  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  align-items: end !important;

  border-radius: 22px !important;
  border: 1px solid rgba(212,137,49,0.22) !important;

  background:
    radial-gradient(circle at 10% 0%, rgba(212,137,49,0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fbf4ea 100%) !important;

  box-shadow:
    0 14px 32px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

.artshop-filters-title {
  grid-column: 1 / -1 !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #171717 !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

.artshop-filter-label {
  display: block !important;
  margin: 0 0 5px !important;

  color: #2b2118 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.artshop-filters select {
  width: 100% !important;
  min-height: 46px !important;

  padding: 0 12px !important;

  border: 1px solid rgba(0,0,0,0.13) !important;
  border-radius: 14px !important;

  background: #ffffff !important;
  color: #171717 !important;

  font-size: 15px !important;
  font-weight: 800 !important;

  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

.artshop-filters button,
.artshop-filter-reset {
  min-height: 46px !important;
  padding: 0 18px !important;

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

  border-radius: 999px !important;
  text-decoration: none !important;

  font-size: 14px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}

.artshop-filters button {
  border: 0 !important;
  background: linear-gradient(135deg, #174d51 0%, #102f32 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(23,77,81,0.24) !important;
}

.artshop-filter-reset {
  border: 1px solid rgba(212,137,49,0.45) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff1d8 100%) !important;
  color: #2b2118 !important;
  box-shadow: 0 10px 22px rgba(212,137,49,0.16) !important;
}

.artshop-filters button:hover,
.artshop-filter-reset:hover {
  transform: translateY(-3px) !important;
}


/* =========================================================
   ЛЕЙБЛЫ ТОВАРОВ
   ========================================================= */

ul.products li.product {
  position: relative !important;
}

.artshop-sale-badge,
.artshop-stock-badge {
  position: absolute !important;
  top: 10px !important;
  z-index: 12 !important;

  min-height: 28px !important;
  padding: 0 10px !important;

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

  border-radius: 999px !important;

  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;

  box-shadow:
    0 8px 18px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.20) !important;
}

.artshop-sale-badge {
  left: 10px !important;
  background: linear-gradient(135deg, #e00000 0%, #a40000 100%) !important;
}

.artshop-stock-badge {
  right: 10px !important;
  background: linear-gradient(135deg, #118b42 0%, #075d2a 100%) !important;
}


/* =========================================================
   КАПЧА
   ========================================================= */

.artsshop-captcha-row,
.artshop-oneclick-captcha-row {
  margin: 18px 0 16px !important;
  padding: 16px 18px !important;

  border: 1px solid rgba(212,137,49,0.22) !important;
  border-radius: 18px !important;

  background:
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,247,232,0.96) 100%) !important;

  box-shadow:
    0 10px 24px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
}

.artsshop-captcha-row label,
.artshop-oneclick-captcha-row label {
  display: block !important;
  margin: 0 0 8px !important;

  color: #171717 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.artsshop-captcha-question,
.artshop-oneclick-captcha-question {
  display: inline-flex !important;
  align-items: center !important;

  margin: 0 0 10px !important;
  padding: 8px 12px !important;

  border-radius: 999px !important;
  background: rgba(212,137,49,0.14) !important;

  color: #2b2118 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.artsshop-captcha-input,
#artshop_oneclick_captcha_answer {
  width: 100% !important;
  min-height: 46px !important;

  padding: 0 14px !important;

  border: 1px solid rgba(0,0,0,0.14) !important;
  border-radius: 14px !important;

  background: #ffffff !important;
  color: #111111 !important;

  font-size: 18px !important;
  font-weight: 900 !important;

  outline: none !important;
  box-shadow: none !important;
}

.artsshop-captcha-input:focus,
#artshop_oneclick_captcha_answer:focus {
  border-color: #d48931 !important;
  box-shadow: 0 0 0 4px rgba(212,137,49,0.14) !important;
}


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

.site-footer {
  margin-top: 36px !important;
  padding: 0 !important;

  background:
    radial-gradient(circle at 15% 0%, rgba(212,137,49,0.20), transparent 34%),
    linear-gradient(135deg, #102f32 0%, #174d51 45%, #2b2118 100%) !important;

  color: #fff4d8 !important;
}

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

.site-footer a {
  color: #ffffff !important;
}

.site-info {
  display: none !important;
}

.art-footer {
  width: 100% !important;
  padding: 32px 22px 18px !important;
  color: #fff4d8 !important;
}

.art-footer__inner {
  width: min(1240px, 100%) !important;
  margin: 0 auto !important;

  display: grid !important;
  grid-template-columns: 1.2fr 1fr 1fr !important;
  gap: 24px !important;
  align-items: start !important;
}

.art-footer__title {
  margin: 0 0 10px !important;
  color: #ffd36a !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.art-footer__brand strong {
  display: block !important;
  margin-bottom: 6px !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 950 !important;
}

.art-footer__brand span,
.art-footer__time,
.art-footer__payment-note {
  color: rgba(255,255,255,0.78) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.art-footer__phone,
.art-footer__wa {
  display: inline-flex !important;
  margin: 0 0 8px !important;
  color: #ffffff !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

.art-footer__wa {
  color: #8dffb8 !important;
}

.art-footer__badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.art-footer__badge {
  min-height: 38px !important;
  padding: 0 16px !important;

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

  border-radius: 12px !important;

  color: #111111 !important;
  font-weight: 950 !important;

  background: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18) !important;
}

.art-footer__badge--mir {
  background: linear-gradient(135deg, #ffffff 0%, #e9f7ff 100%) !important;
}

.art-footer__badge--yookassa {
  background: linear-gradient(135deg, #ffffff 0%, #efe8ff 100%) !important;
}

.art-footer__bottom {
  width: min(1240px, 100%) !important;
  margin: 24px auto 0 !important;
  padding-top: 16px !important;

  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 18px !important;
  align-items: center !important;
  justify-content: center !important;

  border-top: 1px solid rgba(255,255,255,0.16) !important;

  color: rgba(255,255,255,0.72) !important;
  font-size: 13px !important;
}

.art-footer__bottom a {
  color: rgba(255,255,255,0.86) !important;
  text-decoration: none !important;
}


/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1099px) {
  body.home ul.products:has(li.product-category),
  body.post-type-archive-product ul.products:has(li.product-category) {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 9px !important;
  }

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

@media (max-width: 768px) {
  .artsshop-ticker {
    margin-bottom: 10px !important;
  }

  .artsshop-ticker__track {
    padding: 8px 0 !important;
  }

  .artsshop-ticker__track span {
    padding: 0 28px !important;
    font-size: 12px !important;
    letter-spacing: 0.045em !important;
  }

  .artsshop-ticker::before,
  .artsshop-ticker::after {
    width: 38px !important;
  }

  body.home #content > .col-full,
  body.post-type-archive-product #content > .col-full {
    padding-left: 4px !important;
    padding-right: 4px !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: 8px !important;
    padding: 0 2px !important;
    margin-top: 14px !important;
  }

  body.home ul.products li.product-category,
  body.post-type-archive-product ul.products li.product-category,
  body.home ul.products li.product-category > a,
  body.post-type-archive-product ul.products li.product-category > a {
    border-radius: 18px !important;
  }

  body.home ul.products li.product-category img,
  body.post-type-archive-product ul.products li.product-category img {
    height: 118px !important;
    border-radius: 18px 18px 0 0 !important;
  }

  body.home ul.products li.product-category .woocommerce-loop-category__title,
  body.post-type-archive-product ul.products li.product-category .woocommerce-loop-category__title {
    min-height: 48px !important;
    padding: 9px 5px !important;
    font-size: 11px !important;
  }

  .artsshop-captcha-row,
  .artshop-oneclick-captcha-row {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .artsshop-captcha-question,
  .artshop-oneclick-captcha-question {
    font-size: 14px !important;
  }

  .artsshop-captcha-input,
  #artshop_oneclick_captcha_answer {
    min-height: 44px !important;
    font-size: 16px !important;
  }

  .art-footer {
    padding: 26px 14px 16px !important;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .artsshop-ticker__track {
    animation: none !important;
  }
}
