/* =====================================================
   GLOBAL
===================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fefcf9;
  color: #3a2f2f;
  margin: 0;
  padding-top: 90px; /* FIX for fixed navbar */
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   NAVBAR
===================================================== */
.custom-navbar {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
}

.logo-img {
  width: 45px;
  margin-right: 10px;
}

.brand-text {
  font-size: 22px;
  font-weight: bold;
  color: #f7d042;
}

.nav-link {
  font-weight: 600;
  font-size: 20px;
  margin: 12px;
  color: #3a2f2f !important;
}

.nav-link:hover,
.nav-link.active {
  color: #f7d042 !important;
}

.navbar-toggler {
  border: none;
}

/* NAV ICONS */
.nav-icons {
  display: flex;
  align-items: center;
}

.nav-icon {
  font-size: 22px;
  margin-left: 16px;
  color: #3a2f2f;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-icon:hover {
  transform: scale(1.25);
  color: #f7d042;
}

/* CART BADGE */
#cart-count {
  font-size: 11px;
}

/* ================= SEARCH BAR ================= */
.search-input {
  width: 200px;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
}

.search-input:focus {
  border-color: #f7d042;
  box-shadow: 0 0 0 0.15rem rgba(247,208,66,.25);
}

/* Mobile Navbar */
@media (max-width: 768px) {
  .search-input {
    width: 100%;
    margin-bottom: 10px;
  }

  .brand-text {
    font-size: 18px;
  }

  .nav-link {
    margin: 8px 0;
    text-align: center;
  }
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background: #2a1f1f;
  color: #fef3c7;
  padding: 30px 0;
}

.footer a {
  color: #fef3c7;
}

.footer a:hover {
  color: #f7d042;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

/* =====================================================
   FLOATING WRAPPER
===================================================== */
.floating-wrapper {
  position: fixed;
  right: 20px;
  z-index: 999;
}

.floating-wrapper.call {
  bottom: 30px;
}

.floating-wrapper.whatsapp {
  bottom: 110px;
}

/* =====================================================
   FLOATING BUTTONS
===================================================== */
.floating-call,
.floating-whatsapp {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Call Button */
.floating-call {
  background: #16a34a;
  animation: callPulse 1.5s infinite;
}

/* WhatsApp Button */
.floating-whatsapp {
  background: #25d366;
  animation: whatsappFloat 2.5s ease-in-out infinite;
}

.floating-call:hover,
.floating-whatsapp:hover {
  transform: scale(1.15);
}

/* =====================================================
   TOOLTIP
===================================================== */
.floating-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  background: #14532d;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.floating-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #14532d;
}

.floating-wrapper:hover .floating-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes callPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 20px rgba(22, 163, 74, 0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes whatsappFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* =====================================================
   MOBILE FLOATING FIX
===================================================== */
@media (max-width: 768px) {
  .floating-call,
  .floating-whatsapp {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .floating-tooltip {
    font-size: 13px;
    padding: 6px 10px;
    right: 65px;
  }

  .floating-wrapper.whatsapp {
    bottom: 100px;
  }
}
