/* cbd-nano.com — doplňky k archivnímu CSS tematiky Opal.
   Архивные правила не переопределяем, только дополняем недостающие блоки. */

html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
* { min-width: 0; }

/* ---------- products grid ---------- */
.products.products-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 8px;
}
.products.products-block .product { width: auto; float: none; padding: 0; }
.products.products-block .p {
  border: 1px solid #ececec; border-radius: 6px; padding: 14px 14px 16px;
  background: #fff; height: 100%; display: flex; flex-direction: column;
  transition: box-shadow .15s ease;
}
.products.products-block .p:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.products.products-block .p .image { display: block; position: relative; }
.products.products-block .p .image img { width: 100%; display: block; border-radius: 4px; }
.products.products-block .p-in { display: flex; flex-direction: column; flex: 1 1 auto; }
.products.products-block .p-in-in { flex: 1 1 auto; }
.products.products-block .name { display: block; margin: 12px 0 6px; font-weight: 600; line-height: 1.3; }
.products.products-block .availability { font-size: 13px; margin-bottom: 8px; }
.products.products-block .prices { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.products.products-block .p-tools .btn { display: block; text-align: center; }
.flags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.flags .flag { color: #131313; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; display: inline-block; }

@media (max-width: 991px) { .products.products-block { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .products.products-block { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { .products.products-block { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home: products slider ---------- */
.hp-products { position: relative; margin: 18px 0; }
.hp-products .products.products-block {
  display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 18px; padding-bottom: 14px; -webkit-overflow-scrolling: touch;
}
.hp-products .products.products-block .product {
  flex: 0 0 23%; min-width: 220px; scroll-snap-align: start;
}
.hp-products .hp-nav { position: absolute; top: 42%; width: 40px; height: 40px; border: 0;
  border-radius: 50%; background: #131313; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; z-index: 5; }
.hp-products .hp-nav.prev { left: -12px; } .hp-products .hp-nav.next { right: -12px; }
@media (max-width: 700px) { .hp-products .products.products-block .product { flex: 0 0 62%; } .hp-products .hp-nav { display: none; } }

.show-all { text-align: center; margin: 6px 0 24px; }

/* ---------- carousel ---------- */
#carousel .carousel-inner { position: relative; overflow: hidden; border-radius: 6px; }
#carousel .item { display: none; }
#carousel .item.active { display: block; }
#carousel .item img { width: 100%; display: block; }
#carousel .extended-banner-texts {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0)); color: #fff;
}
#carousel .extended-banner-text > span { display: block; font-size: 15px; opacity: .9; }
#carousel .extended-banner-text h1 { color: #fff; margin: 4px 0 0; font-size: 30px; line-height: 1.15; }
#carousel .carousel-control { position: absolute; top: 0; bottom: 0; width: 46px; display: block;
  background: rgba(0, 0, 0, .12); text-decoration: none; }
#carousel .carousel-control.left { left: 0; } #carousel .carousel-control.right { right: 0; }
#carousel .carousel-control:after { content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 12px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
#carousel .carousel-control.left:after { transform: translate(-30%, -50%) rotate(-135deg); }
#carousel .carousel-control.right:after { transform: translate(-70%, -50%) rotate(45deg); }
@media (max-width: 700px) { #carousel .extended-banner-text h1 { font-size: 20px; } }

/* ---------- hp product / usp ---------- */
.hp-product { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.hp-product .product-text { flex: 1 1 auto; }
.hp-product .product-img { flex: 0 0 42%; }
.hp-product .buttons-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.usp { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.usp .usp-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: 1 1 62%; }
.usp .usp-item { text-align: center; }
.usp .usp-item img { width: 44px; height: 44px; object-fit: contain; }
.usp .usp-item p { font-size: 12px; margin: 6px 0 0; }
.usp .usp-text { flex: 1 1 32%; }
@media (max-width: 991px) { .hp-product, .usp { flex-direction: column; align-items: stretch; } .usp .usp-icons { flex: 1 1 auto; } }

/* ---------- faq accordion ---------- */
.faq-panels .panel-item { border-bottom: 1px solid #e6e6e6; }
.faq-panels .panel-title { cursor: pointer; padding: 14px 34px 14px 0; position: relative; font-weight: 600; }
.faq-panels .panel-title:after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 20px; }
.faq-panels .panel-item.active .panel-title:after { content: "\2013"; }
.faq-panels .panel-item .panel-body { display: none; padding: 0 0 16px; }
.faq-panels .panel-item.active .panel-body { display: block; }

/* ---------- about / video ---------- */
.about-section .video-responsive-16v9 { position: relative; padding-bottom: 56.25%; height: 0; margin-top: 10px; }
.about-section .video-responsive-16v9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 20px 0; }
.blog-card { border: 1px solid #ececec; border-radius: 6px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; }
.blog-card .blog-image img { width: 100%; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-card .blog-body { padding: 16px; display: flex; flex-direction: column; flex: 1 1 auto; }
.blog-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.blog-card p { flex: 1 1 auto; }
@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }
.article-cover { margin: 16px 0 20px; }
.article-cover img { width: 100%; border-radius: 6px; }
.entry-content h2 { margin-top: 26px; }
.article-back { margin: 26px 0; }
.category-desc { color: #555; }

/* ---------- product detail ---------- */
.p-detail .p-image { position: relative; }
.p-detail .p-image img { width: 100%; border-radius: 6px; display: block; }
.p-detail .p-short { font-size: 16px; }
.p-detail table.p-params { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 14px 0; }
.p-detail table.p-params th, .p-detail table.p-params td {
  border: 1px solid #e6e6e6; padding: 8px 10px; text-align: left; vertical-align: top;
  overflow-wrap: anywhere; word-break: break-word;
}
.p-detail table.p-params th { width: 38%; background: #f7f7f7; font-weight: 600; }
.p-detail .p-final-price { font-size: 24px; margin: 12px 0 6px; }
.p-detail .p-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.p-detail .p-detail-content { margin-top: 26px; }
.related-heading { margin-top: 26px; }

/* ---------- static pages ---------- */
.content-inner table, .entry-content table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.content-inner table th, .content-inner table td,
.entry-content table th, .entry-content table td {
  border: 1px solid #e6e6e6; padding: 7px 9px; overflow-wrap: anywhere; word-break: break-word;
}
.content-inner .subcategories.with-image { list-style: none; padding: 0; display: flex; flex-wrap: wrap; }
.subcategories.with-image li { padding: 0 8px 16px; }
.subcategories.with-image li a { display: block; text-decoration: none; }
.subcategories.with-image .image img { width: 100%; border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.subcategories.with-image .text { display: block; text-align: center; font-weight: 600; margin-top: 8px; }
.error-404 { padding: 30px 0; }

.footer-contact-btn,.footer-contact-btn:visited{color:#fff!important;background:#111!important}
