/* Общие стили и контейнер */
/* .container {
  width: 100%;
  max-width: 1660px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
} */

.breadcrumbs li:not(:first-child)::before {
  content: "/";
  margin-right: 0.5rem;
}

.breadcrumbs a {
  color: #4b5563;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #28303a;
}

/* Основной макет товара (две колонки) */
.product-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.gallery-column {
  width: 100%;
  margin-bottom: 1.5rem;
}

.info-column {
  width: 100%;
}

/* Адаптивность для десктопа (lg) */
@media (min-width: 1024px) {
  .product-layout {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .gallery-column {
    width: 50%;
    margin-bottom: 0;
  }

  .info-column {
    width: 50%;
  }
}

/* Галерея товара (левая колонка) */
.gallery-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* 16px */
}

.swiper,
.swiper-wrapper,
.swiper-slide {
  z-index: auto !important;
}


.swiper-pagination {
  position: absolute;
  bottom: -5px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  text-align: center !important;
  opacity: 1;
}
@media (min-width: 1024px) {
  .swiper-pagination {
    opacity: 0;
}
}

.swiper-modal-pagination {
  opacity: 1 !important;
  bottom: 40px !important;
}


.swiper-pagination-bullet {
  background-color: gray;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.swiper-pagination-bullet-active {
  background-color: #4B4B4B !important;
  opacity: 1;
}

.gallery-thumbs-container {
  display: none;
}

@media (min-width: 1024px) {
  .gallery-thumbs-container {
    display: block;
    flex-shrink: 0;
    width: 120px;
  }

  .swiper.gallery-thumbs {
    height: 540px;
  }
}

.gallery-thumb-item {
  width: 120px;
  height: 120px;
  border: 1px solid rgb(216, 224, 190);
  border-radius: 0.375rem;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.gallery-thumb-item:hover {
  border-color: rgb(126, 136, 92);
  /* blue-400 */
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main-container {
  flex: 1;
  min-width: 0;
  border: none;
  position: relative;
}

.swiper.gallery-main {
  width: 100%;
  padding-bottom: 24px;
}

.gallery-main-item {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 0;
}

.star-icon {
  width: 26px;
  height: 25px;
}

@media (max-width: 768px) {
  .star-icon {
    width: 14px;
    height: 13px;
  }
}


/* --- Стили для ПК (например, экраны шире 1024px) --- */
@media (min-width: 1024px) {
  .gallery-main-item {
    max-width: 680px;
    aspect-ratio: 680 / 800;
  }
  .gallery-main {
    background-color: #fafafa;
  }
  .gallery-main-item {
    background-color: #fafafa;
    border-radius: 12px;
    box-shadow: 0px 12px 20px 0px rgba(120, 120, 120, 0.12);
    margin-bottom: 20px;
  }

}

/* Также убедитесь, что изображение внутри масштабируется правильно */
.gallery-main-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-header-wrapper {
  order: 0;
}

/* Информация о товаре (правая колонка) */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* 24px */
}

.product-header-top {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0px;
}

.product-sticker {
  font-size: 14px;
  font-weight: 400;
  color: #7e7e7e;
}

.prd-product-title {
  font-family: 'Century Gothic';
  font-size: 24px;
  line-height: 120%;
  font-weight: 400;
  flex-grow: 1;
  color: rgb(79, 79, 79);
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .prd-product-title {
    font-size: 36px;
    line-height: 130%;
    padding-right: 2rem;
    margin-top: 0;
  }
  .product-header-top {
    margin-bottom: 30px;
    display: flex;
  }
}

.product-model {
  white-space: nowrap;
  color: #7e7e7e;
}

.product-model span {
  color: #9ca3af;
  /* gray-400 */
}

/* Секция покупки */
.product-purchase-section {
  order: 4;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 1rem;
}

@media (min-width: 1024px) {
  .product-purchase-section {
    flex-direction: row;
    order: 0;
    align-items: end;
  }
}

.product-price-block {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

@media (min-width: 1024px) {
  .product-price-block {
    flex-direction: column;
  }
  .price-discount-block {
    display: flex;
  }
}

.price-discount-block {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .price-discount-block {
    display: flex;
  }
}

.product-button-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.product-button-wrapper {
  display: flex;
  width: 100%;
  flex-direction: row-reverse;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .product-button-wrapper {
    flex-direction: row;
  }

  .product-button-block {
    flex-direction: column;
  }
  .prod-desc-mobile {
    margin-bottom: 0;
  }
}

.prod-attribute-mobile {
  display: none;
}

.prod-review-mobile-btn {
  color: rgb(75, 75, 75);
  font-family: 'Century Gothic';
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgb(75, 75, 75);
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0px rgba(120, 120, 120, 0.12);
  padding: 10px 0;
  margin-top: 60px;
  margin-bottom: 32px;
}

.prod-feedback__title {
  color: rgb(11, 11, 11);
  font-family: Trajan Pro 3;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

.prod-desc-mobile {
  margin-bottom: 32px;
}


/* Головний контейнер для всіх елементів */
.quantity-selector-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-label {
  /* Стилі для тексту "Кількість", якщо потрібно */
  color: rgb(126, 126, 126);
  font-family: 'Century Gothic';
  font-size: 20px;
  font-weight: 400;
  line-height: 130%;
  display: none;
}

@media (min-width: 1024px) {
  .quantity-label {
    display: flex;
  }
}



/* ЗАГАЛЬНИЙ ДИЗАЙН для поля вводу та кнопок */
.quantity-input,
.quantity-btn {
  border-radius: 8px 8px 0px 0px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  background: rgb(255, 255, 255);
}

/* ---- Стилі для поля вводу ---- */
.quantity-input {
  width: 120px !important;
  height: 52px;
  padding: 0 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}


/* ---- Стилі для кнопок ---- */
.quantity-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Стилі для самих кнопок */
.quantity-btn {
  width: 52px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s;
}

.quantity-btn:hover {
  background-color: #f5f5f5;
}

.wishlist-button-container {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  transition: background-color 0.2s;
  padding: 0;
  box-sizing: border-box; 
}

.wishlist-button-container button {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Стиль картинки */
.wishlist-button-container button img {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Hover-эффект */
.wishlist-button-container:hover {
  background-color: #f5f5f5;
}

/* Активное состояние */
.wishlist-button-container.active {
  background: #ffffff !important;
  border-color: #ef5353;
}

.wishlist-button-container.active button img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(91%) saturate(3755%) hue-rotate(337deg) brightness(96%) contrast(91%);
}


.cart-actions-block {
  width: 100%;
  order: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.price-main {
  color: rgb(79, 79, 79);
  font-family: 'Century Gothic';
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
  margin-bottom: 0;
  margin-left: 24px;
}

@media (min-width: 1024px) {
  .price-main {
    font-size: 32px;
    font-weight: 400;
    line-height: 39px;
    margin-bottom: 1rem;
    margin-left: 0;
  }
}

.price-discount {
  font-weight: 400;
  line-height: 17px;
  font-size: 1rem;
  color: #4b4b4b;
}


.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  /* 4px */
}

.quantity-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 18px;
  border: none;
  background: white;
  cursor: pointer;
}

.quantity-btn--increment {
  border-radius: 8px 8px 0 0;
}
.quantity-btn--decrement {
  border-radius: 0 0 8px 8px;
}

.quantity-input {
  width: 94px;
  height: 32px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0px rgba(120, 120, 120, 0.12) !important;
  background: rgb(255, 255, 255);
  border: none;
  box-shadow: none;
  outline: none;
}

@media (min-width: 1024px) {
  .quantity-input {
      height: 40px;
  }
}



/* Убрать стрелочки в Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Убрать стрелочки в Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


.wishlist-button-container button {
  background: none;
  border: none;
  cursor: pointer;
}

.btn-cart {
  position: relative;
  background: rgb(75, 75, 75);
  color: white;
  border: none;
  padding: 0.4rem 2rem;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  text-transform: uppercase;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0px rgba(120, 120, 120, 0.12);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Hover эффект */
.btn-cart:hover:not(:disabled) {
    background: rgba(215, 181, 109, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* Эффект нажатия */
.btn-cart:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
/* Ripple эффект при клике */
.btn-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-cart.ripple::before {
    width: 300px;
    height: 300px;
}

/* Состояние загрузки */
.btn-cart.loading {
    color: transparent;
    pointer-events: none;
}
.btn-cart.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}
/* Анимированный спиннер */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
/* Состояние успеха */
.btn-cart.success {
    background: #4CAF50;
    pointer-events: none;
}

.btn-cart.success .btn-text {
    opacity: 0;
    transform: scale(0.8);
}

.btn-cart .success-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-cart.success .success-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Текст кнопки */
.btn-cart .btn-text {
    display: inline-block;
    transition: all 0.3s ease;
}
/* Pulse анимация после успеха */
@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.btn-cart.pulse-animation {
    animation: pulse-success 0.8s ease-out;
}

/* Disabled состояние */
.btn-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* Анимация добавления в корзину */
@keyframes addToCart {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-cart.adding {
    animation: addToCart 0.6s ease-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.btn-cart.error {
    background: #f44336 !important;
    animation: shake 0.5s;
}

@media (min-width: 1024px) {
  .btn-cart {
    background: rgba(215, 181, 109, 0.6);
    padding: 0.75rem 2rem;

  }
}

.stock-status {
  font-weight: 700;
  color: #2563eb;
  /* blue-600 */
}

.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}


.attribute-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.attribute-item {
  font-family: 'Century Gothic';
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #9b9b9b;
  padding-bottom: 8px;
  padding-top: 4px;
}

.attribute-item strong {
  font-size: 18px;
  font-weight: 400;
  color: #4f4f4f;
}

.attribute-item span {
  font-size: 18px;
  font-weight: 700;
  color: #4f4f4f;
  text-align: right;
}

/* Опции товара */
.product-options {
  display: flex;
  flex-direction: column;
  order: 2;
}

@media (min-width: 1024px) {
  .product-options {
    order: 3;
  }
}

.option-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 2px solid white;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.option-label {
  font-weight: 700;
}

@media (min-width: 640px) {
  .option-item {
    flex-direction: row;
  }

  .option-label {
    width: 33.3333%;
  }

  .option-control {
    width: 66.6667%;
  }
}

.description-content {
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
}

.description-content.expanded {
  max-height: none;
}

/* Кастомный селект */
.custom-select .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.25rem 0.75rem;
  background-color: white;
  border: 2px solid #2563eb;
  border-radius: 9999px;
  cursor: pointer;
}

.dropdown-selected-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.option-image {
  width: 1rem;
  height: 1rem;
  object-fit: cover;
  object-position: center;
}


/* Мета-информация (рейтинг и т.д.) */
.product-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 2rem;
  gap: 1rem;
  order: 3;
}

@media (min-width: 640px) {
  .product-meta {
    flex-direction: row;
  }
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  /* gray-500 */
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Табы */
.product-tabs-container .tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
}

.product-tabs-container .tab {
  padding: 0.5rem 1rem;
  margin-bottom: -1px;
  border: 1px solid transparent;
  border-radius: 0.25rem 0.25rem 0 0;
  text-decoration: none;
  color: #6b7280;
  cursor: pointer;
}

.product-tabs-container .tab.active {
  color: #111827;
  /* gray-900 */
  border-color: #e5e7eb #e5e7eb #ffffff;
  font-weight: 500;
}

.product-tabs-container .tab-content {
  padding-top: 1.5rem;
}

.tab-pane {
  display: none;
}

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

.description-content {
  font-size: 0.875rem;
  /* 14px */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: max-height 2s ease-in-out;
}

.gallery-main img {
  cursor: pointer !important;
}

/* Контейнер табів */
.product-tabs-container {
  border: none;
  overflow: hidden;
  display: none;
}

@media (min-width: 1024px) {
  .product-tabs-container {
    display: block;
  }
}

/* Навігація табів */
.nav.tabs {
  display: flex;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 15px 20px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease;
  background-color: #f5f5f5;
  font-size: 20px;
  font-weight: 700;
  color: #7e7e7e;
}

.tab.active {
  background-color: #ffffff;
  color: #000000;
}

.tab-content {
  background-color: #ffffff;
  min-height: 250px;
}

.tab-pane {
  display: none;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

/* Стилі для розгортання опису */
.description-content {
  max-height: 130px;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out;
  position: relative;
}

.description-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
}

/* Когда раскрыто — убираем затемнение */
.description-content.expanded::after {
  opacity: 0;
}

.description-content.expanded {
  max-height: 1000px;
}

.description-content.collapsed {
  max-height: 140px;
  overflow: hidden;
}

/* Градієнтна "заглушка" внизу, що створює ефект затухання на білому фоні */
.description-content.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
}

.reveal-button {
  display: none;
  /* по умолчанию скрыта */
  border: 1px solid #4b4b4b;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: "'Century Gothic'", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4b4b4b;
  background-color: transparent;
  cursor: pointer;
  margin: 0 auto;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.reveal-button:hover {
  transform: translateY(-1px);
  background-color: rgba(0, 0, 0, 0.3);
}

/* Стили для отзывов */
.reviews-wrapper {
  padding: 20px 0;
}

.reviews-list {
  margin-bottom: 40px;
}

.review-item {
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #fafafa;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.review-author {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.review-date {
  color: #999;
  font-size: 14px;
}

.review-rating {
  margin-bottom: 15px;
}

.review-rating .star {
  color: #ddd;
  font-size: 16px;
}

.review-rating .star.filled {
  color: #ffc107;
}

.review-text {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

.review-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.review-pros,
.review-cons {
  padding: 15px;
  border-radius: 6px;
  background-color: #f8f8f8;
}

.review-pros-label,
.review-cons-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.review-pros-label {
  color: #4caf50;
}

.review-cons-label {
  color: #f44336;
}

/* Кнопка показать все отзывы */
.show-all-reviews {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background-color: transparent;
  border: 2px solid #333;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  text-align: center;
}

.show-all-reviews:hover {
  background-color: #333;
  color: white;
}

/* Форма отзыва */
.review-form-section {
  border-top: 2px solid #e0e0e0;
  padding-top: 30px;
}

.review-form-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* Звезды рейтинга */
.rating-stars {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.rating-stars input[type="radio"] {
  display: none;
}

.star-label {
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s ease;
}

.star-label:hover,
.rating-stars input[type="radio"]:checked ~ .star-label {
  color: #ffc107;
}

.rating-stars input[type="radio"]:checked + .star-label ~ .star-label {
  color: #ddd;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .review-pros-cons {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Сообщение об отсутствии отзывов */
.no-reviews {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.product__review-title {
  color: rgb(155, 155, 155);
  font-family: 'Century Gothic';
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  margin-left: 12px;
}

/* Модальное окно */
.gallery-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(75, 75, 75, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-modal-content,
.gallery-modal-slider,
.gallery-modal-swiper,
.gallery-modal-swiper .swiper-wrapper,
.gallery-modal-swiper .swiper-slide {
  height: 100%;
  width: 100%;
}

.gallery-modal-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-modal-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

@media (min-width: 1024px) {
  .gallery-modal-slider {
    max-width: 1376px;
    max-height: 926px;
  }
  .gallery-modal-content {
    padding: 60px 20px 20px;
  }
}



.gallery-modal-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  pointer-events: auto;
}

.gallery-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  z-index: 100001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.gallery-modal-swiper .swiper-button-prev,
.gallery-modal-swiper .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  color: #333;
  z-index: 10;
  pointer-events: auto;
}

.gallery-modal-swiper .swiper-button-prev {
  left: 26px;
}

.gallery-modal-swiper .swiper-button-next {
  right: 26px;
}

.gallery-modal-swiper .swiper-button-prev:hover,
.gallery-modal-swiper .swiper-button-next:hover {
  background: transparent;
}

/* Скрываем миниатюры */
.gallery-modal-thumbs {
  display: none !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .gallery-modal-swiper .swiper-button-prev,
  .gallery-modal-swiper .swiper-button-next {
    width: 36px;
    height: 36px;
  }

  .gallery-modal-swiper .swiper-button-prev {
    left: 5px;
  }

  .gallery-modal-swiper .swiper-button-next {
    right: 5px;
  }
}

/* Фиксированная панель покупки */
.fixed-buy-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 90;
  padding: 15px 0;
}

.fixed-buy-panel.show {
  transform: translateY(0);
}

/* Миниатюра товара */
.fixed-product-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.fixed-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Информация о товаре */
.fixed-product-info {
  flex: 1;
  min-width: 0;
}

.fixed-product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixed-product-price {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* Кнопки действий */
.fixed-product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fixed-wishlist-btn {
  width: 45px;
  height: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fixed-wishlist-btn:hover {
  border-color: #333;
  background-color: #f8f8f8;
}

.fixed-wishlist-btn svg {
  width: 20px;
  height: 20px;
}

/* Анимация появления */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.fixed-buy-panel.animate-in {
  animation: slideUp 0.3s ease forwards;
}


/* Табы */
.prod-block-mobile__body {
    padding: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: start;
    max-height: 150px;
}

.prod-block-mobile__body.expanded {
    max-height: 2000px;
}

.prod-block-mobile__toggle {
    display: flex;
    color: rgb(75, 75, 75);
    font-family: 'Century Gothic';
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    margin-top: 12px;
}

/* Стили для десктопной версии */
.prod-block-desktop {
  text-align: center;
}
.prod-block-desktop__body {
    /* Эти стили будут наследоваться дочерними элементами, */
    color: rgb(79, 79, 79);
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    position: relative;
    max-height: 335px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    text-align: start;
}

.prod-block-desktop__body.expanded {
    max-height: 2000px;
}

.prod-block-desktop__body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 90%);
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.prod-block-desktop__body.expanded::after {
    opacity: 0;
}

.prod-block-desktop__toggle {
    font-size: 18px;
    font-weight: 400;
    line-height: 120%;
    padding: 10px 68px;
    border: 1px solid rgb(75, 75, 75);
    border-radius: 8px;
    display: inline-block;
    background: transparent;
    cursor: pointer;
    margin: 0 auto;
}
/* Модальное окно отправки отзыва на мобильных */
.review-modal__title {
  color: rgb(79, 79, 79);
  font-family: 'Century Gothic';
  font-size: 24px;
  font-weight: 400;
  line-height: 120%;
  margin: 30px auto 24px auto;
}
.prod-field__label {
  color: rgb(79, 79, 79);
  font-family: 'Century Gothic';
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
}
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    animation: fadeIn 0.3s ease-out;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(3px);
    }
}

.review-modal.hidden {
    display: none;
}

.review-modal__content {
    width: 100%;
    height: 100%;
    margin: 20px auto;
    position: relative;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.review-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.review-modal:not(.hidden) .prod-add-review-mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Модальное окно отправки отзыва на мобильных */
.prod-add-review-mobile {
    background: transparent;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
    display: block;  /* Изменено на block */
    height: 100vh;
}

.prod-field:not(:first-child):not(:last-child) {
  margin-bottom: 24px;
}

.prod-comment:not(:last-child) {
  margin-bottom: 12px;
}

.prod-comment__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.prod-comment {
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0px rgba(120, 120, 120, 0.12);
  background: rgb(255, 255, 255);
}

.prod-comment__name {
  color: rgb(79, 79, 79);
  font-family: 'Century Gothic';
  font-size: 16px;
  font-weight: 700;
  line-height: 120%;
}
.prod-comment__date {
  color: rgb(155, 155, 155);
  font-family: 'Century Gothic';
  font-size: 14px;
  font-weight: 400;
  line-height: 120%;
}

.prod-comment__msg,
.prod-comment__plus,
.prod-comment__minus {
  color: rgb(79, 79, 79);
  font-family: 'Century Gothic' !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  max-width: 100%;
}
.prod-comment__stars {
  font-size: 24px;
  color: #4B4B4B;
  line-height: 1;
  letter-spacing: 2px;
}
.prod-btn-link {
  margin-top: 24px;
}
.prod-btn-submit-desktop {
  display: inline-block;
  padding: 14px 60px;
  color: rgb(255, 255, 255);
  font-family: 'Century Gothic';
  font-size: 18px;
  font-weight: 400;
  line-height: 120%;
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0px rgba(120, 120, 120, 0.12);
  background: rgb(75, 75, 75);
}

.review-modal__header-wrapper {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.prod-add-review-desktop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  padding: 0;
  width: 100%;
}

.prod-field {
  display: flex;
  flex-direction: column;
  color: rgb(79, 79, 79) !important;
  width: 100%;
}

.prod-field__input {
  color: rgb(79, 79, 79);
  background-color: white;
  font-family: 'Century Gothic';
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  padding: 10px 14px 10px 14px;
  border-radius: 8px;
  border: 1px solid rgb(155, 155, 155);

}
.prod-field__area {
  color: rgb(79, 79, 79);
  background-color: white;
  font-family: 'Century Gothic';
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  padding: 10px 14px 10px 14px;
  border-radius: 8px;
  border: 1px solid rgb(155, 155, 155);
  min-height: 40px;

}
.prod-field__input,
.prod-field__area {
  width: 100%;
  box-sizing: border-box;
}

.prod-field__input-mobile,
.prod-field__area-mobile {
  background: rgba(187, 187, 187, 1);
  color: rgb(79, 79, 79) !important;
  border-radius: 8px;
  padding: 10px 14px 10px 14px;
}
.prod-field__input-mobile::placeholder,
.prod-field__area-mobile::placeholder {
  color: rgba(79, 79, 79, 1); /* Тот же цвет, что и обычный текст */
  opacity: 1; /* Сделать его непрозрачным */
}

/* Звезды для мобильной версии */
.prod-stars-select-mobile {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.prod-stars-select-mobile .prod-stars-select__item {
    cursor: pointer;
    font-size: 40px;
    transition: color 0.2s;
    width: 40px;
    display: flex;
    height: 40px;
    justify-content: center;
    align-items: center;
    -webkit-text-stroke: 1px #ffc107;
}
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}


.custom-checkbox input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    display: none;
}

.custom-checkbox input[type="checkbox"]:checked::after {
  display: block;
}



.custom-checkbox input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}

.custom-checkbox input[type="checkbox"]:checked::after {
  display: block;
}


.prod-stars-select-mobile .prod-stars-select__item.active {
    -webkit-text-stroke: 0 !important;
}

/* ЭКСТРЕННЫЙ ФИКС */
.review-modal:not(.hidden) .prod-stars-select-mobile .prod-stars-select__item.active,
#reviewModalMobile .prod-stars-select-mobile .prod-stars-select__item.active,
.prod-add-review-mobile .prod-stars-select-mobile .prod-stars-select__item.active {
    color: #ffc107 !important;
    -webkit-text-stroke: 0 !important;
    -webkit-text-fill-color: #ffc107 !important;
}

.prod-btn-submit-mobile {
  color: rgb(79, 79, 79);
  font-family: 'Century Gothic';
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  padding: 21px 0 21px 0;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0px 4px 4px 0px rgba(120, 120, 120, 0.12);
  background: rgb(187, 187, 187);
  text-transform: uppercase;
}

/* Звезды для десктопной версии */
.prod-stars-select-desktop {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.prod-stars-select-desktop .prod-stars-select__item {
    cursor: pointer;
    font-size: 40px;
    -webkit-text-stroke: 1px #ffc107;
    transition: color 0.2s ease, -webkit-text-stroke 0.2s ease;
}

.prod-stars-select__item {
    cursor: pointer;
    font-size: 32px;
    color: transparent;
    -webkit-text-stroke: 1px #ffc107;
    transition: color 0.2s ease, -webkit-text-stroke 0.2s ease;
}
.prod-stars-select__item.active {
    color: #ffc107;
    -webkit-text-stroke: 0;
}

.prod-field__wrapper {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.prod-stars-select-desktop .prod-stars-select__item.active {
    color: #ffc107;
}

@media (min-width: 1024px) {
    .prod-mobile {
        display: none;
    }
    
    .desktop-tabs {
        display: block;
    }
}

@media (max-width: 1023px) {
    .prod-mobile {
        display: block;
    }
    
    .desktop-tabs {
        display: none;
    }
}

/* Конец Табы */

/* Тело отзыва ПК */
.prod-comment__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
}
/* Конец тела отзыва ПК */

/* Убеждаемся что панель ниже nav bar */
#mobile-nav-bar {
  z-index: 50 !important;
  position: fixed !important;
  transition: bottom 0.3s ease !important;
}

.fixed-buy-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin: 0 auto;
  height: auto;
}

.fixed-buy-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}



.fixed-buy-img {
  width: 38px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.fixed-buy-text {
  min-width: 0;
}

.fixed-buy-title {
  color: rgba(79, 79, 79, 1);
  font-family: ''Century Gothic'';
  font-size: 8px;
  font-weight: 400;
  line-height: 120%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixed-buy-price {
  color: rgba(79, 79, 79, 1);
  font-family: 'Century Gothic';
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  margin-top: 2px;
}


.fixed-buy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .fixed-buy-content {
    padding: 12px 16px;
    height: 72px;
  }
  .fixed-buy-price {
    font-size: 24px;
  }
  .fixed-buy-title {
    font-size: 18px;
  }
  .fixed-buy-img {
    width: 78px;
    height: 82px;
  }
  .fixed-buy-actions {
      gap: 24px;
  }
}


.fixed-buy-wishlist {
  width: 40px;
  height: 40px;
  border: 1px solid #4B4B4B;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.fixed-buy-wishlist:hover {
  background: #f5f5f5;
  border-color: #333;
}

.fixed-buy-wishlist svg {
  width: 20px;
  height: 20px;
}

.fixed-buy-btn {
  background: #d7b56d;
  color: #fff;
  border: none;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
  border: 1px solid #3F3939;
  overflow: hidden;
  transition: all 0.3s ease;
}

.fixed-buy-btn:hover {
  background: #af8e45;
  transform: scale(1.05);
}
.fixed-buy-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@media (min-width: 1024px) {
  .fixed-buy-btn {
    padding: 18px 52px;
    font-size: 18px;
  }
}


/* Уведомление об добавлении */
.fixed-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Конец фиксированное меню покупок */

/* На десктопе в табах делаем форму видимой */
.desktop-tabs {
  display: none;
}

/* Стили для навигации табов */
.tab-nav {
  display: flex; /* 1. Включаем Flexbox для контейнера */
  list-style: none;
  padding: 0;
  background-color: rgb(245, 245, 245); /* Небольшой фон для всей панели */
}

/* Добавляем стили для элемента списка <li> */
.tab-nav li {
  flex: 1; /* 2. Каждый элемент будет занимать равную часть ширины */
  text-align: center; /* 3. Текст внутри будет по центру */
}

.tab-nav .tab-btn {
  width: 100%; /* Заставляем кнопку занимать всю ширину своего <li> */
  padding: 10px 20px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  line-height: 130%;
  color: #555;
  margin-bottom: -2px;
}

.tab-nav .tab-btn:hover {
  color: #000;
}

/* Стиль для активной кнопки таба */
.tab-nav .tab-btn.active {
  color: rgba(0, 0, 0, 1);
  background: rgb(
    255,
    255,
    255
  );
}

/* Скрытие всех панелей по умолчанию */
.tab-content .tab-pane {
  display: none;
}

/* Отображение активной панели */
.tab-content .tab-pane.active {
  display: block;
}

/* Стили для сворачивания/разворачивания описания */
#desktop-description-body {
  max-height: 457px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  margin-bottom: 10px;
}

#desktop-description-body.expanded {
  /* max-height: 1000px; */
  margin-bottom: 10px;
}

.attribute-item span {
  text-align: start;
  width: 242px;
}


/* --- Медиа-запрос для переключения версий --- */
@media (min-width: 1024px) {
  /* Прячем мобильную версию */
  .prod-mobile {
    display: none;
  }
  .desktop-tabs {
    display: block;
    margin-top: 196px;
    max-width: 780px;
  }
  .prod-block__body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px; /* Высота градиента */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1) 90%
  );
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}
}

/* Контейнер для текста должен иметь position: relative */
.prod-block__body {
  position: relative;
  max-height: 335px; /* Ваша начальная высота */
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

/* Создаем псевдо-элемент для градиента */
.prod-block__body::after {
  opacity: 0;
}

/* Когда блок развернут, убираем градиент */
.prod-block__body.expanded {
  max-height: 2000px; /* Большая высота для развернутого состояния */
}

.prod-block__body.expanded::after {
  opacity: 0;
}
/* Табы для ПК */

/* Tooltip уведомление */
.cart-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #fafafa;
    color: #4b4b4b;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-toast.show {
    transform: translateX(0);
    opacity: 1;
}
.cart-toast.show {
    animation: slideInBounce 0.6s ease-out;
}
@keyframes slideInBounce {
    0% {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }
    60% {
        transform: translateX(-10px);
        opacity: 1;
    }
    80% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

.cart-toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cart-toast-message {
    flex: 1;
    font-family: 'Century Gothic', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.cart-toast-product {
    font-weight: 600;
}

/* Счетчик на иконке корзины */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-badge.show {
    opacity: 1;
    transform: scale(1);
}

.cart-badge.pulse {
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Позиционирование кнопки корзины */
#openCartBtn {
    position: relative;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .cart-toast {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .cart-badge {
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* CSS СТИЛИ */
/* Flexbox для рейтинга и статуса */
.product-rating-availability {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Компактный статус наличия */
.availability-status-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot--in-stock {
    background-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.status-dot--preorder {
    background-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.status-dot--out-of-stock {
    background-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 currentColor;
    }
}

.status-text {
    font-size: 14px;
    font-weight: 400;
    font-family: 'Century Gothic', sans-serif;
    color: #666;
}

/* Стилизованный блок недоступности товара */
.product-unavailable-block {
    background: transparent;
    border: 1px solid #4b4b4b;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    margin: 0 auto;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.unavailable-message {
    position: relative;
    z-index: 1;
    color: #4b4b4b;
}

.unavailable-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.unavailable-message h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.unavailable-message p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

.preorder-info {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preorder-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.preorder-info p {
    font-weight: 600;
    margin: 8px 0 4px;
}

.preorder-info small {
    opacity: 0.9;
    font-size: 13px;
}