/* ================================================
   GUTENBERG CUSTOM HTML BLOCKS STYLES
   Стили для HTML-контента, добавленного через блок HTML в Gutenberg
   ================================================ */

/* Основная обертка для пользовательского HTML контента */
/* Main content wrapper to prevent horizontal scroll */
.main-content {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Product Section Styles - для e-commerce контента */
.product-section {
  background: #ffffff;
  /* padding: 3rem 0; */
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); */
  max-width: 100vw;
  overflow-x: hidden;
}

/* Enhanced container for product content */
.product-section .page-content {
  background: #ffffff;
}

.product-section .page-width {
  max-width: 1400px;
}

.product-single__header {
  margin-bottom: 1.5rem;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb__divider {
  color: #cbd5e1;
  margin: 0 0.25rem;
}

/* Product Title */
.product-single__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Product SKU/Vendor */
.product-single__vendor-sku {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.product-single__sku {
  font-weight: 500;
}

/* Product Grid Layout */
.product-grid__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .product-grid__container {
    grid-template-columns: 30% 1fr;
    gap: 4rem;
  }
}

/* Fix for conflicting grid classes */
.product-grid__container .grid__item {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0;
}

/* Limit slider width on mobile to prevent overflow */
@media (max-width: 767px) {
  .product-grid__container .grid__item:first-child {
    max-width: 100vw;
    overflow: hidden;
  }
}

/* Spacing for the secondary section (Tabs, Shipping info) */
/* .product-full-width,
.shopify-section + .shopify-section {
  margin-top: 4rem;
  padding-top: 2rem;
} */

/* Product Images */
.product__photos {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.product__main-photos {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.product-slideshow {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  width: 100%;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
  /* border: 1px solid #f1f5f9; */
  background: #ffffff;
}
/* Swiper-specific styles for product slideshow */
.product-slideshow.swiper {
  width: 100%;
  max-width: 100%;
  display: block;
}

.product-slideshow.swiper .swiper-wrapper {
  align-items: stretch;
  max-width: 100%;
}

.product-slideshow.swiper .swiper-slide {
  height: auto;
  align-self: stretch;
  max-width: 100%;
  min-width: 0;
}

.product-main-slide {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.product-image-main {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.product-image-main:hover {
  /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
}

.image-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.image-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

/* Zoom Button - Hidden */
.product__photo-zoom {
  display: none !important;
}

/* Product Thumbnails */
.product__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.product__thumbs--scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.product__thumbs--scroller::-webkit-scrollbar {
  height: 6px;
}

.product__thumbs--scroller::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.product__thumbs--scroller::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.product__thumbs--scroller::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.product__thumb-item {
  display: none !important;
}

.product__thumb {
  display: block;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  background: #f8fafc;
}

.product__thumb:hover {
  border-color: #2563eb;
  /* box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15); */
  transform: translateY(-2px);
}

.product__thumb.is-active {
  border-color: #2563eb;
  /* box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); */
}

.product__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Video Thumbnail Icon */
.product__thumb-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  z-index: 2;
}

.product__thumb-icon svg {
  width: 1rem;
  height: 1rem;
  fill: white;
}

/* Video Wrapper */
.product__video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #000;
}

.product__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Flickity/Swiper Dots */
.flickity-page-dots,
.swiper-pagination {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.flickity-page-dots .dot,
.swiper-pagination-bullet {
  width: 0.75rem;
  height: 0.75rem;
  background: #cbd5e1;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;
  position: relative;
}

.flickity-page-dots .dot::after,
.swiper-pagination-bullet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 150%;
  height: 150%;
  border: 2px solid #2563eb;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.flickity-page-dots .dot:hover,
.flickity-page-dots .dot.is-selected,
.swiper-pagination-bullet:hover,
.swiper-pagination-bullet-active {
  background: #2563eb;
  opacity: 1;
  transform: scale(1.25);
  border-color: #2563eb;
}

.flickity-page-dots .dot.is-selected::after,
.swiper-pagination-bullet-active::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Flickity Viewport */
.flickity-viewport {
  overflow: hidden;
  position: relative;
}

/* Swiper Wrapper */
.swiper-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  transition-property: transform;
  box-sizing: border-box;
  align-items: flex-start;
}

.flickity-slider {
  display: flex;
  width: 100%;
}

.flickity-enabled,
.swiper {
  position: relative;
  overflow: hidden;
}

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Swiper slide */
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  position: relative;
  transition-property: transform;
  display: block;
  box-sizing: border-box;
}

/* Product Meta/Details */
.product-single__meta {
  padding: 1.5rem;
  background: #ffffff;
  /* border-radius: 1rem; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
  /* border: 1px solid #f1f5f9; */
}

.product-single__sticky {
  position: relative;
}

@media (min-width: 1024px) {
  .product-single__sticky {
    position: sticky;
    top: calc(var(--header-height, 80px) + 2rem);
  }

  .product-single__meta {
    padding: 2rem;
  }
}

/* Product Blocks */
.product-block {
  margin-bottom: 1.5rem;
}

.product-block--header {
  margin-bottom: 2rem;
}

/* Product Description */
.product-block .rte {
  color: #4b5563;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.product-block .rte p {
  margin-bottom: 1rem;
}

.product-block .rte p:last-child {
  margin-bottom: 0;
}

.product-block .rte a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #fca5a5;
  transition: all 0.2s;
  padding-bottom: 1px;
}

.product-block .rte a:hover {
  color: #991b1b;
  border-bottom-color: #dc2626;
}

/* Product Price */
.product-block--price {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 0.75rem;
  margin: 1rem 0;
}

.variant__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product__price {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
}

.product__price--compare {
  font-size: 1.25rem;
  color: var(--color-muted);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.product__unit-price {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* Product Quantity */
.product__quantity {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product__quantity label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.js-qty__wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 48px; /* Fixed height for better touch target */
  max-width: 150px;
}

/* Reorder elements using Flexbox: Minus(1) | Input(2) | Plus(3) */

/* Input field */
.js-qty__num {
  order: 2;
  width: 3rem;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
  padding: 0;
  background: transparent;
  color: #1f2937;
  -moz-appearance: textfield; /* Remove spinner arrows in Firefox */
}

.js-qty__num::-webkit-outer-spin-button,
.js-qty__num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Buttons shared styles */
.js-qty__adjust {
  width: 3rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  padding: 0;
}

.js-qty__adjust:hover {
  background: #f8fafc;
  color: var(--color-primary);
}

.js-qty__adjust svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2px;
  fill: none;
  transition: transform 0.2s;
}

.js-qty__adjust:active svg {
  transform: scale(0.9);
}

/* Minus Button */
.js-qty__adjust--minus {
  order: 1;
}

/* Plus Button */
.js-qty__adjust--plus {
  order: 3;
}


/* Sales Points / Product Features */
.product-block--sales-point {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #fcd34d;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

.sales-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sales-point {
  display: flex;
  align-items: flex-start;
}

.icon-and-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

.icon-and-text .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon--inventory::before {
  content: "📦";
  font-size: 1.25rem;
}

.inventory--low {
  color: #dc2626;
  font-weight: 600;
}

/* Payment Buttons */
.payment-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.add-to-cart {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.add-to-cart:hover::before {
  left: 100%;
}

.add-to-cart:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.add-to-cart:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.shopify-payment-button {
  width: 100%;
}

.shopify-payment-button__button {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.shopify-payment-button__button:hover {
  background: var(--color-primary);
  color: white;
}

.shopify-payment-button__button--hidden,
.shopify-payment-button__more-options {
  display: none;
}

/* Product Policies */
.product__policies {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.product__policies a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

/* Product Form */
.product-single__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-single__variants {
  display: none;
}

/* Collapsible Sections (Accordion) */
.collapsibles-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.collapsibles-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.collapsible-trigger,
.collapsible-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.collapsible-trigger:hover,
.collapsible-trigger-btn:hover {
  background: #f8fafc;
}

.collapsible-trigger[aria-expanded="true"],
.collapsible-trigger-btn[aria-expanded="true"] {
  background: #f8fafc;
}

.collapsible-trigger[aria-expanded="true"] .collapsible-trigger__icon,
.collapsible-trigger-btn[aria-expanded="true"] .collapsible-trigger__icon {
  transform: rotate(180deg);
}

.collapsible-trigger__icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.collapsible-trigger__icon svg {
  width: 100%;
  height: 100%;
}

.collapsible-trigger__icon--open {
  display: block;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.collapsible-content.is-open {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.collapsible-content--all {
  background: #f8fafc;
}

.collapsible-content__inner {
  padding: 1.5rem;
}

.collapsible--auto-height {
  /* автоматическая высота для контента */
}

/* Product Grid (Related/Recommended) */
.new-grid {
  display: grid;
  gap: 2rem;
}

/* Default grid (mobile) */
.new-grid.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile by default */
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Desktop Grid: 3 Columns */
@media (min-width: 1024px) {
  .new-grid.product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem; /* Larger gap for airy feel */
  }
}

.grid {
  display: grid;
}

.grid--product-images--partial {
  /* модификатор для частичного отображения изображений */
}

.grid-item {
  position: relative;
}

/* Minimalist Product Card Style */
.grid-item.grid-product {
  background: transparent; /* Cleaner look without card background */
  border-radius: 0;
  overflow: visible;
  transition: all 0.3s ease;
  border: none;
  box-shadow: none;
}

.grid-item.grid-product:hover {
  transform: translateY(-5px);
  box-shadow: none;
  border-color: transparent;
}

/* Image Wrapper */
/* Image Wrapper */
.grid-product__image-wrap {
  position: relative;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 1 / 1; /* Square images */
  margin-bottom: 1rem;
}

.grid-product__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain to show full product */
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease; /* Added opacity transition */
  transform: scale(1.08); /* Zoom by default */
}

/* Hide primary image (not secondary) on hover */
.grid-item.grid-product:hover .grid-product__image-wrap img:not(.grid-product__secondary-image img) {
  transform: scale(1.08); /* Keep zoom */
  opacity: 0; /* Fade out */
}

.grid-product__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Secondary Image (Hover) */
.grid-product__secondary-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.grid-item.grid-product:hover .grid-product__secondary-image {
  opacity: 1;
}

.grid-product__tags {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Product Info */
.grid-item__meta {
  padding: 0; /* Remove padding for clean look */
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left; /* Align left as requested */
}

.grid-item__meta-main {
  flex: 1;
}

.grid-item__meta-secondary {
  display: flex;
  align-items: flex-start; /* Align with text */
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.25rem;
}

/* Title Font */
.grid-product__title {
  font-size: 0.9rem; /* Smaller font */
  font-weight: 400; /* Regular weight */
  color: #374151;
  margin: 0;
  line-height: 1.5;
  font-family: inherit;
}

/* Price Font */
.grid-product__price {
  font-size: 1rem;
  font-weight: 700; /* Bold price */
  color: #111827; /* Darker black */
  display: block;
  margin-top: 0.25rem;
}

.grid-product__price--current {
  color: inherit;
}

/* Product Actions (Quick Shop/Add) */
/* Hidden by default, visible on hover? Or separate */
/* Product Actions (Quick Shop/Add) */
.grid-product__actions {
  display: none !important; /* Completely hide actions */
}

/* Image Wrapper */
.grid-product__image-wrap {
  position: relative;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 1 / 1; /* Square images */
  margin-bottom: 1rem;
}

.grid-product__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Contain to show full product */
  display: block;
  transition: transform 0.5s ease;
  transform: scale(1.08); /* Apply zoom by default */
}

/* Remove hover zoom change since it's default now */
.grid-item.grid-product:hover .grid-product__image-wrap img:not(.grid-product__secondary-image img) {
  transform: scale(1.08); 
}


.quick-product__btn,
.quick-add-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.quick-product__btn .btn,
.quick-add-btn .btn,
.btn--circle {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.quick-product__btn:hover .btn,
.quick-add-btn:hover .btn,
.btn--circle:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.quick-product__btn:hover svg,
.quick-add-btn:hover svg,
.btn--circle:hover svg {
  stroke: white;
}

.quick-product__btn svg,
.quick-add-btn svg,
.btn--icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--color-text);
  transition: stroke 0.2s;
}

.icon__fallback-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
}

.section-header__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.section-header__title a:hover {
  color: var(--color-primary);
}

/* Reviews Badge (placeholder) */
.shopify-product-reviews-badge,
.loox-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #fbbf24;
  margin-top: 0.5rem;
}

/* Product Recommendations */
.recommendations-template--15847963459780__recommendations,
product-recommendations {
  display: block;
}

.recommendations-template--15847963459780__recommendations.hide,
product-recommendations.hide {
  display: none;
}

/* Utility Classes */
.hide {
  display: none !important;
}

.visually-hidden,
.visually-invisible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.small--hide {
  display: none;
}

@media (min-width: 768px) {
  .small--hide {
    display: block;
  }

  .medium-up--hide {
    display: none;
  }
}

/* Scrollable Grid for Mobile */
.scrollable-grid--small {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.scrollable-grid--small .grid-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.scrollable-grid--small::-webkit-scrollbar {
  height: 6px;
}

.scrollable-grid--small::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.scrollable-grid--small::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

/* Page Width Containers */
.page-content {
  max-width: 100%;
}

.page-content--product {
  /* специальный контейнер для product страниц */
}

.page-width {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.page-width--narrow {
  max-width: 960px;
}

.page-width--flush-small {
  padding: 0;
}

@media (min-width: 768px) {
  .page-width {
    padding: 0 2rem;
  }
}

/* Index Sections */

.index-section--sub-product {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 3.5rem 0;
  border-top: 1px solid #e5e7eb;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shopify-section {
  display: block;
}

/* Main Content */
.main-content {
  min-height: 50vh;
}

/* SVG Icons */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-search,
.icon-plus,
.icon-minus,
.icon-play,
.icon-chevron-down,
.icon--wide {
  /* иконки используют currentColor для адаптации к цвету текста */
}

.cls-1 {
  fill: none;
  stroke: currentColor;
  stroke-miterlimit: 10;
  stroke-width: 2px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .product-single__title {
    font-size: 1.75rem;
  }

  .product__price {
    font-size: 1.75rem;
  }

  .section-header__title {
    font-size: 1.5rem;
  }

  .new-grid.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .product-grid__container {
    gap: 1.5rem;
  }

  .product__thumbs {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
  }

  .product-section {
    padding: 2rem 0;
  }

  .product-single__meta {
    padding: 1rem;
  }

  .add-to-cart {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .product-single__title {
    font-size: 1.25rem;
  }

  .product__price {
    font-size: 1.25rem;
  }

  .section-header__title {
    font-size: 1.25rem;
  }

  .new-grid.product-grid {
    grid-template-columns: 1fr;
  }

  .collapsible-trigger,
  .collapsible-trigger-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Smooth Scroll Behavior */
.product-section {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.add-to-cart:focus,
.collapsible-trigger:focus,
.collapsible-trigger-btn:focus,
.quick-product__btn:focus,
.quick-add-btn:focus {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

/* Loading States */
.product__video-wrapper.loading {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Print Styles */
@media print {
  .grid-product__actions,
  .quick-product__btn,
  .quick-add-btn,
  .product__photo-zoom,
  .payment-buttons,
  .product__thumbs,
  .flickity-page-dots {
    display: none !important;
  }

  .product-grid__container {
    grid-template-columns: 1fr;
  }

  .grid-item.grid-product {
    page-break-inside: avoid;
  }

  .product-section {
    box-shadow: none;
  }

  .product-single__meta {
    box-shadow: none;
  }
}
