/* Alasca product advantages grid */
.alasca-advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
  padding: 0;
}
@media (min-width: 768px) {
  .alasca-advantages { grid-template-columns: repeat(4, 1fr); }
}
.alasca-adv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border-radius: 12px;
  background: #f8faf5;
  border: 1px solid #e8f0dc;
  transition: box-shadow .2s, transform .2s;
}
.alasca-adv-card:hover {
  box-shadow: 0 4px 16px rgba(124,174,53,.15);
  transform: translateY(-2px);
}
.alasca-adv-card svg {
  width: 36px;
  height: 36px;
  color: #7cae35;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.alasca-adv-card .alasca-adv-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}
.alasca-adv-card .alasca-adv-value {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* Feature blocks in product description */
.alasca-feature-block {
  display: flex;
  gap: 16px;
  padding: 20px;
  margin-bottom: 2px;
  border-radius: 12px;
  align-items: flex-start;
}
.alasca-feature-block:nth-child(odd) {
  background: #f8faf5;
}
.alasca-feature-block:nth-child(even) {
  background: #fff;
}
.alasca-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7cae35 0%, #5d8a22 100%);
  border-radius: 12px;
  color: #fff;
}
.alasca-feature-icon svg {
  width: 26px;
  height: 26px;
}
.alasca-feature-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: #1a1a1a;
}
.alasca-feature-content p {
  font-size: .95rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}
.alasca-feature-content p + p {
  margin-top: 6px;
  margin-bottom: 2px;
}
@media (max-width: 575px) {
  .alasca-feature-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }
  .alasca-feature-content h3 {
    font-size: 1rem;
  }
}

/* Separator */
.alasca-desc-separator {
  border: none;
  border-top: 1px solid #e8f0dc;
  margin: 24px 0;
}

/* SKU hint icons */
.alasca-sku-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
  vertical-align: middle;
}
.alasca-sku-icon svg {
  width: 13px;
  height: 13px;
}

/* Description text below SKU buttons */
.alasca-sku-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
  margin-top: 6px;
  margin-bottom: 2px;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid #22c55e;
  min-height: 20px;
}
.alasca-sku-desc b {
  color: #1f2937;
}

/* Compact SKU buttons — 2 per row grid */
.b-product-skus .s-skus-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
}
.b-product-skus .s-skus-wrapper .s-sku-item label.btn {
  padding: 6px 4px !important;
  font-size: 11px !important;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alasca-sku-icon svg {
  width: 10px;
  height: 10px;
}

/* No-wrap for feature values */
.s-features-wrapper__value {
  white-space: nowrap !important;
}

/* Reduce gap between SKU desc and features */
.b-product-skus + .s-product-cart__center-item {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.b-product-skus ~ .s-product-cart__center-item .b-product-features {
  margin-top: 0 !important;
}

/* Hide empty center items (plugins/services) to close the gap */
.s-product-cart__center-item:empty {
  display: none !important;
}
/* Target items that only contain HTML comments (effectively empty) */
.s-product-cart__center .s-product-cart__center-item:has(> :only-child:empty),
.s-product-cart__center .s-product-cart__center-item:not(:has(> *:not(script):not(style))) {
  display: none !important;
}

/* Compact product info column — reduce flex gap */
.s-product-cart__center > .d-flex.flex-column.gap-4 {
  gap: 0.5rem !important;
}

/* Compact features table rows */
.b-product-features .s-features-wrapper__feature td {
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}
.b-product-features .s-features-wrapper__name {
  font-size: 12px !important;
}
.b-product-features .s-features-wrapper__value {
  font-size: 12px !important;
}

/* Reduce features heading margin */
.b-product-features .fs-md.fw-semibold.text-dark.mb-2 {
  margin-bottom: 0.25rem !important;
  font-size: 14px !important;
}

/* Compact summary */
.s-summary {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.s-summary .fs-md.text-quaternary.mb-1 {
  font-size: 12px !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.4 !important;
}

/* Separator between features and summary */
.s-summary {
  border-top: 1px solid #e5e7eb !important;
  padding-top: 10px !important;
  margin-top: 4px !important;
}

/* Hide 'Удаленное управление' from short features */
.b-product-features .s-features-wrapper__feature td.s-features-wrapper__name .s-features-wrapper__text:first-child {
  /* fallback — using JS instead */
}

/* Space between summary and advantage cards */
.alasca-advantages {
  margin-top: 1.5rem !important;
}

/* Shorter advantage cards */
.alasca-adv-card {
  padding: 10px 8px !important;
}
.alasca-adv-card svg {
  width: 28px !important;
  height: 28px !important;
  margin-bottom: 4px !important;
}
.alasca-adv-card .alasca-adv-title {
  font-size: 12px !important;
}
.alasca-adv-card .alasca-adv-value {
  font-size: 11px !important;
}

/* Compact footer */
.b-footer-01 {
  padding-top: 1.5rem !important;
  padding-bottom: 0.5rem !important;
}
@media (min-width: 768px) {
  .b-footer-01 {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
  }
}
.s-subscribe-section {
  margin-bottom: 1rem !important;
}
@media (min-width: 768px) {
  .s-subscribe-section {
    margin-bottom: 1.5rem !important;
  }
}
.b-footer-01 .row.align-items-center.border-top {
  padding-top: 0.5rem !important;
  margin-top: 0.5rem !important;
}
@media (min-width: 768px) {
  .b-footer-01 .row.align-items-center.border-top {
    padding-top: 1rem !important;
    margin-top: 1rem !important;
  }
}

/* Copyright no wrap + kill bottom space */
.b-footer-01 .row.align-items-center.border-top .fs-md.text-quaternary {
  white-space: nowrap !important;
}
.l-footer__html {
  margin-top: 4px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 11px !important;
}
.b-footer-01 {
  padding-bottom: 0.25rem !important;
}
@media (min-width: 768px) {
  .b-footer-01 {
    padding-bottom: 0.5rem !important;
  }
}

/* Product intro block */
.alasca-product-intro {
  margin-bottom: 1.5rem !important;
}
.alasca-product-intro h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem !important;
  color: #333 !important;
}
.alasca-product-intro p {
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  color: #555 !important;
  margin-bottom: 0.5rem !important;
}
.alasca-product-intro h3 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.25rem !important;
  color: #333 !important;
}

/* Hide feature blocks in intro wrapper, only show intro */
.alasca-intro-wrapper .alasca-feature-block {
  display: none !important;
}
.alasca-intro-wrapper .alasca-product-intro {
  display: block !important;
}

/* Product title: compact, one line */
h1.pt-4.pt-md-0.pb-md-6.mb-md-0 {
  font-size: 1.35rem !important;
  line-height: 1.3 !important;
  padding-bottom: 0.5rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px) {
  h1.pt-4.pt-md-0.pb-md-6.mb-md-0 {
    font-size: 1.1rem !important;
    white-space: normal;
  }
}

/* Hide "/шт." from price display */
.s-price .price-wrapper .unit {
  display: none;
}
.s-price .price-wrapper {
  font-size: inherit;
}

/* Narrower right cart column on product page */
@media (min-width: 1200px) {
  .b-price-group .card-body {
    padding: 1rem;
  }
  .b-price-group .btn-theme {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  .b-price-group .btn-outline-theme {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}



/* Right sidebar — standard Bootstrap width */


/* SKU: two columns — water left, electric right */
.alasca-sku-groups {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  width: 100%;
}
.alasca-sku-group {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.alasca-sku-group .s-sku-item {
  width: 100%;
}
.alasca-sku-group .s-sku-item .btn {
  width: 100%;
  white-space: nowrap;
}

/* Adaptive right sidebar buttons */
.s-product-cart__right .b-plugin-ewshopqorder .btn,
.s-product-cart__right .js-ewshopqorder-button {
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Nav categories — compact gaps */
.b-nav-categories .navbar-nav.gap-6 {
  gap: 1.25rem !important;
}

/* ====== SITE-WIDE COMPACT HEADER & CATEGORY ====== */

/* Top header bar — smaller padding */
.l-desktop-header-top__row {
  padding-top: 0.1rem !important;
  padding-bottom: 0.1rem !important;
}

/* Middle header (logo, search, icons) — smaller padding */
.l-desktop-header-middle {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* Bottom header (category nav) — smaller padding */
.l-desktop-header-bottom {
  padding-top: 0.1rem !important;
  padding-bottom: 0.1rem !important;
}

/* Category nav links — smaller vertical padding */
.b-nav-categories__nav-link {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  font-size: 0.9rem;
}

/* Pages nav (top bar) — smaller font */
.b-nav-pages__nav-link {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  font-size: 0.8rem;
}

/* Category page H1 — smaller */
.s-global-header {
  font-size: 1.3rem !important;
  padding-bottom: 0.35rem !important;
  padding-top: 0 !important;
}

/* Subcategory cards grid — reduce bottom margin */
.b-categories-02 {
  margin-bottom: 0.5rem !important;
}

/* Subcategory card text — smaller */
.b-categories-02__name {
  font-size: 0.85rem;
}

/* Subcategory card images — smaller */
.b-categories-02__image img {
  max-height: 120px;
}

/* Category description — compact */
.s-category-wrapper .s-category-description,
.s-category-wrapper .b-text {
  font-size: 0.82rem;
  margin-bottom: 0.25rem !important;
  line-height: 1.4;
}

/* Breadcrumbs — compact */
.breadcrumb {
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  margin-top: 0 !important;
  margin-bottom: 0.15rem !important;
  font-size: 0.75rem;
}

/* Breadcrumbs wrapper — kill extra spacing */
.b-breadcrumbs {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0 !important;
}

/* Space between header and main content */
.l-content-wrapper,
.l-page-content {
  padding-top: 0 !important;
}

/* Logo/search row — smaller icons text */
.l-desktop-header-middle .fs-sm {
  font-size: 0.7rem !important;
}

/* Header row gaps — tighter */
.l-desktop-header-middle__row {
  gap: 1rem !important;
}
.l-desktop-header-top__row {
  gap: 1rem !important;
}

/* Category page description block spacing */
.s-category-wrapper > .mb-6,
.s-category-wrapper > .mb-8,
.s-category-wrapper > .pb-6,
.s-category-wrapper > .pb-8 {
  margin-bottom: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Category description text — actual selectors */
.s-description-section.category-desc,
.s-description-section.category-desc.b-prose,
.s-description-section.category-desc p,
.s-description-section.category-desc h2,
.s-description-section.category-desc li {
  font-size: 0.82rem !important;
  line-height: 1.4 !important;
}
.s-description-section.category-desc h2 {
  font-size: 1rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.25rem !important;
}
.s-description-section.category-desc {
  padding-bottom: 0.5rem !important;
}

/* ====== CATALOG: stock + sku on separate lines ====== */
.s-info-wrapper > .d-flex.flex-wrap {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.15rem !important;
}

/* ====== ACCESSORIES CHECKLIST ====== */
.b-accessories-checklist {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 0.75rem;
}
.b-accessories-checklist__title {
  color: #333;
  font-size: 0.8rem;
}
.b-accessories-checklist__list {
  max-height: 210px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}
.b-accessories-checklist__list::-webkit-scrollbar {
  width: 4px;
}
.b-accessories-checklist__list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}
.b-accessories-checklist__item {
  padding: 3px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
}
.b-accessories-checklist__item:hover {
  background: rgba(0,0,0,0.02);
}
.b-accessories-checklist__item .form-check-input {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.b-accessories-checklist__name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #555;
}
.b-accessories-checklist__price {
  font-size: 0.75rem;
  color: #333;
  white-space: nowrap;
}
.b-accessories-checklist__total {
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.85rem;
}
.b-accessories-checklist__total.has-accessories .js-acc-total {
  color: #2e7d32;
}
