/* Скрываем строки таблицы, где есть СЕО - Заголовок или СЕО - Описание */
.product-features tr:has(td:first-child:contains("СЕО - Описание")),
.product-features tr:has(td:first-child:contains("СЕО - Заголовок")) {
  display: none !important;
}

:root {
  --primary: #4CAF50;
  --secondary: #388E3C;
  --accent: #8BC34A;
  --dark: #5D4037;
  --darker: #3E2723;
  --light: #F1F8E9;
  --cream: #FFF8E1;
  --text: #212121;фс
  --text-light: #757575;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: white;
  padding: 0;              /* без !important — чанк хедера добавит padding-top: 60px */
  margin: 0 !important;
  color: var(--text);
}




.shoppost-product-page {
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.catalog-container {
  padding: 13px 20px;
  background: #fafafa;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  margin: 10px auto;
  max-width: none !important;
  width: 100% !important;
}

.catalog-container:first-of-type {
  padding: 16px 20px;
}

.shoppost-product-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--accent);
}

.shoppost-product-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Десктопные табы */
.shoppost-tabs {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 10px;
}

.shoppost-tab {
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.shoppost-tab.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.shoppost-product-content {
  display: flex;
  padding: 20px 30px;
  gap: 30px;
  position: relative;
  min-height: 800px;
}



.shoppost-thumbnail-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shoppost-thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border 0.2s;
  overflow: hidden;
}

.shoppost-thumbnail:hover,
.shoppost-thumbnail.active {
  border-color: var(--primary);
}

.shoppost-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shoppost-main-image-container {
  width: 90%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shoppost-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease-out;
}

.shoppost-brand-badge {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--dark);
}

.shoppost-brand-logo-link {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: var(--light);
  border: 1px solid var(--accent);
}

.shoppost-brand-logo-image {
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.shoppost-product-info {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.shoppost-product-info-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shoppost-stock-and-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-light);
}

.shoppost-in-stock {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
}

.shoppost-product-code {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--light);
  padding: 4px 8px;
  border-radius: 4px;
}

.shoppost-price-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.shoppost-price {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.old-price {
  text-decoration: line-through;
  color: #000;
  font-size: 24px;
  font-weight: normal;
}

.new-price {
  color: #e74c3c;
  font-size: 28px;
  font-weight: 700;
}

.regular-price {
  color: #000;
  font-size: 28px;
  font-weight: 700;
}

.shoppost-quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 4px;
  overflow: hidden;
}

.shoppost-qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text);
}

.shoppost-qty-input {
  width: 40px;
  text-align: center;
  border: none;
  outline: none;
  padding: 5px;
}

.shoppost-buy-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  text-decoration: none;
}

.shoppost-buy-button:hover {
  background: var(--secondary);
}

.shoppost-models-button {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
  margin: 10px 0;
}

.shoppost-models-button:hover {
  background: var(--darker);
}

.shoppost-actions {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.shoppost-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
}

.shoppost-action-btn:hover {
  color: var(--primary);
}

.shoppost-divider {
  height: 1px;
  background: var(--accent);
  margin: 12px 0;
}

.shoppost-accordions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shoppost-accordion-item {
  border: 1px dashed var(--accent);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.shoppost-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--light);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  transition: background 0.2s;
}

.shoppost-accordion-header:hover {
  background: var(--cream);
}

.shoppost-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.5;
  background: white;
  color: var(--text);
}

.shoppost-accordion-content.show {
  max-height: none;
  padding: 12px 16px;
}

.shoppost-payment-methods,
.shoppost-delivery-options,
.shoppost-guarantee-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.shoppost-method,
.shoppost-delivery-option,
.shoppost-guarantee-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--light);
  border: 1px solid var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.shoppost-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  margin: 8px 0 0;
}

.shoppost-more-link:hover {
  text-decoration: underline;
}

.all-info-section,
.characteristics-section,
.reviews-section,
.models-section {
  padding: 13px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  margin-top: 20px;
  min-height: 400px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 100%;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
}

.section-block {
  padding: 8px 25px;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 4px solid #4CAF50;
  margin-bottom: 7px;
}

.section-block h5 {
  font-size: 20px;
  color: #34495e;
  margin-bottom: 5px;
  font-weight: 600;
}

.section-block p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 5px;
}

.text-warning {
  color: #ffc107 !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.text-light {
  color: var(--text-light) !important;
}

.text-success {
  color: #28a745 !important;
}

.fw-bold-intr {
  font-weight: bold;
}

.product-specs {
  margin-top: 15px;
}

.product-specs ul {
  list-style: none;
  padding: 0;
}

.product-specs li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light);
}

.product-specs strong {
  color: var(--dark);
  min-width: 150px;
  display: inline-block;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-columns: 100px 1fr 250px;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.product-photo {
  display: flex;
  align-items: flex-start;
}

.product-photo img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 6px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-line-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.2;
}

.product-title:hover {
  color: #3498db;
}

.product-vendor {
  background: #f8f9fa;
  color: #6c757d;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.product-characteristics {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-char {
  display: flex;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
}

.product-char-name {
  color: #6c757d;
  min-width: 80px;
  font-size: 11px;
}

.product-char-value {
  color: #2c353d;
  font-weight: 500;
  font-size: 11px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.availability {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.in-stock {
  background: #d4edda;
  color: #155724;
}

.out-of-stock {
  background: #f8d7da;
  color: #721c24;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #e74c3c;
}

.notify-btn {
  padding: 10px 20px;
  border: 2px solid #dc3545;
  border-radius: 8px;
  background: #dc3545;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.notify-btn:hover {
  background: #c82333;
  border-color: #c82333;
  color: white;
}

.btn-icon {
  width: 30px;
  height: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 12px;
}

.btn-icon:hover {
  background: #f8f9fa;
  border-color: #3498db;
  color: #3498db;
  transform: scale(1.05);
}

.products-list-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px;
}

.product-card-mobile {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 10px;
}

.product-photo-mobile {
  text-align: center;
  margin-bottom: 8px;
}

.product-photo-mobile img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.product-header-mobile {
  text-align: center;
  margin-bottom: 8px;
}

.product-title-mobile {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.product-vendor-mobile {
  background: #f8f9fa;
  color: #6c757d;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.product-meta-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
}

.availability-mobile {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.in-stock-mobile {
  background: #d4edda;
  color: #155724;
}

.out-of-stock-mobile {
  background: #f8d7da;
  color: #721c24;
}

.product-price-mobile {
  font-size: 16px;
  font-weight: 700;
  color: #e74c3c;
}

.action-icons-mobile {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.mobile-btn-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
}

.mobile-btn-icon:hover {
  background: #f8f9fa;
  border-color: #3498db;
  color: #3498db;
}

.discount-badge {
  background: #e74c3c;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.savings-info {
  color: #27ae60;
  font-size: 14px;
  font-weight: 600;
}

/* Мобильные стили для табов - ПОЛНОСТЬЮ ВОССТАНОВЛЕНЫ ИЗ ОРИГИНАЛА */
@media (max-width: 768px) {
  .shoppost-product-content {
    flex-direction: column;
    padding: 20px;
  }
  
  .shoppost-product-images,
  .shoppost-product-info {
    width: 100%;
  }
  
  .shoppost-product-images {
    position: relative;
    top: 0;
  }
  
  .shoppost-stock-and-code {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .shoppost-price-section {
    flex-direction: column;
    gap: 15px;
  }
  
  .shoppost-actions {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  /* ОРИГИНАЛЬНЫЕ СТИЛИ ТАБОВ ИЗ ИСХОДНОГО КОДА */
  .shoppost-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0;
    margin-top: 15px;
    border-bottom: none;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent, #2e9b52) var(--light, #f5f5f5);
  }
  
  .shoppost-tabs::-webkit-scrollbar {
    height: 6px;
    margin-top: 4px;
  }
  
  .shoppost-tabs::-webkit-scrollbar-track {
    background: var(--light, #f5f5f5);
    border-radius: 3px;
  }
  
  .shoppost-tabs::-webkit-scrollbar-thumb {
    background: var(--accent, #2e9b52);
    border-radius: 3px;
  }
  
  .shoppost-tabs::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover, #228b22);
  }
  
  .shoppost-tab {
    background-color: transparent;
    color: var(--text-dark, #333);
    border: none;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    min-width: max-content;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 2px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  }
  
  .shoppost-tab:hover {
    background-color: rgba(0, 0, 0, 0.04);
  }
  
  .shoppost-tab.active {
    background-color: var(--primary, #2e9b52);
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  }
  
  #desktop-shoppost-tabs {
    display: none !important;
  }
  
  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  
  .product-line-main {
    justify-content: center;
  }
  
  .product-characteristics {
    align-items: center;
  }
  
  .product-char {
    flex-direction: column;
    gap: 1px;
  }
  
  .shoppost-quantity-controls {
    align-self: center;
  }
  
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  
  td {
    padding: 5px 0 !important;
    vertical-align: top !important;
  }
  
  td:first-child {
    padding-right: 12px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    color: #333 !important;
  }
  
  td:last-child {
    color: #666 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
  
  .mobile-version {
    display: block;
  }
  
  .desktop-version {
    display: none;
  }
  
  .old-price { font-size: 20px; }
  .new-price,
  .regular-price { font-size: 24px; }
  
  .all-info-section {
    padding: 7px 15px;
  }
  
  .all-info-section .section-title {
    font-size: 24px;
  }
  
  .section-block {
    padding: 7px 20px;
  }
  
  .section-block h5 {
    font-size: 18px;
  }
  
  .section-block p,
  .section-block li {
    font-size: 15px;
  }
  
  .catalog-container {
    padding: 7px 15px;
    margin: 7px auto;
  }
}

@media (min-width: 769px) {
  .mobile-version {
    display: none !important;
  }
  
  .desktop-version {
    display: block;
  }
}

@media (max-width: 480px) {
  .products-list {
    gap: 8px;
  }
  
  .product-card {
    padding: 8px;
    gap: 6px;
  }
  
  .product-photo img {
    height: 60px;
  }
  
  .product-title {
    font-size: 12px;
  }
  
  .product-price {
    font-size: 14px;
  }
  
  .shoppost-buy-button,
  .notify-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .shoppost-buy-button svg {
    width: 10px;
    height: 10px;
  }
  
  .products-list-mobile {
    gap: 10px;
  }
  
  .product-card-mobile {
    padding: 10px;
  }
  
  .product-photo-mobile img {
    max-height: 100px;
  }
  
  .product-title-mobile {
    font-size: 13px;
  }
  
  .product-price-mobile {
    font-size: 15px;
  }
  
  .product-meta-mobile {
    flex-direction: column;
    gap: 6px;
  }
  
  .mobile-btn-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  table {
    font-size: 12px !important;
  }
  
  td:first-child {
    padding-right: 10px !important;
  }
  
  td {
    padding: 4px 0 !important;
  }
}

@media (max-width: 360px) {
  table {
    font-size: 11px !important;
  }
  
  td:first-child {
    padding-right: 8px !important;
    white-space: normal !important;
    font-size: 10px !important;
  }
  
  td:last-child {
    font-size: 11px !important;
  }
}

.shoppost-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #FFF8E1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  margin: 20px 0 !important;
  font-family: Arial, sans-serif !important;
}

.shoppost-table th {
  background: #4CAF50 !important;
  color: white !important;
  padding: 15px 12px !important;
  text-align: left !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  border-bottom: 2px solid #388E3C !important;
}

.shoppost-table td {
  padding: 12px !important;
  border-bottom: 1px solid #F1F8E9 !important;
  color: #212121 !important;
  background: white !important;
}

.shoppost-table tr:nth-child(even) td {
  background: #F1F8E9 !important;
}

.shoppost-table tr:hover td {
  background: #FFF8E1 !important;
}

.shoppost-table tr:last-child td {
  border-bottom: none !important;
}

/* Отключаем параллакс на мобильных устройствах */
@media (max-width: 768px) {
  .shoppost-product-images {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  /* ОСТАЛЬНЫЕ СТИЛИ МЕДИАЗАПРОСА ОСТАЮТСЯ БЕЗ ИЗМЕНЕНИЙ */
  
  /* ТАБЫ БЕЗ ОТСТУПОВ, С ПЕРЕНОСАМИ И МЕЛКИМ ШРИФТОМ */
  .shoppost-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    overflow-x: visible;
    padding: 0;
    margin-top: 15px;
    border-bottom: none;
    padding-bottom: 8px;
    width: 100%;
  }
  
  .shoppost-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .shoppost-tab {
    background-color: transparent;
    color: var(--text-dark, #333);
    border: none;
    padding: 5px 1px;
    font-size: 10px;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    flex: 1 1 0;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    margin: 0;
    border-right: 1px solid rgba(0,0,0,0.05);
    min-width: 0;
  }
  
  .shoppost-tab:last-child {
    border-right: none;
  }
  
  .shoppost-tab:hover {
    background-color: rgba(0, 0, 0, 0.04);
  }
  
  .shoppost-tab.active {
    background-color: var(--primary, #2e9b52);
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  }
  
  /* ОСТАЛЬНЫЕ СТИЛИ МЕДИАЗАПРОСА ОСТАЮТСЯ БЕЗ ИЗМЕНЕНИЙ */
}


/* ══════════════════════════════════════════════════════════
   МОБИЛЬНЫЕ ТАБЫ ТОВАРА — вставить в шаблон товара
   (внутрь существующего @media (max-width: 768px) или отдельно)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .mobile-header,
    .mobile-bottom-nav {
        pointer-events: all !important;
    }
    
    .shoppost-product-images {
        z-index: 1 !important;   /* убираем z-index: 10 который перекрывает хедер */
    }
    
    .catalog-container,
    .shoppost-product-page {
        position: relative !important;
        z-index: 1 !important;
    }
}



@media (max-width: 768px) {

    /* Фиксируем табы под верхним хедером (высота хедера = 60px) */
    #mobile-shoppost-tabs {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 998 !important;             /* ниже хедера (1000), выше контента */
        background: rgba(255,255,255,0.88) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(46,125,50,0.15) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;

        /* Все 4 таба в одну строку, без скролла */
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        width: 100% !important;
    }

    #mobile-shoppost-tabs .shoppost-tab {
        flex: 1 1 0 !important;              /* равные доли */
        min-width: 0 !important;
        padding: 8px 2px !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        color: #555 !important;
        text-decoration: none !important;
        white-space: normal !important;
        word-break: break-word !important;
        hyphens: auto !important;
        text-align: center !important;
        line-height: 1.2 !important;
        border-bottom: 2px solid transparent !important;
        border-right: 1px solid rgba(0,0,0,0.06) !important;
        background: none !important;
        transition: color .18s, border-color .18s !important;
        letter-spacing: 0 !important;
        text-shadow: none !important;
        border-radius: 0 !important;
    }

    #mobile-shoppost-tabs .shoppost-tab:last-child {
        border-right: none !important;
    }

    #mobile-shoppost-tabs .shoppost-tab.active {
        color: var(--primary, #4CAF50) !important;
        border-bottom: 2px solid var(--primary, #4CAF50) !important;
        background: none !important;
        text-shadow: none !important;
    }

    #mobile-shoppost-tabs .shoppost-tab:hover {
        background: rgba(0,0,0,0.03) !important;
    }

    /* Контент страницы: отступ = хедер(60) + табы(~38) */
    body {
        padding-top: 98px !important;
        padding-bottom: 62px !important;  /* высота нижнего хедера */
    }
}

/* Стили для таблицы характеристик Crocodila */
.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: sans-serif;
    font-size: 14px;
    color: #333;
    border: 1px solid #ececec;
}

.product-spec-table th {
    background-color: #f8f8f8;
    color: #222;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #ddd;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.product-spec-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #ececec;
}

/* Эффект зебры для лучшей читаемости */
.product-spec-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Подсветка при наведении */
.product-spec-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Жирный шрифт для названий характеристик */
.product-spec-table td:first-child {
    font-weight: <strong>;
    width: 40%;
    color: #555;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .product-spec-table th, 
    .product-spec-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}





















/* ══════════════════════════════════════════════════════
   ИСПРАВЛЕНИЕ ПУСТОТ НА МОБИЛКЕ
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Наличие + код товара + отзыв — в строку, не в столбик */
  .shoppost-stock-and-code {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    justify-content: flex-start !important;
  }

  /* Цена + количество + кнопка купить — в строку */
  .shoppost-price-section {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 8px 0 !important;
    align-items: center !important;
  }

  /* Убираем огромные отступы между блоками */
  .shoppost-product-info-content {
    gap: 8px !important;
  }

  .shoppost-product-info {
    gap: 8px !important;
  }

  .shoppost-actions {
    margin: 4px 0 !important;
    gap: 10px !important;
  }

  .shoppost-models-button {
    margin: 4px 0 !important;
  }

  .shoppost-divider {
    margin: 6px 0 !important;
  }
}


/* ══════════════════════════════════════════════════════
   ЦВЕТНЫЕ ИКОНКИ В АККОРДЕОНАХ
══════════════════════════════════════════════════════ */
 
/* Оплата */
.shoppost-payment-methods .shoppost-method:nth-child(1) svg { stroke: #388E3C !important; }
.shoppost-payment-methods .shoppost-method:nth-child(2) svg { stroke: #1976D2 !important; }
.shoppost-payment-methods .shoppost-method:nth-child(3) svg { stroke: #E65100 !important; }
.shoppost-payment-methods .shoppost-method:nth-child(4) svg { stroke: #7B1FA2 !important; }
 
/* Доставка */
.shoppost-delivery-options .shoppost-delivery-option:nth-child(1) svg { stroke: #e74c3c !important; }
.shoppost-delivery-options .shoppost-delivery-option:nth-child(2) svg { stroke: #F57F17 !important; }
.shoppost-delivery-options .shoppost-delivery-option:nth-child(3) svg { stroke: #388E3C !important; }
 
/* Возврат */
.shoppost-guarantee-options .shoppost-guarantee-item:nth-child(1) svg { stroke: #1976D2 !important; }
.shoppost-guarantee-options .shoppost-guarantee-item:nth-child(2) svg { stroke: #388E3C !important; }


/* FAQ секция */
.faq-section {
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
}

.faq-item {
  margin-bottom: 1.25rem;
}

.faq-item p:first-child {
  margin-bottom: 0.5rem;
  color: #2e7d32;
}

/* CTA блок */
.seo-cta {
  background: #f1f8e9;
  border-left: 4px solid #2e7d32;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
 