:root {
  --color-gray: #ebebeb;
  --color-light-gray: #f7f7f7;
  --color-dark-gray: #252525;
  --color-link: rgba(255, 255, 255, 0.5);
  --color-orange: #f15039;
  --color-social-links: #c3c3c3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

/* !topbar */
#top-bar {
  background-color: var(--color-gray);
  font-size: 13px;
}
#top-bar-menu {
  border-top: 2px solid var(--color-orange);
  height: 40px;
}

#top-bar-menu ul li {
  height: 38px;
  display: flex;
  align-items: center;
}
#top-bar-menu .top-bar-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 15px;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
}
#top-bar-menu .top-bar-nav ul li a:hover {
  color: #000;
}
.active-link {
  background-color: #fff;
}

#social-links ul li a {
  position: relative;
  width: 22px;
  height: 22px;
  background-color: var(--color-social-links);
  border-radius: 50%;
  color: var(--color-gray);
  transition: all 0.3s ease;
  font-size: 10px;
}

#social-links a:hover {
  background-color: var(--color-dark-gray);
  color: #fff;
}
#social-links ul li a i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* !mobile topbar */
.mobile-panel {
  display: none;
  background: var(--color-gray);
  animation: slideDown 0.4s ease forwards;
}

.mobile-menu {
  display: none;
  list-style: none;
}
.mobile-menu li {
  border-top: 1px solid #ddd;
  background-color: #fff;
}
.mobile-menu li a {
  display: block;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  color: #000;
  transition: background 0.3s ease;
}
.mobile-menu li a:hover {
  background-color: var(--color-orange);
  color: #fff;
}
.arrow-btn {
  background: none;
  border: none;
  font-size: 10px;
  padding: 10px;
  color: #000;
}
.burger-btn {
  background: none;
  border: none;
  font-size: 20px;
  padding: 10px;
  color: #000;
}

#mobile-social a {
  position: relative;
  width: 22px;
  height: 22px;
  background-color: var(--color-social-links);
  border-radius: 50%;
  color: var(--color-gray);
  transition: all 0.3s ease;
  font-size: 10px;
}
#mobile-social a:hover {
  background: var(--color-dark-gray);
  color: #fff;
}
#mobile-social a i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* !navbar */
#navbar {
  background-color: var(--color-light-gray);
  font-size: 15px;
}

.main-menu li {
  transition: all 0.3s ease;
}
.main-menu li:hover {
  color: var(--color-orange);
}

.nav-link {
  text-decoration: none;
  color: #212121;
  position: relative;
  padding: 0 0 15px 0;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 4px;
  background-color: var(--color-orange);
  transition: width 0.3s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--color-orange);
  transition: width 0.3s ease;
}

.nav-link:hover:not(.active)::before {
  width: 100%;
}
.search-item {
  width: auto !important;
}
/* !mobile menu */
.mobile-slide-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #fff;
}

.mobile-slide-menu.open {
  max-height: 500px;
}

.menu-inner {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.menu-inner a {
  color: black;
  font-size: 16px;
  text-decoration: none;
  padding: 5px 15px;
  transition: color 0.3s ease;
  text-align: left;
  width: 100%;
}

.bag-icon {
  position: relative;
}
.bag-icon::after {
  content: "1";
  position: absolute;
  right: -5px;
  top: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: var(--color-dark-gray);
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
}

.menu-inner a:hover {
  color: var(--color-orange);
}

/* !footer */

#footer {
  background-color: var(--color-dark-gray);
  color: #fff;
  padding: 100px 0;
}
#footer ul li {
  color: var(--color-link);
  transition: all 0.2s ease;
}
#footer ul li:hover {
  color: #fff;
}
#copyright p {
  color: var(--color-link);
}

.logo {
  width: 200px;
  height: auto;
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .text-center {
    text-align: center;
  }

  .mt-4 {
    margin-top: 1.5rem;
  }

  .d-flex.flex-wrap {
    flex-wrap: wrap;
  }

  .gap-4 {
    gap: 1rem;
  }
  .search-item {
    width: 100% !important;
  }
}
