/* --- Сброс и Переменные --- */
:root {
  /* Цветовая палитра */
  --bg-color: #fdf5e6; /* Нежный бежевый (Old Lace) */
  --text-main: #1a1a1a; /* Глубокий черный для четкости */
  --text-muted: #555045; /* Темно-землистый для подписей */
  --accent-color: #2e4634; /* Темный изумруд */
  --gold-color: #c5a059; /* Золото */
  --white: #ffffff;

  /* Шрифты */
  --font-heading: "Playfair Display", serif;
  --font-body: "Libre Baskerville", serif; /* Плотный, читаемый шрифт */

  /* Отступы */
  --spacing-unit: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  /* Libre Baskerville крупный сам по себе, ставим комфортный размер */
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; /* Сглаживание шрифтов */
  overflow-x: hidden; /* Prevent horizontal scroll from full-width elements */
}

/* Настройки заголовков */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  /* Вес 600 делает заголовки заметными и плотными */
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent-color);
  letter-spacing: -0.02em; /* Чуть плотнее буквы */
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Утилиты --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.section {
  padding: 90px 0;
  position: relative;
}

.section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Исключение для каталога - сетка должна работать независимо */
.catalog-section .container {
  align-items: stretch;
}

.center-btn {
  text-align: center;
  margin-top: 50px;
}

/* --- Кнопки --- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-weight: 700; /* Жирность для кнопок */
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-small {
  padding: 10px 24px;
  font-size: 12px;
  border: 1px solid var(--text-main);
  font-weight: 700;
}

.btn-small:hover {
  background-color: var(--text-main);
  color: #fff;
}

.btn-text {
  background: none;
  border: none;
  color: var(--gold-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: italic;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  border-bottom: 1px solid transparent;
}

.btn-text:hover {
  border-bottom-color: var(--gold-color);
  color: var(--accent-color);
}

/* --- Catalog Dropdown --- */
.catalog-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 200px;
  background-color: rgba(253, 245, 230, 0.98);
  border: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1001;
}

/* Невидимый мостик между кнопкой и dropdown для предотвращения потери hover */
.catalog-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.catalog-dropdown:hover .catalog-dropdown-menu,
.catalog-dropdown.active .catalog-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
  transition: all 0.25s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--accent-color);
  color: #fff;
  padding-left: 25px;
}

/* --- Header --- */
.header {
  padding: 20px 0;
  border-bottom: 2px solid rgba(197, 160, 89, 0.2);
  position: sticky;
  top: 0;
  background-color: rgba(253, 245, 230, 0.98);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-color);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700; /* Делаем меню более четким */
  color: var(--text-main);
}

.nav-link:hover {
  color: var(--gold-color);
}

/* --- Hero Section --- */
.hero {
  height: 85vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image: url("../img/img19.jpg");
  background-size: cover;
  background-position: center 40%; /* Опустили на 30% (было 10%) */
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Усиленный градиентный оверлей для читаемости текста */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    /* Затемнение сильнее у основания */ rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.15) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Отключаем fixed на мобильных для производительности */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.catalog-hero {
  background-image: url("../img/img18.jpg");
  background-position: center 30%;
}

.hero-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-bottom: 50px; /* Уменьшен отступ */
}

.hero-title {
  font-size: 3.5rem; /* Чуть крупнее */
  margin-bottom: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600; /* Жирнее для четкости */
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.6); /* Более глубокая тень */
}

.hero-title em {
  color: #fff;
  font-family: var(--font-heading);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  max-width: 550px;
  margin: 0 auto 40px;
  font-size: 0.95rem; /* Крупнее для читаемости */
  color: #fff; /* Чистый белый */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600; /* Жирнее */
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); /* Добавил тень */
  line-height: 1.6;
}

.hero-actions {
  text-align: center;
}

.btn-hero {
  display: inline-block;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background-color: rgba(80, 85, 60, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative; /* Для анимации блика */
  overflow: hidden; /* Чтобы блик не выходил за края */
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

/* Эффект блика (Shine) */
.btn-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: all 0.6s;
  z-index: -1;
}

.btn-hero:hover {
  background-color: rgba(80, 85, 60, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(197, 160, 89, 0.3); /* Легкое золотистое свечение */
  letter-spacing: 0.15em; /* Раздвигаем буквы при наведении */
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero:active {
  transform: translateY(-1px) scale(0.98);
}

/* Параллакс для секций - уже определено выше */

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  will-change: transform;
}

/* --- Section Titles --- */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin: 0 auto 15px;
  position: relative;
  display: block;
  width: 100%;
  color: var(--accent-color);
  will-change: transform;
}

.section-title::after {
  content: "❖"; /* Классический ромб */
  display: block;
  font-size: 18px;
  color: var(--gold-color);
  margin-top: 15px;
  opacity: 0.6;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 60px;
  font-size: 1.15rem;
  max-width: 800px;
}

/* --- About Section --- */
.about {
  text-align: center;
}

.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.about-text {
  text-align: left;
}

.about-text p {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.about-decorative-box {
  height: 350px;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent-color);
  outline: 2px solid #c0c0c0;
  outline-offset: -8px;
  position: relative;
  box-shadow: 0 4px 20px rgba(46, 70, 52, 0.2);
}

.about-decorative-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Catalog Preview --- */
.catalog-preview {
  text-align: center;
}

.catalog-preview .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--bg-color);
  border: 2px solid rgba(224, 224, 224, 0.6);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(197, 160, 89, 0.25);
  border-color: var(--gold-color);
}

.card-image-placeholder {
  height: 280px;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

/* Текстура гравюры в плейсхолдере */
.card-image-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#999 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.2;
}

.card-image {
  height: 280px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 30px;
  text-align: center;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-main);
  font-weight: 600;
}

.card-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* --- Footer --- */
.footer {
  background-color: #151515; /* Плотный темный фон */
  color: #fff;
  padding: 80px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.logo-footer {
  color: var(--gold-color);
  margin-bottom: 20px;
  display: inline-block;
}

.footer h4 {
  color: var(--gold-color);
  margin-bottom: 25px;
  font-size: 1.3rem;
  font-weight: 500;
}

.footer p {
  color: #e0e0e0;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
  font-size: 13px;
  color: #888;
}

.footer-social-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.footer-social-link:hover {
  opacity: 0.8;
}

.footer-social-link svg {
  vertical-align: middle;
}

/* --- Hamburger Button (hidden on desktop) --- */
.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Анимация burger → X */
.burger-btn.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-btn.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* На десктопе nav-container растягивается на всю ширину */
.nav-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Контент прижат вправо */
}

/* Навигация по центру экрана (абсолютно) */
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}

/* Правая часть: контакты + кнопка */
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.contact-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.contact-link.phone {
  font-weight: 700;
  color: var(--accent-color);
}

.contact-link:hover {
  color: var(--gold-color);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  /* Hamburger visible */
  .burger-btn {
    display: flex;
  }

  /* Header stays horizontal: logo + burger */
  .header-content {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    position: relative; /* Для позиционирования dropdown */
  }

  /* На мобильных навигация вертикальная - ВНИЗУ */
  .nav {
    order: 2; /* О нас, Коллекция, Контакты в самый низ */
    position: static;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
  }

  /* Nav container slides from right */
  .nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* Gap managed by individual blocks */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85%);
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    border-left: 2px solid var(--gold-color);
    padding: 80px 30px;
    justify-content: center; /* Center content vertically for adaptivity */
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease, visibility 0.4s;
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-container.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 16px;
    padding: 8px 0;
  }

  /* Блок с кнопкой и категориями - ВВЕРХУ */
  .header-actions {
    order: 1;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 25px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  /* Catalog dropdown on mobile */
  .catalog-dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
  }

  .header-contacts {
    align-items: center;
    margin: 5px 0;
    gap: 8px;
  }

  .contact-link {
    font-size: 15px;
  }

  .catalog-dropdown .btn-small {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 13px;
  }

  .catalog-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .dropdown-item {
    display: block;
    padding: 8px 0;
    border: none;
    font-size: 14px;
    text-align: left;
    color: var(--text-muted);
    transition: color 0.3s ease;
  }

  .dropdown-item:hover {
    color: var(--accent-color);
    padding-left: 5px;
  }

  /* Hero */
  .hero {
    height: 70vh;
    min-height: 400px;
    background-attachment: scroll;
  }

  .hero-container {
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 0.03em;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
  }

  .btn-hero {
    padding: 12px 28px;
    font-size: 11px;
  }

  .catalog-header {
    min-height: 60vh;
    padding: 40px 0 30px;
  }

  .catalog-header-frame {
    padding: 30px 20px;
  }

  /* About section */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text {
    text-align: center;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .section .container {
    align-items: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-desc {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* 2-column card grids */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  /* Compact cards for mobile */
  .card-image {
    height: 160px;
  }

  .card-body {
    padding: 12px 10px;
  }

  .card-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .card-price {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .btn-text {
    font-size: 12px;
  }

  /* Footer compact */
  .footer {
    padding: 50px 0 20px;
    margin-top: 40px;
  }

  .footer-content {
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  /* About decorative box */
  .about-decorative-box {
    height: 250px;
  }

  /* Container padding */
  .container {
    width: 94%;
    padding: 0 10px;
  }

  .container {
    width: 94%;
    padding: 0 10px;
  }
}

/* Smallest screens */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.5rem;
  }

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

  .card-image {
    height: 130px;
  }

  .card-body {
    padding: 10px 8px;
  }

  .card-title {
    font-size: 0.78rem;
  }

  .card-price {
    font-size: 0.78rem;
  }

  .btn-text {
    font-size: 11px;
  }

  .logo {
    font-size: 20px;
  }
}

/* --- Модальные окна --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-color);
  max-width: 1400px;
  width: 95%;
  height: 85vh; /* Fixed height for desktop */
  max-height: 85vh;
  margin: 40px auto;
  position: relative;
  border: 2px solid var(--gold-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Internal scrolling only */
}

@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    max-height: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
  }
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-main);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-color);
}

.modal-body {
  padding: 40px;
  display: flex;
  gap: 50px;
  align-items: start;
  flex: 1; /* Take remaining space */
  overflow: hidden; /* Manage overflow per section */
  height: 100%;
}

/* Галерея с миниатюрами */
.modal-gallery {
  flex: 1.2;
  display: flex;
  gap: 15px;
  height: 100%;
  overflow: hidden;
}

/* Вертикальная панель миниатюр (десктоп) */
.modal-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-color) transparent;
}

.thumbnail {
  width: 60px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border-radius: 4px;
  border: 2px solid transparent; /* Invisible border by default to prevent layout shift */
  background-color: #f0f0f0;
}

.thumbnail:hover {
  opacity: 1;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--gold-color);
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Основное изображение */
.modal-info {
  flex: 0.8;
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* Space for scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--gold-color) transparent;
}

.modal-image {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: background-color 0.3s ease;
}

.modal-image:hover {
  background-color: #e8e8e8;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* transition: opacity 0.15s ease; — transform убрали, так как зума нет */
  transition: opacity 0.15s ease;
}

/* Эффект панорамирования при наведении */
.modal-image:hover img {
  /* transform: scale(1.25); — убрали зум */
  cursor: move; /* Или crosshair, показываем возможность движения */
}

/* Skeleton loader для загрузки изображения */
.modal-image.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

@keyframes skeleton-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.modal-image img.loading {
  opacity: 0;
}

.modal-image img.loaded {
  opacity: 1;
}

.modal-image::after {
  content: "🔍";
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.modal-image:hover::after {
  opacity: 1;
  transform: scale(1.1);
}

.modal-info h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.modal-info .modal-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 25px;
}

.modal-info .modal-description {
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--text-muted);
}

.modal-info .modal-details {
  list-style: none;
  margin-bottom: 30px;
}

.modal-info .modal-details li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

.modal-info .modal-details li strong {
  color: var(--text-main);
  margin-right: 10px;
}

.modal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Центрируем по вертикали */
  gap: 15px; /* Добавляем зазор между кнопками */
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-nav-btn {
  flex: 1; /* Кнопки будут занимать равное пространство, если нужно */
  min-width: 120px;
  text-align: center;
  background: none;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 12px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px; /* Чуть меньше шрифт, чтобы влезло 3 кнопки */
  transition: all 0.3s ease;
}

.modal-nav-btn.btn-contact {
  background-color: var(--accent-color);
  color: #fff;
  flex: 1.2; /* Выделяем центральную кнопку */
}

.modal-nav-btn.btn-contact:hover {
  background-color: var(--gold-color);
  border-color: var(--gold-color);
}

.modal-nav-btn:hover:not(:disabled):not(.btn-contact) {
  background-color: var(--accent-color);
  color: #fff;
}

.modal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
  color: #999;
}

/* Стили для модального окна контактов */
.contact-modal-content {
  max-width: 500px; /* Узкое окно для контактов */
  width: 90%;
}

.contact-modal-body {
  padding: 40px;
  text-align: center;
}

.contact-modal-desc {
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 14px;
}

.social-links-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.social-link-item .social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
}

.social-link-item.tg .social-icon {
  background-color: #0088cc;
}
.social-link-item.wa .social-icon {
  background-color: #25d366;
}
.social-link-item.vk .social-icon {
  background-color: #4c75a3;
}

.social-link-item .social-name {
  color: var(--text-main);
}

.social-link-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(46, 70, 52, 0.1);
  transform: translateY(-2px);
}

/* --- Contact Modal Redesign --- */
.contact-modal-content {
  max-width: 380px !important;
  height: 40vh !important; /* Fixed compact height */
  max-height: 40vh !important;
  border-radius: 24px; /* Enhanced rounding */
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.3);
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
}

.contact-modal-body {
  padding: 30px 20px;
  background-color: var(--bg-color);
  overflow-y: auto; /* Internal scroll */
  flex: 1;
}

.contact-modal-body h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--accent-color);
  text-align: center;
}

.contact-modal-desc {
  color: var(--text-muted);
  margin-bottom: 25px; /* Tighter spacing */
  line-height: 1.5;
  font-size: 13px;
  text-align: center;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.contact-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.35); /* Subtle glass effect on theme bg */
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-row:hover {
  background-color: var(--white);
  border-color: var(--gold-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.15);
}

.contact-icon {
  font-size: 20px;
  margin-right: 18px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-label {
  font-size: 10px;
  color: var(--gold-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-divider {
  position: relative;
  text-align: center;
  margin: 20px 0; /* Reduced margin */
}

.modal-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(197, 160, 89, 0.15);
}

.modal-divider span {
  position: relative;
  background-color: var(--bg-color);
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.social-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background-color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link-item:hover {
  background-color: var(--white);
  border-color: var(--gold-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
}

.social-link-item .social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #fff;
}

.social-link-item.tg .social-icon { background-color: #0088cc; }
.social-link-item.wa .social-icon { background-color: #25d366; }
.social-link-item.vk .social-icon { background-color: #4c75a3; }

.social-link-item .social-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Adjust divider HTML content to support span if needed, but let's just style the existing one if possible or update it */


@media (max-width: 900px) {
  .modal-body {
    flex-direction: column;
    padding: 20px;
    overflow-y: auto; /* Allow body scroll on mobile */
  }

  .modal-info {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .modal-gallery {
    height: auto;
    flex: none;
    width: 100%;
  }

  .modal-gallery {
    flex-direction: column-reverse; /* Миниатюры снизу на мобильных */
  }

  /* Горизонтальная панель миниатюр (мобильные) */
  .modal-thumbnails {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 5px;
  }

  .thumbnail {
    width: 60px;
    height: 80px;
  }

  /* Увеличенное изображение на мобильных */
  .modal-image {
    height: 55vh;
    min-height: 350px;
    background-color: #fcfcfc; /* Light background for contrast */
  }

  /* Переставляем блоки: навигация вверх, описание и детали вниз */
  .modal-info {
    display: flex;
    flex-direction: column;
  }

  .modal-info h2 {
    order: 1;
  }


  .modal-info .modal-price {
    order: 2;
  }

  .modal-nav {
    order: 3;
    flex-direction: row;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    margin-bottom: 15px;
  }

  .modal-nav-btn {
    width: auto;
    flex: 1;
    padding: 10px 12px;
    font-size: 10px;
  }

  .modal-info .modal-description {
    order: 4;
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .modal-info .modal-details {
    order: 5;
  }
}

/* --- Каталог --- */
.catalog-hero {
  background-image: url("../img/img18.jpg");
  background-position: center top 15% ;
}

/* Адаптация фильтров для темного фона hero-секции */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap; /* По умолчанию wrap для десктопа */
  position: relative;
  z-index: 2;
  /* Горизонтальный скролл на мобильных будет добавлен в media query */
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 12px 24px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px; /* Чуть крупнее для читаемости */
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap; /* Важно для скролла */
  /* Увеличенная зона клика (неявная, через padding) */
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.catalog-section {
  padding: 40px 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-8px);
}

/* Lightbox для полноэкранного просмотра */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox-content {
  width: 95%;
  height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  animation: lightbox-fade-in 0.3s ease;
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 32px;
  cursor: pointer;
  z-index: 3001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--gold-color);
  border-color: var(--gold-color);
  transform: rotate(90deg) scale(1.1);
}

/* Адаптивность для модальных окон */
@media (max-width: 1200px) {
  .modal-content {
    max-width: 95%;
    width: 95%;
  }

  .modal-body {
    gap: 40px;
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-color); /* Theme Background */
  }

  .modal-close {
    top: 5px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(253, 245, 230, 0.9); /* Beige transparent */
    color: var(--text-main);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 1;
    border: 1px solid rgba(197, 160, 89, 0.3);
  }

  .modal-body {
    padding: 0;
    gap: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 90px;
    -webkit-overflow-scrolling: touch;
    background-color: var(--bg-color);
  }

  /* Fixed Height Image Container - CRITICAL for stability */
  .modal-image {
    height: 50vh;
    min-height: 320px;
    width: 100%;
    flex-shrink: 0; /* Never shrink */
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .modal-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border: 2px solid rgba(197, 160, 89, 0.3); /* Gold border */
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }

  /* Gallery Thumbnails row */
  .modal-gallery {
    flex: none; /* Never shrink/grow */
    width: 100%;
    padding: 10px 15px;
    order: 2;
    background-color: var(--bg-color);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  }
  
  .modal-thumbnails {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* CRITICAL: No wrapping */
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: flex-start;
    gap: 12px;
    height: 80px; /* Fixed height container */
    align-items: center;
    background-color: transparent; /* No conflicting bg */
  }
  
  .thumbnail {
    width: 56px;
    height: 70px;
    flex-shrink: 0; /* CRITICAL: No shrinking */
    border-radius: 4px;
    border: 2px solid transparent; 
    background-color: rgba(197, 160, 89, 0.1); /* Gold tint */
    opacity: 0.8;
    transition: all 0.2s ease;
    object-fit: cover;
  }
  
  .thumbnail.active {
    border-color: var(--gold-color);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
  }
  
  .thumbnail:hover {
      border-color: var(--accent-color);
      opacity: 1;
  }

  .modal-info {
    padding: 20px 15px;
    order: 3;
    display: block;
    background-color: var(--bg-color);
    color: var(--text-main);
  }
  
  .modal-info h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--accent-color);
  }
  
  .modal-info .modal-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
  }

  .modal-info .modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-muted);
  }

  .modal-info .modal-details li {
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom-color: rgba(0,0,0,0.05);
  }

  /* --- REBUILT Sticky Bottom Navigation (Mobile) --- */
  .modal-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 15px 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    gap: 8px;
    justify-content: center; /* Center buttons */
    align-items: center;
    border-top: 1px solid rgba(197, 160, 89, 0.4);
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }

  .modal-nav-btn {
    height: 44px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid var(--text-main); /* Black border */
    color: var(--text-main); /* Black font */
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
  }

  /* Contact button style - Balanced with site's green accent */
  .modal-nav-btn.btn-contact {
    flex: 1.8;
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(46, 70, 52, 0.2);
  }

  /* Hover/Active states */
  .modal-nav-btn:active {
    transform: scale(0.96);
  }

  .modal-nav-btn.btn-contact:active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
  }

  .modal-nav-btn:disabled {
    opacity: 0.3;
    filter: grayscale(1);
  }

  /* Catalog Grid Optimization */
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr); /* Strict 2 cols */
    gap: 8px; /* Tighter gap */
    padding: 20px 0;
  }
  
  .catalog-section .container {
    padding-left: 10px;
    padding-right: 10px; /* Maximize width */
  }

  /* Compact Lightbox Controls */
  .lightbox-close {
    width: 44px;
    height: 44px;
    font-size: 24px;
    top: 15px;
    right: 15px;
  }

  .load-more-container {
    margin-top: 30px;
  }

  #loadMoreBtn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }

  /* Specific Contact Modal Refinements for Mobile */
  .contact-modal-content {
    width: 92% !important;
    height: 40vh !important;
    max-height: 40vh !important;
    border-radius: 24px !important;
  }

  .contact-modal-body {
    padding: 25px 15px !important; /* Slightly tighter for mobile */
  }
}

@media (max-width: 480px) {
  /* Specific tweaks for small phones */
  
  .header {
    height: 60px;
    padding: 10px 0;
  }
  
  .logo {
      font-size: 1.2rem;
  }
  
  .burger-btn {
    width: 44px;
    height: 44px;
  }
  
  .hero {
    height: 100svh;
    background-position: 65% center;
  }
  
  .catalog-hero {
    background-position: 68% top;
  }

  /* Horizontal Scroll Filters (Instagram Style) */
  .catalog-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 15px;
    padding-right: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .catalog-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    min-height: 38px;
    padding: 0 18px;
    font-size: 13px;
    border-radius: 19px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .modal-image {
      height: 50vh; /* Slightly smaller on very small screens to show title */
  }
}

/* Навигация в Lightbox */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1); /* Светлый полупрозрачный фон */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  outline: none;
}

.lightbox-nav-btn:hover {
  background: rgba(197, 160, 89, 0.8); /* Gold accent */
  border-color: var(--gold-color);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 30px;
}

.lightbox-nav-btn.next {
  right: 30px;
  padding-left: 5px; /* Visual center adjustment for icon */
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.3); /* Более прозрачный фон */
    border: none;
    color: rgba(255, 255, 255, 0.8);
  }

  .lightbox-nav-btn.prev {
    left: 0;
    border-radius: 0 50% 50% 0;
    padding-right: 5px;
    justify-content: flex-start;
    padding-left: 10px;
  }

  .lightbox-nav-btn.next {
    right: 0;
    border-radius: 50% 0 0 50%;
    padding-left: 5px;
    justify-content: flex-end;
    padding-right: 10px;
  }
}

/* --- Load More --- */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  padding-bottom: 20px;
}

#loadMoreBtn {
  min-width: 250px;
  border-color: var(--gold-color);
  color: var(--accent-color);
  font-weight: 700;
  background: rgba(253, 245, 230, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#loadMoreBtn:hover {
  background-color: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 70, 52, 0.2);
}

@media (max-width: 768px) {
  .load-more-container {
    margin-top: 30px;
  }

  #loadMoreBtn {
    width: 100%;
    min-width: unset;
    padding: 12px 20px;
    font-size: 13px;
  }
}
