/* Общий отступ для обертки товара */
.product-content-wrapper {
    margin: 20px 0;
}
.bg-white {
  color: var(--bg-color) !important;
}
/* Стили для контейнера строки (при условии использования Bootstrap, можно добавить свои правки) */
.row {
    margin: 0 -15px;
}
.product_title{
    color: var(--text-color);
    font-family: 'Varela Round', Gadget, sans-serif;
    font-size: 2rem; 
}
@media (min-width: 768px) and (max-width: 1024px) {
  .product_title {
    font-size: 1.5rem;
  }
}

.price {
    color: var(--blue-color);
    font-family: 'Varela Round', Gadget, sans-serif;
    font-size: 1.5rem;
}
/* Стили для левой колонки – галерея миниатюр и основное изображение */
.thumbnail-gallery {
    white-space: nowrap;
}
.btn-thumbnail {
  flex: 0 0 auto;
  margin-left: 10px;  /* отступ между полем и кнопкой */

  
  border-radius: 7px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease;
}
.btn-thumbnail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: 5px 5px 0.1px var(--text-color);
  border-radius: 7px;
  z-index: -1;
  transition: box-shadow 0.1s ease;
}
.btn-thumbnail:hover {
  transform: translate(-2px, -2px);
}
.thumbnail-gallery img {
    cursor: pointer;
    padding: .15rem;
    transition: transform 0.3s ease;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--text-color);
}


/* Основное изображение товара */
#main-image-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}

#main-image {
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 10px;
}

/* Правая колонка – краткое описание и прочая информация */
.product-content {
    font-family: 'Varela Round', sans-serif;
    color: var(--description-color);
    background-color: transparent !important;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .product-content {
    font-size: 0.8rem;
  }
}


/* Оформление деталей товара (полное описание) */
.product-content-details {
    padding: 20px;
    font-family: 'Varela Round', sans-serif;
    color: var(--description-color);
    margin-top: 20px;
    background-color: var(--bg-color);
}

/* Модальное окно для увеличенной картинки */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#image-modal img {
    max-width: 90%;
    max-height: 90%;
    border: 1px solid var(--text-color);
    border-radius: 10px;
}

#close-modal {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 50px;
    color: var(--blue-color);
    cursor: pointer;
}

/* Модальное окно для оформления заказа */
#order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#order-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
}

/* Дополнительные стили для корректного отображения изображений внутри карточек */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* ТАБЛИЦА */
.sleepprofi-product-attributes ul {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 15px;
}

.sleepprofi-product-attributes li,
.sleepprofi-product-attributes ul {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.sleepprofi-product-attributes li {
    background-color: #f9f9f9;
    font-weight: 600;
    text-align: left;
}


.sleepprofi-delivery-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;

  background-color: var(--bg-color);
  border-radius: 12px;
}

.delivery-item {
  font-family: 'Varela Round', sans-serif;  
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--description-color);
}

.delivery-item i {
  font-size: 24px;
  color: var(--blue-color);
  min-width: 30px;
}

.sp-ico{
	width:18px;
	height:18px;
	color:var(--text-color);     /* нейтральный интерфейсный */
	flex-shrink:0;
}

.product-separator {
  border: none;
    border-top-width: medium;
    border-top-style: none;
    border-top-color: currentcolor;
  border-top: 1px solid var(--description-color);
  margin: 5px 0;
}
.p-3 {
  padding: 3rem !important;
  margin-top: 0;
}