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

:root {
  --primary-color: #163322; /* Deeper, richer Sap Green */
  --secondary-color: #244d36; /* Lighter Sap Green */
  --secondary-hover: #0e2115;
  --accent-color: #d4af37; /* Elegant Gold */
  --bg-color: #faf9f6; /* Premium warm off-white */
  --white: #ffffff;
  --gray-light: #e6ece8;
  --gray-text: #607268;
  --price-color: #163322;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-price: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--primary-color);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* LOADER */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1.2s forwards 2.5s;
  background: linear-gradient(135deg, var(--white), #f0f5f2);
}

#loader h1 {
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: 4px;
  color: var(--primary-color);
  text-transform: uppercase;
  animation: pulseLoader 1.5s infinite;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes pulseLoader {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  box-shadow: 0 4px 30px rgba(26, 60, 40, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 100;
  transition: var(--transition);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-color);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition);
  padding: 8px 0;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 2px;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--accent-color);
}

/* HERO */
.hero {
  height: 70vh;
  margin-top: 80px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4vh;
  overflow: hidden;
  background: #000;
}

.hero video, .hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
  animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.overlay {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 5%;
  z-index: 2;
  animation: slideUp 1s ease-out 1.5s both;
  pointer-events: none;
}

.overlay h2 {
  font-family: var(--font-main);
  font-size: 14px;
  letter-spacing: 6px;
  margin-bottom: 15px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-color);
}

.overlay h1 {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 400;
  letter-spacing: 0px;
  margin-bottom: 25px;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.overlay p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 500px;
}

.overlay .btn-shop {
  padding: 16px 45px;
  background: var(--white);
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  pointer-events: auto;
}

.overlay .btn-shop:hover {
  background: var(--primary-color);
  color: var(--white);
}

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

/* COLLECTION SLIDER (Categories) */
.collections {
  padding: 70px 5%;
  background: var(--white);
  text-align: center;
  overflow: hidden;
}

.collections h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0px;
  margin-bottom: 60px;
  color: var(--primary-color);
}

.slider-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 0;
  position: relative;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}



.slide-track {
  display: flex;
  gap: 40px;
  width: max-content;
}

.item-link {
  text-decoration: none;
  display: block;
}

.item {
  width: 180px;
  flex-shrink: 0;
  cursor: pointer;
  text-align: center;
}

.item-img-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto 20px;
  background: var(--bg-color);
  transition: var(--transition);
  padding: 4px;
}

.item-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 1px dashed var(--accent-color);
  opacity: 0;
  transition: var(--transition);
  transform: scale(0.9);
}

.item img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
}

.item-link:hover .item-img-wrapper {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.item-link:hover .item-img-wrapper::after {
  opacity: 1;
  transform: scale(1);
  animation: spinSlow 15s linear infinite;
}

@keyframes spinSlow {
  100% { transform: scale(1) rotate(360deg); }
}

.item-link:hover img {
  transform: scale(1.05);
}

.item p {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--primary-color);
  text-transform: uppercase;
  transition: var(--transition);
}

.item-link:hover p {
  color: var(--secondary-hover);
}

/* CATEGORY SECTIONS */
.category {
  padding: 70px 5%;
}

.category:nth-child(even) {
  background: var(--white);
}

.category h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 0px;
  margin-bottom: 50px;
  color: var(--primary-color);
  text-align: center;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* PRODUCT CARDS */
.card {
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(26, 60, 40, 0.05);
  border: 1px solid rgba(26, 60, 40, 0.03);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(26, 60, 40, 0.15);
    border-color: transparent;
  }
}
.card.active-touch {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(26, 60, 40, 0.15);
  border-color: transparent;
}

.card .img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: #fdfdfd;
}

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

@media (hover: hover) {
  .card:hover img { transform: scale(1.05); }
}
.card.active-touch img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-color);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-content {
  padding: 25px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0px;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.price {
  font-family: var(--font-price);
  font-size: 16px;
  font-weight: 600;
  color: var(--price-color);
  margin-bottom: 20px;
}

.price span {
  font-size: 13px;
  color: var(--gray-text);
  font-weight: 400;
  margin-left: 5px;
}

.card button {
  width: 100%;
  padding: 14px 0;
  background: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
}

@media (hover: hover) {
  .card:hover button {
    opacity: 1;
    transform: translateY(0);
    background: var(--white);
    color: var(--primary-color);
  }
}
.card.active-touch button {
  opacity: 1;
  transform: translateY(0);
  background: var(--white);
  color: var(--primary-color);
}

/* VIEW ALL BUTTON */
.view-all {
  text-align: center;
  margin-top: 60px;
}

.view-all button {
  padding: 16px 45px;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.view-all button:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(26, 60, 40, 0.15);
}

/* FOOTER */
footer {
  background: var(--primary-color);
  color: var(--gray-light);
  padding: 80px 5% 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 30px;
  color: var(--accent-color);
  text-transform: capitalize;
}

.footer-col p {
  color: #a3a3a3;
  line-height: 1.8;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-col a {
  color: #a3a3a3;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-col .social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.footer-col .social-links a {
  display: flex;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 16px;
}

.footer-col .social-links a:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  color: #737373;
  font-size: 13px;
  letter-spacing: 1px;
}

/* WISHLIST DRAWER & BUTTONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wishlist-icon-btn {
  position: relative;
  font-size: 22px;
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.wishlist-icon-btn:hover {
  transform: scale(1.1);
}

.wishlist-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  font-weight: bold;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.pop-animation {
  animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Like Button on Cards */
.like-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray-text);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.like-btn:hover {
  transform: scale(1.1);
  background: white;
}

.like-btn.active {
  color: #e74c3c;
}

/* Wishlist Drawer */
.wishlist-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.wishlist-overlay.open {
  opacity: 1;
  visibility: visible;
}

.wishlist-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--white);
  z-index: 1000;
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.wishlist-drawer.open {
  right: 0;
}

.wishlist-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-light);
}

.wishlist-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary-color);
  margin: 0;
}

.close-wishlist {
  font-size: 30px;
  cursor: pointer;
  color: var(--gray-text);
  transition: var(--transition);
}
.close-wishlist:hover { color: #e74c3c; }

.wishlist-content {
  padding: 20px 25px;
  flex-grow: 1;
  overflow-y: auto;
}

.empty-wishlist {
  text-align: center;
  margin-top: 50px;
  color: var(--gray-text);
}

.shop-now-btn {
  margin-top: 20px;
  padding: 10px 25px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--gray-light);
}

.wishlist-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.wishlist-item-details {
  flex-grow: 1;
}

.wishlist-item-details h4 {
  font-size: 15px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.wishlist-item-details .price {
  font-size: 14px;
  margin-bottom: 10px;
}

.wishlist-actions {
  display: flex;
  gap: 10px;
}

.wishlist-actions button {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: white;
}

.remove-btn { background: #e74c3c; }
.remove-btn:hover { background: #c0392b; }
.inquire-btn { background: #25D366; }
.inquire-btn:hover { background: #1ebe5d; }


/* RESPONSIVE */
@media (max-width: 1024px) {
  .overlay h1 { font-size: 56px; }
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  header { 
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 20px; 
    height: 70px; 
    border-radius: 0;
  }
  
  #loader h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 20px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; /* matches header height */
    border-radius: 0 0 15px 15px;
    left: -100%; /* hidden off-screen initially */
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    padding: 20px 0;
    gap: 15px;
  }
  
  nav.active {
    left: 0;
  }
  
  nav a {
    padding: 10px;
    font-size: 16px;
  }
  
  nav a::after {
    display: none;
  }
  
  .hero { 
    height: auto; 
    margin-top: 70px;
    padding-bottom: 0;
  }
  .hero video, .hero img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    padding: 0 5% 15px 5%;
  }
  .overlay .btn-shop {
    padding: 10px 25px;
    font-size: 12px;
  }
  .overlay h1 { font-size: 40px; }
  .overlay p { font-size: 16px; }
  .category { padding: 60px 20px; }
  .category h2 { font-size: 28px; }

  /* Mobile Slider for Products on Homepage */
  .category .products {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
    gap: 15px;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .category .products::-webkit-scrollbar {
    display: none;
  }
  .category .card {
    min-width: 150px; /* Small size like screenshot */
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  
  /* Make allproducts.html a 2-column grid on mobile */
  .products:not(.category .products) {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px 60px;
  }

  .card .img-wrapper {
    aspect-ratio: 1 / 1; /* Square shape like screenshot */
  }
  .card h3 {
    font-size: 13px; /* Small legible text */
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-content {
    padding: 12px 10px;
  }
  .price {
    font-size: 13px;
    margin-bottom: 15px;
  }
  .price span {
    font-size: 11px;
  }
  .card button {
    padding: 8px 0;
    font-size: 11px;
  }
  .card-badge {
    padding: 4px 8px;
    font-size: 9px;
    top: 10px;
    left: 10px;
  }
}
/* =========================
   SCROLL ANIMATIONS
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

@media (max-width: 768px) {
  .reveal {
    transform: translateY(15px); /* Reduced for mobile horizontal scrolling containers */
  }
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) !important;
}

.card.reveal:nth-child(2) { transition-delay: 0.1s; }
.card.reveal:nth-child(3) { transition-delay: 0.2s; }
.card.reveal:nth-child(4) { transition-delay: 0.3s; }
.card.reveal:nth-child(5) { transition-delay: 0.4s; }

.footer-col.reveal:nth-child(2) { transition-delay: 0.1s; }
.footer-col.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Floating WhatsApp Icon */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
  animation: glowing-whatsapp 2s infinite;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

@keyframes glowing-whatsapp {
  0% { box-shadow: 0 0 5px #25D366; }
  50% { box-shadow: 0 0 20px #25D366, 0 0 30px #25D366; }
  100% { box-shadow: 0 0 5px #25D366; }
}

/* Floating Phone Icon */
.floating-phone {
  position: fixed;
  bottom: 85px;
  right: 20px;
  background-color: var(--primary-color);
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.floating-phone:hover {
  transform: scale(1.1);
}

/* Call Us Mobile Header */
.call-us-mobile {
  display: none;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
  background: var(--gray-light);
  padding: 6px 14px;
  border-radius: 20px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .call-us-mobile {
    display: inline-flex;
    white-space: nowrap;
  }
}

