/* /styles/catalog.css */

:root {
  --primary-color: #d988b9;
  --accent-color: #e8b4b4;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background-color: #fff5f7;
  line-height: 1.7;
}

.header {
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: background 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}


.men-catalog .perfume-desc {
  color: #ccc;
}

/* Цвета для мужской страницы */
.men-catalog h3,
.men-catalog .btn,
.men-catalog .perfume-desc,
.men-catalog .perfume-notes span {
  color: white !important;
}

.men-section h2 {
  color: #b82d3f;
} 


.men-catalog .perfume-notes span {
  background-color: #37474f;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.men-catalog .btn {
  background-color: #263238;
  color: white;
}

.men-catalog .btn:hover {
  background-color: #1c1c1c;
}

.men-section {
  background-image: 
  linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 26, 26, 0.8)),
  url('/images/menFon.webp');
  background-size: contain;
  background-position: center;
  background-repeat: repeat;
  color: white;
  padding: 40px 0;
  background-color: #0a0a0a;
}

.men-section, .women-section, .unisex-section {
  padding: 40px 0;
}

.men-section .perfume-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.unisex-catalog {
   background-color: #1e1e1e; /* Темно-серый фон */
  background-image: 
  url(/images/UnisexFon.webp);
  background-size: contain;
  background-position: center;
  background-repeat: repeat;
  color: white;
}


.unisex-catalog .perfume-card {
  background-color: rgba(255, 255, 255, 0.05); /* Полупрозрачный фон */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Для Safari */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.unisex-catalog .perfume-card h3 {
  color: white;
}

.unisex-catalog .perfume-desc {
  color: white;
}

.unisex-catalog .perfume-notes span {
  background-color: #555;
  color: #fff;
}

.unisex-catalog .btn {
  background-color: #37474f;
  color: white;
}

.unisex-catalog .btn:hover {
  background-color: #263238;
}


.logo img {
  height: 40px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0;
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  color: #6d2932;
  transition: color 0.3s;
  font-weight: bold;
}

.nav-list li {
  margin-left: 20px
}

.nav-list a:hover {
  color: var(--primary-color);
}

.section {
  padding: 3rem 0;
}

.section-title-men, .section-title-women {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #6d2932;
  text-align: center;
  margin-bottom: 1rem;
}

.section-title-unisex {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #822df1;
}

.section-subtitle {
  text-align: center;
  color: #a87b7b;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}


.section-subtitle-unisex {
  text-align: center;
  color: #a816e2;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}


.search-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.search-bar input {
  width: 80%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  background: white;
  transition: box-shadow 0.3s ease;
  margin-bottom: 10px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(217, 136, 185, 0.3);
}

.search-bar button {
  padding: 10px 20px;
  background-color: #d988b9;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}



.perfume-container {
  padding-bottom: 2rem;
}

.perfume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: stretch;
}

.perfume-card {
  width: 350px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
  margin-top: 40px;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(30px);

}

.perfume-card.show {
  opacity: 1;
  transform: translateY(0);
}

.perfume-card:hover {
  transform: translateY(-5px);
}

.perfume-image {
  height: 300px;
  overflow: hidden;
}

.perfume-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.perfume-card:hover .perfume-image img {
  transform: scale(1.05);
}


.perfume-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.perfume-text h3 {
  font-family: 'Playfair Display', serif;
  color: #6d2932;
  margin-bottom: 10px;
  font-size: 18px;
}

.perfume-text p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.perfume-desc {
  color: #a87b7b;
  margin-bottom: 15px;
  font-size: 0.95rem;
  white-space: pre-line;
  flex-grow: 1;
}

.perfume-notes {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.perfume-notes span {
  background: #ccc;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin: 4px;
  transition: transform 0.2s ease;
}

.perfume-notes span:hover {
  transform: scale(1.05);
}

.btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
  margin-top: auto;
}

.btn:hover {
  background: #6d2932;
}

.btn-tg {
  display: inline-flex;
  align-items: center;        /* Вертикальное выравнивание */
  justify-content: center;    /* Горизонтальное выравнивание */
  gap: 8px;                   /* Расстояние между иконкой и текстом */
  color: white;
  background-color: #0066aa;
  padding: 5px 10px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-tg img {
  width: 20px;
  height: 20px;
  transition: filter 0.3s ease;
}

/* При наведении — меняем цвет всей кнопки */
.btn-tg:hover {
  background-color: blue;
  color: #fff;
}

.btn-tg:hover img {
  filter: brightness(1.2); /* Легкое свечение при наведении */
}


/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: auto;
}

.women-catalog .modal-content {
  background-color: #f1a3d3;
  color: #333;
}

.men-catalog .modal-content
 {
  background-color: #1a1a1a;
  color: white;
}

.unisex-catalog .modal-content {
  background-color: #078b43;
  color: white;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
  text-align: center;
  background-color: #fff;
  color: #333;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
 
}

.modal-content p {
  font-size: 16px;
  margin-bottom: 10px;
}

.modal-content strong {
  color: #d988b9;
}

.close-btn {
  position: absolute;
  color: #aaa;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 12px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
}

.note-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2rem 0;
  justify-content: center;
}

.note-filter-btn {
  padding: 6px 12px;
  margin: 5px;
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.note-filter-btn:hover {
  transform: scale(1.05);
}

.note-filter-btn.active {
  font-weight: bold;
  transform: scale(1.1);
  background-color: #d988b9 !important;
}

.btn-reset {
  background-color: #9e9e9e;
  color: white;
  margin-top: 1rem;
}

.btn-reset:hover {
  background-color: #757575;
}

.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.footer-col {
  text-align: left;
}

.footer-about {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #d988b9;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 5px;
}

.footer-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

.footer-bottom {
  font-size: 14px;
}

.legal-links a {
  color: #d988b9;
  text-decoration: none;
  margin: 0 5px;
}

.hidden {
  display: none;
}


/* Адаптивность */
@media (max-width: 1024px) {
  .perfume-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media (max-width: 768px) {
.header {
    padding: 10px 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
  }

  .nav-list li {
    margin: 10px 0;
  }

   .section-title-men, .section-title-women, .section-title-unisex {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .search-bar input {
    width: 100%;
  }

  .note-filters {
    justify-content: center;
  }

  .note-filter-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

.perfume-container {
  padding-bottom: 2rem;
}

  .perfume-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .perfume-card {
    
    border-radius: 3px;
  }

  .perfume-text {
    min-height: 200px;
  }

  .perfume-text h3 {
    font-size: 16px;
  }

  .perfume-text p {
    font-size: 12px;
  }

  .perfume-image {
    height: 180px;
  }

  .perfume-info {
    padding: 15px;
  }

  .perfume-desc {
    font-size: 0.85rem;
  }

  .perfume-notes span {
    padding: 4px 8px;
    font-size: 10px;
  }

  .btn.open-product-modal {
    font-size: 14px;
  }

  .modal-content {
    width: 90%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 5px 0;
  }

  .section-title-men, .section-title-women, .section-title-unisex {
    font-size: 20px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .note-filters {
    flex-direction: column;
    align-items: center;
  }

  .note-filter-btn {
    margin: 5px 0;
  }

  .perfume-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .perfume-text h3 {
    font-size: 14px;
  }

  .perfume-text p {
    font-size: 10px;
  }

  .perfume-notes span {
    padding: 3px 6px;
    font-size: 8px;
  }

  .btn.open-product-modal {
    font-size: 12px;
  }

  .modal-content {
    width: 95%;
  }

  .footer-title {
    font-size: 16px;
  }

  .footer-menu a {
    font-size: 12px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .legal-links a {
    font-size: 12px;
  }
}