/* ============================================
   SOPLO SAGRADO — Main Stylesheet
   Earth tones, ceremonial, organic
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #f5ead6;
  --bg-warm: #efe3ce;
  --bg-light: #faf4e8;
  --text-primary: #3b3228;
  --text-secondary: #5c4d3c;
  --text-muted: #8a7b6b;
  --green-deep: #2c5f3f;
  --green-forest: #3a7d53;
  --green-muted: #5a8a6a;
  --green-light: #7faa8e;
  --accent-gold: #b8a07a;
  --accent-warm: #c4a97d;
  --border-light: rgba(60, 80, 60, 0.12);
  --shadow-soft: 0 4px 24px rgba(59, 50, 40, 0.08);
  --shadow-lifted: 0 8px 40px rgba(59, 50, 40, 0.1), 0 2px 8px rgba(59, 50, 40, 0.06);
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Nunito Sans', 'Helvetica Neue', sans-serif;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green-deep);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--green-forest);
}

/* --- Floral Corner Decorations --- */
/* All four corners reference the SAME source PNG (corner-top-left.png)
   and are mirrored via CSS transforms. This guarantees the four corners
   are perfect reflections of each other — same artwork, same scale,
   same density — for a balanced atmospheric frame. */
.floral-corner {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  opacity: 0.82;
  transition: opacity 0.3s ease;
  line-height: 0;
}

.floral-corner img {
  display: block;
  width: 180px;
  height: auto;
  max-width: none;
  transform-origin: center center;
}

.floral-top-left    { top: 0;    left: 0;  }
.floral-top-right   { top: 0;    right: 0; }
.floral-bottom-left { bottom: 0; left: 0;  }
.floral-bottom-right{ bottom: 0; right: 0; }

/* Mirroring so the same source PNG fits each corner naturally */
.floral-top-left    img { transform: none; }
.floral-top-right   img { transform: scaleX(-1); }
.floral-bottom-left img { transform: scaleY(-1); }
.floral-bottom-right img { transform: scale(-1, -1); }

/* --- Hamburger Menu ---
   Positioned top-left in a translucent circular surface so it always
   reads clearly above the decorative corner artwork. */
.hamburger-btn {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 1100;                              /* well above corner art (z:10) */
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(245, 234, 214, 0.85);
  border: 1px solid rgba(60, 80, 60, 0.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(59, 50, 40, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.hamburger-btn:hover {
  background: var(--bg-light);
  box-shadow: 0 6px 22px rgba(59, 50, 40, 0.18);
  transform: scale(1.04);
}

.hamburger-btn:focus-visible {
  outline: 2px solid var(--green-muted);
  outline-offset: 3px;
}

.hamburger-btn:hover .hamburger-line {
  background-color: var(--text-primary);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--green-deep);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform-origin: center;
}

.hamburger-btn.active {
  background: var(--bg-light);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Slide-Out Nav Panel --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 50, 40, 0.3);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--bg-warm);
  z-index: 950;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  box-shadow: 4px 0 30px rgba(59, 50, 40, 0.1);
}

.nav-panel.active {
  transform: translateX(0);
}

.nav-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-panel a {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition-smooth), padding-left var(--transition-smooth);
  letter-spacing: 0.02em;
}

.nav-panel a:hover {
  color: var(--green-deep);
  padding-left: 8px;
}

.nav-panel a.active-link {
  color: var(--green-deep);
}

/* --- Header --- */
.site-header {
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.site-title-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 12px;
  font-weight: 300;
}

/* --- Image Slider --- */
.slider-section {
  padding: 30px 40px 70px;
  display: flex;
  justify-content: center;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: var(--bg-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lifted);
  border: 1px solid rgba(200, 185, 160, 0.3);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  /* contain so portrait or square images aren't cropped — letterboxing
     falls back to the slider container's cream background. */
  object-fit: contain;
  background: var(--bg-light);
}

/* Optional slow zoom on the active slide (toggled from admin) */
.slider-zoom-on .slide.active img {
  animation: slowZoom 12s ease-out forwards;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  opacity: 0.35;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.slider-dot.active {
  opacity: 1;
  transform: scale(1.2);
}

/* --- Atmospheric Quote Section --- */
.atmosphere-section {
  text-align: center;
  padding: 80px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.atmosphere-quote {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* --- Shipibo Divider --- */
.shipibo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  max-width: 600px;
  margin: 0 auto;
  gap: 16px;
}

.shipibo-divider svg {
  flex-shrink: 0;
}

.shipibo-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-muted), transparent);
  opacity: 0.3;
}

.shipibo-divider-full {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

/* --- About Section --- */
.about-section {
  padding: 60px 40px 80px;
  max-width: 780px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.08em;
}

.about-text {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.about-text p {
  margin-bottom: 1.4em;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text .emphasis-block {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  padding: 20px 0;
  line-height: 1.9;
}

.about-text .poetic-lines {
  padding: 8px 0 8px 20px;
  border-left: 2px solid var(--green-muted);
  margin: 24px 0;
  opacity: 0.85;
}

.about-text .poetic-lines p {
  margin-bottom: 0.3em;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition-smooth);
}

.footer-nav a:hover {
  color: var(--green-deep);
}

/* ============================================
   INNER PAGES — Shared Styles
   ============================================ */

.page-hero {
  text-align: center;
  padding: 100px 20px 50px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 40px 80px;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.page-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-top: 36px;
  margin-bottom: 14px;
}

.page-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.3em;
}

.page-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.page-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.6em;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--green-muted);
  border-radius: 50%;
}

/* --- Services Cards --- */
.service-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(200, 185, 160, 0.25);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.service-card p {
  margin-bottom: 0.8em;
}

.service-card p:last-child {
  margin-bottom: 0;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0 60px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
  box-shadow: var(--shadow-soft);
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lifted);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(138, 123, 107, 0.25);
  border-radius: 8px;
  background: var(--bg-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-muted);
  box-shadow: 0 0 0 3px rgba(90, 138, 106, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  display: inline-block;
  padding: 14px 48px;
  background-color: var(--green-deep);
  color: var(--bg-light);
  border: none;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color var(--transition-smooth), transform var(--transition-smooth);
}

.submit-btn:hover {
  background-color: var(--green-forest);
  transform: translateY(-1px);
}

.contact-info {
  margin-top: 48px;
  text-align: center;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .site-title {
    font-size: 2.6rem;
    letter-spacing: 0.08em;
  }

  .site-header {
    padding: 60px 20px 30px;
  }

  .slider-section {
    padding: 20px 20px 40px;
  }

  .slider-container {
    border-radius: 12px;
  }

  .atmosphere-section {
    padding: 50px 28px;
  }

  .atmosphere-quote {
    font-size: 1.3rem;
  }

  .about-section {
    padding: 40px 24px 60px;
  }

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

  .page-hero {
    padding: 80px 20px 40px;
  }

  .page-hero h1 {
    font-size: 2.4rem;
  }

  .page-content {
    padding: 20px 24px 60px;
  }

  /* Floral corners - reduce size on tablet */
  .floral-corner img {
    width: 130px;
  }

  .hamburger-btn {
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
  }

  .nav-panel {
    padding: 60px 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 2rem;
  }

  .floral-corner img {
    width: 95px;
  }

  /* Soften bottom florals on very small screens */
  .floral-bottom-left,
  .floral-bottom-right {
    opacity: 0.55;
  }

  .atmosphere-quote {
    font-size: 1.15rem;
  }

  .slider-container {
    border-radius: 10px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   GALLERY CARDS — Public (categories grid)
   ============================================ */
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 20px 0 60px;
}

.gallery-card {
  background: var(--bg-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(200, 185, 160, 0.3);
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

.gallery-card-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-warm);
  position: relative;
}

.gallery-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.gallery-card-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-primary));
}

.gallery-card-title {
  text-align: center;
  padding: 22px 18px 26px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.gallery-card-count {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* ============================================
   LIGHTBOX — Gallery preview overlay
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 16, 0.94);
  z-index: 2000;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  color: var(--bg-primary);
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.lightbox-counter {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(245, 234, 214, 0.7);
  letter-spacing: 0.1em;
}

.lightbox-close {
  background: none;
  border: none;
  color: var(--bg-primary);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  padding: 6px 14px;
  line-height: 1;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.lightbox-close:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 70px;
  min-height: 0;
  overflow: hidden;
}

.lightbox-image-wrap {
  /* Fill the stage so the image's max-height: 100% has a real reference. */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image {
  /* Always show the full image regardless of aspect ratio — no cropping. */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
  transition: opacity 0.35s ease;
}

.lightbox-image.fading {
  opacity: 0;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 234, 214, 0.08);
  border: 1px solid rgba(245, 234, 214, 0.15);
  color: var(--bg-primary);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-smooth), transform var(--transition-smooth);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-arrow:hover {
  background: rgba(245, 234, 214, 0.18);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-arrow-prev { left: 18px; }
.lightbox-arrow-next { right: 18px; }

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 32px 24px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 234, 214, 0.3) transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 6px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: rgba(245, 234, 214, 0.25);
  border-radius: 3px;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
  background: rgba(245, 234, 214, 0.06);
}

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

.lightbox-thumb:hover {
  opacity: 0.85;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .lightbox-header { padding: 16px 18px; }
  .lightbox-title { font-size: 1.05rem; }
  .lightbox-stage { padding: 0 12px; }
  .lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
  .lightbox-arrow-prev { left: 8px; }
  .lightbox-arrow-next { right: 8px; }
  .lightbox-thumbs { padding: 12px 14px 16px; }
  .lightbox-thumb { width: 60px; height: 60px; }
}

/* ============================================
   SHOP — Public storefront
   ============================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
  padding: 20px 0 60px;
}

.product-card {
  background: var(--bg-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(200, 185, 160, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-warm);
  position: relative;
}

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

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

.product-card-image-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
}

.product-card-body {
  padding: 14px 16px 18px;
  text-align: center;
}

.product-card-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.product-card-price {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--green-deep);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.product-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(184, 160, 122, 0.95);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  font-weight: 600;
}

/* Product detail modal */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 16, 0.85);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.product-modal.active {
  display: flex;
  opacity: 1;
}

.product-modal-inner {
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(245, 234, 214, 0.6);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-smooth), transform var(--transition-smooth);
  z-index: 4;
}

.product-modal-close:hover {
  background: var(--bg-light);
  transform: scale(1.05);
}

.product-modal-images {
  display: flex;
  flex-direction: column;
  background: var(--bg-warm);
}

.product-modal-main-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-main-image img {
  width: 100%;
  height: 100%;
  /* contain so the full product image is visible regardless of orientation */
  object-fit: contain;
}

.product-modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.product-modal-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity var(--transition-smooth), border-color var(--transition-smooth);
}

.product-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-thumb.active {
  opacity: 1;
  border-color: var(--accent-gold);
}

.product-modal-body {
  padding: 48px 44px 44px;
  display: flex;
  flex-direction: column;
}

.product-modal-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.product-modal-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--green-deep);
  margin-bottom: 24px;
  font-weight: 400;
}

.product-modal-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.product-modal-meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.product-modal-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .product-modal-inner {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .product-modal-body {
    padding: 28px 24px 32px;
  }
  .product-modal-name {
    font-size: 1.55rem;
  }
}

/* ============================================
   ADMIN — Hidden portal & dashboard
   ============================================ */
.admin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  z-index: 5;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-light);
  border: 1px solid rgba(200, 185, 160, 0.4);
  border-radius: 16px;
  box-shadow: var(--shadow-lifted);
  padding: 48px 40px 40px;
  text-align: center;
}

.admin-login-card h1 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-login-card .sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.admin-login-card .form-group {
  text-align: left;
}

.admin-login-error {
  background: rgba(180, 70, 60, 0.08);
  color: #8c3a30;
  border: 1px solid rgba(180, 70, 60, 0.2);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}

.admin-login-error.show { display: block; }

.admin-hint {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Dashboard layout */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg-primary);
}

.admin-sidebar {
  background: var(--bg-warm);
  padding: 36px 24px;
  border-right: 1px solid rgba(60, 80, 60, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.admin-nav button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--green-deep);
}

.admin-nav button.active {
  background: var(--green-deep);
  color: var(--bg-primary);
}

.admin-logout {
  background: none;
  border: 1px solid rgba(60, 80, 60, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  margin-top: 16px;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

.admin-logout:hover {
  background: rgba(60, 80, 60, 0.08);
  color: var(--text-primary);
}

.admin-main {
  padding: 44px 56px;
  overflow-y: auto;
}

.admin-page-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-page-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: adminFadeIn 0.3s ease;
}

@keyframes adminFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Admin gallery list / product list */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--green-deep);
  color: var(--bg-light);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition-smooth), transform var(--transition-smooth);
}

.btn:hover { background: var(--green-forest); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(60, 80, 60, 0.2);
}

.btn-secondary:hover {
  background: rgba(60, 80, 60, 0.06);
  color: var(--text-primary);
}

.btn-danger {
  background: #a04030;
}

.btn-danger:hover {
  background: #8c3525;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.admin-list-card {
  background: var(--bg-light);
  border: 1px solid rgba(200, 185, 160, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-smooth);
}

.admin-list-card:hover {
  box-shadow: var(--shadow-lifted);
}

.admin-list-card-cover {
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
  overflow: hidden;
  position: relative;
}

.admin-list-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-list-card-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-list-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-list-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 2px;
}

.admin-list-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.admin-list-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.admin-empty {
  text-align: center;
  padding: 60px 30px;
  border: 1px dashed rgba(60, 80, 60, 0.18);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
}

/* Modal (admin edit) */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 16, 0.6);
  z-index: 3000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.admin-modal.active { display: flex; }

.admin-modal-inner {
  background: var(--bg-primary);
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  padding: 36px 40px 32px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.admin-modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.admin-modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}

.admin-modal-close:hover { color: var(--text-primary); }

.admin-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Drag-drop upload zone */
.upload-zone {
  /* Label defaults to display:inline; force block-level flex so the dashed
     border wraps a single box (not a fragmented inline run). */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  border: 2px dashed rgba(60, 80, 60, 0.25);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  background: var(--bg-light);
  cursor: pointer;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.upload-zone:hover,
.upload-zone.dragging {
  background: rgba(122, 170, 142, 0.08);
  border-color: var(--green-muted);
}

.upload-zone-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.upload-zone-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.upload-zone input[type="file"] {
  display: none;
}

/* Image manager grid */
.image-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.image-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-warm);
  cursor: grab;
  transition: border-color var(--transition-smooth);
}

.image-tile.cover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(184, 160, 122, 0.2);
}

.image-tile.dragging {
  opacity: 0.4;
}

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

.image-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  gap: 4px;
}

.image-tile:hover .image-tile-overlay {
  opacity: 1;
}

.image-tile-action {
  background: rgba(245, 234, 214, 0.92);
  color: var(--text-primary);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition-smooth);
}

.image-tile-action:hover {
  background: var(--bg-light);
}

.image-tile-action.danger {
  background: rgba(160, 64, 48, 0.92);
  color: #fff;
}

.image-tile-cover-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  font-weight: 600;
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green-deep);
}

.toggle-row label {
  font-size: 0.92rem;
  color: var(--text-secondary);
  cursor: pointer;
  letter-spacing: 0.02em;
}

/* Mobile admin */
@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 18px 20px;
    gap: 16px;
    overflow-x: auto;
  }
  .admin-brand, .admin-brand-sub { margin: 0; }
  .admin-brand-sub { display: none; }
  .admin-nav {
    flex-direction: row;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
  }
  .admin-nav button { white-space: nowrap; padding: 8px 14px; }
  .admin-logout { margin-top: 0; }
  .admin-main { padding: 28px 22px 60px; }
  .admin-modal-inner { padding: 26px 22px; }
}

/* Hide floral corners on admin pages — keep workspace clean */
.admin-page .floral-corner {
  display: none;
}

/* Sidebar group labels */
.admin-nav-group {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 14px 6px;
  list-style: none;
}

.admin-nav-group:first-child { padding-top: 0; }

/* About — block editor */
.block-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.block-item {
  background: var(--bg-light);
  border: 1px solid rgba(200, 185, 160, 0.35);
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 28px 110px 1fr auto;
  gap: 14px;
  align-items: start;
  transition: box-shadow var(--transition-smooth);
}

.block-item:hover {
  box-shadow: var(--shadow-soft);
}

.block-item.dragging {
  opacity: 0.5;
}

.block-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.6;
  user-select: none;
  padding-top: 6px;
}

.block-handle:active {
  cursor: grabbing;
}

.block-type-pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(60, 80, 60, 0.08);
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-top: 6px;
  font-weight: 600;
}

.block-content textarea,
.block-content input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(138, 123, 107, 0.2);
  border-radius: 8px;
  background: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  resize: vertical;
}

.block-content textarea:focus,
.block-content input:focus {
  outline: none;
  border-color: var(--green-muted);
  box-shadow: 0 0 0 3px rgba(90, 138, 106, 0.1);
}

.block-content .block-image-preview {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
}

.block-content .block-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block-content .block-image-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: var(--text-muted);
  font-family: var(--font-serif);
}

.block-content .block-image-actions {
  display: flex;
  gap: 8px;
}

.block-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.block-action-btn {
  background: none;
  border: 1px solid rgba(60, 80, 60, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

.block-action-btn:hover {
  background: rgba(60, 80, 60, 0.06);
  color: var(--text-primary);
}

.block-action-btn.danger:hover {
  background: rgba(160, 64, 48, 0.1);
  color: #8c3525;
  border-color: rgba(160, 64, 48, 0.3);
}

/* About — image block on public homepage */
.about-text .about-image {
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-text .about-image img {
  width: 100%;
  display: block;
}

.about-text h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 32px 0 12px;
  letter-spacing: 0.04em;
}

/* Quote alignment + style helpers (driven by data-attrs) */
.atmosphere-section[data-align="left"]  { text-align: left; }
.atmosphere-section[data-align="right"] { text-align: right; }
.atmosphere-section[data-align="center"] { text-align: center; }

.atmosphere-quote[data-style="upright"] { font-style: normal; }
.atmosphere-quote[data-style="hushed"] {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
}

.atmosphere-subtitle {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 18px;
  font-weight: 300;
}

/* Mobile adjustments for block editor */
@media (max-width: 700px) {
  .block-item {
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }
  .block-type-pill {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0;
  }
  .block-content {
    grid-column: 1 / -1;
  }
  .block-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}
