:root {
  --primary-color: #ac2f2d;
  /* --secondary-color: #aa5f14; */
  --white-color: #fff;
  --black-color: #000;
}

html,
body {
  font-family: "Open Sans", sans-serif;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Open Sans", sans-serif;
}
p {
  font-family: "Open Sans", sans-serif;
}
span {
  font-family: "Open Sans", sans-serif;
}

a {
  text-decoration: none !important;
  color: var(--white-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

#header {
  height: 145px;
}
#header .nav-link {
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 250px;
}

.search-box input {
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 8px 10px 8px 35px;
  width: 100%;
  font-size: 0.85rem;
  background-color: rgba(0, 0, 0, 0.03);
}

.search-box input:focus {
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.search-box button {
  position: absolute;
  left: -5px;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.search-box button:hover {
  background: #b30000;
}

.contact-box {
  display: flex;
  align-items: center;
  background-color: var(--white-color);
  color: var(--primary-color);
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.25rem;
  border: 2px solid var(--primary-color);
  position: relative;
  cursor: pointer;
}

.contact-box .phone-icon {
  position: absolute;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-color);
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: -10px;
}

.contact-box .phone-number {
  padding: 4px 10px 4px 40px;
}

#header .social-icons {
  margin: auto;
}
#header .social-icons a {
  margin: 0 0.3rem;
}
#header .social-icons i {
  color: var(--primary-color);
  font-size: 20px;
}

#header .cart img {
  width: 32px;
  height: 32px;
}

#header .cart {
  position: relative;
}

#header .cart .dropdown-menu {
  display: none;
  min-width: 250px;
  padding: 10px 15px;
  border-radius: 0;
  right: -10px;
  border: 0;
  top: 50px;
}

.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 2%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--white-color);
}

#header .cart:hover .dropdown-menu {
  display: block;
}

#header .cart .dropdown-item {
  font-size: 12px;
  color: #333;
}

.cart-img-icon {
  cursor: pointer;
}

.offcanvas.half-width {
  width: 60%;
}

.offcanvas-start {
  background: hsl(0deg 100% 28.73% / 95%);
  color: var(--white-color);
  padding-top: 20px;
}

.offcanvas-start .search-box input {
  background-color: rgba(255, 249, 249, 1) !important;
}

.offcanvas .btn-close {
  position: relative;
  right: -75%;
  top: -15px;
  font-size: 1.2rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.offcanvas .nav-link-group li {
  border-bottom: 1px solid var(--black-color);
  padding: 10px 0;
}
.offcanvas .nav-link-group li:hover {
  background-color: #880000;
}
.offcanvas .nav-link-group a {
  text-decoration: none;
  padding: 0 1rem;
  font-weight: 600;
  font-size: 1rem;
}

/* Section: hero */

.carousel-control-prev,
.carousel-control-next {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--black-color);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  top: 10%;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  color: var(--primary-color);
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.hot-products .card,
.discover-offers .card {
  background: transparent !important;
  border: none;
  cursor: pointer;
}

.hot-products .card img {
  width: 388px;
  height: 388px;
  border-radius: 15px;
}
.hot-products .card-title,
.hot-products .card-text-price,
.hot-products .card-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 3.5rem;
}

.hot-products .card-text-price {
  font-weight: bold;
}

.hot-products .card-text {
  font-size: 1rem;
  text-align: center;
  color: #f1f1f1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 4.8rem;
}

.hot-products .btn {
  border-radius: 40px;
  font-size: 1.25rem;
  padding: 5px 20px;
  color: var(--primary-color) !important;
  font-weight: 600;
  background-color: var(--white-color);
}
.hot-products .btn:hover {
  box-shadow: rgba(0, 0, 0, 0.3) 0px 6px 15px;
}

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
  top: 40%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white-color);
  border: 1px solid var(--primary-color);
}
#productCarousel .carousel-control-prev {
  left: 3%;
}
#productCarousel .carousel-control-next {
  right: 3%;
}

.discover-offers .card-text-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  margin-bottom: 4px;
}

.discover-offers .card-text {
  font-size: 1rem;
  text-align: left;
  color: #f1f1f1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 4.8rem;
}

.discover-offers .card img {
  width: 388px;
  height: 252px;
  border-radius: 15px;
}

.discover-offers .carousel-control-prev,
.discover-offers .carousel-control-next,
.hot-news .carousel-control-prev,
.hot-news .carousel-control-next {
  top: 40%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white-color);
  border: 1px solid var(--primary-color);
}
.discover-offers .carousel-control-prev,
.hot-news .carousel-control-prev {
  left: 3%;
}
.discover-offers .carousel-control-next,
.hot-news .carousel-control-next {
  right: 3%;
}

.news-section {
  background-image: url("./assets/images/bg3.jpg");
  background-size: cover;
  background-position: center;
  height: 1500px;
}

.news-section .news-content {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 20%;
}

.news-section .card {
  background-color: transparent;
  border: none;
  color: var(--white-color);
  cursor: pointer;
  text-decoration: none;
}

.news-section a:hover{
  color: orange !important;
  transition: all linear 0.3s;
} 

.news-section .card-body {
  padding-top: 8px;
}

.news-section .card img {
  width: 145px;
  height: 172px;
  border-radius: 15px;
  object-fit: cover;
}
.news-section .card-title {
  font-size: 1.25rem;
  font-weight: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 3.2rem;
}
.news-section .card-text-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.news-section .card-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  height: 4.2rem;
}

/* Section: Choose us */
.choose-us {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.choose-item {
  text-decoration: none;
  color: var(--white-color);
}

.choose-item-image {
  width: 320px;
  height: 320px;
  border: 2px solid var(--white-color);
  border-radius: 50%;
  overflow: hidden;
}

.choose-item-image img {
  height: 100%;
  width: 100%;
}

.choose-item-title {
  font-size: 1.5rem;
  font-size: bold;
}

.choose-item-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.hot-news {
  background-image: linear-gradient(to right, #af322f, #fac36c);
}

.footer-logo {
  width: 135px;
  height: 95px;
}

.footer a {
  text-decoration: none;
}

.footer-socials i {
  font-size: 1.3rem;
}

.footer-title {
  font-size: 22px;
  font-weight: bold;
}

.footer li {
  padding: 6px 0;
}
.footer li a:hover {
  color: yellow !important;
}

.custom-go-to-top {
  border-radius: 50%;
  background-color: var(--white-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  bottom: 4% !important;
  width: 40px;
  height: 40px;
}
.custom-go-to-top:hover {
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
}

@media (max-width: 768px) {
  #header {
    height: 125px;
    background-color: rgb(253, 228, 227);
  }

  #header .navbar-brand img {
    max-height: 52px !important;
  }

  #header .search-box {
    width: 100% !important;
  }

  #header .cart a {
    height: 35px;
    width: 35px;
    background-color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #main {
    margin-top: 125px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .news-section {
    background-image: url("./assets/images/bg3-mobile.jpg");
    background-size: cover;
    background-position: center;
    height: 700px;
  }

  .news-section .card {
    background-color: rgba(55, 55, 55, 0.37);
    border-radius: 15px;
    padding: 6px;
  }

  .news-section .card img {
    width: 90px;
    height: 108px;
  }

  .news-section .card-title {
    font-size: 1rem;
    height: 2.4rem;
  }
  .news-section .card-text-date {
    font-size: 0.75rem;
  }
  .news-section .card-text {
    display: none;
  }

  .choose-item-image {
    width: 150px;
    height: 150px;
  }
  .choose-item-title {
    font-size: 1.25rem;
    font-size: bold;
  }
}
