/* ===== HERO SLIDER ===== */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: saturate(1.05) brightness(1);
}
.hero-slide.active .slide-bg {
  transform: scale(1);
}

/* Decorative ring */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  animation: ring-float 6s ease-in-out infinite;
}
@keyframes ring-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

/* Floating particles */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: particle-float 8s ease-in-out infinite;
}
@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
  50% { transform: translateY(-5px) translateX(-10px); opacity: 0.5; }
  75% { transform: translateY(-15px) translateX(5px); opacity: 0.7; }
}

/* Slide-in text animation */
.hero-slide.active .hero-text-anim {
  animation: text-slide-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-text-anim {
  opacity: 0;
  transform: translateY(30px);
}
@keyframes text-slide-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-slide.active .hero-text-anim-d1 { animation-delay: 0.1s; }
.hero-slide.active .hero-text-anim-d2 { animation-delay: 0.25s; }
.hero-slide.active .hero-text-anim-d3 { animation-delay: 0.4s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #095e63; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #06474a; }

/* ===== TRANSITIONS ===== */
html { scroll-behavior: smooth; }

.card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
}

.card-hover-light {
  transition: all 0.3s ease;
}
.card-hover-light:hover {
  transform: translateY(-4px);
}

/* ===== SECTION DIVIDERS ===== */
.section-divider-top {
  position: relative;
}
.section-divider-top::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #095e63, transparent);
  opacity: 0.3;
}

/* ===== NAV LINK UNDERLINE ===== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: #095e63;
  transition: transform 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active-link::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== WHATSAPP PULSE ===== */
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-pulse {
  animation: pulse-wa 2.5s infinite;
}

/* ===== GLOW EFFECTS ===== */
.glow-primary {
  box-shadow: 0 0 30px rgba(9, 94, 99, 0.15);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  transition: all 0.3s ease;
}

/* ===== PRODUCT CARD IMAGE ===== */
.product-img-wrap {
  overflow: hidden;
}
.product-img-wrap img {
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

/* ===== DECORATIVE BADGE ===== */
.badge-pulse {
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ===== INTERSECTION OBSERVER ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SLIDER DOT ===== */
.slider-dot {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== TOAST ===== */
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast-anim {
  animation: toast-in 0.3s ease forwards;
}

/* ===== PRODUCT CARD PRICE ===== */
.product-card .price-tag {
  direction: ltr;
  unicode-bidi: embed;
}

/* ===== AUTH UI ===== */
#auth-ui a,
#auth-ui button {
  transition: all 0.3s ease;
}

/* ===== CART ITEM ===== */
.cart-item {
  transition: all 0.3s ease;
}
.cart-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* ===== SCROLLBAR FOR MODAL ===== */
.admin-content::-webkit-scrollbar,
#checkout-items::-webkit-scrollbar {
  width: 4px;
}
.admin-content::-webkit-scrollbar-thumb,
#checkout-items::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

/* ===== GLEAM EFFECT FOR CARDS ===== */
@keyframes gleam {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}
.gleam::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%) rotate(25deg);
  pointer-events: none;
}
.gleam:hover::after {
  animation: gleam 0.8s ease;
}

/* ===== FLOATING DECORATION ===== */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-6px) rotate(1deg); }
  66% { transform: translateY(3px) rotate(-1deg); }
}
.float-gentle {
  animation: float-gentle 6s ease-in-out infinite;
}

/* ===== DIAMOND SPIN ===== */
@keyframes diamond-pulse {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) scale(1); }
  50% { opacity: 0.6; transform: rotate(45deg) scale(1.3); }
}

/* ===== SECTION DIVIDER WAVE ===== */
.section-wave {
  position: relative;
}
.section-wave::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(135deg, transparent 33%, rgba(9,94,99,0.04) 33%, rgba(9,94,99,0.04) 66%, transparent 66%);
  background-size: 20px 20px;
}

/* ===== SUBTLE TEXT GLOW ===== */
.text-glow {
  text-shadow: 0 0 40px rgba(9,94,99,0.15);
}

/* ===== DECORATIVE DIVIDER LINE ===== */
.divider-elegant {
  display: flex;
  align-items: center;
  gap: 12px;
}
.divider-elegant::before,
.divider-elegant::after {
  content: '';
  flex: 1;
  height: 1px;
}
.divider-elegant::before {
  background: linear-gradient(to left, transparent, currentColor);
}
.divider-elegant::after {
  background: linear-gradient(to right, transparent, currentColor);
}

/* ===== MODERN NAVBAR ===== */
.nav-glass {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}
.nav-glass::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #095e63, transparent);
  opacity: 0.15;
  border-radius: 2px;
}
.nav-link {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2.5px;
  background: #095e63;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 3px;
}
.nav-link:hover::after,
.nav-link.active-link::after {
  transform: translateX(-50%) scaleX(1);
}
.nav-link:hover {
  color: #095e63;
  background: rgba(9, 94, 99, 0.06);
}
.nav-link.active-link {
  color: #095e63;
  font-weight: 700;
  background: rgba(9, 94, 99, 0.08);
}
.nav-icon-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-icon-btn:hover {
  background: #095e63;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 94, 99, 0.2);
}

/* ===== HERO PARALLAX ZOOM ===== */
.hero-bg-zoom {
  animation: hero-zoom 12s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ===== MODERN INPUT STYLES ===== */
.input-modern {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.input-modern:focus {
  box-shadow: 0 0 0 4px rgba(9,94,99,0.1);
  border-color: #095e63;
}

/* ===== MODERN BUTTON ===== */
.btn-modern {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(9,94,99,0.3);
}
.btn-modern:active {
  transform: translateY(0);
}

/* ===== SECTION SEPARATOR ===== */
.section-sep {
  position: relative;
}
.section-sep::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(9,94,99,0.15), transparent);
}

/* ===== MODERN CARD SHADOW ===== */
.card-modern {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-modern:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.06);
}

/* ===== IMAGE OVERLAY GRADIENT ===== */
.img-overlay {
  position: relative;
}
.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== SMOOTH IMAGE LOAD ===== */
.img-smooth {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.img-smooth.loaded {
  opacity: 1;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
}

/* ===== STAGGER REVEAL ===== */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== ROTATION ===== */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}

/* ===== GRADIENT ANIMATION ===== */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient {
  animation: gradient-shift 8s ease infinite;
}

/* ===== FLOATING PARTICLE ===== */
@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  25% { transform: translateY(-12px) scale(1.2); opacity: 0.6; }
  50% { transform: translateY(-6px) scale(0.9); opacity: 0.4; }
  75% { transform: translateY(-18px) scale(1.1); opacity: 0.5; }
}
.animate-float-particle {
  animation: float-particle 4s ease-in-out infinite;
}

/* ===== GLOW CARD ===== */
.glow-card {
  position: relative;
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.glow-card:hover::before {
  opacity: 1;
}

/* ===== BORDER GRADIENT ===== */
.border-grad {
  border: double 1px transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #095e63, #0a7e85);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
