.desktop {
  position: relative; /* Исправлено с absolute */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 50px 0;
  width: 100%; /* Занимаем всю ширину */
  max-width: 1400px; /* Ограничение для широких мониторов */
  margin: 0 auto;
}

.Product {
    border: 1px solid #e0e0e0;
    position: relative;
    display: flex;
    flex-direction: column; /* Четкая структура сверху вниз */
    width: 330px;
    
    min-height: 663px;      
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden; /* Чтобы картинки не вылезали за скругление */
}

.Product:hover {
    border-color: #016d01;
    transform: translateY(-5); /* Подъем вместо scale */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.images {
    position: relative;
    width: 100%;
    height: 460px;
    background: #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.datas {
    padding: 10px; /* Вместо scale(0.95) */
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

/*images*/
.image-viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 100%;
    scrollbar-width: none;
}

.nav-btn {
    position: absolute;
    top: 50%; /* Центр по вертикали */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px); /* Эффект стекла */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}

.prev { left: 10px; }
.next { right: 10px; }
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid #000;
    z-index: 100;
}
.indicator{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    margin: 3px;
    border: 1px solid #666;
    
}
.indicator.active{
    background: #0f0;
    transform: scale(1.3);
    border: 1px solid #000;
}

.image{
    flex: 0 0 100%;
    scroll-snap-align: start; /* Кадр замирает в начале */
    width: 100%;
    object-fit: cover;
    z-index: 1;
}
.flag{
	width:19px;
	height:20px;
	position: relative;
	left: 0px;
	top: 2px;
	accent-color: green;
	display: inline-block;
	margin-right: 0px;
	margin-left: 0px;
	transition: transform 0.2s;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.flag:hover{	
	transform: translateY(-5); /* Подъем вместо scale */
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.Container{
    top: -5px;
    width: 100%;
    transform: scale(0.95);
    position: relative;
    display: flex;
    justify-content: space-between;
}
.Category{
    color: #666;
    padding-right: -10px;         /* Отступ от линии */
    margin-right: -10px;          /* Расстояние до линии */
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.Category + .Category {
  border-left: 1px solid #666; /* Линия слева для всех элементов, кроме первого */
  padding-left: 5px;         /* Отступ от линии */
  margin-left: 5px;          /* Расстояние до линии */
}
.Container2 {
  display: flex;
  align-items: center;
  width: 100%;
  transform: scale(0.95);
  gap: 10px; /* Расстояние между текстом и линией */
}
.Container3 {
    display: flex;
    gap: 4px; /* Расстояние между кнопками */
    justify-content: center;
    align-content: center; 
    flex-wrap: wrap;    /* Разрешает перенос элементов на новую строку */
    height:72px;
}
.Art{
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.Price{
    font-size: 20px;
    font-weight: bold;
    color: blue;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.Bold{
    font-weight: bold;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.Sizes{
    width: 100%;
    transform: scale(0.95);
}
.Size{
  display: flex;
  align-items: center;      /* Центр текста по вертикали */
  justify-content: center;   /* Центр текста по горизонтали */
  width: 45px;
  height: 30px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;         /* Средняя жирность */
  font-size: 0.875rem;      /* Размер text-sm, о котором вы спрашивали */
  transition: all 0.2s ease;
  color: #333;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.Size:hover {
    border-color: #007bff;
    color: #007bff;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5);
}
.sr-only{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
/* ГЛАВНОЕ: Стиль активной (выбранной) кнопки */
.sr-only:checked + .Size {
  background-color: #007bff; /* Ваш синий цвет */
  border-color: #007bff;
  color: #fff;               /* Белый текст на синем фоне */
  font-weight: 700;          /* Жирный шрифт при выборе */
}
.sr-only:disabled + .Size {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
  text-decoration: line-through;
}
.card-actions {
    margin-top: auto; /* Прижимает кнопки к низу карточки */
    padding-top: 0px;
}
.btn{
    margin-top: 5px;
    width: 35px;
    height: 32px;
    border-radius: 6px;
}
.btn-select, .btn-add{
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-select:hover, .btn-add:hover{
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5);
}

.btn-select {
  background-color: #e0e0e0;
  color: #777;
  display: block; /* Видна по умолчанию */
}

.btn-add {
    background-color: #28a745; /* Зеленый для корзины приятнее */
    transition: background 0.2s;
    display: none; /* Скрыта по умолчанию */
}
.Product:has(input[type="radio"]:checked) .btn-select {
  display: none; /* Прячем "Выбери размер" */
}

.Product:has(input[type="radio"]:checked) .btn-add {
  display: block; /* Показываем "В корзину" */
}
.compound {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #555;
    font-size: 0.9rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}