/* =========================================================
   WA КАТАЛОГ — COMPLETE CSS
   Catalogue: 430px WhatsApp shell
   WooCommerce product: full-width responsive page
   ========================================================= */

/* ── Base ─────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box !important;
}

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

body {
  background: #c8bdb5 !important;
  color: #111 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif !important;
}

img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ── Hide unnecessary WordPress / WooCommerce elements ── */

.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part,
.site-header,
.site-footer,
.woocommerce-breadcrumb,
.woocommerce-notices-wrapper,
.add_to_cart_button,
.single_add_to_cart_button,
.quantity,
.product_meta,
.related.products,
.up-sells,
.cross-sells,
.entry-header,
.entry-footer,
.post-navigation,
.wc-block-cart,
.wc-block-checkout,
.woocommerce-Reviews {
  display: none !important;
}

/* =========================================================
   CATALOGUE AND CUSTOM PAGES
   ========================================================= */

/* Desktop 430px shell — excludes WooCommerce product pages */

@media (min-width: 480px) {
  body:not(.single-product) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding: 32px 0 64px !important;
  }

  body:not(.single-product) .wp-site-blocks {
    width: 430px !important;
    min-width: 430px !important;
    max-width: 430px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.28) !important;
  }
}

@media (max-width: 479px) {
  body:not(.single-product) .wp-site-blocks {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background: #fff !important;
  }
}

/* Reset widths only inside non-product catalogue pages */

body:not(.single-product) .wp-block-post-content,
body:not(.single-product) .entry-content,
body:not(.single-product) main,
body:not(.single-product) article,
body:not(.single-product) .wp-block-group,
body:not(.single-product) .wp-block-column,
body:not(.single-product) .wp-block-columns {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: hidden !important;
}

/* ── Cover image ───────────────────────────────────────── */

.wa-cover-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 170px !important;
  overflow: hidden !important;
}

.wa-cover-img {
  display: block !important;
  width: 100% !important;
  height: 170px !important;
  object-fit: cover !important;
  object-position: center 30% !important;
  filter: none !important;
}

.wa-cover-overlay {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.32) 100%
  ) !important;
}

/* ── Avatar ────────────────────────────────────────────── */

.wa-avatar-ring {
  position: absolute !important;
  z-index: 10 !important;
  bottom: -36px !important;
  left: 50% !important;
  width: 76px !important;
  height: 76px !important;
  padding: 3px !important;
  transform: translateX(-50%) !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22) !important;
}

.wa-avatar-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  color: #fff !important;
  background: linear-gradient(135deg, #075e54, #128c7e) !important;
  border-radius: 50% !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

/* ── Profile ───────────────────────────────────────────── */

.wa-profile {
  background: #075e54 !important;
}

.wa-profile-info {
  padding: 48px 20px 22px !important;
  text-align: center !important;
  background: #064e46 !important;
}

.wa-profile-name {
  margin-bottom: 4px !important;
  color: #fff !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
}

.wa-profile-category {
  margin-bottom: 12px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 11.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.7px !important;
}

.wa-profile-desc {
  margin-bottom: 14px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.wa-profile-meta {
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 18px !important;
}

.wa-profile-meta span {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 12px !important;
}

.wa-view-catalog-btn {
  display: inline-block !important;
  padding: 11px 32px !important;
  color: #fff !important;
  background: #25d366 !important;
  border-radius: 24px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* ── Catalogue ─────────────────────────────────────────── */

.wa-catalog {
  width: 100% !important;
  background: #f0f0f0 !important;
}

.wa-catalog-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 14px 6px !important;
}

.wa-catalog-title,
.wa-catalog-count {
  color: #667781 !important;
  font-size: 12px !important;
}

.wa-catalog-title {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.wa-section-label {
  width: 100% !important;
  padding: 10px 14px 8px !important;
  color: #555 !important;
  background: #e4e4e4 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ── Catalogue cards ───────────────────────────────────── */

.wa-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px !important;
}

.wa-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: inherit !important;
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
  text-decoration: none !important;
}

.wa-card-img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #e0e0e0 !important;
}

.wa-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.wa-card-body {
  display: flex !important;
  flex: 1 !important;
  flex-direction: column !important;
  width: 100% !important;
  padding: 9px 10px 11px !important;
}

.wa-card-name {
  margin-bottom: 4px !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere !important;
}

.wa-card-sub {
  margin-bottom: 5px !important;
  color: #667781 !important;
  font-size: 11.5px !important;
}

.wa-card-price {
  margin-top: auto !important;
  color: #075e54 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* ── Footer message bar ────────────────────────────────── */

.wa-footer-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  background: #f0f0f0 !important;
  border-top: 1px solid #ddd !important;
}

.wa-footer-input {
  flex: 1 !important;
  padding: 9px 14px !important;
  color: #667781 !important;
  background: #fff !important;
  border-radius: 20px !important;
  font-size: 13.5px !important;
}

.wa-footer-send {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 40px !important;
  color: #fff !important;
  background: #25d366 !important;
  border-radius: 50% !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

/* ── Custom detail pages ───────────────────────────────── */

.wa-detail {
  min-height: 100vh !important;
  padding-bottom: 100px !important;
  overflow-x: hidden !important;
  background: #fff !important;
}

.wa-detail-back {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 14px 16px !important;
  color: #fff !important;
  background: #075e54 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.wa-detail-back::before {
  content: "←" !important;
  font-size: 18px !important;
}

.wa-detail-images {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
}

.wa-detail-images img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.wa-detail-body {
  padding: 18px 16px 24px !important;
}

.wa-detail-category {
  margin-bottom: 6px !important;
  color: #25d366 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.7px !important;
}

.wa-detail-title {
  margin-bottom: 6px !important;
  color: #111 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.wa-detail-price {
  margin-bottom: 16px !important;
  color: #075e54 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

.wa-detail-desc {
  margin-bottom: 18px !important;
  color: #3b4a54 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.wa-detail-specs {
  width: 100% !important;
  margin-bottom: 20px !important;
  padding: 14px 16px !important;
  background: #f7f7f7 !important;
  border-radius: 10px !important;
}

.wa-detail-spec-row {
  display: flex !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid #ececec !important;
  font-size: 13px !important;
}

.wa-detail-spec-row:last-child {
  border-bottom: 0 !important;
}

.wa-detail-spec-label {
  color: #667781 !important;
  font-weight: 500 !important;
}

.wa-detail-spec-value {
  color: #111 !important;
  font-weight: 600 !important;
  text-align: right !important;
}

.wa-badge {
  display: inline-block !important;
  margin: 0 4px 4px 0 !important;
  padding: 3px 8px !important;
  color: #2e7d32 !important;
  background: #e8f5e9 !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* ── Sticky WhatsApp CTA for custom pages ─────────────── */

.wa-cta-bar {
  position: fixed !important;
  z-index: 9999 !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 430px !important;
  max-width: 100vw !important;
  padding: 12px 16px 20px !important;
  transform: translateX(-50%) !important;
  background: #fff !important;
  border-top: 1px solid #e9e9e9 !important;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08) !important;
}

.wa-cta-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 14px !important;
  color: #fff !important;
  background: #25d366 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.wa-cta-btn:hover {
  background: #1ebe5d !important;
}

/* =========================================================
   WOOCOMMERCE SINGLE PRODUCT
   ========================================================= */

body.single-product {
  display: block !important;
  min-height: 100vh !important;
  padding: 0 0 64px !important;
  background: #f3f1ee !important;
}

body.single-product .wp-site-blocks {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.single-product main {
  width: min(1200px, calc(100% - 40px)) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 28px 0 0 !important;
  overflow: visible !important;
}

body.single-product article,
body.single-product .wp-block-post-content,
body.single-product .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Back to catalogue */

body.single-product a[href*="/shop"],
body.single-product .wc-block-components-product-button__button {
  white-space: normal !important;
}

body.single-product a[href*="/shop"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 0 20px !important;
  color: #075e54 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.single-product a[href*="/shop"]::before {
  content: "←" !important;
  font-size: 18px !important;
}

/* Block-theme two-column product layout */

body.single-product main .wp-block-columns:first-of-type {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr) !important;
  align-items: start !important;
  gap: clamp(28px, 4vw, 64px) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.single-product main .wp-block-columns:first-of-type > .wp-block-column {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Legacy WooCommerce product layout fallback */

body.single-product div.product {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr) !important;
  align-items: start !important;
  gap: clamp(28px, 4vw, 64px) !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* ── Product gallery ───────────────────────────────────── */

body.single-product .woocommerce-product-gallery,
body.single-product .wp-block-woocommerce-product-gallery,
body.single-product .wc-block-product-gallery {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .wc-block-product-gallery-large-image,
body.single-product .wp-block-woocommerce-product-image-gallery {
  width: 100% !important;
  max-width: 100% !important;
}

body.single-product .woocommerce-product-gallery__image,
body.single-product .wc-block-product-gallery-large-image__wrapper {
  width: 100% !important;
  overflow: hidden !important;
  background: #ddd8d2 !important;
  border-radius: 18px !important;
}

body.single-product .woocommerce-product-gallery__image a {
  display: block !important;
  width: 100% !important;
}

body.single-product .woocommerce-product-gallery__image img,
body.single-product .wc-block-product-gallery-large-image img,
body.single-product .wp-block-woocommerce-product-image-gallery img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 18px !important;
}

/* Thumbnail galleries */

body.single-product .flex-control-thumbs,
body.single-product .wc-block-product-gallery-thumbnails {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.single-product .flex-control-thumbs li,
body.single-product .wc-block-product-gallery-thumbnails__thumbnail {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
}

body.single-product .flex-control-thumbs img,
body.single-product .wc-block-product-gallery-thumbnails img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

body.single-product .flex-control-thumbs img.flex-active,
body.single-product .wc-block-product-gallery-thumbnails img[aria-current="true"] {
  border-color: #075e54 !important;
}

/* ── Product information card ──────────────────────────── */

body.single-product .summary,
body.single-product .wp-block-column:last-child {
  min-width: 0 !important;
}

body.single-product .summary,
body.single-product main .wp-block-columns:first-of-type > .wp-block-column:last-child {
  padding: clamp(22px, 3vw, 34px) !important;
  background: #fff !important;
  border: 1px solid #e5e1dc !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 36px rgba(29, 25, 21, 0.07) !important;
}

body.single-product .product_title,
body.single-product .wp-block-post-title,
body.single-product .wp-block-woocommerce-product-title {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 14px !important;
  color: #1f211f !important;
  font-size: clamp(28px, 3.1vw, 46px) !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

body.single-product .price,
body.single-product .wp-block-woocommerce-product-price {
  display: block !important;
  margin: 0 0 20px !important;
  color: #075e54 !important;
  font-size: clamp(23px, 2.3vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body.single-product .woocommerce-product-details__short-description,
body.single-product .wp-block-woocommerce-product-summary {
  margin: 0 0 24px !important;
  color: #4d504d !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

body.single-product p,
body.single-product li {
  overflow-wrap: break-word !important;
}

/* ── WhatsApp button ───────────────────────────────────── */

body.single-product a[href*="wa.me"],
body.single-product a[href*="whatsapp.com"],
body.single-product .wa-product-whatsapp {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 22px 0 0 !important;
  padding: 14px 20px !important;
  color: #fff !important;
  background: #075e54 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
}

body.single-product a[href*="wa.me"]:hover,
body.single-product a[href*="whatsapp.com"]:hover,
body.single-product .wa-product-whatsapp:hover {
  background: #064b43 !important;
  transform: translateY(-1px) !important;
}

/* ── Full description and attributes ──────────────────── */

body.single-product .woocommerce-tabs {
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 32px 0 0 !important;
  padding: clamp(22px, 3vw, 36px) !important;
  background: #fff !important;
  border: 1px solid #e5e1dc !important;
  border-radius: 20px !important;
}

body.single-product .woocommerce-tabs ul.tabs {
  display: none !important;
}

body.single-product .woocommerce-Tabs-panel {
  display: block !important;
  width: 100% !important;
  margin: 0 0 28px !important;
}

body.single-product .woocommerce-Tabs-panel:last-child {
  margin-bottom: 0 !important;
}

body.single-product .woocommerce-Tabs-panel--reviews {
  display: none !important;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .wp-block-post-content h2 {
  margin: 0 0 16px !important;
  color: #1f211f !important;
  font-size: 24px !important;
  line-height: 1.25 !important;
}

body.single-product .woocommerce-Tabs-panel p,
body.single-product .wp-block-post-content > p {
  color: #4d504d !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

body.single-product table.shop_attributes {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e6e3df !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
}

body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td {
  padding: 13px 15px !important;
  border: 0 !important;
  border-bottom: 1px solid #ece9e5 !important;
  font-size: 14px !important;
  text-align: left !important;
}

body.single-product table.shop_attributes th {
  width: 38% !important;
  color: #66706b !important;
  background: #f7f6f4 !important;
  font-weight: 600 !important;
}

body.single-product table.shop_attributes tr:last-child th,
body.single-product table.shop_attributes tr:last-child td {
  border-bottom: 0 !important;
}

/* =========================================================
   PRODUCT RESPONSIVE
   ========================================================= */

@media (max-width: 781px) {
  body.single-product {
    padding-bottom: 32px !important;
  }

  body.single-product main {
    width: 100% !important;
    padding: 0 !important;
  }

  body.single-product main .wp-block-columns:first-of-type,
  body.single-product div.product {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
  }

  body.single-product .woocommerce-product-gallery,
  body.single-product .wp-block-woocommerce-product-gallery,
  body.single-product .wc-block-product-gallery {
    padding: 0 !important;
  }

  body.single-product .woocommerce-product-gallery__image,
  body.single-product .wc-block-product-gallery-large-image__wrapper,
  body.single-product .woocommerce-product-gallery__image img,
  body.single-product .wc-block-product-gallery-large-image img,
  body.single-product .wp-block-woocommerce-product-image-gallery img {
    border-radius: 0 !important;
  }

  body.single-product .summary,
  body.single-product main .wp-block-columns:first-of-type > .wp-block-column:last-child {
    width: calc(100% - 24px) !important;
    margin: 12px auto 0 !important;
    padding: 22px 18px 24px !important;
    border-radius: 18px !important;
  }

  body.single-product .product_title,
  body.single-product .wp-block-post-title,
  body.single-product .wp-block-woocommerce-product-title {
    font-size: 29px !important;
    line-height: 1.12 !important;
  }

  body.single-product .flex-control-thumbs,
  body.single-product .wc-block-product-gallery-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    padding: 0 12px !important;
  }

  body.single-product .woocommerce-tabs {
    width: calc(100% - 24px) !important;
    margin: 18px auto 0 !important;
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 479px) {
  .wa-grid {
    gap: 8px !important;
    padding: 8px !important;
  }

  .wa-card-body {
    padding: 8px 9px 10px !important;
  }

  body.single-product .product_title,
  body.single-product .wp-block-post-title,
  body.single-product .wp-block-woocommerce-product-title {
    font-size: 27px !important;
  }

  body.single-product .price,
  body.single-product .wp-block-woocommerce-product-price {
    font-size: 23px !important;
  }

  body.single-product table.shop_attributes th,
  body.single-product table.shop_attributes td {
    padding: 11px 10px !important;
    font-size: 13px !important;
  }
}
/* =========================================================
   FINAL FIX — SINGLE PRODUCT
   ========================================================= */

/* Внешняя WooCommerce-обёртка не должна быть колонками */
body.single-product div.wp-block-group.woocommerce.product {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Полноценная ширина страницы */
body.single-product main.wa-product-page {
  display: block !important;
  width: min(1200px, calc(100vw - 48px)) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 28px 0 64px !important;
}

/* Back to catalogue */
body.single-product .wa-product-back-bar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 24px !important;
}

body.single-product .wa-back-link::before,
body.single-product a[href*="/shop"]::before {
  content: none !important;
}

/* Настоящая сетка товара */
body.single-product .wa-product-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr) !important;
  align-items: start !important;
  gap: 48px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 32px !important;
  overflow: visible !important;
}

body.single-product .wa-product-gallery-col,
body.single-product .wa-product-details-col {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* Галерея */
body.single-product .wa-product-gallery-col {
  overflow: visible !important;
}

body.single-product .wa-product-gallery-col
.woocommerce-product-gallery {
  width: 100% !important;
  max-width: none !important;
}

body.single-product .wa-product-gallery-col
.woocommerce-product-gallery__image {
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

body.single-product .wa-product-gallery-col
.woocommerce-product-gallery__image img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  border-radius: 18px !important;
}

body.single-product .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 12px !important;
}

/* Правая карточка */
body.single-product .wa-product-details-col {
  display: block !important;
  padding: 30px !important;
  background: #fff !important;
  border: 1px solid #e5e1dc !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 36px rgba(29, 25, 21, 0.07) !important;
}

body.single-product .wa-product-title {
  width: 100% !important;
  margin: 0 0 14px !important;
  font-size: clamp(30px, 3vw, 46px) !important;
  line-height: 1.08 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Убираем первое дублирующееся описание из правой колонки */
body.single-product
.wa-product-details-col
.woocommerce-tabs {
  display: none !important;
}

/* WhatsApp-кнопка */
body.single-product .wa-product-whatsapp-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 24px 0 0 !important;
  padding: 14px 20px !important;
  white-space: normal !important;
}

/* Полное описание под двумя колонками */
body.single-product .wa-product-description {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 32px !important;
  background: #fff !important;
  border: 1px solid #e5e1dc !important;
  border-radius: 20px !important;
}

/* Mobile */
@media (max-width: 781px) {
  body.single-product main.wa-product-page {
    width: 100% !important;
    padding: 16px 12px 40px !important;
  }

  body.single-product .wa-product-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  body.single-product .wa-product-details-col,
  body.single-product .wa-product-description {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }

  body.single-product .wa-product-title {
    font-size: 28px !important;
  }

  body.single-product .flex-control-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}