/* =========================================================
   Single product: визуални подобрения (summary, табове, gallery, FAB)
========================================================= */

/* PRODUCT SHORT DESCRIPTION HIGHLIGHT */
.single-product .summary.entry-summary .woocommerce-product-details__short-description {
  position: relative;
  margin: 18px 0 22px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 2px solid rgba(0, 118, 255, 0.45);
  background: linear-gradient(135deg, #ffffff 0%, #e8f2ff 55%, #fff2d7 100%);
  box-shadow: 0 18px 36px rgba(0, 78, 255, 0.18);
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description::before {
  content: "";
  position: absolute;
  left: 16px;
  top: -8px;
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0076ff, #ff9a00);
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--esf-ink);
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description p::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 118, 255, 0.25);
  color: #0f1f3d;
  box-shadow: 0 6px 12px rgba(0, 78, 255, 0.12);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description p:nth-of-type(1)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230076ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='3'/><path d='M7 16V8l3 4 3-4v8'/><path d='M16 16v-6'/><path d='M18 10h-4'/></svg>");
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description p:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l2.6 5.4 6 0.9-4.3 4.2 1 6-5.3-2.8-5.3 2.8 1-6L3.4 9.3l6-0.9z'/></svg>");
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description p:nth-of-type(3)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230076ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v11'/><path d='M8 7a4 4 0 1 1 8 0'/><path d='M7 14h10'/><path d='M10 21h4'/></svg>");
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description p:nth-of-type(4)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230076ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2l7 4v6c0 4.4-3 8.4-7 10-4-1.6-7-5.6-7-10V6z'/><path d='M8.5 12l2.5 2.5 4.5-4.5'/></svg>");
}

.single-product .summary.entry-summary .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

.single-product .summary.entry-summary .price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid rgba(0, 118, 255, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 60%, #fff3da 100%);
  box-shadow: 0 12px 26px rgba(0, 78, 255, 0.16);
}

.single-product .summary.entry-summary .price .amount {
  font-weight: 700;
  color: #0f1f3d;
}

.single-product .summary.entry-summary .price .woocommerce-Price-currencySymbol {
  color: #0076ff;
}

.single-product .summary.entry-summary .price .eur-price {
  font-weight: 600;
  color: #ff7a00;
}

.single-product .summary.entry-summary form.cart {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.single-product .summary.entry-summary .cart button,
.single-product .summary.entry-summary .cart .single_add_to_cart_button {
  position: relative;
  padding: 16px 26px 18px;
  min-height: 56px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a6cff 0%, #0055ff 55%, #003dd9 100%);
  box-shadow: 0 14px 30px rgba(0, 85, 255, 0.35), 0 0 0 6px rgba(0, 118, 255, 0.12);
  color: #fff !important;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-product .summary.entry-summary .cart button::after,
.single-product .summary.entry-summary .cart .single_add_to_cart_button::after {
  content: "Доставка до 48ч";
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-top: 4px;
  opacity: 0.9;
}

/* Product title */
.single-product .product_title.entry-title,
.single-product h1.product_title.entry-title {
  font-family: "Jost", "Poppins", system-ui, sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1.04;
  letter-spacing: 0.6px;
  margin: 0 0 0.5rem 0;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(90deg,#3b82f6 0%,#8b5cf6 60%,#fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 12px rgba(43,110,242,0.08);
  position: relative;
}

.single-product .product_title.entry-title::after,
.single-product h1.product_title.entry-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 6px;
  margin-top: 8px;
  background: linear-gradient(90deg,#3b82f6,#8b5cf6,#fbbf24);
}

.single-product h1.product_title.entry-title::before,
.single-product .product_title.entry-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%233b82f6' d='M12 2l1.5 4.5L18 8l-4.5 1.5L12 14l-1.5-4.5L6 8l4.5-1.5z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

.single-product .product_title.entry-title,
.single-product h1.product_title.entry-title {
  text-shadow: 0 4px 12px rgba(43,110,242,0.06);
}

.single-product .summary.entry-summary .cart button:hover,
.single-product .summary.entry-summary .cart button:focus,
.single-product .summary.entry-summary .cart .single_add_to_cart_button:hover,
.single-product .summary.entry-summary .cart .single_add_to_cart_button:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 85, 255, 0.4), 0 0 0 8px rgba(0, 118, 255, 0.16);
}

.single-product .summary.entry-summary .product_title {
  display: inline-block;
  margin-right: 10px;
}

.single-product .summary.entry-summary .esf-title-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7e6;
  border: 1px solid rgba(255, 154, 0, 0.35);
  font-size: 0.85rem;
  color: #8a4d00;
  margin: 6px 0 4px;
}

.single-product .summary.entry-summary .esf-title-rating .star-rating {
  margin: 0;
}

.single-product .summary.entry-summary .esf-rating-count {
  font-weight: 600;
}

.single-product .summary.entry-summary .esf-price-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 6px;
}

.single-product .summary.entry-summary .esf-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #0f1f3d;
  background: #eaf2ff;
  border: 1px solid rgba(0, 118, 255, 0.2);
}

.single-product .summary.entry-summary .esf-badge--hot {
  background: #fff0f0;
  border-color: rgba(255, 84, 84, 0.35);
  color: #c21f1f;
}

.single-product .summary.entry-summary .esf-badge--promo {
  background: #fff7d6;
  border-color: rgba(255, 180, 0, 0.4);
  color: #8a4d00;
}

.single-product .summary.entry-summary .esf-badge--service {
  background: #eafff2;
  border-color: rgba(0, 190, 120, 0.35);
  color: #0a6b42;
}

.single-product .summary.entry-summary .esf-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 10px;
  font-weight: 600;
  color: #1f2430;
}

.single-product .summary.entry-summary .esf-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(31, 36, 48, 0.08);
  box-shadow: 0 8px 16px rgba(31, 36, 48, 0.08);
  font-size: 0.9rem;
}

.single-product .summary.entry-summary .esf-trust-item::before {
  content: "";
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.single-product .summary.entry-summary .esf-trust-item--warranty::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230076ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2l7 4v6c0 4.4-3 8.4-7 10-4-1.6-7-5.6-7-10V6z'/><path d='M8.5 12l2.5 2.5 4.5-4.5'/></svg>");
}

.single-product .summary.entry-summary .esf-trust-item--roi::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 0 1 9-9'/><path d='M21 12a9 9 0 0 1-9 9'/><path d='M12 7v5l3 3'/><path d='M8 3h8'/></svg>");
}

.single-product .summary.entry-summary .esf-delivery-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2430;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f8ff;
  border: 1px solid rgba(0, 118, 255, 0.2);
  margin-bottom: 12px;
}

.single-product .summary.entry-summary .esf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1ccf6b;
  box-shadow: 0 0 0 4px rgba(28, 207, 107, 0.2);
}

.single-product .summary.entry-summary .esf-sep {
  opacity: 0.5;
}

.single-product .summary.entry-summary .esf-why-model {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(31, 36, 48, 0.08);
  box-shadow: 0 16px 32px rgba(31, 36, 48, 0.08);
}

.single-product .summary.entry-summary .esf-why-model h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.single-product .summary.entry-summary .esf-why-model ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.single-product .summary.entry-summary .esf-why-model li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #1f2430;
}

.single-product .summary.entry-summary .esf-why-model li::before {
  content: "";
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.single-product .summary.entry-summary .esf-why-item--comfort::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230076ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 14c3.5-4.5 12.5-4.5 16 0'/><path d='M6 18c2.5-2.8 9.5-2.8 12 0'/><path d='M8 10c1.8-2 6.2-2 8 0'/></svg>");
}

.single-product .summary.entry-summary .esf-why-item--saving::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b87a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2v20'/><path d='M7 6h7a3 3 0 0 1 0 6H9a3 3 0 0 0 0 6h8'/></svg>");
}

.single-product .summary.entry-summary .esf-why-item--quiet::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6f7a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18a6 6 0 0 1 0-12'/><path d='M13 16a4 4 0 0 0 0-8'/><path d='M17 14a2 2 0 0 0 0-4'/></svg>");
}

.single-product .summary.entry-summary .esf-why-item--service::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7h16'/><path d='M7 7l2-3h6l2 3'/><rect x='6' y='7' width='12' height='13' rx='2'/><path d='M9 12h6'/><path d='M9 16h6'/></svg>");
}

.single-product .woocommerce-tabs .shop_attributes {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(31, 36, 48, 0.08);
  box-shadow: 0 14px 30px rgba(31, 36, 48, 0.08);
}

.single-product .woocommerce-tabs .shop_attributes th,
.single-product .woocommerce-tabs .shop_attributes td {
  padding: 12px 16px;
  border: 0;
}

.single-product .woocommerce-tabs .shop_attributes tr:nth-child(odd) {
  background: #f7f9ff;
}

.single-product .woocommerce-tabs .shop_attributes th {
  font-weight: 700;
  color: #1f2430;
  width: 40%;
}

.single-product .woocommerce-tabs .shop_attributes td {
  font-weight: 600;
  color: #495366;
}

.single-product div.product div.images.woocommerce-product-gallery {
  max-width: 560px;
}

.single-product div.product div.images.woocommerce-product-gallery .woocommerce-product-gallery__image img {
  transition: transform 0.4s ease;
}

.single-product div.product div.images.woocommerce-product-gallery .woocommerce-product-gallery__image:hover img {
  transform: scale(1.05);
}

.single-product div.product .flex-control-thumbs li img {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-product div.product .flex-control-thumbs li:hover img {
  transform: scale(1.08);
  box-shadow: 0 10px 20px rgba(31, 36, 48, 0.2);
}

.esf-mobile-fab {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #0a6cff 0%, #0046d8 100%);
  box-shadow: 0 16px 30px rgba(0, 85, 255, 0.35);
}

@media (max-width: 768px) {
  .single-product .product_title.entry-title,
  .single-product h1.product_title.entry-title {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
  }

  .single-product .product_title.entry-title::after,
  .single-product h1.product_title.entry-title::after {
    width: 40px;
    height: 4px;
  }

  .esf-mobile-fab {
    display: block;
  }
}

@media (max-width: 480px) {
  .single-product h1.product_title.entry-title::before,
  .single-product .product_title.entry-title::before {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }
}

/* Product description typography */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description,
.single-product .woocommerce-tabs .wc-tab {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--esf-ink);
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description h2,
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description p {
  margin: 0 0 0.9rem;
  color: var(--esf-muted);
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description ul,
.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description ol {
  margin: 0 0 1rem 1.1rem;
  padding-left: 1rem;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description li {
  margin: 0.35rem 0;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel--description li::marker {
  color: var(--esf-primary);
}
