.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 0;
}

.product-header {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  margin-bottom: 20px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 20px;
}

.product-image {
  max-width: 100%;
  max-height: 400px;
  min-height: 270px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 0;
  border: none;
}

.product-info {
  padding: 0 20px;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 24px;
  line-height: 1.3;
}

.product-description {
  margin-bottom: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  border-left: 4px solid #007bff;
}

.description-content {
  line-height: 1.7;
  color: #495057;
  font-size: 1.05rem;
  margin: 0;
}

.description-content br {
  margin-bottom: 12px;
  display: block;
  content: "";
}

.product-price {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.product-price.out-of-stock {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.price-label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  opacity: 0.9;
  font-weight: 500;
}

.price-range {
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-notice {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 25px;
}

.product-notice p {
  margin: 0;
  font-size: 12px;
  color: #1565c0;
  line-height: 1.5;
}

.tabs-container {
  margin-top: 40px;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 30px;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
  padding: 0 10px;
}

.tab-button {
  padding: 16px 32px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  position: relative;
}

.tab-button:hover {
  color: #495057;
  background-color: rgba(0, 123, 255, 0.05);
}

.tab-button.active {
  color: #007bff;
  border-bottom-color: #007bff;
  background-color: #fff;
  font-weight: 600;
}

.tab-content {
  min-height: 200px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

@media (max-width: 768px) {
  .product-page {
    padding: 15px;
    padding-bottom: 0;
  }

  .product-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-gallery {
    position: static;
  }

  .product-info {
    padding: 0;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-description {
    padding: 16px;
  }

  .tab-buttons {
    flex-direction: column;
    padding: 0;
  }

  .tab-button {
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    border-left: 3px solid transparent;
    padding: 12px 16px;
  }

  .tab-button.active {
    border-left-color: #007bff;
    border-bottom-color: #e9ecef;
  }

  .tab-content {
    padding: 20px;
  }
}

@keyframes pricePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.price-range {
  animation: pricePulse 0.6s ease-in-out;
}

.product-image[src*="no_logo.png"] {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-style: italic;
}

.add-image-section {
  margin: 20px 0;
  text-align: center;
}

.btn-add-image {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-add-image:hover {
  background: #218838;
  color: white;
  text-decoration: none;
}

.vip-shop {
  border-left: 4px solid #ffc107;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.075);
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.made-in-belarus-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: linear-gradient(180deg, #CF0812 0%, #009739 130%);
    color: white;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 25%;
}

.made-in-belarus-badge .badge-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.product-gallery .image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

@media (max-width: 576px) {
    .made-in-belarus-badge {
        max-width: 30%;
        font-size: 10px;
    }
}