/* woocommerce.css */

/* ═══════════════════════════════════════════
   CATALOG PAGE WRAPPER
═══════════════════════════════════════════ */
.catalog-page {
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) clamp(20px, 5vw, 120px) clamp(32px, 4vw, 64px);
}

/* ── Breadcrumbs ── */
.catalog-breadcrumb {
  margin-bottom: clamp(12px, 1.5vw, 22px);
}

.catalog-breadcrumb .woocommerce-breadcrumb {
  font-size: clamp(12px, .9vw, 14px);
  color: #888;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.catalog-breadcrumb .woocommerce-breadcrumb a {
  color: #555;
  text-decoration: none;
  transition: color .18s;
}

.catalog-breadcrumb .woocommerce-breadcrumb a:hover {
  color: #e31720;
}

.catalog-breadcrumb .woocommerce-breadcrumb .breadcrumb-separator,
.catalog-breadcrumb .woocommerce-breadcrumb > span:not(:last-child)::after {
  content: ' / ';
  color: #ccc;
  margin-inline: 2px;
}

/* ── Scroll spinner ── */
.catalog-scroll-spinner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(20px, 3vw, 40px) 0;
  font-size: clamp(12px, 1vw, 14px);
  color: #888;
}

.catalog-scroll-spinner__circle {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2.5px solid #e0e0e0;
  border-top-color: #e31720;
  border-radius: 50%;
  animation: catalog-spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes catalog-spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   CATALOG PRODUCTS GRID
═══════════════════════════════════════════ */
.catalog-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.2vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Card ── */
.catalog-product-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: clamp(8px, 1vw, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
}

.catalog-product-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.11);
  transform: translateY(-3px);
}

/* ── Image ── */
.catalog-product-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  padding: clamp(6px, .8vw, 12px);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

/* Бейдж відео: стилі в components.css (завжди підключений) */

.catalog-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s;
}

.catalog-product-card:hover .catalog-product-img img {
  transform: scale(1.06);
}

/* ── Title ── */
.catalog-product-title {
  font-size: clamp(11px, .85vw, 13px);
  font-weight: 500;
  line-height: 1.4;
  margin: clamp(8px, .8vw, 12px) clamp(10px, 1vw, 16px) 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-product-title a {
  text-decoration: none;
  color: #111;
  transition: color .2s;
}

.catalog-product-title a:hover {
  color: #e31720;
}

/* ── Bottom: price + button ── */
.catalog-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8px, .8vw, 14px) clamp(10px, 1vw, 16px);
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ── Price ── */
.catalog-product-price {
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  color: #35c345;
  white-space: nowrap;
}

.catalog-product-price .woocommerce-Price-currencySymbol {
  font-size: .9em;
}

/* ── Add to cart button (shared with home page) ── */
.catalog-product-bottom .fastshop-add-to-cart {
  background: #e31720;
  color: #fff;
  border: none;
  border-radius: clamp(4px, .5vw, 8px);
  padding: clamp(6px, .6vw, 10px) clamp(10px, 1vw, 18px);
  font-size: clamp(11px, .85vw, 13px);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  line-height: 1.2;
}

.catalog-product-bottom .fastshop-add-to-cart:hover {
  background: #c0121a;
  transform: scale(1.04);
}

.catalog-product-bottom .fastshop-add-to-cart.adding {
  background: #888;
  pointer-events: none;
}

.catalog-product-bottom .fastshop-add-to-cart.added {
  background: #28a745;
}

/* ═══════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════ */
.catalog-pagination {
  margin-top: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(16px, 2vw, 32px);
}

.catalog-pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(4px, .5vw, 8px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(32px, 3vw, 42px);
  height: clamp(32px, 3vw, 42px);
  padding: 0 clamp(6px, .6vw, 10px);
  border: 1.5px solid #e0e0e0;
  border-radius: clamp(6px, .6vw, 9px);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  color: #333;
  text-decoration: none;
  background: #fff;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
}

.catalog-pagination__link:hover {
  background: #f5f5f5;
  border-color: #bbb;
  color: #111;
  transform: translateY(-1px);
}

.catalog-pagination__link--active {
  background: #e31720;
  border-color: #e31720;
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

.catalog-pagination__link--arrow {
  color: #555;
}

.catalog-pagination__link--arrow:hover {
  color: #e31720;
  border-color: #e31720;
  background: #fff5f5;
}

.catalog-pagination__dots {
  font-size: clamp(12px, 1vw, 15px);
  color: #999;
  padding: 0 4px;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════ */
@media (max-width: 1400px) {
  .catalog-products { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1200px) {
  .catalog-products { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .catalog-page {
    padding-inline: clamp(16px, 4vw, 48px);
  }
  .catalog-products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .catalog-page {
    padding-inline: clamp(12px, 3.5vw, 28px);
  }
  .catalog-products {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 2vw, 14px);
  }
  .catalog-product-title {
    font-size: clamp(11px, 2.8vw, 13px);
  }
  .catalog-product-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .catalog-product-bottom .fastshop-add-to-cart {
    width: 100%;
    text-align: center;
    padding: 8px;
  }
}

@media (max-width: 420px) {
  .catalog-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .catalog-page {
    padding-inline: 12px;
  }
}



	.product-info{
display:flex;
flex-direction:column;
gap:20px;
max-width:420px;
}

.product-title{
font-size:28px;
font-weight:700;
line-height:1.3;
}

.product-meta{
display:flex;
gap:20px;
font-size:14px;
color:#666;
}

.product-stock.in-stock{
color:#1aa31a;
font-weight:600;
}

.product-stock.out-stock{
color:#d11;
font-weight:600;
}

.product-price{
font-size:30px;
font-weight:700;
color:#111;
}

.product-cart{
display:flex;
align-items:center;
gap:15px;
}

.fastshop-add-to-cart{
background:#e30613;
color:#fff;
border:none;
padding:14px 26px;
font-size:16px;
font-weight:600;
cursor:pointer;
border-radius:6px;
}

.fastshop-add-to-cart:hover{
background:#c4000c;
}


.qty-box{
display:flex;
align-items:center;
border:1px solid #ddd;
border-radius:6px;
overflow:hidden;
}

.qty-box button{
width:36px;
height:36px;
border:none;
background:#f5f5f5;
cursor:pointer;
font-size:18px;
}

.product-qty{
width:50px;
text-align:center;
border:none;
height:36px;
}



.product-tabs{
margin-top:60px;
}

.tabs-nav{
display:flex;
gap:20px;
border-bottom:2px solid #eee;
}

.tab-btn{
background:none;
border:none;
font-size:16px;
padding:12px 0;
cursor:pointer;
position:relative;
}

.tab-btn.active{
font-weight:700;
}

.tab-btn.active:after{
content:'';
position:absolute;
bottom:-2px;
left:0;
width:100%;
height:2px;
background:#e30613;
}

.tabs-content{
margin-top:30px;
}

.tab-panel{
display:none;
}

.tab-panel.active{
display:block;
}

.product-attributes{
width:100%;
border-collapse:collapse;
}

.product-attributes td{
padding:10px;
border-bottom:1px solid #eee;
}















.tabs-content{
margin-top:30px;
max-width:900px;
line-height:1.7;
font-size:16px;
color:#333;
}

/* Заголовки */

.tab-panel h2{
font-size:22px;
margin-top:30px;
margin-bottom:15px;
font-weight:700;
position:relative;
padding-left:14px;
}

.tab-panel h2::before{
content:"";
position:absolute;
left:0;
top:6px;
width:4px;
height:20px;
background:#e30613;
border-radius:2px;
}

/* Параграфи */

.tab-panel p{
margin-bottom:18px;
}

/* Списки */

.tab-panel ul{
padding-left:20px;
margin-top:15px;
}

.tab-panel li{
margin-bottom:10px;
position:relative;
padding-left:18px;
}

/* Галочка */

.tab-panel li::before{
content:"✓";
position:absolute;
left:0;
color:#e30613;
font-weight:bold;
}








.product-tabs{
margin-top:60px;
}

.tabs-nav{
display:flex;
gap:25px;
border-bottom:2px solid #eee;
}

.tab-btn{
background:none;
border:none;
font-size:16px;
padding:12px 0;
cursor:pointer;
position:relative;
}

.tab-btn.active{
font-weight:700;
}

.tab-btn.active::after{
content:"";
position:absolute;
bottom:-2px;
left:0;
width:100%;
height:2px;
background:#e30613;
}

.tabs-content{
margin-top:30px;
}

.tab-panel{
display:none;
}

.tab-panel.active{
display:block;
}

.product-attributes{
width:100%;
border-collapse:collapse;
}

.product-attributes td{
padding:10px;
border-bottom:1px solid #eee;
}

/* ═══════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
═══════════════════════════════════════════════════ */

.sp-page {
  background: #f7f8fa;
  min-height: 60vh;
  padding-bottom: clamp(32px, 5vw, 80px);
  overflow-x: hidden;
}

.sp-page *, .sp-page *::before, .sp-page *::after {
  box-sizing: border-box;
}

.sp-container {
  width: min(80vw, 1400px);
  margin: 0 auto;
}

.sp-breadcrumb {
  padding: clamp(10px, 1.5vw, 18px) 0 clamp(12px, 1.5vw, 20px);
  font-size: clamp(12px, .9vw, 14px);
  color: #888;
}

.sp-breadcrumb .woocommerce-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.sp-breadcrumb .woocommerce-breadcrumb a { color: #555; text-decoration: none; }
.sp-breadcrumb .woocommerce-breadcrumb a:hover { color: #2f80ed; }

.sp-top {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.sp-left {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

/* Gallery */
.sp-gallery {
  background: #fff;
  border-radius: clamp(10px, 1.2vw, 18px);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  overflow: visible;
}

/* Main slider wrapper — contains overflow */
.sp-main-swiper {
  position: relative;
  border-radius: clamp(10px, 1.2vw, 18px) clamp(10px, 1.2vw, 18px) 0 0;
  overflow: hidden;
}

.sp-main-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  background: #fff;
  padding: clamp(12px, 1.5vw, 24px);
}

.sp-main-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.sp-main-swiper .swiper-slide:hover img { transform: scale(1.04); }

.sp-img-link {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Кнопки навігації головного слайдера — круглі червоні */
.common-slider-buttons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(6px, 1.2vw, 14px);
  pointer-events: none;
  z-index: 15;
}

.sp-main-swiper .common-slider-buttons .swiper-button-prev.slider-btn,
.sp-main-swiper .common-slider-buttons .swiper-button-next.slider-btn {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.common-slider-buttons .slider-btn {
  width: clamp(36px, 2.60417vw, 52px);
  height: clamp(36px, 2.60417vw, 52px);
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  background-color: #e31720;
  border: 1px solid #e31720;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.3s, border-color 0.3s, transform 0.2s, opacity 0.3s;
}

.common-slider-buttons .slider-btn:hover:not(.swiper-button-disabled) {
  background-color: #c8111a;
  border-color: #c8111a;
  opacity: 1;
}

.common-slider-buttons .slider-btn::after {
  font-size: clamp(12px, 1.15vw, 16px);
  font-weight: 700;
  color: #fff !important;
}

.common-slider-buttons .slider-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.sp-thumbs-swiper {
  padding: clamp(8px, 1vw, 14px);
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 clamp(10px, 1.2vw, 18px) clamp(10px, 1.2vw, 18px);
  overflow: hidden;
}

.sp-thumbs-swiper .swiper-slide {
  width: clamp(60px, 8vw, 90px) !important;
  height: clamp(60px, 8vw, 90px);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .18s, opacity .18s;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.sp-thumbs-swiper .swiper-slide:focus { outline: none; }

.sp-thumbs-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.sp-thumbs-swiper .swiper-slide-thumb-active {
  border-color: #2f80ed;
  opacity: 1;
}

.sp-thumbs-swiper .swiper-slide:not(.swiper-slide-thumb-active) {
  opacity: .75;
}

/* Accordion */
.sp-accordion {
  background: #fff;
  border-radius: clamp(10px, 1.2vw, 18px);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.sp-acc-item { border-bottom: 1px solid #f0f0f0; }
.sp-acc-item:last-child { border-bottom: none; }

.sp-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 1.4vw, 18px) clamp(16px, 2vw, 24px);
  background: none;
  border: none;
  cursor: pointer;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  color: #222;
  text-align: left;
  transition: background .18s;
  gap: 10px;
}

.sp-acc-header > span { display: flex; align-items: center; gap: 8px; }
.sp-acc-header > span svg { color: #2f80ed; flex-shrink: 0; }
.sp-acc-header:hover { background: #f8f9ff; }

.sp-acc-arrow { flex-shrink: 0; color: #aaa; transition: transform .28s; }
.sp-acc-item.is-open .sp-acc-arrow { transform: rotate(180deg); }
.sp-acc-item.is-open .sp-acc-header { color: #2f80ed; }

.sp-acc-body { max-height: 0; overflow: hidden; transition: max-height .32s ease; }

.sp-acc-content {
  padding: clamp(10px, 1.2vw, 16px) clamp(16px, 2vw, 24px) clamp(14px, 1.6vw, 20px) clamp(40px, 3.5vw, 52px);
}

.sp-acc-content p {
  font-size: clamp(12px, .95vw, 14px);
  color: #555;
  margin: 0 0 clamp(4px, .5vw, 8px);
  line-height: 1.6;
}
.sp-acc-content p:last-child { margin: 0; }

/* Right column */
.sp-right {
  background: #fff;
  border-radius: clamp(10px, 1.2vw, 18px);
  padding: clamp(16px, 2.5vw, 32px);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
  position: sticky;
  top: clamp(70px, 8vw, 100px);
  box-sizing: border-box;
  min-width: 0;
}

/* Accordion inside sp-right — reset box-shadow/border-radius to fit */
.sp-right .sp-accordion {
  box-shadow: none;
  border-radius: 0;
  border: 1.5px solid #f0f0f0;
  border-radius: clamp(8px, 1vw, 12px);
  overflow: hidden;
  margin-top: 0;
}

.sp-title {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  margin: 0;
}

.sp-meta { display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 1.2vw, 18px); flex-wrap: wrap; }
.sp-sku { font-size: clamp(11px, .85vw, 13px); color: #888; }
.sp-sku strong { color: #555; }

.sp-stock { display: flex; align-items: center; gap: 6px; font-size: clamp(12px, .9vw, 13px); font-weight: 600; }
.sp-stock.in-stock  { color: #28a745; }
.sp-stock.out-stock { color: #e31720; }

.sp-stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.in-stock  .sp-stock-dot { background: #28a745; box-shadow: 0 0 0 3px rgba(40,167,69,.18); animation: sp-pulse 2s infinite; }
.out-stock .sp-stock-dot { background: #e31720; }

@keyframes sp-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(40,167,69,.18); }
  50%      { box-shadow: 0 0 0 7px rgba(40,167,69,.06); }
}

.sp-price { font-size: clamp(22px, 2.8vw, 36px); font-weight: 800; color: #35c345; line-height: 1; }
.sp-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.sp-price del { font-size: .65em; color: #aaa; font-weight: 400; margin-right: 6px; }
.sp-price ins { text-decoration: none; }

.sp-short-desc {
  font-size: clamp(12px, .95vw, 14px);
  color: #555;
  line-height: 1.65;
  padding-top: clamp(10px, 1vw, 14px);
  border-top: 1px solid #f0f0f0;
}

.sp-cart { display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); flex-wrap: wrap; }

.sp-qty { display: flex; align-items: center; border: 1.5px solid #e0e0e0; border-radius: clamp(8px, .9vw, 12px); overflow: hidden; flex-shrink: 0; }

.sp-qty-btn {
  width: clamp(34px, 3.5vw, 44px);
  height: clamp(42px, 5vw, 52px);
  border: none;
  background: #f8f8f8;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: background .18s;
  line-height: 1;
}

.sp-qty-btn:hover { background: #efefef; color: #e31720; }

.sp-qty-input {
  width: clamp(36px, 3.6vw, 48px);
  height: clamp(42px, 5vw, 52px);
  border: none;
  border-inline: 1.5px solid #e0e0e0;
  text-align: center;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600;
  color: #111;
  outline: none;
  -moz-appearance: textfield;
}

.sp-qty-input::-webkit-inner-spin-button,
.sp-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.sp-buy-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, .7vw, 10px);
  background: #e31720;
  color: #fff;
  border: none;
  border-radius: clamp(8px, .9vw, 12px);
  height: clamp(42px, 5vw, 52px);
  padding-inline: clamp(16px, 2vw, 28px);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}

.sp-buy-btn:hover { background: #c0121a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(227,23,32,.3); }
.sp-buy-btn.adding { background: #888; pointer-events: none; }
.sp-buy-btn.added  { background: #28a745; }

.sp-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(10px, 1.2vw, 14px);
  border: 1.5px dashed #2f80ed;
  border-radius: clamp(8px, .9vw, 12px);
  color: #2f80ed;
  text-decoration: none;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  transition: background .18s, border-style .18s;
}

.sp-call:hover { background: #f0f6ff; border-style: solid; }

/* Tabs (як .dscr / .dscr-tab — сіра смуга, активна жовта #faeb42) */
.sp-tabs {
  position: relative;
  margin-top: clamp(24px, 3vw, 48px);
  padding: 0 0 clamp(12px, 2vw, 28px);
  background: #fff;
  border-radius: clamp(10px, 1.2vw, 18px);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.sp-tabs-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(6px, 1vw, 12px);
  border-radius: 10px 10px 0 0;
  background-color: #f0f1f1;
  padding: clamp(6px, 0.8vw, 10px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sp-tabs-nav::-webkit-scrollbar { display: none; }

.sp-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.5vw, 18px) clamp(8px, 2vw, 20px);
  border: none;
  border-radius: 10px;
  margin: 0;
  background: transparent;
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background .4s, color .4s, font-weight .2s, box-shadow .3s;
  white-space: nowrap;
}

.sp-tab-btn:hover {
  color: #111;
  background-color: rgba(250, 235, 66, 0.45);
}

.sp-tab-btn.active {
  font-weight: 700;
  color: #111;
  background-color: #faeb42;
  box-shadow: none;
}

.sp-tabs-body {
  padding: clamp(18px, 2.2vw, 32px) clamp(20px, 3vw, 40px) clamp(28px, 3.5vw, 44px);
}

.sp-tab-panel { display: none; }
.sp-tab-panel.active {
  display: block !important;
  animation: sp-tab-in .22s ease both;
}

@keyframes sp-tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Description content styling ── */
.sp-tab-panel p {
  margin-bottom: clamp(10px, 1.2vw, 16px);
  line-height: 1.75;
  font-size: clamp(13px, 1vw, 15px);
  color: #444;
}

/* Headings with red left border (like screenshot) */
.sp-tab-panel h1,
.sp-tab-panel h2,
.sp-tab-panel h3,
.sp-tab-panel h4 {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  color: #111;
  margin: clamp(20px, 2.5vw, 32px) 0 clamp(10px, 1vw, 16px);
  padding-left: clamp(12px, 1.2vw, 18px);
  border-left: 4px solid #e31720;
  line-height: 1.3;
}

.sp-tab-panel h1:first-child,
.sp-tab-panel h2:first-child,
.sp-tab-panel h3:first-child { margin-top: 0; }

/* Списки лише у вкладці «Опис» — без псевдо-елементів на ul у вкладці «Відгуки» */
#sp-desc ul {
  list-style: disc outside;
  padding-left: clamp(18px, 2vw, 26px);
  margin: clamp(8px, 1vw, 14px) 0 clamp(12px, 1.5vw, 20px);
}

#sp-desc ul li {
  margin-bottom: clamp(4px, .5vw, 8px);
  font-size: clamp(13px, 1vw, 15px);
  color: #444;
  line-height: 1.6;
}

.sp-tab-panel ol {
  padding-left: clamp(18px, 2vw, 26px);
  margin: clamp(8px, 1vw, 14px) 0;
}

.sp-tab-panel ol li {
  font-size: clamp(13px, 1vw, 15px);
  color: #444;
  line-height: 1.65;
  margin-bottom: 6px;
}

.sp-tab-panel strong, .sp-tab-panel b { color: #111; }
.sp-tab-panel a { color: #2f80ed; text-decoration: underline; }
.sp-tab-panel a:hover { color: #e31720; }

.sp-attrs-table { width: 100%; border-collapse: collapse; font-size: clamp(13px, 1vw, 15px); }
.sp-attrs-table tr:nth-child(even) th,
.sp-attrs-table tr:nth-child(even) td { background: #f8f9fa; }
.sp-attrs-table th { text-align: left; padding: clamp(8px, .9vw, 12px) clamp(12px, 1.2vw, 18px); font-weight: 600; color: #333; width: 40%; border-bottom: 1px solid #f0f0f0; }
.sp-attrs-table td { padding: clamp(8px, .9vw, 12px) clamp(12px, 1.2vw, 18px); color: #555; border-bottom: 1px solid #f0f0f0; }

/* Відео — до 60% ширини контенту вкладки, по центру */
#sp-video .sp-video-wrap,
#sp-video .sp-video-wrap--oembed {
  max-width: 60%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.sp-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.sp-video-wrap iframe,
.sp-video-wrap video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* oEmbed від WordPress (не YouTube ID) */
.sp-video-wrap--oembed .wp-block-embed__wrapper,
.sp-video-wrap--oembed > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sp-video-wrap--oembed iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.sp-video-fallback {
  margin: 0 auto;
  max-width: 60%;
  text-align: center;
  font-size: clamp(14px, 1.1vw, 16px);
}
.sp-video-fallback a {
  color: #2f80ed;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .sp-container { width: min(88vw, 1400px); }
}

@media (max-width: 900px) {
  .sp-container { width: min(94vw, 1400px); }
  .sp-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sp-right {
    position: static;
    width: 100%;
    box-sizing: border-box;
  }
  .sp-left {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .sp-page { padding-bottom: 40px; }
  .sp-container {
    width: 100%;
    padding-inline: 12px;
    box-sizing: border-box;
  }
  .sp-top { gap: 12px; }
  .sp-right {
    padding: 14px 12px;
    border-radius: 12px;
  }
  .sp-title { font-size: 15px; }
  .sp-price { font-size: 22px; }
  .sp-cart {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .sp-qty {
    flex-shrink: 0;
  }
  .sp-qty-btn {
    width: 34px;
    height: 40px;
  }
  .sp-qty-input {
    width: 36px;
    height: 40px;
    font-size: 14px;
  }
  .sp-buy-btn {
    height: 40px;
    padding-inline: 10px;
    font-size: 14px;
    flex: 1;
    min-width: 0;
  }
  .sp-tabs { margin-top: 12px; border-radius: 12px; padding: 0 0 10px; }
  .sp-tabs-body { padding: 16px 14px 22px; }
  .sp-tabs-nav { gap: 4px; padding: 5px; border-radius: 8px 8px 0 0; }
  .sp-tab-btn { padding: 10px 6px; font-size: 12px; }
  #sp-video .sp-video-wrap,
  #sp-video .sp-video-wrap--oembed,
  #sp-video .sp-video-fallback { max-width: 100%; }
  .sp-thumbs-swiper .swiper-slide { width: 52px !important; height: 52px; }
  .sp-tab-panel h2, .sp-tab-panel h3 { font-size: 15px; }
  .sp-tab-panel p, .sp-tab-panel ul li { font-size: 13px; }
  .sp-main-swiper .swiper-slide {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
  .sp-acc-header {
    padding: 12px 14px;
    font-size: 13px;
  }
  .sp-acc-content p { font-size: 13px; }
}
