@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300;1,600&family=Syne:wght@400;700;800&display=swap');

:root {
  --ink: #0d0d0b;
  /* --canvas: #f4f2ed; */
  --canvas: #fff;
  /* --gold: #c9a961; */
  /* --gold: #765500; */
  --gold: #5d5349;
  --gold-lt: #d4af37;
  --mist: #e9e6de;
  --leaf: #2a4a1e;
  --emerald: #2d5016;
  --warm-accent: #c85a54;
  --primary-dark: #2a4a1e;
  --shadow-sm: 0 2px 8px rgba(13, 13, 11, 0.08);
  --shadow-md: 0 4px 16px rgba(13, 13, 11, 0.12);
  --shadow-lg: 0 12px 32px rgba(13, 13, 11, 0.16);
  --shadow-gold: 0 4px 16px rgba(201, 169, 97, 0.15);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Syne', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;
  /* Typography */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  /* Transitions */
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  overflow-x: hidden;
}

/* Product Category Tags */
.products .product-category {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  flex-wrap: wrap;
  justify-content: start  ;
  align-items: center;
  flex-direction: row;
  overflow-x: auto;
  width: 100%;
  min-height: auto;
  margin-bottom: 50px;
}

.products .product-category::-webkit-scrollbar {
  display: none;
}

.product-category .category {
  padding: 6px 10px;
  width: fit-content;
  background: linear-gradient(135deg, rgba(68, 68, 68, 0.55) 0%, rgba(60, 60, 60, 0.55) 100%);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--canvas);
  cursor: pointer;
  transition: all var(--duration-200) var(--ease);
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1.5px solid rgba(212, 175, 55, 0.2);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-category .category:hover {
  background: linear-gradient(135deg, rgba(70, 70, 70, 1) 0%, rgba(50, 50, 50, 1) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.product-category .category:active {
  transform: translateY(0);
}

.product-category .category.active {
  background: linear-gradient(135deg, #d4af37 0%, #c9a961 100%);
  /* color: var(--ink); */
  color: #fff;  
  border-color: #d4af37;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--canvas);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #c9a961 100%);
  border: 2px solid rgba(212, 175, 55, 0.3);
  color: #0d0d0b;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: all 0.3s var(--ease);
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #e5c158 0%, #d4af37 100%);
}

.scroll-top-btn.show {
  display: flex;
  animation: slideUp 0.3s var(--ease);
}

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

/* ─── MODAL BASE ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13, 13, 11, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--canvas);
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-radius: 8px;
  width: 100%;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* box-shadow: 0 20px 60px rgba(13, 13, 11, 0.15); */
}

.modal-box::-webkit-scrollbar {
  border: 0;
  display: none;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1);
  box-shadow: 0 25px 80px rgba(13, 13, 11, 0.2);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: rgba(13, 13, 11, 0.4);
  z-index: 10;
  transition: all 0.3s var(--ease);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.modal-close:hover {
  color: var(--gold);
  transform: rotate(90deg);
  background: rgba(201, 169, 97, 0.08);
}

/* ─── GLASSMORPHIC MODAL ─── */
.glass-modal {
  background: rgba(244, 242, 237, 0.65) !important;
  border: 1px solid rgba(201, 169, 97, 0.25) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 16px !important;
  max-width: 480px;
  box-shadow: 0 8px 32px rgba(13, 13, 11, 0.12) !important;
}

.glass-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  gap: 16px;
}

#addressModal .glass-modal {
  max-width: 560px;
}

#addressModal .glass-modal-content {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  align-items: stretch;
  text-align: left;
  padding: 24px;
}

#addressModal .glass-modal-content > * {
  width: 100%;
}

#addressModal .glass-modal-content input,
#addressModal .glass-modal-content textarea {
  width: 100%;
}

#addressModal .glass-modal-actions {
  flex-direction: row;
  justify-content: flex-end;
}

.glass-modal-icon {
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.glass-modal-content h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink);
  margin: 0;
}

.glass-modal-content h2 em {
  font-weight: 600;
  font-style: normal;
  color: var(--gold);
}

.glass-modal-subtext {
  font-size: 0.95rem;
  color: rgba(13, 13, 11, 0.6);
  line-height: 1.5;
  margin-top: 8px;
  max-width: 320px;
}

.glass-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
}

.glass-btn-primary,
.glass-btn-secondary {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.5px;
}

.glass-btn-primary {
  background: var(--gold);
  color: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
}

.glass-btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 13, 11, 0.2);
}

.glass-btn-secondary {
  background: rgba(13, 13, 11, 0.05);
  color: var(--ink);
  border: 1.5px solid rgba(13, 13, 11, 0.12);
  transition: all 0.25s var(--ease);
}

.glass-btn-secondary:hover {
  background: rgba(13, 13, 11, 0.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  width: 100%;
  height: 72px;
  display: flex;

  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  /* background: rgba(244, 242, 237, 0.92); */
  background: rgba(255, 255, 255, 0.203); 
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  /* border-bottom: 1px solid rgba(201, 169, 97, 0.12); */
  /* box-shadow: var(--shadow-sm); */
  gap: 24px;
  transition: box-shadow 0.3s var(--ease-out);
  transform: translateZ(0);
  will-change: transform;
}

nav:hover {
  box-shadow: var(--shadow-md);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo em {
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.7rem;
  list-style: none;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  cursor: pointer;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.55;
  color: var(--ink);
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

.nav-icon-btn:hover {
  opacity: 1;
  color: var(--gold);
}

.cart-nav-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--canvas);
  font-size: 0.58rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

.cart-nav-badge.show {
  display: flex;
}

.nav-reg-btn {
  padding: 15px 22px;
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.nav-reg-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  /* background: var(--ink); */
  background: rgba(13, 13, 11, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding-top: 100px;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.5rem);
  color: var(--canvas);
  text-decoration: none;
  font-style: italic;
  font-weight: 300;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--gold-lt);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--canvas);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 801;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-lt);
}

/* ─── SEARCH OVERLAY ─── */
#searchOverlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: rgba(13, 13, 11, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 5% 40px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

#searchOverlay.open {
  opacity: 1;
  pointer-events: all;
}


@media (max-width: 900px) {
  #searchOverlay {
    padding: 60px 4% 30px;
  }

  .search-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #searchSort {
    width: 100%;
    max-width: none;
  }

  .search-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-category-filters {
    width: 100%;
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  #searchInput {
    font-size: 1.6rem;
  }

  .search-input-wrap {
    gap: 12px;
  }

  .search-suggestions {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .search-result-card {
    min-height: auto;
  }
}

.search-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.3);
  margin-bottom: 32px;
}

.search-header {
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.search-subtitle {
  color: rgba(244, 242, 237, 0.6);
  font-size: 0.92rem;
  margin-top: 6px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  border-bottom: 1px solid rgba(184, 147, 58, 0.5);
  padding-bottom: 16px;
}

.search-input-wrap i {
  font-size: 1.4rem;
  color: var(--gold);
}

#searchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--canvas);
  font-style: italic;
  font-weight: 300;
  caret-color: var(--gold);
}

#searchInput::placeholder {
  color: rgba(244, 242, 237, 0.3);
}

#searchSort {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(244,242,237,0.2);
  color: rgba(244,242,237,0.9);
  border-radius: 999px;
  padding: 10px 14px 10px 14px;
  padding-right: 24px;
  min-width: 180px;
  font-size: 0.95rem;
  outline: none;
}

#searchClose {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(244, 242, 237, 0.3);
  font-size: 1.1rem;
  transition: color 0.2s;
}

#searchClose:hover {
  color: var(--gold);
}

.search-toolbar {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.search-count {
  color: rgba(244, 242, 237, 0.65);
  font-size: 0.95rem;
  min-width: 220px;
}

.search-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 520px);
}

.search-category-filters .search-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 242, 237, 0.18);
  color: rgba(244, 242, 237, 0.85);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.search-category-filters .search-pill.active {
  background: rgba(212, 175, 55, 0.064);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold);
}

.search-empty-state {
  width: 100%;
  max-width: 760px;
  margin-top: 32px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(244, 242, 237, 0.18);
}

.search-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.search-suggestion-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(244, 242, 237, 0.95);
  cursor: pointer;
  border: 1px solid rgba(244, 242, 237, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-suggestion-pill:hover {
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.15);
}

.search-results {
  width: 100%;
  max-width: 760px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  grid-auto-rows: auto;
  justify-content: center;
}

.search-card-actions {
  margin-top: auto;
}

.search-card-action {
  width: 100%;
  justify-content: center;
}

.search-result-card {
  position: relative;
  overflow: hidden;
  background: #e0ddd6;
  cursor: pointer;
  width: 100%;
  max-width: 360px;
  min-height: 320px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}

.search-result-card:hover,
.search-result-card.selected {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.search-result-card .result-thumbnail {
  position: absolute;
  inset: 0;
}

.search-result-card .result-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
  transition: transform 0.7s var(--ease), filter 0.5s;
}

.search-result-card:hover .result-thumbnail img {
  transform: scale(1.08);
  filter: saturate(1);
}

.search-result-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 45%;
  background: linear-gradient(180deg, rgba(13, 13, 11, 0.05) 0%, rgba(13, 13, 11, 0.5) 40%, rgba(13, 13, 11, 0.92) 100%);
  z-index: 1;
}

.search-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-result-badge.product { background: rgba(212, 175, 55, 0.12); color: var(--gold); }
.search-result-badge.land { background: rgba(34, 91, 222, 0.12); color: #4fa3ff; }
.search-result-badge.apartment { background: rgba(44, 142, 59, 0.12); color: #65c279; }

.search-result-info h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0;
  color: var(--canvas);
}

.search-result-info p {
  margin: 0;
  color: rgba(244, 242, 237, 0.66);
  font-size: 0.85rem;
  line-height: 1.5;
  min-height: 38px;
}

.search-card-action {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-card-action:hover {
  background: rgba(212, 175, 55, 0.24);
  transform: translateY(-1px);
}


.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(244, 242, 237, 0.5);
  font-size: 0.78rem;
  margin-top: auto;
}

.search-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.search-card-action {
  border: none;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-card-action:hover {
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.28);
}

.search-no-results {
  color: rgba(244, 242, 237, 0.5);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  width: 100%;
  max-width: 760px;
  margin-top: 48px;
  display: none;
}

.src-info h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--canvas);
  margin-bottom: 4px;
}

.src-info p {
  font-size: 0.7rem;
  color: var(--gold-lt);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ─── AUTH MODAL ─── */
#authModal .modal-box {
  max-width: 900px;
  flex-direction: row;
  overflow: hidden;
}

.auth-visual {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px;
  min-height: 520px;
  min-width: 300px;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
}

.auth-visual h3 {
  font-family: var(--serif);
  font-size: 2.3rem;
  color: var(--canvas);
  line-height: 1.1;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 12px;
}

.auth-visual p {
  font-size: 0.8rem;
  color: rgba(244, 242, 237, 0.45);
  line-height: 1.7;
}

.auth-form-panel {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 360px;
  max-width: 560px;
  width: 100%;
  overflow-y: auto;
}

.auth-tabs {
  display: flex;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(13, 13, 11, 0.1);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.35);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s var(--ease);
}

.auth-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.auth-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.auth-panel.active {
  display: flex;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.auth-field label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.45);
}

.auth-field input,
.auth-field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: all 0.3s var(--ease);
  box-sizing: border-box;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.auth-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d0d0b'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}

.auth-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-submit {
  margin-top: 6px;
  padding: 16px;
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.auth-submit:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  font-size: 0.65rem;
  color: rgba(13, 13, 11, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(13, 13, 11, 0.1);
}

.auth-social {
  display: flex;
  gap: 10px;
}

.auth-social-btn {
  flex: 1;
  padding: 13px;
  background: var(--mist);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.auth-social-btn:hover {
  background: #d4cfc3;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.auth-forgot {
  font-size: 0.75rem;
  color: rgba(13, 13, 11, 0.4);
  text-align: right;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  margin-top: -4px;
}

.auth-forgot:hover {
  color: var(--gold);
}

/* ─── CHART MODAL ─── */
#chartModal .modal-box {
  max-width: 880px;
  overflow-y: auto;
}

.chart-modal-inner {
  padding: 48px 48px 40px;
}

.chart-modal-header {
  padding-right: 40px;
  margin-bottom: 32px;
}

.chart-modal-header h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.chart-modal-header h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.chart-modal-header p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(13, 13, 11, 0.5);
  margin-top: 8px;
}

.chart-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.chart-tab {
  padding: 8px 18px;
  background: none;
  border: 1.5px solid rgba(13, 13, 11, 0.12);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.5);
  transition: all 0.2s;
}

.chart-tab.active {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.chart-tab:hover:not(.active) {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.04);
}

.chart-canvas-wrap {
  position: relative;
  height: 300px;
  width: 100%;
}

.chart-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 28px;
}

.chart-stat {
  background: var(--mist);
  padding: 20px 24px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

.chart-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chart-stat span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.4);
  display: block;
  margin-bottom: 6px;
}

.chart-stat strong {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--gold);
}

/* ─── CART MODAL ─── */
#cartModal .modal-box {
  max-width: 560px;
  max-height: 92vh;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 22px;
  border-bottom: 1px solid rgba(13, 13, 11, 0.08);
  flex-shrink: 0;
}

.cart-header h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

.cart-header h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.cart-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--canvas);
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 10px;
  vertical-align: middle;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 32px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty-icon {
  font-size: 3.2rem;
  color: rgba(13, 13, 11, 0.1);
  margin-bottom: 20px;
}

.cart-empty-state p {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(13, 13, 11, 0.3);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(13, 13, 11, 0.07);
  transition: opacity 0.2s, transform 0.2s;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ci-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}

.ci-meta {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.38);
  margin-bottom: 10px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(13, 13, 11, 0.12);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}

.qty-control:hover {
  border-color: var(--gold);
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.15s var(--ease);
}

.qty-btn:hover {
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
}

.qty-num {
  min-width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  border-left: 1px solid rgba(13, 13, 11, 0.08);
  border-right: 1px solid rgba(13, 13, 11, 0.08);
}

.ci-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ci-subtotal {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.ci-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.28);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  padding: 2px 0;
}

.ci-remove:hover {
  color: #c0392b;
}

.cart-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(13, 13, 11, 0.1);
  background: var(--canvas);
  flex-shrink: 0;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  font-size: 0.8rem;
  color: rgba(13, 13, 11, 0.5);
}

.cart-summary-row.total {
  border-top: 1px solid rgba(13, 13, 11, 0.1);
  margin-top: 2px;
  padding-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-summary-row.total .total-amount {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
}

.cart-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.3);
  transition: color 0.2s;
}

.cart-clear:hover {
  color: #c0392b;
}

/* Glassmorphic Order Summary */
.order-summary-glass {
  background: rgba(244, 242, 237, 0.35);
  border: 1px solid rgba(184, 147, 58, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 8px;
}

.cart-checkout-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--canvas);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s var(--ease);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.checkout-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.checkout-btn-row .cart-checkout-btn {
  width: calc(50% - 6px);
  flex: 1;
  min-width: 140px;
  margin-top: 0;
}

@media (max-width: 560px) {
  .checkout-btn-row .cart-checkout-btn {
    width: 100%;
  }
}

.cart-checkout-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.cart-continue-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: none;
  border: 2px solid rgba(13, 13, 11, 0.15);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.45);
  transition: all 0.25s var(--ease);
}

.cart-continue-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.04);
}

@keyframes cartSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.cart-item {
  animation: cartSlideIn 0.28s var(--ease);
}

@keyframes addFlash {
  0% {
    background: rgba(184, 147, 58, 0.2);
  }

  100% {
    background: var(--gold);
  }
}

.product-btn.added {
  animation: addFlash 0.3s ease;
}

/* ─── CART SIDEBAR (Responsive) ─── */
.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: min(100%, 420px);
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: -16px 24px 80px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  border-left: 1px solid rgba(13, 13, 11, 0.08);
  backdrop-filter: blur(14px);
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(13, 13, 11, 0.08);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
}

.cart-sidebar-header h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}

.cart-sidebar-header h2 em {
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
  display: block;
  font-size: 0.9rem;
}

.sidebar-close {
  background: rgba(13, 13, 11, 0.04);
  border: 1px solid rgba(13, 13, 11, 0.08);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  color: rgba(13, 13, 11, 0.65);
  transition: all 0.2s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
}

.cart-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 26px 20px;
  -webkit-overflow-scrolling: touch;
}

.cart-sidebar-footer {
  position: relative;
  border: 1px solid rgba(13, 13, 11, 0.08);
  border-radius: 32px;
  padding: 32px 26px 34px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  overflow: visible;
  min-height: 220px;
}

.cart-sidebar-footer::before,
.cart-sidebar-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.cart-sidebar-footer::before {
  top: -14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 18'%3E%3Cpath fill='rgba(255,255,255,0.95)' d='M0,18 L0,0 L20,18 L40,0 L60,18 L80,0 L100,18 L120,0 L140,18 L160,0 L180,18 L200,0 L220,18 L240,0 L260,18 L280,0 L300,18 L320,0 L340,18 L360,0 L360,18 Z'/%3E%3C/svg%3E");
}

.cart-sidebar-footer::after {
  bottom: -14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 18'%3E%3Cpath fill='rgba(255,255,255,0.95)' d='M0,0 L20,18 L40,0 L60,18 L80,0 L100,18 L120,0 L140,18 L160,0 L180,18 L200,0 L220,18 L240,0 L260,18 L280,0 L300,18 L320,0 L340,18 L360,0 L360,18 L0,18 Z'/%3E%3C/svg%3E");
}

.cart-toggle-btn {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--canvas);
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
}

.cart-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c0392b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid var(--canvas);
}

/* Sidebar Overlay Styles */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 13, 11, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  animation: fadeIn 0.3s ease;
}

.sidebar-overlay.active {
  display: flex;
}

.sidebar-panel {
  width: min(100%, 420px);
  height: 100vh;
  height: 100dvh;
  background: rgba(250, 247, 241, 0.98);
  display: flex;
  flex-direction: column;
  box-shadow: -18px 32px 110px rgba(0, 0, 0, 0.14);
  animation: slideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  border-left: 1px solid rgba(13, 13, 11, 0.08);
  backdrop-filter: blur(16px);
}

.sidebar-pages {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.sidebar-page {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.32s var(--ease);
}

.sidebar-page .cart-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-bottom: 16px;
}

.sidebar-page.page-1 {
  transform: translateX(0);
}

.sidebar-page.page-2 {
  transform: translateX(100%);
}

.sidebar-pages[data-page="2"] .sidebar-page.page-1 {
  transform: translateX(-100%);
}

.sidebar-pages[data-page="2"] .sidebar-page.page-2 {
  transform: translateX(0);
}

.sidebar-page-toggle {
  margin: 0 26px 20px;
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(13, 13, 11, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.24s var(--ease);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.10);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.sidebar-page-toggle:hover {
  background: rgba(255, 255, 255, 0.32);
}

.sidebar-page-toggle i {
  transition: transform 0.24s ease;
}

.sidebar-page-toggle:hover i {
  transform: translateX(2px);
}

.sidebar-panel .sidebar-close {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 13, 11, 0.08);
  border-radius: 14px;
  width: 44px;
  height: 44px;
}

.sidebar-panel .sidebar-close:hover {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold);
}

@media (max-width: 1024px) {
  /* Keep the slide toggle visible on tablet and mobile */
  /* Anchor the toggle to the viewport so it remains visible at the top on mobile */
  .sidebar-page-toggle {
    position: fixed;
    right: 16px;
    top: 90px;
    margin: 0;
    padding: 12px 16px;
    z-index: 10010;
    display: inline-flex;
    align-items: center;
    min-height: 44px; /* tappable target */
    touch-action: manipulation;
  }

  /* Prevent the toggle from overlapping page content by adding bottom padding */
  .sidebar-pages {
    padding-bottom: 70px; /* enough space for the toggle and safe area */
  }

  /* Ensure close button stays above pages */
  .sidebar-panel .sidebar-close {
    z-index: 10011;
  }
}

.sidebar-panel .detail-panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 64px rgba(13, 13, 11, 0.08);
  border: 1px solid rgba(13, 13, 11, 0.08);
  margin-bottom: 20px;
  display: none;
}

.sidebar-panel .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sidebar-panel .detail-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(13, 13, 11, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.sidebar-panel .detail-card.center {
  text-align: center;
}

.sidebar-panel .feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 224, 150, 0.25);
  color: #4b3916;
  font-size: 0.85rem;
  font-weight: 700;
}

.sidebar-panel .sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-panel .detail-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(13, 13, 11, 0.06);
  margin-top: 12px;
}

/* Enhanced sidebar content scrolling */
.cart-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.cart-sidebar-body::-webkit-scrollbar {
  width: 6px;
}

.cart-sidebar-body::-webkit-scrollbar-track {
  background: rgba(13, 13, 11, 0.05);
}

.cart-sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(13, 13, 11, 0.2);
  border-radius: 3px;
}

.cart-sidebar-body::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 13, 11, 0.3);
}

/* Product and Land details specific enhancements */
#productDetailsSidebar .cart-sidebar-body,
#landDetailsSidebar .cart-sidebar-body {
  padding: 24px 20px;
}

#productDetailsContent,
#landDetailsContent {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }
  
  .sidebar-panel {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }
  
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(13, 13, 11, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: stretch;
    justify-content: flex-end;
    animation: fadeIn 0.3s ease;
    height: 100vh;
    height: 100dvh;
  }
  
  .cart-toggle-btn {
    /* Move cart button higher on small screens to avoid overlapping scroll-to-top */
    bottom: 96px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }
  
  /* Mobile-optimized dropdown positioning */
  .dropdown-menu {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    left: 50%;
    transform: translateX(-50%);
  }

  .cart-sidebar-header {
    flex-shrink: 0;
  }

  .cart-sidebar-body {
    padding: 16px 20px 20px;
  }
  
  .cart-sidebar-footer {
    flex-shrink: 0;
    padding: 16px 20px;
    /* max-height: auto; */
  }
  
  /* Ensure proper scrolling on mobile */
  .cart-sidebar-body,
  .sidebar-overlay .sidebar-panel .cart-sidebar-body,
  #productDetailsSidebar .cart-sidebar-body,
  #landDetailsSidebar .cart-sidebar-body,
  #apartmentDetailsSidebar .cart-sidebar-body,
  #dashboardSidebar .cart-sidebar-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Apartment card styling */
.apartment-card {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  height: 100%;
  aspect-ratio: 3 / 4;
}

.apartment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 11, 0.88) 0%, rgba(13, 13, 11, 0.15) 55%, transparent 100%);
  pointer-events: none;
  transition: background 0.4s;
  z-index: 1;
}

.apartment-card:hover::before {
  background: linear-gradient(to top, rgba(13, 13, 11, 0.93) 0%, rgba(13, 13, 11, 0.3) 60%, rgba(13, 13, 11, 0.05) 100%);
}

.apartment-card:hover {
  box-shadow: var(--shadow-gold);
}

.apartment-card img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.5s;
  z-index: 0;
}

.apartment-card:hover img {
  transform: scale(1.08);
}

.apartment-card .product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.apartment-card .product-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.apartment-card .product-btn {
  opacity: 0;
  margin: auto;
  transform: translateY(12px);
}

.apartment-card:hover .product-btn {
  opacity: 1;
  transform: translateY(0);
}

.apartment-btn {
  margin-top: auto;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 5% 80px 8%;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1.headline {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 36px;
}

h1.headline .ghost {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
  font-style: italic;
  font-weight: 300;
}

h1.headline .solid {
  display: block;
  color: var(--gold);
  font-weight: 600;
}

.hero-sub {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(13, 13, 11, 0.55);
  max-width: 380px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 32px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.btn-primary i {
  font-size: 0.75rem;
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover i {
  transform: translateX(6px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 32px;
  border: 2px solid rgba(13, 13, 11, 0.2);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.05);
  box-shadow: var(--shadow-sm);
}

.hero-right {
  /* position: relative; */
  position: absolute;
  z-index: 0;
  /* overflow: hidden; */
  top: 10vh;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hero-right video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero-right::after {
  content: '';
  position: absolute;
  height: 150%;
  inset: 0;
  background: linear-gradient(105deg, var(--canvas) 0%, transparent 35%);
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.4);
  z-index: 3;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(13, 13, 11, 0.25);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* ─── MARQUEE ─── */
.marquee-strip {
  position: relative;
  top: 0;
  z-index: 2;
  background: rgba(13, 13, 11, 1);
  overflow: hidden;
  width: 100%;
  padding: 18px 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  /* margin-top: 40px; */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  align-items: center;
  width: max-content;
  flex-shrink: 0;
}

.marquee-track--static {
  animation: none !important;
  justify-content: center;
}

.marquee-track a {
  color: inherit;
  text-decoration: none;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 30px));
  }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.marquee-item .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-lt);
  opacity: 0.6;
}

/* ─── SECTION LABEL ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ─── ABOUT ─── */
/* .about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e9e6de;
  overflow: hidden;
} */

/* .about-img {
  position: relative;
  min-height: 600px;
  overflow: hidden;
} */

/* .about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; */
  /* display: block; */
  /* vertical-align: top; */
/* } */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e9e6de;
  overflow: hidden;
  align-items: start; /* Forces the image to align to the top of the grid row */
}

.about-img {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex; /* Ensures the child image behaves predictably */
}

.about-img img,
#aboutImage {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: relative;
  top: 0;
  left: 0;
}

.about-img-badge {
  position: absolute;
  bottom: 40px;
  right: -1px;
  background: var(--gold);
  color: var(--canvas);
  padding: 28px 32px;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--ease);
}

.about-img-badge:hover {
  transform: scale(1.05);
}

.about-img-badge span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}

.about-content {
  padding: 100px 8% 100px 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}

.about-content h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.about-content h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.about-content>p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(13, 13, 11, 0.6);
  margin-bottom: 40px;
  max-width: 480px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(13, 13, 11, 0.1);
  margin-bottom: 48px;
}

.stat-cell {
  padding: 28px 0 0;
  border-right: 1px solid rgba(13, 13, 11, 0.1);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell h4 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-cell p {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.45);
  margin: 0;
}

.about-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── PRODUCTS ─── */
.products {
  padding: 120px 8%;
  background: linear-gradient(135deg, #ffffff 0%, #fafaf8 25%, #f5f3f0 50%, #ffffff 75%, #fafaf8 100%);
  background-size: 400% 400%;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.03) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(46, 80, 22, 0.02) 50%, transparent 70%),
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(42, 74, 30, 0.03) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.6;
}

.products > * {
  position: relative;
  z-index: 1;
}

.products-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 40px;
}

.products-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.products-header h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.products-header p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(13, 13, 11, 0.55);
  align-self: flex-end;
}

.product-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--mist);
  border: 1.5px solid rgba(201, 169, 97, 0.15);
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 12px;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.product-search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.product-search-bar i {
  color: rgba(13, 13, 11, 0.35);
  font-size: 0.95rem;
}

.product-search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
}

.product-search-bar input::placeholder {
  color: rgba(13, 13, 11, 0.35);
}

.product-controls-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap; 
  gap: 5px;
  align-items: center;
  justify-content: end;
  margin-bottom: 18px;
  overflow: visible;
  z-index: 4;
}

.product-control {
  position: relative;
  min-width: 20px;
  /* flex: 1 1 20px; */
  overflow: visible;
}

.control-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: -5px;
  padding: 8px 14px;
  border-radius: 5px;
  border: 1px solid rgba(13, 13, 11, 0.12);
  background: #fff;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.control-btn:hover,
.control-btn:focus-visible {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 14px 32px rgba(13, 13, 11, 0.08);
}

.control-btn .control-value {
  color: rgba(13, 13, 11, 0.65);
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  width: 250px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid rgba(13, 13, 11, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(13, 13, 11, 0.14);
  padding: 18px;
  z-index: 20000;
  grid-template-columns: 1fr;
  gap: 10px;
}

.product-control:last-child .dropdown-menu {
  left: auto;
  right: 0;
  transform: none;
}

.dropdown-menu.open {
  display: grid;
}

.dropdown-section {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.dropdown-section:last-child {
  margin-bottom: 0;
}

.dropdown-section label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(13, 13, 11, 0.65);
}

.dropdown-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.filter-input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(13, 13, 11, 0.12);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink);
  background: #faf9f6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.control-reset-btn,
.btn-primary {
  min-width: 120px;
}

.control-reset-btn{
  min-width: 20px;
}

.control-reset-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(13, 13, 11, 0.12);
  color: rgba(13, 13, 11, 0.85);
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.control-reset-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.btn-primary {
  display: inline-flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(42, 74, 30, 0.18);
}

.stock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 13, 11, 0.65);
  backdrop-filter: blur(6px);
}

.stock-badge--available {
  background: rgba(40, 167, 69, 0.9);
}

.stock-badge--sold-out {
  background: rgba(209, 34, 41, 0.95);
}

.dropdown-item {
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-secondary {
  background: #f5f5f2;
  color: #0d0d0b;
  border: 1px solid rgba(13, 13, 11, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #e9e8e4;
}

.control-reset-btn {
  height: 36px;  
  padding: 0 14px;
  background: #fff;
  color: rgba(13, 13, 11, 0.8);
  border: 1px solid rgba(13, 13, 11, 0.12);
  border-radius: 8px;

  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  align-self: center;
}

.control-reset-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.btn-primary {
  min-width: 120px;
}

#psClear {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(13, 13, 11, 0.3);
  font-size: 0.85rem;
  transition: color 0.2s;
  display: none;
}

#psClear:hover {
  color: var(--gold);
}

.prod-count {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.35);
  white-space: nowrap;
}

.product-grid {
  display: grid;
  width: min(100%, 1240px);
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  grid-auto-rows: auto;
  gap: 16px;
  justify-content: center;
  justify-items: center;
  position: relative;
  z-index: 1;
}

/* Allow land cards and product cards to coexist */
.product-grid > * {
  min-width: 0;
  width: 100%;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: #e0ddd6;
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: opacity 0.3s;
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
}

.product-card.hidden {
  display: none;
}

.product-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: saturate(0.85);
}

/* Progressive Image Loading - Blur-Up Effect */
.product-card img.image-loading {
  filter: saturate(0.85) blur(15px);
}

/* Show More/Less Button */
.show-more-btn {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.show-more-btn:hover {
  background: #1a252f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.show-more-btn:active {
  transform: translateY(0);
}


.product-card img.image-loaded {
  filter: saturate(0.85) blur(0px);
  animation: image-fadeIn 0.3s ease-in;
}

@keyframes image-fadeIn {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-card:hover img {
  transform: scale(1.08);
  filter: saturate(1);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 11, 0.88) 0%, rgba(13, 13, 11, 0.15) 55%, transparent 100%);
  transition: background 0.4s;
}

.product-card:hover .product-card-overlay {
  background: linear-gradient(to top, rgba(13, 13, 11, 0.93) 0%, rgba(13, 13, 11, 0.3) 60%, rgba(13, 13, 11, 0.05) 100%);
}

.card-share-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  color: rgba(255, 215, 0, 0.9);
  /* color: #0d0d0b; */
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.card-share-btn:hover {
  transform: translateY(-1px);
  color: #8b7603;
}

.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px 24px;
}

.product-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.product-info h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-lt);
  margin-bottom: 12px;
}

.weight-slider-wrap {
  margin-bottom: 14px;
}

.weight-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.weight-slider-label .wval {
  color: var(--gold-lt);
  font-size: 0.74rem;
}

input[type="range"].wrange {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

input[type="range"].wrange::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-lt);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(212, 175, 85, 0.2);
}

input[type="range"].wrange::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"].wrange::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-lt);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 175, 85, 0.2);
}

.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--canvas);
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s var(--ease), background 0.2s;
  box-shadow: var(--shadow-sm);
}

.product-card:hover .product-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-btn:hover {
  background: var(--ink);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════ */
/*                    LAND CARD STYLES                         */
/* ═══════════════════════════════════════════════════════════ */

.land-card {
  position: relative;
  overflow: hidden;
  background: #e0ddd6;
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: opacity 0.3s;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.land-card.hidden {
  display: none;
}

.land-card-header {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.land-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.5s;
  filter: saturate(0.85);
}

/* Progressive Image Loading - Blur-Up Effect (Land Cards) */
.land-card-header img.image-loading {
  filter: saturate(0.85) blur(15px);
}

.land-card-header img.image-loaded {
  filter: saturate(0.85) blur(0px);
  animation: image-fadeIn 0.3s ease-in;
}

.land-card:hover {
  box-shadow: var(--shadow-lg);
}

.land-card:hover .land-card-header img {
  transform: scale(1.08);
  filter: saturate(1);
}

.land-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 11, 0.88) 0%, rgba(13, 13, 11, 0.15) 55%, transparent 100%);
  transition: background 0.4s;
}

.land-card:hover .land-card-overlay {
  background: linear-gradient(to top, rgba(13, 13, 11, 0.93) 0%, rgba(13, 13, 11, 0.3) 60%, rgba(13, 13, 11, 0.05) 100%);
}

.land-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease);
}

.land-card:hover .land-badge {
  transform: scale(1.05);
}

.land-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70%;
  padding: 20px 24px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.land-card:hover .land-card-content {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar styling for land card */
.land-card-content::-webkit-scrollbar {
  width: 4px;
}

.land-card-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.land-card-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.land-card-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.land-card-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.land-location {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.land-location i {
  color: var(--gold-lt);
}

.land-description {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  line-height: 1.4;
}

.land-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-label {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
}

.detail-value {
  color: #fff;
  font-weight: 600;
}

.land-pricing {
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(184, 147, 58, 0.15);
  border-left: 3px solid var(--gold-lt);
  border-radius: 2px;
}

.pricing-info {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.land-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-lt);
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.land-pricing {
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(184, 147, 58, 0.15);
  border-left: 3px solid var(--gold-lt);
  border-radius: 2px;
}

.pricing-breakdown {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.pricing-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.pricing-line span:first-child {
  color: var(--gold-lt);
  font-weight: 700;
  word-break: break-word;
}

.pricing-unit {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-calc {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  word-break: break-word;
  flex-wrap: wrap;
}

.land-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
}

.limit-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.limit-label {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.55rem;
}

.limit-value {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* ─── LAND RANGE SLIDER ─── */
.land-range-selector {
  margin-bottom: 12px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.65rem;
}

.range-header label {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.55rem;
}

.range-value {
  color: var(--gold-lt);
  font-weight: 700;
  font-size: 0.75rem;
}

.land-range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  margin: 10px 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.land-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-lt);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.land-range::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.28);
}

.land-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-lt);
  cursor: pointer;
  border: 4px solid #fff;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.land-range::-moz-range-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.28);
}

.land-range::-moz-range-track {
  background: transparent;
  border: none;
}

.range-limits-info {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.range-min,
.range-max {
  font-weight: 600;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.7rem;
}

.quantity-selector label {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6rem;
}

.land-qty {
  width: 50px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  font-size: 0.75rem;
  color: #fff;
}

.land-qty:focus {
  outline: none;
  border-color: var(--gold-lt);
  background: rgba(255, 255, 255, 0.12);
}

.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--canvas);
  padding: 11px 20px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.land-btn:hover {
  background: var(--ink);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* Land Cart Item Styling */
.land-cart-item {
  border-left: 4px solid var(--gold);
}

.land-cart-item .ci-location {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 6px;
  padding-inline-start: 20px;
}

.no-products-msg {
  grid-column: 1/-1;
  padding: 80px 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  color: rgba(13, 13, 11, 0.25);
  display: none;
}

/* ─── TESTIMONIAL ─── */
.testimonial {
  background: var(--ink);
  color: var(--canvas);
  padding: 120px 8%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
  align-items: center;
}

.testimonial-left .section-label {
  color: var(--gold-lt);
}

.testimonial-left .section-label::before {
  background: var(--gold-lt);
}

.testimonial-left h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  color: var(--canvas);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 0.6;
  color: rgba(184, 147, 58, 0.2);
  font-style: italic;
  font-weight: 300;
  display: block;
  margin-bottom: 20px;
}

blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244, 242, 237, 0.85);
  margin-bottom: 36px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--canvas);
}

.reviewer-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 4px;
}

.reviewer-location {
  font-size: 0.78rem;
  color: rgba(244, 242, 237, 0.4);
}

/* New testimonial card grid and form styles */
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(3,3,3,0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card .card-quote,
.testimonial-card .testimonial-text {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(244,242,237,0.9);
  line-height: 1.45;
  font-style: italic;
}
.testimonial-card .card-meta,
.testimonial-card .testimonial-author {
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:auto;
}
.testimonial-card .card-avatar,
.testimonial-card .testimonial-avatar,
.testimonial-card .testimonial-avatar.initials {
  width:48px;height:48px;border-radius:50%;background:var(--gold);display:flex;align-items:center;justify-content:center;color:var(--canvas);font-weight:700;overflow:hidden
}
.testimonial-card .testimonial-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.testimonial-card .testimonial-name{font-weight:700;color:var(--gold-lt);font-size:0.9rem}
.testimonial-card .testimonial-meta{font-size:0.78rem;color:rgba(244,242,237,0.55);margin-left:6px}
.testimonial-submit { padding-left: 24px; }
.testimonial-form { display:flex;flex-direction:column;gap:10px;background:transparent }
.testimonial-form .form-row { display:flex;gap:10px }
.testimonial-form .input-full { width:100%; padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.06);background:rgba(255,255,255,0.02);color:var(--canvas) }
.testimonial-form input, .testimonial-form textarea { padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.06);background:rgba(255,255,255,0.02);color:var(--canvas) }
.form-message{font-size:0.9rem;color:var(--gold-lt);margin-top:6px}

@media (max-width: 900px) {
  .testimonial { grid-template-columns: 1fr; padding: 60px 6%; }
  .testimonial-right { margin-top: 20px }
  .testimonial-submit { padding-left: 0 }
}

/* ─── CONTACT ─── */
.contact {
  padding: 120px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.contact-left h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.contact-left>p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(13, 13, 11, 0.55);
  margin-bottom: 56px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(13, 13, 11, 0.1);
}

.contact-detail:first-of-type {
  border-top: 1px solid rgba(13, 13, 11, 0.1);
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1.5px solid rgba(201, 169, 97, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  background: rgba(201, 169, 97, 0.05);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.contact-detail h5 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13, 13, 11, 0.4);
  margin-bottom: 5px;
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 1px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 20px 24px;
  background: var(--mist);
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  transition: all 0.25s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 2px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(13, 13, 11, 0.35);
  font-size: 0.82rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.contact-form textarea {
  resize: none;
  min-height: 160px;
}

.input-full {
  margin-bottom: 1px;
}

.contact-form .btn-primary {
  border-radius: 0;
  align-self: stretch;
  justify-content: center;
  margin-top: 1px;
  padding: 22px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: var(--canvas);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.footer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.03) 0%, rgba(255, 215, 0, 0) 100%);
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: 0 6%;
}

/* Newsletter Section */
.footer-newsletter {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.newsletter-text h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--canvas);
}

.newsletter-text p {
  font-size: 0.95rem;
  color: rgba(244, 242, 237, 0.65);
  margin: 0;
  max-width: 300px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 400px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--canvas);
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.3s var(--ease);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold-lt);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.newsletter-form input::placeholder {
  color: rgba(244, 242, 237, 0.3);
}

.newsletter-btn {
  padding: 14px 32px;
  background: var(--gold-lt);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  background: var(--gold);
}

/* Main Footer Grid */
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.1fr;
  gap: 60px;
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  width: 100%;
}


.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.footer-brand-column .footer-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.footer-brand em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-lt);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(244, 242, 237, 0.55);
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  color: rgba(244, 242, 237, 0.7);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.social-link:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: var(--ink);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.footer-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.45);
  margin: 0 0 8px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-list a {
  font-size: 0.92rem;
  color: rgba(244, 242, 237, 0.65);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
}

.footer-list a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold-lt);
  transition: width 0.3s var(--ease);
}

.footer-list a:hover {
  color: var(--gold-lt);
}

.footer-list a:hover::before {
  width: 100%;
}

/* Contact Section */
.contact-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 0.85rem;
  color: var(--gold-lt);
  margin-top: 2px;
  min-width: 16px;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(244, 242, 237, 0.35);
}

.contact-item a,
.contact-item span {
  font-size: 0.92rem;
  color: rgba(244, 242, 237, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--gold-lt);
}

/* Footer Bottom */
.footer-bottom {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 215, 0, 0.08);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(244, 242, 237, 0.35);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 32px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(244, 242, 237, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--gold-lt);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px) {
  #authModal .modal-box {
    flex-direction: column;
  }

  .auth-visual {
    display: none;
  }

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

  .hero-left {
    padding: 80px 6% 60px;
    /* border: 1px solid rgba(255,255,255,0.85); */
    border-bottom: none; 
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
  }

  .hero-right {
    /* height: 55vw; */
    width: 100%;
    left: 0;
    right: 0;
    border: 1px solid rgba(255,255,255,0.85);
    border-top: none;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
  }

  .hero-right::after {
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.75) 20%, rgba(255,255,255,0.4) 40%, transparent 60%);
  }

  .hero-scroll {
    display: none;
  }

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

  .about-img {
    min-height: 380px;
  }

  .about-content {
    padding: 60px 6%;
  }

  .products {
    padding: 120px 6%;
  }

  .products-header {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: none;
    justify-items: center;
  }

  .testimonial {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .newsletter-form {
    width: 100%;
    max-width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .chart-modal-inner {
    padding: 36px 28px 28px;
  }

  .chart-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta > .nav-icon-btn:first-child,
  #installAppBtn,
  #authBtn {
    display: none !important;
  }

  #mobileDownloadLink {
    display: block !important;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-right {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    z-index: 0;
    border-radius: 0;
  }

  .hero-right video {
    /* width: 100%; */
    height: 48% !important;
    object-fit: cover;
    display: block;
  }

  .hero-left {
    padding: 48px 5% 40px;
    position: relative;
    z-index: 2;
  }

  h1.headline {
    letter-spacing: -1px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: none;
    justify-items: center;
  }

  .product-card {
    aspect-ratio: 3/4;
    max-height: 500px;
  }

  .product-card img {
    object-fit: cover;
  }

  /* .sort-dropdown-menu {
    position: fixed;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    width: min(260px, calc(100vw - 32px));
    z-index: 25000;
  } */

  .land-details {
    grid-template-columns: 1fr;
  }

  .land-price {
    font-size: 0.9rem;
    font-weight: 800;
  }

  .pricing-breakdown {
    font-size: 0.68rem;
    gap: 5px;
  }

  .pricing-line span:first-child {
    font-size: 0.8rem;
  }

  .testimonial {
    padding: 80px 5%;
  }

  .contact {
    padding: 80px 5%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }

  .newsletter-inner {
    flex-direction: column;
    gap: 20px;
  }

  .newsletter-text h3 {
    font-size: 1.4rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-btn {
    width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 12px;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat-cell:nth-child(3) {
    border-top: 1px solid rgba(13, 13, 11, 0.1);
    grid-column: 1/-1;
  }

  .chart-stats-row {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 15px;
  }

  #cartModal .modal-box {
    max-height: 85vh;
  }

  .cart-header {
    padding: 22px 20px 18px;
  }

  .cart-body {
    padding: 0 20px;
  }

  .cart-footer {
    padding: 18px 20px 24px;
  }
}

@media(max-width:480px) {
  .products {
    padding: 80px 5%;
  }

  /* Keep the controls layout as-is, only adjust dropdown positioning */
  .dropdown-menu {
    width: min(260px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%);
  }

  .sort-dropdown-menu {
    position: relative;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(260px, calc(100vw - 32px));
    z-index: 25000;
  }

  .product-control:last-child .dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: none;
    justify-items: center;
  }

  .product-card {
    aspect-ratio: 3/4;
    max-height: 350px;
  }

  .product-info {
    padding: 32px 18px 18px;
    padding-top: 40px;
  }

  .product-num {
    font-size: 0.5rem;
    margin-bottom: 6px;
  }

  .product-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .product-price {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .product-btn {
    padding: 8px 16px;
    font-size: 0.6rem;
  }

  .land-price {
    font-size: 0.7rem;
    font-weight: 800;
  }

  .pricing-breakdown {
    font-size: 0.52rem;
    gap: 2px;
  }

  .pricing-line span:first-child {
    font-size: 0.6rem;
  }

  .pricing-unit {
    font-size: 0.48rem;
  }

  .pricing-calc {
    font-size: 0.5rem;
  }

  /* Loader Centering on Mobile */
  .page-loader {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .loader-content {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
  }

  .spinner-ring {
    border-width: 3px;
  }

  .spinner-ring:nth-child(2) {
    width: 55px;
    height: 55px;
    top: 12.5px;
    left: 12.5px;
  }

  .spinner-ring:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 25px;
    left: 25px;
  }

  .loader-text h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  /* Sidebar scrolling fixes for small screens */
  .cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
  }
  
  .sidebar-overlay .sidebar-panel {
    position: fixed;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
  }

  .cart-sidebar-header,
  .sidebar-panel .cart-sidebar-header {
    flex-shrink: 0;
  }

  .cart-sidebar-body,
  .sidebar-overlay .sidebar-panel .cart-sidebar-body,
  .sidebar-content,
  #dashboardContent,
  #productDetailsContent,
  #landDetailsContent,
  #apartmentDetailsContent {
    flex: 1 2 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
  }


  .cart-sidebar-footer,
  .sidebar-panel .cart-sidebar-footer {
    flex-shrink: 0;
    overflow: visible;
  }

  .loader-text p {
    font-size: 0.8rem;
  }

  .loader-progress {
    width: 150px;
    height: 2px;
  }

  .loader-hint {
    font-size: 0.7rem;
    margin-top: 15px;
  }

  .hero-actions,
  .about-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .chart-tabs {
    flex-wrap: wrap;
  }

  .auth-2col {
    grid-template-columns: 1fr;
  }

  /* Mobile Cart Modal Fix */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-start;
    padding-top: 50px;
  }

  #cartModal .modal-box {
    max-height: 75vh;
    max-width: 100%;
  }

  .cart-header {
    padding: 18px 16px 14px;
  }

  .cart-body {
    padding: 0 16px;
  }

  .cart-footer {
    padding: 14px 16px 20px;
  }

  .cart-item {
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    padding: 16px 0;
  }

  .cart-item img {
    width: 70px;
    height: 70px;
  }

  .ci-name {
    font-size: 0.9rem;
  }

  .ci-subtotal {
    font-size: 1rem;
  }
}

/* ══════════════════ NOTIFICATIONS ══════════════════ */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--canvas);
  border: 1px solid rgba(184, 147, 58, 0.3);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification.open {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-content i {
  font-size: 1.2rem;
  color: var(--accent);
}

.notification-content span {
  font-weight: 500;
  color: var(--ink);
}

.notification-close {
  background: none;
  border: none;
  color: rgba(13, 13, 11, 0.4);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s var(--ease);
}

.notification-close:hover {
  color: var(--ink);
}

.notification-success .notification-content i {
  color: #22c55e;
}

.notification-error .notification-content i {
  color: #ef4444;
}

.notification-info .notification-content i {
  color: var(--accent);
}

/* ─── PRODUCT UPDATE NOTIFICATIONS ─── */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.product-notification {
  animation: slideIn 0.3s ease-out;
}

/* ─── PAGE LOADER ─── */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--canvas) 0%, #faf8f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  animation: loaderFadeIn 0.8s var(--ease);
}

@keyframes loaderFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.loader-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--gold-lt);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 20px;
  left: 20px;
  border-top-color: var(--leaf);
  border-right-color: transparent;
  animation: spin 1.5s linear reverse infinite;
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 40px;
  left: 40px;
  border-top-color: var(--mist);
  border-right-color: var(--gold);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loader-text {
  margin-bottom: 30px;
}

.loader-text h2 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.loader-text p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.7;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.4;
  }
}

.loader-progress {
  width: 200px;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
  border-radius: 2px;
  animation: loadProgress 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(184, 147, 58, 0.5);
}

@keyframes loadProgress {
  0% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

.loader-hint {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  animation: fadeInOut 2s ease-in-out infinite 0.5s;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

/* Hide register on short-height mobile landscape to avoid clipping */
@media (orientation: landscape) and (max-height:480px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
  #authBtn, .nav-reg-btn { display: none !important; }
  #mobileAuthLink { display: block !important; }
}

/* Mobile modal containment fix: ensure modals (price filter and others)
   never exceed viewport width on small screens */
@media (max-width: 640px) {
  .modal-box,
  .glass-modal {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 16px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    overflow-x: hidden !important;
  }

  /* Keep backdrop padding reasonable and keep modal centered */
  .modal-backdrop {
    padding: 12px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Reduce internal padding for compact modals on mobile */
  .glass-modal-content {
    padding: 20px !important;
  }

  /* Move close button slightly inward on small screens */
  .modal-close {
    top: 12px !important;
    right: 12px !important;
  }

  /* Ensure any dropdowns used as filters also fit the viewport */
  .dropdown-menu:last-of-type {
    width: calc(100vw - 50px) !important;
    max-width: calc(100vw - 50px) !important;
    left: 74% !important;
    transform: translateX(-74%) !important;
  }
}