/* ========== Global Reset & Base Settings ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #262626;
}

h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
}

/* ========== CSS Variables ========== */
:root {
  --primary-color: #d7c167;
  --black: #000;
  --white: #fff;
  --gray: #aaa;
  --light-black: #262626;
}

/* ========== Container Wrapper ========== */
.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

/* ========== Top Bar ========== */
.top-txt {
  background-color: var(--black);
}

.head {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.945);
  padding: 10px 0;
  font-size: 14px;
}

.head-txt {
  margin: auto;
}

#language-select {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 14px;
  cursor: pointer;
}

/* ========== Navbar Desktop ========== */
.navbar {
  box-shadow: 0 5px 4px rgb(146 161 176 / 15%);
  position: sticky;
  top: 0;
  background: var(--light-black);
  color: var(--white);
  z-index: 100;
}

.navbar input[type="checkbox"],
.navbar .hamburger-lines {
  display: none;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.navbar img {
  margin-left: 3rem;
}

.menu-items {
  order: 2;
  display: flex;
  margin-right: 3rem;
}

.menu-items li {
  list-style: none;
  margin-left: 1.5rem;
  font-size: 1.2rem;
}

.navbar-container ul a {
  text-decoration: none;
  color: var(--white);
  font-size: 18px;
  position: relative;
}

.navbar-container ul a:after {
  content: "";
  position: absolute;
  background: var(--primary-color);
  height: 3px;
  width: 0;
  left: 0;
  bottom: -10px;
  transition: 0.3s;
}

.navbar-container ul a:hover:after {
  width: 100%;
}

.navbar-container .logo img {
  height: 40px;
}

/* ========== Navbar Mobile ========== */
@media (max-width: 768px) {
  .navbar-container input[type="checkbox"],
  .navbar-container .hamburger-lines {
    display: block;
  }

  .navbar-container {
    display: block;
    position: relative;
    height: 64px;
  }

  .navbar-container input[type="checkbox"] {
    position: absolute;
    height: 32px;
    width: 30px;
    top: 20px;
    left: 20px;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }

  .navbar-container .hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 28px;
    width: 35px;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
  }

  .navbar-container .hamburger-lines .line {
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: var(--primary-color);
  }

  .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.3s ease-in-out;
  }

  .line2 {
    transition: transform 0.2s ease-in-out;
  }

  .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.3s ease-in-out;
  }

  .navbar .menu-items {
    padding-top: 100px;
    background: var(--black);
    height: 100vh;
    transform: translate(-150%);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.5s ease-in-out;
    overflow: scroll;
  }

  .menu-items li {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .navbar-container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }

  .navbar-container input[type="checkbox"]:checked ~ .home_page img {
    display: none;
    background: #fff;
  }

  .navbar-container .logo img {
    position: absolute;
    top: 5px;
    right: 15px;
    margin-top: 8px;
  }
}

/* ========== Navbar Mobile (Under 500px) ========== */
@media (max-width: 500px) {
  .navbar-container input[type="checkbox"]:checked ~ .navbar-container img {
    display: none;
  }
}

/* ========== Banner ========== */

#banner {
  margin-top: 5px;
}

.banner_page {
  max-width: 1200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.banner_img img {
  height: auto;
  width: 100%;
  background-position: center;
  position: relative;
  background-size: center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

@media (min-width: 1024px) {
  /* Left fade overlay */
  .banner_img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, #262626, transparent);
    z-index: 2;
    pointer-events: none;
  }

  /* Right fade overlay */
  .banner_img::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, #262626, transparent);
    z-index: 2;
    pointer-events: none;
  }
}

.banner_txt {
  text-align: center;
  padding: 40px 20px;
  background-color: #646262;
  color: #fff;
}

.banner_txt p {
  font-size: 0.7em;
  letter-spacing: 2px;
  margin-bottom: 15px;
  margin-top: 15px;
}

/* //........ Contact ........// */

#contact {
  background-color: var(--white);
}

#contact a {
  box-shadow: 0px 10px 14px -7px #276873;
  background: linear-gradient(to bottom, #599bb3 5%, #408c99 100%);
  background-color: #599bb3;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  font-family: Arial;
  font-size: 20px;
  font-weight: bold;
  padding: 13px 32px;
  text-decoration: none;
  text-shadow: 0px 1px 0px #3d768a;
}

#contact a:hover {
  background: linear-gradient(to bottom, #408c99 5%, #599bb3 100%);
  background-color: #408c99;
}
#contact a:active {
  position: relative;
  top: 1px;
}

#contact .container {
  text-align: center;
  padding: 40px 20px;
  opacity: 1;
  /* color: #fff; */
}

#contact p {
  color: #666;
  font-size: 16px;
  margin: 10px 0;
}

/* ========== Bottom Bar ========== */
#bottom {
  background: #584100;
  color: var(--white);
}

.bottom_txt p {
  padding: 20px 0;
  font-size: 0.5em;
  text-align: center;
}

/* ========== Footer ========== */
footer {
  width: 100%;
  background: var(--black);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  padding: 60px 0;
}

.footer-container .content_1 {
  width: 80%;
}

.footer-container .content_1 img {
  width: 150px;
}

.footer-container .content_1 p {
  color: var(--gray);
  margin: 25px 0;
  font-size: 14px;
}

.footer-container h4 {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 25px;
  font-size: 18px;
}

.footer-container a {
  display: block;
  text-decoration: none;
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 14px;
}

.f-design {
  width: 100%;
  color: var(--white);
  text-align: center;
}

.f-design .f-design-txt {
  border-top: 1px solid var(--gray);
  padding: 25px 0;
  font-size: 14px;
  color: var(--gray);
}

/* ========== Responsive Footer & Layout Adjustments ========== */
@media (min-width: 501px) and (max-width: 768px), (max-width: 500px) {
  .top-txt .head p,
  .top-txt .head a {
    font-size: 10px;
  }

  .menu-items {
    margin-right: 0;
  }

  .best-seller {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .best-seller img {
    padding-top: 40px;
  }

  .l-news {
    display: flex;
    flex-direction: column;
    margin-right: 30px;
  }

  .l-news .l-news1,
  .l-news .l-news2 {
    margin-bottom: 200px;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
  }

  .footer-container .content_1 {
    margin-bottom: 30px;
    width: 100%;
  }
}

/* ========== Landscape Fix (e.g. on mobile phones rotated) ========== */
@media (orientation: landscape) and (max-height: 500px) {
  .header {
    height: 90vmax;
  }
}

/* ========== Loading ========== */
#loader-section {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 99;
}

.loader {
  animation: rotate 1s infinite;
  height: 50px;
  width: 50px;
}
.loader:before,
.loader:after {
  content: "";
  display: block;
  height: 20px;
  width: 20px;
}
.loader:before {
  animation: box1 1s infinite;
  background-color: #fff;
  box-shadow: 30px 0 0 #ff3d00;
  margin-bottom: 10px;
}
.loader:after {
  animation: box2 1s infinite;
  background-color: #ff3d00;
  box-shadow: 30px 0 0 #fff;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg) scale(0.8);
  }
  50% {
    transform: rotate(360deg) scale(1.2);
  }
  100% {
    transform: rotate(720deg) scale(0.8);
  }
}

@keyframes box1 {
  0% {
    box-shadow: 30px 0 0 #ff3d00;
  }
  50% {
    box-shadow: 0 0 0 #ff3d00;
    margin-bottom: 0;
    transform: translate(15px, 15px);
  }
  100% {
    box-shadow: 30px 0 0 #ff3d00;
    margin-bottom: 10px;
  }
}

@keyframes box2 {
  0% {
    box-shadow: 30px 0 0 #fff;
  }
  50% {
    box-shadow: 0 0 0 #fff;
    margin-top: -20px;
    transform: translate(15px, 15px);
  }
  100% {
    box-shadow: 30px 0 0 #fff;
    margin-top: 0;
  }
}

/* ========== Error ========== */
#error-section {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 99;
}

#error-section h2 {
  margin: 0;
  font-size: 20px;
  color: rgb(185, 86, 86);
  margin-top: 100px;
}
