/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  z-index: 2147483647; /* Max z-index to ensure visibility */
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid #fff;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  background-color: #20ba5a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.whatsapp-float i {
  display: block;
  line-height: 60px; /* Center vertical */
}

@media screen and (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }
  
  .whatsapp-float i {
    line-height: 50px;
  }
}

/* =========================================
   Viterra Bathware Luxury Loader
   Theme: Minimal Luxury, Chrome, Water
   ========================================= */

.viterrabathware-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* Clean white background */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
}

.viterrabathware-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* --- Brand Section --- */
.loader-logo {
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  z-index: 20;
}

.logo-image-wrapper {
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Add a subtle reflection effect */
  position: relative;
}

.logo-image-wrapper::after {
  content: '';
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  height: 40%;
  background: inherit;
  transform: scaleY(-1);
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

.loader-logo-img {
  max-width: 180px;
  height: auto;
  /* Premium glossy look */
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
  animation: logoFadeIn 1.5s ease-out forwards;
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.loader-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: #111;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
  /* Subtle metallic text shimmy could be added here, but keep it minimal */
}

/* --- Loader Animation (Chrome & Water) --- */
.loader-ceramic-elements {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
  /* Center the rotating elements */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Rotating Ring - Chrome/Water Effect */
.loader-ceramic-elements::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(200, 200, 200, 0.1);
  /* Liquid Ripple Effect */
  box-shadow: 0 0 0 0 rgba(200, 200, 200, 0.1);
  animation: waterRipple 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes waterRipple {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(180, 180, 180, 0.3);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 20px rgba(180, 180, 180, 0);
  }
  100% {
    transform: scale(1.15);
    box-shadow: 0 0 0 0 rgba(180, 180, 180, 0);
  }
}

/* The Rotating "Chrome Faucet/Ring" Elements */
/* We use the ceramic shape divs to create a rotating ring of metallic droplets */
.ceramic-shape {
  position: absolute;
  border-radius: 50%;
  /* Chrome/Metallic Gradient */
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0e0e0 40%, #a0a0a0 80%, #707070 100%);
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.15), 
    inset 2px 2px 5px rgba(255,255,255,0.9),
    inset -2px -2px 5px rgba(0,0,0,0.1);
  filter: brightness(1.1);
}

/* Rotating Container for Shapes */
.loader-ceramic-elements {
  animation: rotateRing 3s linear infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.shape-1 {
  width: 15px;
  height: 15px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* Add a trail effect or shape variance */
  border-radius: 50% 50% 50% 0; /* Teardrop shape */
  transform: translateX(-50%) rotate(45deg); 
}

.shape-2 {
  width: 12px;
  height: 12px;
  bottom: 15px;
  right: 15px;
  /* Metallic Bead */
  background: radial-gradient(circle at 30% 30%, #fff, #c0c0c0);
}

.shape-3 {
  width: 10px;
  height: 10px;
  bottom: 15px;
  left: 15px;
  /* Another bead */
}

/* Create a continuous ring feel using a pseudo element on the container */
.loader-ceramic-elements::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: #aaa; /* Chrome shine */
  border-left-color: rgba(170, 170, 170, 0.5);
  transform: rotate(45deg);
  animation: spinReverse 1.5s linear infinite;
}

@keyframes spinReverse {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(-315deg); }
}


/* --- Text & Progress --- */
.loader-text {
  position: relative;
  z-index: 20;
  text-align: center;
  margin-top: -20px; /* Pull closer to the ring */
}

.loader-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #666;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.loader-progress {
  width: 200px;
  height: 2px;
  background: rgba(0, 0, 0, 0.05); /* Very subtle track */
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  /* Elegant dark or metallic progress fill */
  background: #333; 
  animation: smoothProgress 2.5s ease-in-out infinite;
}

@keyframes smoothProgress {
  0% { width: 0%; left: 0; }
  50% { width: 60%; left: 0; }
  100% { width: 100%; left: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  .loader-logo-img {
    max-width: 140px;
  }

  .loader-brand-name {
    font-size: 22px;
  }
}

