/* =========================================
GLOBAL RESET
========================================= */
@import url("https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Livvic:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,900&family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap");

* {
  margin: 0;
  padding: 0;
  outline: 0;
  box-sizing: border-box;
}

/* =========================================
BODY
========================================= */
a {
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

/* =========================================
CUSTOM SCROLLBAR
========================================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: #fff;
}

/* header starts */

.main_navbar {
  font-family: "Mulish", sans-serif;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 0 50px;
  transition: 0.3s ease-in-out;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 1px 1px 15px black;
}

/* Sticky Navbar */

.main_navbar.navbar_sticky {
  background: #050c2c;
}

/* Hide Navbar */

.main_navbar.navbar_hide {
  top: -150px;
}

/* Show Navbar */

.main_navbar.navbar_show {
  top: 0;
}

/* =========================================
NAVBAR WRAPPER
========================================= */

.navbar_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================
NAVBAR LOGO
========================================= */

.navbar_logo img {
  max-width: 220px;
  width: 100%;
  transition: 0.5s;
  position: relative;
  right: 50px;
  transform-style: preserve-3d;
  transform: rotate3d(0.5, 1, 0, 44deg);
  transition: all 2s;
}

.navbar_logo img:hover {
  background-position: 80% 20%;
  transform: rotate3d(0.5, 1, 0, 0deg);
}

/* =========================================
NAVIGATION
========================================= */

.navbar_navigation {
  display: flex;
  align-items: center;
}

/* =========================================
DESKTOP MENU
========================================= */

.desktop_nav_menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.desktop_nav_menu li {
  position: relative;
}

.desktop_nav_menu a {
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  letter-spacing: 1px;
}

/* =========================================
DESKTOP HOVER EFFECT
========================================= */

.desktop_nav_effect a {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.desktop_nav_effect a:hover {
  color: #8b5e3c;
}

/* base line */
.desktop_nav_effect a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  /* HIDDEN BY DEFAULT */
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* morph into dot WITHOUT changing layout */
.desktop_nav_effect a:hover::after {
  width: 10px;
  height: 10px;
  bottom: 0px;
  background-color: #8b5e3c;
  border-radius: 50%;
  transform: translateX(-50%) scaleX(1);
}

.desktop_nav_effect a.active {
  color: #8b5e3c;
}

/* ACTIVE DOT EFFECT */
.desktop_nav_effect a.active::after {
  width: 10px;
  height: 10px;
  bottom: 0px;
  background-color: #8b5e3c;
  border-radius: 50%;

  transform: translateX(-50%) scaleX(1);
}

.desktop_nav_menu li a.active,
.mobile_sidebar_menu a.active,
.mobile_product_links a.active {
  color: #8b5e3c !important;
  font-weight: 600;
}

/* =========================================
MOBILE SIDEBAR MENU
========================================= */

.mobile_sidebar_menu {
  position: fixed;
  background: #fff;
  display: flex;
  flex-direction: column;
  width: 2s 00px;
  top: 0;
  right: -100%;
  padding: 100px 20px;
  transition: 0.5s;
  z-index: 999;
  border-radius: 40px 0 0 40px;
}

/* Active Sidebar */

.mobile_sidebar_menu.menu_active {
  right: 0;
}

/* Close Button */

.mobile_close_btn {
  position: absolute;
  top: 30px;
  left: 30px;
  font-size: 2rem;
  cursor: pointer;
  color: #000;
}

/* Mobile Links */
.mobile_sidebar_menu a {
  color: #000;
  font-size: 20px;
  margin: 15px 0;
  transition: 0.3s;
}

.mobile_sidebar_menu a:hover {
  transform: translateX(8px);
  color: #8b5e3c;
}

/* MOBILE ACTIVE STYLE */
.mobile_sidebar_menu a.active {
  color: #8b5e3c;
  font-weight: 600;
}

/* =========================================
MENU ICONS
========================================= */

.menu-btn {
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* =========================================
MOBILE TOGGLE
========================================= */

.mobile_menu_toggle {
  display: none;
}

/* popup css */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.popup-box {
  background: #000;
  width: 400px;
  max-width: 90%;
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  animation: popupShow 0.3s ease;
}

.popup-box i {
  font-size: 50px;
  color: #8b5e3c;
  margin-bottom: 15px;
}

.popup-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #8b5e3c;
}

.popup-box p {
  color: #fff;
  margin-bottom: 0;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #8b5e3c;
}

@keyframes popupShow {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===========================
   MEGA MENU
=========================== */

.has_dropdown {
  position: relative;
}

.mega_menu {
  position: absolute;
  top: 70px;
  left: 60%;
  width: 450px;
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.9);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(20px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;

  z-index: 999;
}

.has_dropdown:hover .mega_menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega_column {
  display: flex;
  flex-direction: column;
  min-width: 170px;
}

.mega_column a {
  color: white;
  padding: 8px 0;
  text-transform: none;
  font-size: 15px;
  transition: 0.3s;
}

.mega_column a:hover {
  color: #8b5e3c;
  padding-left: 3px;
}

.mega_menu a::after {
  display: none;
  content: none;
}

/* Default glass mega menu */
.mega_menu {
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.9);
  transition: 0.2s ease;
}

/* When navbar becomes sticky */
.main_navbar.navbar_sticky .mega_menu {
  background: #050c2c;
}

/* ================================
 MOBILE PRODUCT OFFCANVAS
================================ */

.products_offcanvas {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  color: white;
  border-radius: 0 30px 30px 0;
}

.products_offcanvas .offcanvas-title {
  color: #8b5e3c;
  font-size: 25px;
  text-transform: uppercase;
}

.products_offcanvas .btn-close {
  filter: invert(1);
}

.mobile_product_links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile_product_links a {
  color: white;
  font-size: 15px;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.mobile_product_links a:hover {
  background: #8b5e3c;
  color: white;
  transform: translateX(8px);
}

.products_offcanvas {
  height: 100vh;
  width: 320px !important;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 0 30px 30px 0;
}

.has_dropdown:hover .mega_menu,
.mega_menu.mega_active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 991px) {
  .main_navbar {
    padding: 0 20px;
  }

  .desktop_nav_menu {
    display: none;
  }

  .mobile_menu_toggle {
    display: block;
  }
}

@media (min-width: 992px) {
  .mobile_sidebar_menu {
    display: none;
  }
}

/* header ends */

@media screen and (max-width: 767px) {
  .mobile_sidebar_menu {
    height: auto;
  }

  .navbar_logo img {
    position: relative;
    right: 50px;
    max-width: 200px;
  }
}
