/* Navbar and Footer Components Styling */

/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar .nav-link {
  position: relative;
  padding: 0.5rem 1rem;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-yellow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 70%;
}

.navbar-search-form .form-control,
.navbar-search-form .form-select,
.navbar-search-form .btn {
  border-radius: 0;
}

.navbar-search-form .form-control {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.navbar-search-form .btn {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-yellow);
  color: var(--primary-blue) !important;
  transform: translateY(-3px);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.cart-item {
  transition: background-color 0.3s ease;
}

.cart-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Footer Styles */
footer {
  position: relative;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

footer::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: linear-gradient(135deg, transparent 33%, var(--primary-blue) 33%, var(--primary-blue) 66%, transparent 66%);
  background-size: 30px 15px;
}

footer .footer-logo img {
  filter: brightness(1.2);
}

footer h5 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-yellow);
}

footer ul li a {
  transition: all 0.3s ease;
  display: inline-block;
}

footer ul li a:hover {
  transform: translateX(5px);
  color: var(--accent-yellow) !important;
}

footer .btn-warning {
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: var(--primary-blue);
  font-weight: 500;
}

footer .btn-warning:hover {
  background-color: #e6b800;
  border-color: #e6b800;
}

footer .form-check-input:checked {
  background-color: var(--accent-yellow);
  border-color: var(--accent-yellow);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .navbar-search-form {
    width: 100%;
    margin: 10px 0;
  }
  
  .social-icons {
    margin: 10px 0;
    display: flex !important;
    justify-content: center;
  }
  
  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  footer h5 {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-width: 120px;
  }
  
  footer::before {
    background-size: 20px 10px;
    height: 10px;
    top: -10px;
  }
  
  footer ul li a:hover {
    transform: none;
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

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