/*
Theme Name: Autoindustry
Theme URI: https://autoindustry.ru
Author: Autoindustry
Author URI: https://autoindustry.ru
Description: Кастомная тема интернет-магазина автосервисного оборудования «Автоиндустрия» на базе WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autoindustry
Tags: e-commerce, woocommerce, custom-menu, featured-images
*/

body {
  overflow-x: hidden;
}

.site-branding {
  width: 130px;
}
/* =========================================================
   HERO — доработка
   ========================================================= */
.hero-banner {
  padding: 90px 0;
  text-align: left;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.hero-bg-shapes .shape-1 {
  width: 400px;
  height: 400px;
  background: var(--ai-blue-500);
  top: -100px;
  left: -100px;
}
.hero-bg-shapes .shape-2 {
  width: 500px;
  height: 500px;
  background: var(--ai-accent);
  bottom: -200px;
  right: -150px;
  opacity: 0.15;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}
.hero-content h1 {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-content > p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 12px 26px;
  border-radius: var(--ai-radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--ai-transition);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}
.hero-features {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.hero-features li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-features strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--ai-accent);
  line-height: 1;
}
.hero-features span {
  font-size: 13px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Визуальная часть hero */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--ai-radius);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(20px);
  max-width: 320px;
  width: 100%;
}
.hero-visual-card svg {
  width: 90px;
  height: 90px;
  color: var(--ai-accent);
  margin-bottom: 16px;
}
.hero-visual-card p {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  opacity: 0.9;
}

/* =========================================================
   ADVANTAGES
   ========================================================= */
.advantages {
  padding: 60px 0;
  background: #fff;
  border-bottom: 1px solid var(--ai-gray-200);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage-card {
  padding: 26px;
  border-radius: var(--ai-radius);
  background: var(--ai-gray-50);
  border: 1px solid var(--ai-gray-200);
  transition: all var(--ai-transition);
}
.advantage-card:hover {
  background: #fff;
  border-color: var(--ai-blue-400);
  transform: translateY(-4px);
  box-shadow: var(--ai-shadow);
}
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--ai-blue-500), var(--ai-blue-700));
  color: #fff;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(37, 99, 217, 0.25);
}
.advantage-card h3 {
  font-size: 16px;
  color: var(--ai-blue-900);
  margin-bottom: 8px;
}
.advantage-card p {
  font-size: 14px;
  color: var(--ai-gray-600);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   SECTION HEADER (общий)
   ========================================================= */
.section-header {
  text-align: center;
  margin-bottom: 45px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ai-blue-900);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.section-header p {
  color: var(--ai-gray-600);
  font-size: 15px;
  margin: 0;
}
.section-header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  text-align: left;
  flex-wrap: wrap;
}
.section-header--row h2 {
  margin-bottom: 6px;
}

.link-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ai-blue-600);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.link-all:hover {
  color: var(--ai-blue-800);
  gap: 8px;
}

/* =========================================================
   CATEGORIES — доработка карточек
   ========================================================= */
.product-categories-grid {
  padding: 80px 0;
  background: #fff;
}
.categories-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ai-gray-200);
  border-radius: var(--ai-radius);
  overflow: hidden;
  transition: all var(--ai-transition);
  text-align: left;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--ai-blue-400);
  box-shadow: var(--ai-shadow);
}
.category-card-image {
  aspect-ratio: 4 / 3;
  background: var(--ai-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.category-card-image img {
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--ai-transition);
}
.category-card:hover .category-card-image img {
  transform: scale(1.06);
}
.category-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ai-gray-400);
}
.category-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.category-card-body h3 {
  font-size: 16px;
  color: var(--ai-blue-900);
  margin: 0;
  font-weight: 700;
}
.category-card-body .count {
  font-size: 13px;
  color: var(--ai-gray-600);
}
.category-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ai-blue-500);
  opacity: 0;
  transition: all var(--ai-transition);
}
.category-card:hover .category-arrow {
  opacity: 1;
  right: 14px;
}

/* =========================================================
   BRANDS
   ========================================================= */
.brands-section {
  padding: 70px 0;
  background: var(--ai-gray-50);
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background: #fff;
  border: 1px solid var(--ai-gray-200);
  border-radius: var(--ai-radius);
  font-weight: 800;
  font-size: 17px;
  color: var(--ai-gray-600);
  letter-spacing: 1px;
  transition: all var(--ai-transition);
}
.brand-item:hover {
  color: var(--ai-blue-700);
  border-color: var(--ai-blue-400);
  transform: translateY(-3px);
  box-shadow: var(--ai-shadow-sm);
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ai-blue-900), var(--ai-blue-700));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-content h2 {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cta-content > p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 26px;
  line-height: 1.7;
}
.cta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cta-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 15px;
}
.cta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: var(--ai-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a1e3f'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center/14px no-repeat;
  border-radius: 50%;
}

.cta-form-wrap {
  position: relative;
}
.cta-form {
  background: #fff;
  border-radius: var(--ai-radius);
  padding: 34px;
  box-shadow: var(--ai-shadow-lg);
  color: var(--ai-text);
}
.cta-form h3 {
  color: var(--ai-blue-900);
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.cta-form .form-group {
  margin-bottom: 12px;
}
.cta-form .form-group input,
.cta-form .form-group textarea {
  background: var(--ai-gray-50);
  border: 1px solid var(--ai-gray-200);
  padding: 14px 16px;
  border-radius: var(--ai-radius-sm);
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  transition: all var(--ai-transition);
}
.cta-form .form-group input:focus,
.cta-form .form-group textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ai-blue-400);
  box-shadow: 0 0 0 4px var(--ai-blue-100);
}
.form-note {
  font-size: 12px;
  color: var(--ai-gray-400);
  text-align: center;
  margin: 12px 0 0;
}

/* =========================================================
   NEW ARRIVALS
   ========================================================= */
.new-arrivals {
  padding: 80px 0;
  background: #fff;
}

/* =========================================================
   ABOUT + STATS
   ========================================================= */
.about-stats {
  padding: 80px 0;
  background: var(--ai-gray-50);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ai-blue-900);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.about-text p {
  color: var(--ai-gray-600);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 26px;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--ai-gray-200);
  border-radius: var(--ai-radius);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--ai-transition);
}
.stat-card:hover {
  border-color: var(--ai-blue-400);
  transform: translateY(-3px);
  box-shadow: var(--ai-shadow-sm);
}
.stat-card strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--ai-blue-600);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.stat-card span {
  font-size: 13px;
  color: var(--ai-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================
   АДАПТИВ для новых блоков
   ========================================================= */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    display: none;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 60px 0;
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .hero-content > p {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
  }
  .hero-features {
    gap: 22px;
  }
  .hero-features strong {
    font-size: 20px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .section-header h2 {
    font-size: 24px;
  }
  .section-header--row {
    flex-direction: column;
    align-items: flex-start;
  }
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-content h2 {
    font-size: 24px;
  }
  .cta-form {
    padding: 24px 20px;
  }
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card strong {
    font-size: 28px;
  }
}

/* =========================================================
   HOW WE WORK — этапы
   ========================================================= */
.how-we-work {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--ai-gray-200);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-bottom: 50px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--ai-blue-100) 0,
    var(--ai-blue-100) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 10px;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #fff;
  border: 2px solid var(--ai-blue-100);
  color: var(--ai-blue-600);
  border-radius: 50%;
  margin-bottom: 20px;
  transition: all var(--ai-transition);
}
.step:hover .step-icon {
  background: linear-gradient(135deg, var(--ai-blue-500), var(--ai-blue-700));
  border-color: var(--ai-blue-500);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(37, 99, 217, 0.3);
}
.step-num {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ai-accent);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.step h3 {
  font-size: 16px;
  color: var(--ai-blue-900);
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  color: var(--ai-gray-600);
  line-height: 1.6;
  margin: 0;
}
.steps-cta {
  text-align: center;
}

/* =========================================================
   TESTIMONIALS — карусель отзывов
   ========================================================= */
.testimonials {
  padding: 80px 0;
  background: var(--ai-gray-50);
}
.testimonials-slider {
  position: relative;
  padding: 0 60px;
}
.slider-viewport {
  overflow: hidden;
  border-radius: var(--ai-radius);
}
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.slider-track .slide {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 12px;
  box-sizing: border-box;
}

/* Карточка отзыва */
.review-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ai-gray-200);
  border-radius: var(--ai-radius);
  padding: 32px 28px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--ai-transition);
}
.review-card:hover {
  border-color: var(--ai-blue-400);
  box-shadow: var(--ai-shadow);
  transform: translateY(-4px);
}
.review-quote {
  position: absolute;
  top: 8px;
  right: 22px;
  font-size: 80px;
  line-height: 1;
  color: var(--ai-blue-100);
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}
.review-rating {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.review-rating svg {
  color: var(--ai-gray-200);
}
.review-rating svg.star-filled {
  color: var(--ai-accent);
}

.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ai-gray-800);
  margin: 0 0 22px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ai-gray-100);
}
.review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-blue-500), var(--ai-blue-700));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.review-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.review-meta strong {
  font-size: 14px;
  color: var(--ai-blue-900);
}
.review-meta span {
  font-size: 12px;
  color: var(--ai-gray-600);
}

/* Стрелки */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ai-gray-200);
  background: #fff;
  color: var(--ai-blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ai-transition);
  z-index: 5;
  box-shadow: var(--ai-shadow-sm);
}
.slider-arrow:hover {
  background: var(--ai-blue-600);
  border-color: var(--ai-blue-600);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.slider-prev {
  left: 0;
}
.slider-next {
  right: 0;
}

/* Точки */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--ai-gray-200);
  cursor: pointer;
  padding: 0;
  transition: all var(--ai-transition);
}
.slider-dots button.is-active {
  background: var(--ai-blue-600);
  width: 26px;
  border-radius: 6px;
}
.slider-dots button:hover {
  background: var(--ai-blue-400);
}

/* =========================================================
   Адаптив для этапов и отзывов
   ========================================================= */
@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }
  .steps::before {
    display: none;
  }
  .slider-track .slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .how-we-work,
  .testimonials {
    padding: 60px 0;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps-cta .btn-primary {
    width: 100%;
  }

  .testimonials-slider {
    padding: 0;
  }
  .slider-track .slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }
  .slider-arrow {
    display: none;
  }
  .review-card {
    padding: 26px 22px;
  }
  .review-quote {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PAGE HERO (общий для внутренних страниц)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--ai-blue-900), var(--ai-blue-700));
  color: #fff;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.12), transparent 70%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  margin: 16px 0 14px;
  letter-spacing: -0.5px;
}
.page-hero-subtitle {
  font-size: 17px;
  opacity: 0.9;
  max-width: 720px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.page-hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumbs a:hover {
  color: #fff;
}

/* =========================================================
   ВКЛАДКИ (tabs)
   ========================================================= */
.delivery-tabs-section {
  padding: 60px 0;
  background: #fff;
}
.ai-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--ai-gray-200);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.ai-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ai-gray-600);
  cursor: pointer;
  position: relative;
  transition: all var(--ai-transition);
  border-radius: var(--ai-radius-sm) var(--ai-radius-sm) 0 0;
}
.ai-tab-btn:hover {
  color: var(--ai-blue-700);
  background: var(--ai-blue-50);
}
.ai-tab-btn.is-active {
  color: var(--ai-blue-700);
}
.ai-tab-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ai-blue-600);
  border-radius: 3px 3px 0 0;
}
.ai-tab-panel {
  display: none;
  animation: aiFadeIn 0.35s ease;
}
.ai-tab-panel.is-active {
  display: block;
}
@keyframes aiFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   КАРТОЧКИ СПОСОБОВ (доставка/оплата)
   ========================================================= */
.delivery-methods,
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 50px;
}
.payment-methods {
  grid-template-columns: repeat(2, 1fr);
}

.method-card {
  background: #fff;
  border: 1px solid var(--ai-gray-200);
  border-radius: var(--ai-radius);
  padding: 30px 26px;
  transition: all var(--ai-transition);
}
.method-card:hover {
  transform: translateY(-5px);
  border-color: var(--ai-blue-400);
  box-shadow: var(--ai-shadow);
}
.method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 20px;
}
.method-icon--blue {
  background: linear-gradient(135deg, var(--ai-blue-500), var(--ai-blue-700));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 217, 0.25);
}
.method-icon--accent {
  background: linear-gradient(135deg, var(--ai-accent), #ff9500);
  color: var(--ai-blue-900);
  box-shadow: 0 10px 24px rgba(255, 180, 0, 0.3);
}
.method-card h3 {
  font-size: 18px;
  color: var(--ai-blue-900);
  margin-bottom: 10px;
}
.method-card > p {
  font-size: 14px;
  color: var(--ai-gray-600);
  line-height: 1.65;
  margin-bottom: 18px;
}
.method-details {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ai-gray-100);
  padding-top: 16px;
}
.method-details li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ai-gray-800);
  margin-bottom: 6px;
}
.method-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-blue-500);
}
.method-details li strong {
  color: var(--ai-blue-900);
  font-weight: 700;
}

/* =========================================================
   ТАБЛИЦА
   ========================================================= */
.delivery-table-wrap {
  background: var(--ai-gray-50);
  border-radius: var(--ai-radius);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--ai-gray-200);
}
.delivery-table-wrap h3 {
  font-size: 20px;
  color: var(--ai-blue-900);
  margin-bottom: 20px;
}
.ai-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--ai-radius-sm);
  overflow: hidden;
  box-shadow: var(--ai-shadow-sm);
}
.ai-table thead {
  background: linear-gradient(135deg, var(--ai-blue-700), var(--ai-blue-500));
}
.ai-table th {
  color: #fff;
  text-align: left;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--ai-gray-800);
  border-bottom: 1px solid var(--ai-gray-100);
}
.ai-table tbody tr:last-child td {
  border-bottom: none;
}
.ai-table tbody tr:hover {
  background: var(--ai-blue-50);
}

/* Заметка-инфо */
.delivery-note {
  display: flex;
  gap: 14px;
  background: var(--ai-blue-50);
  border-left: 4px solid var(--ai-blue-500);
  border-radius: var(--ai-radius-sm);
  padding: 18px 22px;
  align-items: flex-start;
}
.delivery-note svg {
  color: var(--ai-blue-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.delivery-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ai-gray-800);
}

/* Гарантия оплаты */
.payment-note {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, var(--ai-blue-50), #fff);
  border: 1px solid var(--ai-blue-100);
  border-radius: var(--ai-radius);
  padding: 28px 32px;
}
.payment-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ai-blue-500), var(--ai-blue-700));
  color: #fff;
  flex-shrink: 0;
}
.payment-note h3 {
  font-size: 18px;
  color: var(--ai-blue-900);
  margin-bottom: 6px;
}
.payment-note p {
  font-size: 14px;
  color: var(--ai-gray-600);
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-section {
  padding: 80px 0;
  background: var(--ai-gray-50);
  border-top: 1px solid var(--ai-gray-200);
}
.faq-item {
  background: #fff;
  border: 1px solid var(--ai-gray-200);
  border-radius: var(--ai-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--ai-transition);
}
.faq-item.is-open {
  border-color: var(--ai-blue-400);
  box-shadow: var(--ai-shadow-sm);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--ai-blue-900);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--ai-transition);
}
.faq-question:hover {
  background: var(--ai-blue-50);
}
.faq-arrow {
  color: var(--ai-blue-600);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ai-gray-600);
}
.faq-answer-inner p {
  margin: 0;
}

/* =========================================================
   CTA внизу страницы
   ========================================================= */
.delivery-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--ai-blue-900), var(--ai-blue-700));
  color: #fff;
}
.delivery-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.delivery-cta-text h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.delivery-cta-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  margin: 0;
}
.delivery-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.delivery-cta .btn-primary {
  background: #fff;
  color: var(--ai-blue-800);
}
.delivery-cta .btn-primary:hover {
  background: var(--ai-accent);
  color: var(--ai-blue-900);
}

/* Редакторский контент */
.page-editor-content {
  padding: 40px 0 80px;
  background: #fff;
}
.page-editor-content h2,
.page-editor-content h3 {
  color: var(--ai-blue-900);
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1100px) {
  .delivery-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  .payment-methods {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 40px 0 50px;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .page-hero-subtitle {
    font-size: 15px;
  }
  .page-hero-badges {
    gap: 8px;
  }
  .hero-badge-item {
    font-size: 12px;
    padding: 6px 12px;
  }

  .delivery-tabs-section {
    padding: 40px 0;
  }
  .ai-tab-btn {
    padding: 12px 16px;
    font-size: 14px;
    flex: 1;
    justify-content: center;
  }
  .delivery-methods,
  .payment-methods {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .method-card {
    padding: 24px 20px;
  }

  .delivery-table-wrap {
    padding: 20px 16px;
    overflow-x: auto;
  }
  .ai-table {
    font-size: 13px;
    min-width: 560px;
  }
  .ai-table th,
  .ai-table td {
    padding: 10px 12px;
  }

  .payment-note {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .payment-note-icon {
    width: 50px;
    height: 50px;
  }

  .faq-section {
    padding: 50px 0;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }
  .faq-answer-inner {
    padding: 0 18px 18px;
    font-size: 14px;
  }

  .delivery-cta {
    padding: 40px 0;
  }
  .delivery-cta-text h2 {
    font-size: 20px;
  }
  .delivery-cta-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .delivery-cta-actions .btn-primary,
  .delivery-cta-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Модальное окно ===== */
.ai-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ai-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: aiModalFade 0.25s ease;
}

@keyframes aiModalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ai-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Диалог */
.ai-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: aiModalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aiModalSlide {
  from {
    transform: translateY(24px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Заголовок */
.ai-modal__dialog h3,
.ai-modal__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  line-height: 1.25;
}

.ai-modal__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

/* Кнопка закрытия */
.ai-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.ai-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: rotate(90deg);
}

/* Поля формы */
.ai-modal__dialog form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-modal__dialog p {
  margin: 0;
}

.ai-modal__dialog label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

.ai-modal__dialog input[type="text"],
.ai-modal__dialog input[type="tel"],
.ai-modal__dialog input[type="email"],
.ai-modal__dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.ai-modal__dialog input::placeholder,
.ai-modal__dialog textarea::placeholder {
  color: #94a3b8;
}

.ai-modal__dialog input:focus,
.ai-modal__dialog textarea:focus {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.ai-modal__dialog input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.ai-modal__dialog textarea {
  resize: vertical;
  min-height: 84px;
}

/* Кнопка отправки */
.ai-modal__dialog button[type="submit"],
.ai-modal__dialog .btn-primary {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.ai-modal__dialog button[type="submit"]:hover,
.ai-modal__dialog .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

.ai-modal__dialog button[type="submit"]:active,
.ai-modal__dialog .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.ai-modal__dialog button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Согласие / примечание */
.ai-modal__note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}

.ai-modal__note a {
  color: #2563eb;
  text-decoration: underline;
}

/* Сообщение об успехе */
.ai-modal__success {
  padding: 24px 8px;
  text-align: center;
}

.ai-modal__success svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: #22c55e;
}

.ai-modal__success p {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.5;
}

/* Мобильная адаптация */
@media (max-width: 520px) {
  .ai-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .ai-modal__dialog {
    padding: 32px 20px 24px;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    animation: aiModalUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes aiModalUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .ai-modal__dialog h3,
  .ai-modal__title {
    font-size: 20px;
  }
}

/* Блокировка скролла body */
body.ai-modal-open {
  overflow: hidden;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
  display: none;
}
/* =========================================================
   Карточка товара в каталоге
   ========================================================= */

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Убираем clearfix-псевдоэлементы WooCommerce */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
  display: none;
}

/* --- Карточка --- */
.ai-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative;
}

.ai-product-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

/* --- Медиа-блок --- */
.ai-product-card__media {
  position: relative;
  background: #f8fafc;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  transition: transform 0.35s ease;
  display: block;
}

.ai-product-card:hover .ai-product-card__media img {
  transform: scale(1.06);
}

.ai-product-card__link {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Бейджи --- */
.ai-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 2;
}

.ai-product-card__badge--sale {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.ai-product-card__badge--out {
  background: #64748b;
}

/* --- Контентная часть --- */
.ai-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 16px 18px;
  gap: 8px;
}

/* --- Рейтинг --- */
.ai-product-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  line-height: 1;
  color: #cbd5e1;
}

.ai-star {
  color: #e2e8f0;
}
.ai-star.is-on {
  color: #f59e0b;
}

.ai-product-card__rating-count {
  margin-left: 6px;
  font-size: 12px;
  color: #94a3b8;
}

/* --- Заголовок --- */
.ai-product-card__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #0f172a;
  min-height: 60px;

  /* Ограничиваем длинные названия 3 строками */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.ai-product-card__title a:hover {
  color: #2563eb;
}

/* --- Цена --- */
.ai-product-card__price,
.woocommerce ul.products li.product .price {
  margin-top: auto;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-product-card__price del,
.woocommerce ul.products li.product .price del {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}

.ai-product-card__price ins,
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: #ef4444;
}

/* --- Кнопка «В корзину» --- */
.ai-product-card__actions {
  margin-top: 6px;
}

.woocommerce ul.products li.product .button,
.ai-product-card__actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    filter 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.woocommerce ul.products li.product .button:hover,
.ai-product-card__actions .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  filter: brightness(1.05);
}

.woocommerce ul.products li.product .button:active,
.ai-product-card__actions .button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* Кнопка «Подробнее» (для вариативных/внешних товаров) */
.woocommerce ul.products li.product .button.product_type_variable,
.woocommerce ul.products li.product .button.product_type_external,
.woocommerce ul.products li.product .button.product_type_grouped {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: none;
}

.woocommerce ul.products li.product .button.product_type_variable:hover,
.woocommerce ul.products li.product .button.product_type_external:hover,
.woocommerce ul.products li.product .button.product_type_grouped:hover {
  background: #e2e8f0;
  filter: none;
}

/* Кнопка при добавлении (loading / added) */
.woocommerce ul.products li.product .button.loading {
  opacity: 0.8;
  pointer-events: none;
}

.woocommerce ul.products li.product .button.added::after {
  content: " ✓";
  margin-left: 6px;
}

/* --- Адаптив --- */
@media (max-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ai-product-card__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    min-height: 54px;
    -webkit-line-clamp: 3;
  }

  .ai-product-card__price,
  .woocommerce ul.products li.product .price {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .ai-product-card__body {
    padding: 14px;
  }
}
/* =========================================================
   ХЕДЕР: улучшения
   ========================================================= */

/* Бургер */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover {
  background: #f1f5f9;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   CATBAR — десктоп
   ========================================================= */

.catbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

.catbar-item.is-hidden {
  display: none !important;
}

.catbar-more {
  position: relative;
  flex: 0 0 auto;
}
.catbar-more[hidden] {
  display: none;
}

.catbar-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  background: #eff6ff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.catbar-more-btn:hover {
  background: #dbeafe;
}

.catbar-more-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  max-width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
}
.catbar-more.is-open .catbar-more-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.catbar-more-dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: #0f172a;
  text-decoration: none;
  border-radius: 8px;
  white-space: normal;
}
.catbar-more-dropdown a:hover {
  background: #f1f5f9;
  color: #2563eb;
}
.catbar-all:hover {
  text-decoration: underline;
}

#content {
  padding: 25px 0;
}
.woocommerce-pagination {
  padding: 25px 0;
}

/* =========================================================
   МОБИЛЬНОЕ МЕНЮ
   ========================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}
.mobile-menu.is-open {
  pointer-events: auto;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s;
}
.mobile-menu.is-open .mobile-menu__overlay {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}
.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.mobile-menu__title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.mobile-menu__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
}
.mobile-menu__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.mobile-menu__search {
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-menu__search form {
  display: flex;
  gap: 8px;
}
.mobile-menu__search input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.mobile-menu__search input[type="search"]:focus {
  border-color: #2563eb;
}
.mobile-menu__search button {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-menu__nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}
.mobile-menu__item {
  border-bottom: 1px solid #f1f5f9;
}
.mobile-menu__item:last-child {
  border-bottom: 0;
}

.mobile-menu__link,
.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.mobile-menu__link:hover,
.mobile-menu__toggle:hover {
  color: #2563eb;
}

.mobile-menu__toggle svg {
  transition: transform 0.2s;
}
.mobile-menu__item.is-open .mobile-menu__toggle svg {
  transform: rotate(180deg);
}

.mobile-menu__sub {
  display: none;
  padding: 4px 0 10px 8px;
}
.mobile-menu__item.is-open .mobile-menu__sub {
  display: block;
}

.mobile-menu__sub-link {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
}
.mobile-menu__sub-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.mobile-menu__sub-link--all {
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 2px;
}

.mobile-menu__footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu__phone {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  text-align: center;
}

/* =========================================================
   МЕГА-МЕНЮ КАТАЛОГА
   ========================================================= */
.mega-menu {
  z-index: 9998;
  pointer-events: none;
}
.mega-menu.is-open {
  pointer-events: auto;
}

.mega-menu__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.mega-menu.is-open .mega-menu__overlay {
  opacity: 1;
}

.mega-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mega-menu.is-open .mega-menu__panel {
  transform: translateY(0);
}

.mega-menu__container {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0;
  max-width: 1320px;
  justify-content: flex-start;
}

.mega-menu__roots {
  flex: 0 0 300px;
  max-width: 100%;
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  padding: 10px 0;
  overflow-y: auto;
  max-height: 80vh;
}

.mega-menu__root {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.mega-menu__root:hover {
  background: #eff6ff;
  color: #2563eb;
}
.mega-menu__root.is-active {
  background: #fff;
  color: #2563eb;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #2563eb;
}
.mega-menu__root svg {
  color: #94a3b8;
}

.mega-menu__panels {
  flex: 1 1 auto;
  padding: 28px 32px;
  overflow-y: auto;
  max-height: 80vh;
  display: block;
}
.mega-menu__panel-content {
  display: none;
}
.mega-menu__panel-content.is-active {
  display: block;
  animation: megaFade 0.25s ease;
}

@keyframes megaFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu__panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.mega-menu__panel-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}
.mega-menu__all {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}
.mega-menu__all:hover {
  text-decoration: underline;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}
.mega-menu__col-title {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}
.mega-menu__col-title:hover {
  color: #2563eb;
}

.mega-menu__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-menu__sublist li {
  margin-bottom: 4px;
}
.mega-menu__sublist a {
  font-size: 13.5px;
  color: #64748b;
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
  padding: 2px 0;
}
.mega-menu__sublist a:hover {
  color: #2563eb;
}

.mega-menu__empty {
  color: #94a3b8;
  font-size: 14px;
}

/* Блокировка скролла */
body.ai-no-scroll {
  overflow: hidden;
}

/* =========================================================
   АДАПТИВ ХЕДЕРА
   ========================================================= */
@media (max-width: 1100px) {
  .header-search {
    display: none;
  }
  .header-phone small {
    display: none;
  }

  .catbar-menu {
    gap: 2px;
  }
  .catbar-item {
    padding: 8px 10px;
    font-size: 13px;
    max-width: 180px;
  }

  .mega-menu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
  .btn-callback {
    display: none;
  }
  .header-phone {
    display: none;
  }
  .catbar {
    display: none;
  }
}

@media (max-width: 600px) {
  .topbar-left .topbar-hours {
    display: none;
  }
  .topbar-right .topbar-link:first-child {
    display: none;
  }
}
.mega-menu__panel {
  position: relative;
}

.mega-menu__close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  background: #0d2a5c;
}
.mega-menu__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}
.mega-menu__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
/* Якорь для абсолютного позиционирования мега-меню */
.catbar {
  position: relative;
}

/* Само мега-меню — раскрывается ровно под catbar */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* На всякий случай — чтобы оверлей не уезжал за пределы */
.mega-menu__overlay {
  position: fixed;
  inset: 0;
}
/* Якорь */
.catbar {
  position: relative;
}

/* Само мега-меню — раскрывается под catbar */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;

  /* Скрыто по умолчанию */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

/* Открытое состояние (класс вешает JS: openMega/closeMega) */
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-menu__overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s;
}

.mega-menu.is-open .mega-menu__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mega-menu__panel {
  position: relative;
  z-index: 9999;
  background: #fff; /* или ваш цвет */
}
/* Якорь — на .catbar (если мега-меню внутри него) */
.catbar {
  position: relative;
}

/* Обёртка мега-меню */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  /* НЕ .container — иначе left/right посчитаются от контейнера */
}

/* Затемнение — фиксированное, на весь экран, под панелью */
.mega-menu__overlay {
  position: fixed;
  inset: 0;
  z-index: 0; /* ниже панели внутри .mega-menu */
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s;
}

.mega-menu.is-open .mega-menu__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* ← теперь клик по оверлею ловится */
}

/* Панель — выше оверлея, иначе затемнение перекроет её */
.mega-menu__panel {
  position: relative;
  z-index: 1;
  background: #fff;
}
.mega-menu__overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s;
}

.mega-menu.is-open .mega-menu__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu__overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw; /* вся ширина вьюпорта */
  height: 100vh; /* вся высота вьюпорта */
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}
.mega-menu.is-open .mega-menu__overlay {
  pointer-events: auto;
}

/* =========================================================
   Пагинация WooCommerce
   ========================================================= */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  border: none;
  border-right: none;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  border-right: none;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 50px; /* Форма таблетки */
  border: 2px solid #e2e8f0;
  background: white;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.woocommerce-pagination ul.page-numbers li a:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

.woocommerce-pagination ul.page-numbers li span.current {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: white !important;
}

.woocommerce-pagination ul.page-numbers li span.dots {
  border: none;
  background: transparent;
  color: #94a3b8;
  min-width: 20px;
}

.woocommerce-pagination ul.page-numbers li a.next {
  border-color: #3b82f6;
  color: #3b82f6;
}
/* Сетка подкатегорий */
.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin: 25px 0 40px;
}

.subcategory-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.25s ease;
}

.subcategory-item:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
  color: #2563eb;
}

.subcategory-item__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f9f9f9;
}

.subcategory-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.subcategory-item:hover .subcategory-item__image img {
  transform: scale(1.07);
}

.subcategory-item__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}

.subcategory-item__count {
  font-size: 12px;
  color: #999;
}

/* Адаптив */
@media (max-width: 600px) {
  .subcategories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .subcategory-item {
    padding: 10px;
  }
  .subcategory-item__title {
    font-size: 13px;
  }
}
/* ==========================================
   MODERN SINGLE PRODUCT
   ========================================== */

.modern-product {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px 60px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: #1f2937;
}

/* Двухколоночная сетка */
.modern-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

/* «Липкая» галерея */
.modern-product__gallery {
  position: sticky;
  top: 100px;
}

/* ==========================================
   ГАЛЕРЕЯ
   ========================================== */

.modern-product .woocommerce-product-gallery {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f9fafb;
}

.modern-product .woocommerce-product-gallery__image img {
  border-radius: 20px;
  display: block;
  width: 100%;
  height: auto;
}

.modern-product .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.modern-product .flex-control-thumbs li {
  width: calc(20% - 8px);
  cursor: pointer;
}

.modern-product .flex-control-thumbs img {
  border-radius: 10px;
  border: 2px solid transparent;
  transition:
    border-color 0.2s,
    transform 0.2s;
  display: block;
  width: 100%;
}

.modern-product .flex-control-thumbs img:hover,
.modern-product .flex-control-thumbs img.flex-active {
  border-color: #2563eb;
  transform: translateY(-2px);
}

/* Sale badge */
.modern-product .onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: #ef4444;
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==========================================
   SUMMARY / ПРАВАЯ КОЛОНКА
   ========================================== */

.modern-product__summary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Заголовок */
.modern-product .product_title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #111827;
}

/* Рейтинг */
.modern-product .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
}

.modern-product .star-rating {
  color: #f59e0b;
  font-size: 15px;
}

.modern-product .woocommerce-review-link {
  color: #6b7280;
  text-decoration: none;
  border-bottom: 1px dashed #d1d5db;
}

.modern-product .woocommerce-review-link:hover {
  color: #2563eb;
  border-color: #2563eb;
}

/* Цена */
.modern-product .price {
  font-size: 32px !important;
  font-weight: 800;
  color: #ffb400 !important;
  margin: 0;
  line-height: 1;
}

.modern-product .price del {
  font-size: 20px;
  font-weight: 400;
  color: #9ca3af;
  margin-right: 10px;
  opacity: 1;
}

.modern-product .price ins {
  text-decoration: none;
  color: #ef4444;
}

/* Краткое описание */
.modern-product .woocommerce-product-details__short-description {
  font-size: 15px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
  padding: 16px 18px;
  background: #f9fafb;
  border-left: 3px solid #2563eb;
  border-radius: 8px;
}

.modern-product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

/* Разделитель */
.modern-product__divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}

/* ==========================================
   ФОРМА ПОКУПКИ (ADD TO CART)
   ========================================== */

.modern-product form.cart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  flex-wrap: wrap;
}

/* Количество */
.modern-product .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 56px;
}

.modern-product .quantity input.qty {
  width: 60px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
}

.modern-product .quantity input.qty::-webkit-outer-spin-button,
.modern-product .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Кнопка "В корзину" */
.modern-product .single_add_to_cart_button {
  flex: 1;
  min-width: 200px;
  height: 56px;
  padding: 0 28px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.modern-product .single_add_to_cart_button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  color: #fff;
}

.modern-product .single_add_to_cart_button:active {
  transform: translateY(0);
}

.modern-product .single_add_to_cart_button.loading {
  opacity: 0.8;
}

.modern-product .single_add_to_cart_button.added::after {
  content: "✓";
  margin-left: 6px;
}

/* Кнопка "Купить сейчас" (если есть) */
.modern-product .single_add_to_cart_button + .buy-now {
  background: #111827;
}

/* Вариативный товар */
.modern-product .variations {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.modern-product .variations th,
.modern-product .variations td {
  text-align: left;
  padding: 4px 0;
  vertical-align: middle;
  border: none;
  background: transparent;
}

.modern-product .variations th.label label {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

.modern-product .variations select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.modern-product .variations select:focus {
  outline: none;
  border-color: #2563eb;
}

/* ==========================================
   META (SKU, категории, теги)
   ========================================== */

.modern-product .product_meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.modern-product .product_meta > span {
  display: block;
}

.modern-product .product_meta a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.modern-product .product_meta a:hover {
  text-decoration: underline;
}

/* ==========================================
   TRUST BLOCK
   ========================================== */

.modern-product__trust {
  list-style: none;
  padding: 20px;
  margin: 8px 0 0;
  background: #f9fafb;
  border-radius: 14px;
  display: grid;
  gap: 14px;
}

.modern-product__trust li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modern-product__trust-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.modern-product__trust strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.modern-product__trust span {
  font-size: 13px;
  color: #6b7280;
}

/* ==========================================
   ТАБЫ
   ========================================== */

.modern-product .woocommerce-tabs {
  margin-top: 40px;
}

.modern-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
  border-bottom: 2px solid #e5e7eb;
  flex-wrap: wrap;
}

.modern-product .woocommerce-tabs ul.tabs::before,
.modern-product .woocommerce-tabs ul.tabs::after {
  display: none;
}

.modern-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.modern-product .woocommerce-tabs ul.tabs li::before,
.modern-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.modern-product .woocommerce-tabs ul.tabs li a {
  display: inline-block !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.modern-product .woocommerce-tabs ul.tabs li a:hover {
  color: #111827 !important;
}

.modern-product .woocommerce-tabs ul.tabs li.active a {
  color: #2563eb !important;
  border-bottom-color: #2563eb !important;
}

.modern-product .woocommerce-tabs .panel {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.modern-product .woocommerce-tabs .panel h2 {
  display: none; /* убираем дублирующий заголовок */
}

/* ==========================================
   RELATED PRODUCTS
   ========================================== */

.modern-product .related.products {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e5e7eb;
}

.modern-product .related.products > h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #111827;
}

/* ==========================================
   АДАПТИВ
   ========================================== */

@media (max-width: 900px) {
  .modern-product__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .modern-product__gallery {
    position: static;
  }
}

@media (max-width: 600px) {
  .modern-product {
    padding: 12px 14px 40px;
  }
  .modern-product .price {
    font-size: 26px;
  }
  .modern-product form.cart {
    flex-direction: column;
  }
  .modern-product .quantity {
    width: 100%;
    justify-content: center;
  }
  .modern-product .single_add_to_cart_button {
    width: 100%;
    min-width: 0;
  }
  .modern-product .woocommerce-tabs ul.tabs li a {
    padding: 12px 14px;
    font-size: 14px;
  }
  .modern-product__trust {
    padding: 16px;
  }
}
.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
  width: 100% !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button.button {
  background-color: #0d2a5c;
  color: #fff;
}
.woocommerce div.product form.cart .single_add_to_cart_button.button:hover {
  background-color: #032258;
  color: #fff;
}
input.input-text.qty.text:focus-visible {
  outline: none;
}
/* ==========================================
   BUY IN 1 CLICK BUTTON
   ========================================== */

.buy-one-click-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 22px;
  background: #fff;
  color: #111827;
  border: 2px solid #111827;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}

.buy-one-click-btn:hover {
  background: #111827;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.25);
}

.buy-one-click-btn:active {
  transform: translateY(0);
}

.buy-one-click-btn svg {
  flex-shrink: 0;
}

/* ==========================================
   MODAL
   ========================================== */

.boc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}

.boc-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.boc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
}

.boc-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.boc-modal.is-open .boc-modal__dialog {
  transform: translateY(0) scale(1);
}

.boc-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}

.boc-modal__close:hover {
  background: #e5e7eb;
  color: #111827;
}

.boc-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111827;
}

.boc-modal__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
  line-height: 1.5;
}

.boc-modal__product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.boc-modal__product-name {
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boc-modal__product-price {
  color: #2563eb;
  font-weight: 700;
  white-space: nowrap;
}

/* Поля формы */
.boc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.boc-form__field {
  display: block;
}

.boc-form__field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.boc-form__field > span em {
  font-style: normal;
  font-weight: 400;
  color: #9ca3af;
}

.boc-form input,
.boc-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  resize: vertical;
}

.boc-form input:focus,
.boc-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.boc-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  margin-top: 4px;
  font-family: inherit;
}

.boc-form__submit:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.boc-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.boc-form__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: boc-spin 0.7s linear infinite;
  margin-left: 10px;
}

.boc-form.is-loading .boc-form__loader {
  display: inline-block;
}
.boc-form.is-loading .boc-form__submit-text {
  opacity: 0.7;
}

@keyframes boc-spin {
  to {
    transform: rotate(360deg);
  }
}

.boc-form__agree {
  font-size: 12px;
  color: #9ca3af;
  margin: 4px 0 0;
  line-height: 1.4;
}

.boc-form__agree a {
  color: #6b7280;
  text-decoration: underline;
}

.boc-form__message {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.boc-form__message.is-error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.boc-form__message.is-success {
  display: block;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ==========================================
   STICKY BAR
   ========================================== */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sticky-bar__product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.sticky-bar__thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f3f4f6;
}

.sticky-bar__info {
  min-width: 0;
}

.sticky-bar__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.sticky-bar__price {
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1.2;
}

.sticky-bar__price del {
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
  margin-right: 6px;
}

.sticky-bar__price ins {
  text-decoration: none;
}

.sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sticky-bar__boc {
  height: 48px;
  padding: 0 18px;
  background: #fff;
  color: #111827;
  border: 2px solid #111827;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.sticky-bar__boc:hover {
  background: #111827;
  color: #fff;
}

.sticky-bar__cart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  padding: 0 22px !important;
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition:
    background 0.2s,
    transform 0.15s;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.sticky-bar__cart:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  color: #fff;
}

/* ==========================================
   АДАПТИВ
   ========================================== */

@media (max-width: 700px) {
  .modern-product form.cart {
    flex-direction: column;
    align-items: stretch;
  }
  .buy-one-click-btn {
    width: 100%;
  }

  .sticky-bar {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-bar__thumb {
    width: 44px;
    height: 44px;
  }

  .sticky-bar__title {
    font-size: 13px;
  }

  .sticky-bar__price {
    font-size: 14px;
  }

  .sticky-bar__boc {
    display: none; /* на мобильном оставляем только «В корзину» */
  }

  .sticky-bar__cart {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .boc-modal__dialog {
    padding: 24px 20px;
  }
}
