:root {
  --color-primary-dark: #7a5b5b;
  --color-primary-medium: #a68b8b;
  --color-primary-light: #d4c1c1;
  --color-secondary-cream: #f8f3f1;
  --color-secondary-light-cream: #fcfbf9;
  --color-accent-green: #e8ebe8;
  --color-blue-overlay: rgba(140, 160, 180, 0.6);
  --color-text-dark: #333333;
  --color-text-medium: #555555;
}

.font-lora {
  font-family: 'Lora', serif;
}
.font-inter {
  font-family: 'Inter', sans-serif;
}

.bg-primary-dark {
  background-color: var(--color-primary-dark);
}
.text-primary-dark {
  color: var(--color-primary-dark);
}
.border-primary-dark {
  border-color: var(--color-primary-dark);
}

.bg-primary-medium {
  background-color: var(--color-primary-medium);
}
.text-primary-medium {
  color: var(--color-primary-medium);
}

.bg-primary-light {
  background-color: var(--color-primary-light);
}
.text-primary-light {
  color: var(--color-primary-light);
}

.bg-secondary-cream {
  background-color: var(--color-secondary-cream);
}
.text-secondary-cream {
  color: var(--color-secondary-cream);
}

.bg-secondary-light-cream {
  background-color: var(--color-secondary-light-cream);
}

.bg-accent-green {
  background-color: var(--color-accent-green);
}
.text-accent-green {
  color: var(--color-accent-green);
}

.bg-blue-overlay {
  background-color: var(--color-blue-overlay);
}
.text-text-dark {
  color: var(--color-text-dark);
}
.text-text-medium {
  color: var(--color-text-medium);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
.scroll-snap-y {
  scroll-snap-type: y mandatory;
}
.snap-start {
  scroll-snap-align: start;
}

/* Vertical Slider for Top Bar */
.vertical-slider-container {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.vertical-slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: vertical-slide 3s infinite;
}
.vertical-slider-item:nth-child(1) {
  animation-delay: 0s;
  opacity: 1;
}
.vertical-slider-item:nth-child(2) {
  animation-delay: 5s;
}
.vertical-slider-item:nth-child(3) {
  animation-delay: 10s;
}
@keyframes vertical-slide {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  16% {
    transform: translateY(0);
    opacity: 1;
  }
  20% {
    transform: translateY(-100%);
    opacity: 0;
  }
  24% {
    transform: translateY(100%);
    opacity: 0;
  }
  28% {
    transform: translateY(0);
    opacity: 1;
  }
  44% {
    transform: translateY(0);
    opacity: 1;
  }
  48% {
    transform: translateY(-100%);
    opacity: 0;
  }
  52% {
    transform: translateY(100%);
    opacity: 0;
  }
  56% {
    transform: translateY(0);
    opacity: 1;
  }
  72% {
    transform: translateY(0);
    opacity: 1;
  }
  76% {
    transform: translateY(-100%);
    opacity: 0;
  }
  80% {
    transform: translateY(100%);
    opacity: 0;
  }
  84% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Generic Slider Styles */
.custom-slider-container {
  position: relative;
  overflow: hidden;
}
.custom-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.custom-slider-item {
  flex-shrink: 0;
}
.custom-slider-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 10;
  border: none;
  cursor: pointer;
}
.custom-slider-nav-button:hover {
  background: rgba(255, 255, 255, 0.9);
}
.custom-slider-prev {
  left: 10px;
}
.custom-slider-next {
  right: 10px;
}
.custom-slider-dots {
  text-align: center;
  margin-top: 20px;
}
.custom-slider-dot {
  background: var(--color-primary-light);
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.custom-slider-dot.active {
  background: var(--color-primary-medium);
}

/* Owl Carousel Styles */
.owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem !important;
  color: var(--color-primary-dark) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 10;
}
.owl-nav button:hover {
  background: rgba(255, 255, 255, 0.9) !important;
}
.owl-prev {
  left: 10px;
}
.owl-next {
  right: 10px;
}
.owl-dots {
  text-align: center;
  margin-top: 20px;
}
.owl-dots .owl-dot span {
  background: var(--color-primary-light) !important;
  width: 10px !important;
  height: 10px !important;
  margin: 0 5px !important;
  transition: background-color 0.3s ease;
}
.owl-dots .owl-dot.active span {
  background: var(--color-primary-medium) !important;
}
.owl-carousel.owl-loaded {
  overflow: hidden;
}

/* Footer Flower Background */
.footer-flower-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2C8.34315 2 7 3.34315 7 5C7 6.65685 8.34315 8 10 8C11.6569 8 13 6.65685 13 5C13 3.34315 11.6569 2 10 2ZM10 12C8.34315 12 7 13.3431 7 15C7 16.6569 8.34315 18 10 18C11.6569 18 13 16.6569 13 15C13 13.3431 11.6569 12 10 12ZM2 10C2 8.34315 3.34315 7 5 7C6.65685 7 8 8.34315 8 10C8 11.6569 6.65685 13 5 13C3.34315 13 2 11.6569 2 10ZM12 10C12 8.34315 13.3431 7 15 7C16.6569 7 18 8.34315 18 10C18 11.6569 16.6569 13 15 13C13.3431 13 12 11.6569 12 10ZM6 6C6 4.34315 7.34315 3 9 3C10.6569 3 12 4.34315 12 6C12 7.65685 10.6569 9 9 9C7.34315 9 6 7.65685 6 6ZM14 6C14 4.34315 15.3431 3 17 3C18.6569 3 20 4.34315 20 6C20 7.65685 18.6569 9 17 9C15.3431 9 14 7.65685 14 6ZM6 14C6 12.3431 7.34315 11 9 11C10.6569 11 12 12.3431 12 14C12 15.6569 10.6569 17 9 17C7.34315 17 6 15.6569 6 14ZM14 14C14 12.3431 15.3431 11 17 11C18.6569 11 20 12.3431 20 14C20 15.6569 18.6569 17 17 17C15.3431 17 14 15.6569 14 14Z' fill='%23D4C1C1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
  opacity: 0.2;
}

/* Parallax */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Product Card Overlay */
.product-card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.group:hover .product-card-hover-overlay {
  opacity: 1;
}

/* Image Spinner */
.image-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Section toggling */
.page-section {
  display: none;
}
.page-section.active {
  display: block;
}

/* Admin Panel */
.admin-sidebar {
  width: 250px;
  background-color: var(--color-primary-dark);
  color: white;
  padding: 20px;
  min-height: calc(100vh - 100px);
  position: sticky;
  top: 0;
  left: 0;
  overflow-y: auto;
}
.admin-content {
  flex-grow: 1;
  padding: 20px;
  background-color: var(--color-secondary-cream);
}
.admin-sidebar a {
  display: block;
  padding: 10px 15px;
  margin-bottom: 5px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background-color: var(--color-primary-medium);
}
.admin-sub-page {
  display: none;
}
.admin-sub-page.active {
  display: block;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.site-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  display: block;
}

.header-site-logo {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: scale(1.2);
  transform-origin: left center;
}

@media (min-width: 480px) {
  .site-logo {
    height: 44px;
    max-width: 170px;
  }

  .header-site-logo {
    transform: scale(1.35);
  }
}

@media (min-width: 768px) {
  .site-logo {
    height: 64px;
    max-width: none;
  }

  .header-site-logo {
    max-width: none;
    transform: scale(1.65);
  }
}
.modal-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-medium);
  cursor: pointer;
}

/* Target the scrollbar itself */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px; /* Width of the vertical scrollbar */
}

/* Track (the background area the thumb slides on) */
.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--color-secondary-light-cream); /* Light cream background */
  border-radius: 10px;
}

/* Thumb (the draggable element) */
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: var(--color-primary-light); /* Primary light color */
  border-radius: 10px;
  border: 2px solid var(--color-secondary-light-cream); /* Match track background for padding effect */
}

/* Hover state for the thumb */
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary-medium); /* Darker on hover */
}