body{
    background-color: #f4f4f4
}

.product-detail {
    display: flex;
    gap: 20px;
    margin-top: 20px;
  }
  
  .product-gallery {
    flex: 1;
  }
  .product-info h2 {
      font-size: 40px;
      font-weight: 700;
      color: #2c3e50;
      margin-bottom: 15px;
      font-family: auto;
      font-size: 40px;
  }
  
  .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px; /* Увеличено пространство между главным изображением и миниатюрами */
    justify-content: center; /* Центрирование миниатюр */
  }
  
  .main-image {
    text-align: center; /* Центрирование главного изображения */
    margin-bottom: 10px; /* Расстояние между главным изображением и миниатюрами */
    padding-left: 20px; /* Отступ слева от контейнера изображения */
  }
  
  .main-image img {
    max-width: 80%; /* Уменьшаем изображение до 80% от ширины контейнера */
    height: auto; /* Сохранение пропорций изображения */
    display: block; /* Убираем возможные отступы вокруг изображения */
    margin: 0 auto; /* Центрируем изображение по горизонтали внутри блока */
  }
  
  
  .thumbnails img {
    width: 80px; /* Размер миниатюры */
    height: 80px; /* Приведение к квадратной форме */
    object-fit: cover; /* Обрезка изображения внутри квадрата */
    cursor: pointer;
    border: 2px solid transparent; /* По умолчанию рамка прозрачная */
    transition: border-color 0.3s ease;
  }
  
  .thumbnails img:hover {
    border-color: #8e735b; /* Рамка появляется при наведении */
  }
  
  .product-info {
      flex: 1;
      display: flex
  ;
      flex-direction: column;
      gap: 30px;
  }
  
  .product-info .price {
      font-size: 28px;
      font-weight: 600;
      color: #2c3e50;
      text-transform: uppercase;
      margin-top: 10px;
      font-family: "Forum", serif;
  }
  
  .product-info .green-check {
    color: green;
    font-weight: bold;
  }
  
  .fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .fullscreen.hidden {
    display: none;
  }
  
  .fullscreen img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
  }
  
  .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
  }
  
  .nav.left {
    left: 20px;
  }
  
  .nav.right {
    right: 20px;
  }
  
  .nav:hover {
    background: rgba(255, 255, 255, 1);
  }
  .tags-section {
      margin-top: 20px;
      font-family: Georgia, serif;
      font-size: 14px;
      color: #3c3c3c;
      margin-right: 10px; /* Reduced space to the right of the whole section */
  }
  
  .tags-section hr {
      border: 0;
      border-top: 1px solid #dcdcdc;
      margin: 10px 0 15px;
  }
  
  .tags-section p {
      margin: 5px 0;
      line-height: 1.6;
      margin-right: 10px; /* Reduced space on the right side of the paragraphs */
  }
  
  .tags-section .sku {
      font-weight: bold;
      color: #333;
  }
  
  .tags-section .tag {
      color: #8e735b; /* Dark green */
      text-decoration: none;
      transition: color 0.3s ease;
      margin-right: 10px; /* Space between tags */
  }
  
  .tags-section .tag:hover {
      color: #8e735b; /* Darker green on hover */
      text-decoration: underline;
  }
  
  .tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
  }
  
  .tab-button {
    background: none;
    font-family: auto;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    font-family: "Forum", serif;
  }
  
  .tab-button.active {
    border-bottom: 2px solid #8e735b;
    color: #8e735b;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
    max-height: 500px; /* Set a maximum height for the content */
    overflow-y: auto;  /* Enables vertical scrolling if content overflows */
  }
  
  
  table {
    width: 90%; /* Reduced width for a smaller table */
    border-collapse: collapse;
    margin: 0 auto; /* Center the table */
  }
  
  table td {
    border: 1px solid #ccc;
    padding: 8px; /* Reduced padding for smaller table cells */
  }
  
  #description {
    margin: 0 auto; /* Centers the div horizontally */
    padding: 20px; /* Adds padding around the content */
    text-align: center; /* Centers text inside the div */
  }
  
  #description h3, #description p {
    margin: 10px 0;
    color: #7c6f63;
    padding: 5px 0;
}
  .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Space between products */
    list-style-type: none;
    padding: 0;
  }
  
  .product-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
  }
  
  .product-thumbnail img {
    width: 100%;
    height: auto;
  }
  
  .product-summary {
    padding-top: 10px;
  }
  
  .product-summary h2 {
    font-size: 16px;
    font-weight: bold;
  }
  
  .product-summary .price {
    font-size: 18px;
    color: #333;
    margin-top: 10px;
  }
  
  .product-summary .category {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
  }
  .section-heading {
    font-size: 36px; /* Adjust font size for large heading */
    font-weight: bold;
    text-align: left;
    margin-right: 50px; /* Increase space between heading and product list */
}

  #description {
    margin-bottom: 20px; /* Add space below the description section */
  }
  
  #additional-info {
    margin-bottom: 20px; /* Add space below the additional info section */
  }
  
  h1.section-heading {
    margin-top: 30px; /* Add space above the heading */
    margin-bottom: 20px; /* Add space below the heading */
  }
  
  ul.products {
    margin-top: 20px; /* Add space above the product list */
  }
  
  ul.products li {
    margin-bottom: 20px; /* Add space below each product item */
  }
  /* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    /* Product Details Section */
    .product-detail {
      flex-direction: column; /* Stack the product gallery and info vertically */
      gap: 10px;
      margin-top: 10px;
    }
  
    .product-gallery {
      flex: none;
      width: 100%; /* Make gallery full width on small screens */
    }
  
    .product-info h2 {
      font-size: 28px; /* Smaller heading size for mobile */
      margin-bottom: 10px;
    }
  
    .main-image img {
      max-width: 100%; /* Make main image take full width on mobile */
      margin-bottom: 20px; /* Increase space between image and thumbnails */
    }
  
    .thumbnails {
      gap: 5px;
      justify-content: flex-start; /* Align thumbnails to the left */
      margin-top: 10px;
    }
  
    .thumbnails img {
      width: 60px; /* Smaller thumbnails for mobile */
      height: 60px;
    }
  
    .product-info {
      flex: none;
      width: 100%; /* Make product info take full width on mobile */
    }
  
    .product-info .price {
      font-size: 24px; /* Smaller price font on mobile */
    }
  
    /* Fullscreen View */
    .fullscreen img {
      max-width: 80%; /* Slightly reduce max-width for fullscreen on mobile */
    }
  
    /* Navigation Arrows in Fullscreen */
    .nav {
      font-size: 18px; /* Smaller arrows */
      padding: 8px;
    }
  
    /* Tags Section */
    .tags-section {
      font-size: 12px; /* Smaller font for mobile tags */
      margin-right: 0; /* Remove right margin for tags section */
    }
  
    /* Tab Buttons */
    .tabs {
      flex-direction: column; /* Stack tabs vertically */
    }
  
    .tab-button {
      padding: 8px 16px; /* Smaller padding for mobile */
      font-size: 14px;
    }
  
    .tab-content.active {
      max-height: 300px; /* Reduce max-height for smaller screen */
      overflow-y: auto;
    }
  
    /* Table Adjustments */
    table {
      width: 100%; /* Make table full width on small screens */
      margin: 0; /* Remove margins for table */
    }
  
    table td {
      font-size: 12px; /* Smaller text in table */
      padding: 5px; /* Less padding for table cells */
    }
  
    /* Product Grid Layout */
    .products {
      grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
      gap: 15px;
    }
  
    .product-item {
      padding: 5px;
    }
  
    .product-summary h2 {
      font-size: 14px;
    }
  
    .product-summary .price {
      font-size: 16px;
    }
  
    .product-summary .category {
      font-size: 12px;
    }
  
    /* Section Heading */
    .section-heading {
      font-size: 28px; /* Smaller section heading on mobile */
      margin-right: 10px;
    }
  
    /* Additional Info Section */
    #additional-info {
      margin-bottom: 15px; /* Slightly reduce space below additional info */
    }
  
    /* List of Products */
    ul.products li {
      margin-bottom: 15px; /* Reduce margin between product items */
    }
  }
  .tea-description {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
  }
  
  .tea-column {
    flex: 1 1 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .tea-box {
   
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-color: transparent; /* Убрали фон */
  }
  
  .tea-box h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #8e735b;
  }
  
  .tea-box p {
    font-size: 16px;
    color: #8e735b;
    line-height: 1.6;
    margin: 10px 0;
  }
  
  .tea-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .tea-brewing .brewing-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .brewing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .brewing-box {
    border: 1px solid #000;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent; /* Убрали фон */
  }
  
  .brewing-box h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .brewing-box p {
    font-size: 16px;
    color: #666;
  }
  
  .brewing-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  @media (max-width: 768px) {
    .tea-description {
      flex-direction: column;
    }
  
    .tea-column {
      flex: 1 1 100%;
    }
  
    .brewing-grid {
      grid-template-columns: 1fr;
    }
  }
  #description {
    overflow: visible; /* Убедитесь, что контент не скрыт */
    max-height: none; /* Уберите возможное ограничение высоты */
    height: auto; /* Убедитесь, что высота адаптивная */
  }
    