:root {
  --primary: #066e4d;
  --primary-color: #059669;
  --primary-color-rgb: 5, 150, 105;
  --primary-hover: #08d399;
  --primary-hover-rgb: 4, 120, 87;
  --bg-light: #f0fdf4;
  --bg-light-alt: #ecfdf5;
  --white: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent-red: #ef4444;
  --accent-red-bg: #fee2e2;
  --font-main: "Segoe UI", Roboto, -apple-system, sans-serif;
}

/* Navbar Styling */
.navbar {
  background: var(--primary-color);
  padding: 12px 30px;
  transition: all 0.3s ease-in-out;
}

/* Brand Logo */
.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white) !important;
  font-family: "Poppins", sans-serif;
  transition: color 0.3s ease-in-out;
}

.navbar-brand:hover {
  color: var(--primary-hover) !important;
}

/* Navbar Links */
.navbar-nav {
  margin: auto;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 15px;
  position: relative;
  transition: color 0.3s ease-in-out;
}

/* Underline Hover Effect */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-hover);
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-hover) !important;
}

/* Search Bar */
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-light-alt);
  border-radius: 25px;
  padding: 3px 15px;
  box-shadow: 0 2px 5px rgba(var(--primary-color-rgb), 0.08);
  transition: all 0.3s ease-in-out;
}

.nav-search-bar {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  padding: 5px;
}

#search-icon {
  font-size: 20px;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease-in-out;
}

#search-icon:hover {
  color: var(--primary-hover);
  transform: scale(1.1);
}

#search-icon:active {
  transform: scale(0.95);
}

/* Icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icons a {
  color: var(--white);
  font-size: 22px;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.nav-icons a:hover,
.profile-btn:hover {
  transform: scale(1.15);
  color: var(--primary-hover);
}

/* Mobile Icons & Search Bar */
.nav-icons-mobile {
  display: none;
  flex-direction: column;
  text-align: center;
  padding-top: 10px;
}

.nav-mobile-screen-adjust {
  display: flex;
}

.nav-cart-outside {
  margin-right: 15px;
}
.nav-icons-mobile a {
  font-size: 1rem;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

[href="/cart"] svg {
  font-size: 20px;
}

[href="/cart"] {
  transition: all 0.3s ease-in-out !important;
}

[href="/cart"]:hover {
  transform: scale(1.15);
}

.nav-icons-mobile a:hover {
  background: rgba(5, 150, 105, 0.08);
  transform: scale(1.05);
}

.nav-icons-mobile a i {
  font-size: 18px;
}

.d-lg-none {
  color: var(--white);
}
.d-lg-none input {
  padding: 0 10px;
}

/* Mobile Search Bar and Icons inside Navbar Collapse */
@media (max-width: 1160px) {
  .navbar-brand {
    font-size: 1.5rem;
  }

  /* Show search bar inside collapse only in mobile */
  .d-lg-none .nav-search {
    display: flex;
  }

  /* Hide desktop icons on small screens */
  .nav-icons-desktop {
    display: none;
  }

  /* Icons inside collapsible menu (e.g. profile) */
  .nav-icons-mobile {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 8px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-mobile-screen-adjust {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-cart-outside a {
    text-decoration: none;
    color: var(--white);
  }

  .nav-cart-outside i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
  }

  /* Optional: add glow/badge animation */
  .nav-cart-outside .badge {
    animation: bounce-badge 1.5s infinite;
  }

  @keyframes bounce-badge {
    0%,
    100% {
      transform: translate(-50%, -50%) scale(1);
    }
    50% {
      transform: translate(-50%, -50%) scale(1.2);
    }
  }
}
@media (max-width: 992px) {
  .navbar {
    padding: 10px 20px;
  }

  .navbar-brand {
    font-size: 1.4rem;
  }

  .nav-search {
    width: 100%;
    margin-bottom: 10px;
  }

  .nav-icons-mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0;
  }

  .nav-icons-mobile a {
    font-size: 1.2rem;
    padding: 8px;
    flex-grow: 1;
    text-align: center;
  }
}

/* Navbar Toggle Button */
.navbar-toggler {
  border: none;
  outline: none;
  padding: 5px;
  /* background: var(--bg-light-alt); */
  border-radius: 5px;
  font-size: 17px;
  transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon i {
  font-size: 1.2rem;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
  background: rgba(5, 150, 105, 0.08);
  border-radius: 5px;
}

/* Footer Styling */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  font-family: "Poppins", sans-serif;
}

/* Social Links Styling */
.social-links {
  margin-top: 10px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  color: var(--white);
  font-size: 25px;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.social-links #facebook:hover {
  color: #1877f3;
  transform: translateY(-3px);
}
.social-links #facebook:hover::after {
  content: "Facebook";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}
.social-links #instagram:hover {
  color: #ef4444;
  transform: translateY(-3px);
}
.social-links #instagram:hover::after {
  content: "Instagram";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}
.social-links #whatsapp:hover {
  color: #059669;
  transform: translateY(-3px);
}
.social-links #whatsapp:hover::after {
  content: "Whatsapp";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}
.social-links #website:hover {
  color: #042d789a;
  transform: translateY(-3px);
}
.social-links #website:hover::after {
  content: "Website";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
}

/* Responsive Styling */
@media (max-width: 768px) {
  footer {
    padding: 15px 0;
  }

  .social-links a {
    font-size: 16px;
    margin: 0 8px;
  }

  .navbar-brand {
    font-size: 1.2rem;
    padding: 10px 0;
  }
}

/* Profile Button - Minimalist Styling */
.profile-btn {
  background: transparent;
  color: var(--white);
  font-size: 20px;
  padding: 0 !important;
  transition: 0.3s ease-in-out;
}

.profile-btn:focus {
  color: var(--white);
  outline: none;
  border: none;
}

/* Dropdown Menu - Modern Styling */
.dropdown-menu {
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0px 8px 20px rgba(5, 150, 105, 0.08);
  background: var(--white);
  padding: 8px 0;
  transition: 0.3s ease-in-out;
}

/* Dropdown Items - Elegant Spacing & Design */
.dropdown-menu a {
  padding: 12px 18px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s ease;
  color: var(--text-primary);
  white-space: nowrap;
  border-radius: 6px;
}

.dropdown-menu a i {
  font-size: 18px;
  color: var(--text-muted);
  transition: 0.3s ease;
}

/* Hover Effects */
.dropdown-menu a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Dropdown Divider */
.dropdown-divider {
  margin: 5px 0;
  border-top: 1px solid #e5e7eb;
}

/* Logout Button - Highlighted */
.logout {
  color: var(--accent-red) !important;
  font-weight: bold;
}

.logout:hover {
  color: var(--white) !important;
  background: var(--accent-red) !important;
}

/* Flash Message Styling */
.flash-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  z-index: 1050;
}

.alert {
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(5, 150, 105, 0.08);
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.5s ease-in-out;
}

/* Success (Emerald) */
.alert-success {
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-left: 5px solid var(--primary-color);
}

/* Error (Red) */
.alert-danger {
  background-color: var(--accent-red-bg);
  color: var(--accent-red);
  border-left: 5px solid var(--accent-red);
}

/* Warning (Yellow) */
.alert-warning {
  background-color: #fef9c3;
  color: #b45309;
  border-left: 5px solid #f59e42;
}

/* Info (Blue) */
.alert-info {
  background-color: #dbeafe;
  color: #2563eb;
  border-left: 5px solid #2563eb;
}

/* Close Button */
.alert .btn-close {
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
}

.alert .btn-close:hover {
  opacity: 1;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-hover)
  );
  padding: 12px 0;
  position: fixed;
  top: 70px;
  color: var(--white);
  left: 0;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.08);
  z-index: 1000;
}

.announcement-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

.announcement-text {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  position: relative;
  animation: slideIn 0.8s ease-out;
  color: var(--white);
}

.announcement-text .highlight {
  background-color: rgba(5, 150, 105, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  margin: 0 5px;
  font-weight: 700;
  animation: pulse 2s infinite;
  color: var(--white);
}

.countdown {
  display: inline-flex;
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--white);
}

.countdown-item {
  display: flex;
  align-items: center;
  margin: 0 3px;
}

.countdown-separator {
  margin: 0 2px;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.close-btn:hover {
  opacity: 1;
}

.marquee {
  white-space: nowrap;
  display: inline-block;
  animation: marquee 20s linear infinite;
  padding-left: 100%;
}

.marquee-container {
  overflow: hidden;
  width: 100%;
}

.free-shipping-tag {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
}

.free-shipping-tag svg {
  margin-right: 4px;
  width: 12px;
  height: 12px;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .announcement-text {
    font-size: 13px;
  }

  .countdown {
    display: none;
  }

  .announcement-container {
    padding: 0 30px 0 15px;
  }

  .free-shipping-tag {
    display: none;
  }
}

@media (max-width: 480px) {
  .announcement-text {
    white-space: normal;
    text-align: left;
    line-height: 1.4;
  }
}
