/* --- ОСНОВНОЙ СТИЛЬ --- */
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.brend_name {
    display: flex!important;
    font-size: 30px!important;
    justify-content: flex-start;
    margin: 1% 0 2% 0%;
}
/* --- ГАЛЕРЕЯ --- */
.image-gallery {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.main-image-wrapper {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
  border-radius: 16px;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-image:hover {
  transform: scale(1.02);
}

/* --- Миниатюры --- */
.thumbs img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  margin: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.thumbs img:hover {
  transform: scale(1.05);
}

.thumbs img.active {
  border-color: #28a745;
}

/* --- Навигационные кнопки --- */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(0,0,0,0.7);
}

.nav-btn.prev { left: 15px; }
.nav-btn.next { right: 15px; }

/* --- Счётчик изображений --- */
.image-counter {
  position: absolute;
  top: 15px;
  left: 20px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 14px;
}

/* --- Фуллскрин --- */
.fullscreen-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.fullscreen-img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-out;
}

.fullscreen-counter {
  position: absolute;
  top: 15px;
  left: 25px;
  color: #fff;
  font-size: 16px;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 8px;
}

.close-fullscreen {
  position: absolute;
  top: 15px;
  right: 25px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.close-fullscreen:hover {
  background: rgba(255,255,255,0.4);
}

/* --- КНОПКИ --- */
#addToCartBtn {
  font-size: 1rem;
  padding: 14px;
  border-radius: 0px;
  font-weight: 600;
  background-color: #ad1b3b;
}

.box_body {
    border: 1px solid black;
    margin-bottom: 10px;
    padding: 10px;
}

.price_pol {
    border-radius: 0px;
}

.category_box p {
    color: black;
    text-transform: uppercase;
}

#imageCounter {
    padding: 10px;
    background-color: #282828;
}

.price {
  color: #28a745;
}

/* --- АДАПТИВНОСТЬ --- */

/* До 425px — телефоны */
@media (max-width: 425px) {
  .main-image-wrapper { height: 300px; }
  .thumbs img { width: 65px; height: 65px; }
  .price { font-size: 1.5rem; }
  h2 { font-size: 1.4rem; }
  .nav-btn { width: 45px; height: 45px; }
}

/* От 425 до 768 — планшеты */
@media (min-width: 426px) and (max-width: 768px) {
  .main-image-wrapper { height: 380px; }
  .thumbs img { width: 75px; height: 75px; }
  h2 { font-size: 1.6rem; }
  
  .katalog-menu ul { display:none; }
}

/* От 768 до 992 — малые ноутбуки */
@media (min-width: 769px) and (max-width: 992px) {
  .main-image-wrapper { height: 450px; }
  .thumbs img { width: 80px; height: 80px; }
}

/* От 992 до 1200 — стандартные ноутбуки */
@media (min-width: 993px) and (max-width: 1200px) {
  .main-image-wrapper { height: 500px; }
  .thumbs img { width: 85px; height: 85px; }
}

/* Свыше 1200 — большие экраны */
@media (min-width: 1201px) {
  .main-image-wrapper { height: 550px; }
  .thumbs img { width: 90px; height: 90px; }
}
