@import "tailwindcss";
/* Existing styles */

/* Variables */
:root {
  --primary: #293d3c;
  --secondary: #FFD700;
  --accent: #32b3a3;
  --text: #333;
  --light: #f9f9f9;
  --gray: #e5e7eb;
  --dark: #1f2937;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background-color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', serif;
}

/* Navbar */
.navbar {
  background-color: var(--primary);
  transition: var(--transition);
  z-index: 50;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background-color: rgba(43, 63, 58, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navbar Transparent by Default (Index Page Only) */
body:not(.product-page) .navbar,
.index-page .navbar {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar with Background on Scroll */
body:not(.product-page) .navbar.scrolled,
.index-page .navbar.scrolled {
  background-color: rgba(43, 63, 58, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo and Mobile Menu/Cart Container */
.navbar > .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.navbar .logo {
  flex-shrink: 0;
}

/* Centered Navigation Links */
.navbar > .hidden.lg\:flex.flex-1 {
  display: none; /* Hidden on mobile */
  flex: 1;
  justify-content: center;
}

/* Right-aligned Icons (Desktop) */
.navbar > .hidden.lg\:flex:last-child {
  flex-shrink: 0;
}

/* Mobile Menu Button */
#mobile-menu-button {
  flex-shrink: 0;
}


/* Mobile Menu */
#mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(41, 61, 60, 0.98), rgba(2, 100, 95, 0.98));
  z-index: 1000;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s ease-in-out;

  visibility: hidden;
  top: 90px; /* Adjusted for h-16 logo (64px) + navbar padding */
  max-height: calc(100vh - 90px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Show Mobile Menu */
#mobile-menu.visible {
  transform: translateY(0);
  visibility: visible;
}

/* Hide Mobile Menu */
#mobile-menu.hidden {
  visibility: hidden;
}



/* Mobile Menu Close Button */
#close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

#close-menu:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

/* Mobile Menu Links */
#mobile-menu a {
  padding: 1rem 0;
  font-size: 1.1rem;
  color: white;
  text-align: center;
  display: block;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.2s ease, transform 0.1s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu a:active {
  color: var(--secondary);
  transform: scale(0.98);
}

/* WhatsApp Button in Mobile Menu */
#mobile-menu .flex.space-x-6 {
  justify-content: center;
  padding-top: 1.5rem;
  margin-top: 1rem;
}

#mobile-menu .flex.space-x-6 a {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobile-menu .flex.space-x-6 a:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

#mobile-menu .flex.space-x-6 a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}



/* Responsive Adjustments */
@media (min-width: 1024px) {
  .navbar {
    justify-content: space-between;
  }
  .navbar > .flex {
    width: auto; /* Logo container shrinks on desktop */
  }
  .navbar > .hidden.lg\:flex.flex-1 {
    display: flex;
  }
  #mobile-menu-button {
    display: none;
  }
  .navbar > .flex > .flex.lg\:hidden {
    display: none; /* Hide mobile cart on desktop */
  }
}

@media (max-width: 1023px) {
  .navbar > .hidden.lg\:flex {
    display: none;
  }
  .navbar > .flex > .flex.lg\:hidden {
    display: flex;
    align-items: center;
  }
  .navbar {
    background-color: rgba(43, 63, 58, 0.95) !important;
  }
  #mobile-menu {
    overflow-y: auto;
    padding: 2rem;
  }
}



/* Category Filter */
.category-filter.active {
  background-color: var(--primary) !important;
  color: white !important;
}

.category-filter.active:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card .p-6 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('images/hero1.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: start;
  text-align: left;
  padding: 6rem 1rem 2rem;
}

.hero .container {
  width: 100%;
  padding: 0 1rem;
}

.hero .max-w-2xl {
  max-width: 42rem;
  width: 100%;
  text-align: left;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
}

.hero a {
  display: inline-flex;
  padding: 0.75rem 2rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Scroll Down Indicator */
.hero .absolute {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

/* Mobile-specific adjustments for Hero */
@media (max-width: 767px) {
  .hero {
    padding: 4rem 1rem 2rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero a {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Newsletter */
.newsletter-input {
  border: none;
  border-bottom: 2px solid var(--secondary);
  background: transparent;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

.animate-fade-in-up { animation: fadeInUp 0.3s ease-out forwards; }
.animate-fade-out-down { animation: fadeOutDown 0.3s ease-out forwards; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Popup Notification */
.popup-notification {
  position: absolute;
  background-color: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transform: translateY(-100%);
  white-space: nowrap;
}

.popup-notification.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

/* Checkout Steps */
.checkout-step {
  position: relative;
}

.checkout-step.active .step-number,
.checkout-step.completed .step-number {
  background-color: var(--primary);
  color: white;
}

.checkout-step.completed .step-number {
  background-color: var(--accent);
}

/* Section Backgrounds */
#about { background-color: #ffffff; }
#features { background-color: #e5e7eb; }
#products, #contact { background-color: #e9eceb; }
#testimonials { background-color: #d6e4e1; }

.px-4.py-2.bg-gray-100.text-gray-800.rounded-full.text-sm {
    background-color: #293d3c; /* Current bg-gray-100 */
    color: #ffffff; /* Current text-gray-800 */
    /* Other styles */
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Product Carousel */
#products-carousel {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  transition: transform 0.3s ease-in-out;
  width: fit-content;
  cursor: grab;
  touch-action: pan-y;
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
   
}
/* Product Cards: Base Styles */
.product-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid #293d3c;
  background: #ebebeb !important;
  display: flex !important;
  flex-direction: column !important;
  height: 450px !important;
  min-height: 450px !important;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 20px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s, visibility 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  pointer-events: none;
}

.product-card .p-6 {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Hide product cards but maintain grid space */
.product-card.hidden {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  height: 450px;
  width: 100%;
  pointer-events: none;
}

/* Show product cards normally */
.product-card.visible {
  visibility: visible;
  opacity: 1;
  position: relative;
}

/* Product Grid Container */
#products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Carousel-specific styles */
#products-carousel {
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
  transition: transform 0.3s ease-in-out;
  width: fit-content;
  cursor: grab;
  touch-action: pan-y;
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  #products-carousel {
    gap: 1rem;
  }

  .product-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 15px;
  }

  #products-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 639px) {
  #products-container {
    grid-template-columns: 1fr;
  }

  .product-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}



/* Thumbnail Gallery */
#thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-gallery-thumbnail {
  width: 100%;
  height: 100px;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-gallery-thumbnail.active {
  border-color: #2b3f3a;
  transform: scale(1.05);
}

@media (max-width: 639px) {
  #products-container {
    grid-template-columns: 1fr;
  }
  .product-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}


/* Hide product cards but maintain grid space */
.product-card.hidden {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  height: 450px;
  width: 100%;
  pointer-events: none;
}

/* Show product cards normally */
.product-card.visible {
  visibility: visible;
  opacity: 1;
  position: relative;
}

/* Fix WhatsApp Image in Navbar (Mobile) */
@media (max-width: 1023px) {
  /* Mobile Navbar WhatsApp Button */
  .navbar .flex.lg\:hidden a[href*="wa.me"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    margin-left: 0.5rem;
  }

  /* WhatsApp Image/Icon Sizing */
  .navbar .flex.lg\:hidden a[href*="wa.me"] img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  /* Mobile Menu WhatsApp Button */
  #mobile-menu .flex.space-x-6 a[href*="wa.me"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    margin: 0 auto;
  }

  /* WhatsApp Image/Icon in Mobile Menu */
  #mobile-menu .flex.space-x-6 a[href*="wa.me"] img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }
}


