@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --plum: #702d56;
  --plum-dark: #5b2345;
  --pink: #cf4774;
  --pink-soft: #f9e7ec;
  --cream: #fffaf7;
  --cream-2: #f8f0eb;
  --gold: #b88728;
  --text: #2d2328;
  --muted: #776d71;
  --border: #ead6d2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 0 10%, rgba(244, 174, 188, .2), transparent 20rem),
    radial-gradient(circle at 100% 20%, rgba(244, 174, 188, .18), transparent 20rem),
    linear-gradient(180deg, #fffdfb 0%, var(--cream) 60%, #fff8f7 100%);
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   FIXED NAVBAR & BRAND ANIMATIONS
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 250, 247, 0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  padding: 30px 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.navbar.scrolled {
  background: rgba(255, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(112, 45, 86, 0.05);
  padding: 12px 24px;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--plum);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
  z-index: 10;
}

.menu-btn:hover {
  background: var(--pink-soft);
}

.brand {
  position: relative;
  display: block;
  width: 320px;
  height: 310px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .brand {
  width: 270px; 
  height: 45px;
}

.brand img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 250px;
  height: 250px;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .brand img {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  width: 45px;
  height: 45px;
}

.brand-name {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.18em;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .brand-name {
  bottom: 50%;
  left: 57px;
  transform: translate(0, 50%);
  font-size: 18px;
}

.brand-hero-space {
  display: block;
  width: 100%;
  min-height: 370px; 
}

/* ==========================================
   NAVIGATION EXTRAS (STICKY BACK BUTTON)
   ========================================== */
.hero-header-nav {
  position: sticky;
  top: 72px; /* Sticks right below the minimized scrolled navbar */
  z-index: 99; /* Just below navbar (100) */
  background: rgba(255, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--plum);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.back-btn:hover {
  color: var(--pink);
  transform: translateX(-4px);
}

/* ==========================================
   HERO & SEARCH
   ========================================== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 20px;
  text-align: center;
}

.decorative-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold);
  margin-bottom: 12px;
}

.decorative-divider .line {
  width: 50px;
  height: 1px;
  background: var(--gold);
}

.decorative-divider .diamond {
  font-size: 10px;
}

.hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--plum);
  letter-spacing: 0.22em;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.filter-bar {
  display: flex;
  gap: 16px;
  max-width: 850px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(112, 45, 86, 0.06);
  padding: 4px 6px 4px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--pink);
  box-shadow: 0 6px 20px rgba(207, 71, 116, 0.15);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  margin-right: 10px;
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  min-height: 40px;
}

.search-btn {
  background: var(--pink);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.search-btn:hover {
  background: var(--plum);
}

.select-wrapper {
  position: relative;
  min-width: 210px;
  display: flex;
  align-items: center;
}

.select-icon {
  position: absolute;
  pointer-events: none;
  width: 18px;
  height: 18px;
  color: var(--plum);
  left: 16px;
}

.select-wrapper select {
  width: 100%;
  appearance: none;
  background: var(--pink-soft);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 14px 40px 14px 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--plum);
  outline: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(112, 45, 86, 0.04);
  transition: border-color 0.2s;
  min-height: 50px;
}

.select-wrapper select:focus {
  border-color: var(--pink);
}

/* ==========================================
   GRIDS & CARDS
   ========================================== */
.gallery-container {
  max-width: 1300px;
  margin: 30px auto 50px;
  padding: 0 24px;
  flex: 1;
}

.gallery-grid, .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(112, 45, 86, 0.06);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(112, 45, 86, 0.12);
  border-color: var(--pink);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 80%;
  background: var(--cream-2);
  overflow: hidden;
  cursor: pointer; 
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--plum);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background: #ffffff;
}

.category-card-body {
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
}

.card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
  text-transform: capitalize;
}

.category-card-body .card-title {
  margin-bottom: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--cream-2);
}

.card-category {
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
}

.card-fav-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}

.card-fav-btn:hover {
  color: var(--pink);
}

/* ==========================================
   IMAGE MODAL (POPUP)
   ========================================== */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 20, 25, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.1);
  color: var(--pink);
}

.modal-image-container {
  width: 90%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

.modal-controls {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 16px;
  z-index: 1001;
}

.modal-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px auto 0;
  padding: 0 24px;
}

.page-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--plum);
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 10px;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--pink);
  color: #ffffff;
  border-color: var(--pink);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--cream-2);
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 8px;
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.no-res-icon {
  width: 48px;
  height: 48px;
  color: var(--pink);
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

/* ==========================================
   UTILITIES & FOOTER
   ========================================== */
.benefits {
  background: rgba(249, 231, 236, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid #ead5da;
}

.benefit-card:last-child { border-right: 0; }

.benefit-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--pink);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(112, 45, 86, 0.08);
  margin-bottom: 12px;
}

.site-footer {
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  color: #ffffff;
  padding: 50px 24px 30px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.social-section {
  text-align: center;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: background 0.2s, color 0.2s;
}

.socials a:hover {
  background: #ffffff;
  color: var(--plum);
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--plum);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 90;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Slideout Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: #ffffff;
  z-index: 200;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  transform: translateX(0);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  color: var(--plum);
  cursor: pointer;
}

.drawer-header {
  text-align: center;
  margin-bottom: 36px;
}

.drawer-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--plum);
  border-bottom: 1px solid var(--cream-2);
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================
   MOBILE RESPONSIVENESS & 2-COLUMN GRID
   ========================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 20px 16px;
  }
  
  .brand {
    height: 190px;
    width: 260px;
  }
  
  .brand img {
    width: 140px;
    height: 140px;
  }
  
  .brand-name {
    font-size: 20px;
  }
  
  .brand-hero-space {
    min-height: 250px; 
  }
  
  .navbar.scrolled .brand {
    width: 220px;
    height: 40px;
  }
  
  .navbar.scrolled .brand img {
    width: 40px;
    height: 40px;
  }
  
  .navbar.scrolled .brand-name {
    left: 48px;
    font-size: 15px;
  }

  .hero-header-nav {
    top: 64px; /* Adjust top spacing for smaller scrolled mobile navbar */
    padding: 8px 16px;
  }
  
  .filter-bar {
    flex-direction: column;
    padding: 0;
  }
  
  .search-box, .select-wrapper {
    width: 100%;
  }

  .search-box {
    display: flex;
  }

  .search-btn, .select-wrapper select, .search-box input {
    min-height: 44px;
  }
  
  .gallery-container {
    padding: 0 16px;
  }

  .gallery-grid, .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; 
  }

  .card-body, .category-card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 15px;
    margin-bottom: 8px;
    word-break: break-word;
  }

  .card-badge {
    font-size: 9px;
    padding: 3px 8px;
    top: 8px;
    left: 8px;
  }

  .card-category {
    font-size: 11px;
  }

  .pagination {
    gap: 6px;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 8px;
  }

  .benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 24px 12px;
  }

  .benefit-card {
    border-right: 1px solid #ead5da;
    border-bottom: none;
    padding-bottom: 0;
    padding: 0 4px;
  }

  .benefit-card:last-child {
    border-right: none; 
  }

  .benefit-icon-wrapper {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
  }

  .benefit-icon-wrapper svg {
    width: 18px;
    height: 18px;
  }

  .benefit-card strong {
    font-size: 11px;
    line-height: 1.2;
  }

  .benefit-card small {
    font-size: 9px;
    line-height: 1.2;
  }
}