@import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Montserrat";
}

html {
  box-sizing: inherit;
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
}

html::-webkit-scrollbar {
  width: 0px;
}

ol,
ul {
  list-style: none;
  text-decoration: none;
}

img {
  max-width: 100%;
}

table {
  border-collapse: collapse;
}

textarea {
  white-space: revert;
}

i {
  cursor: pointer;
}

/**
* ! Navbar Styles are here
**/

body.overflow {
  overflow: hidden;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 4rem;
  z-index: 100;
}

a {
  display: block;
  text-decoration: none;
  color: #000;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  min-height: 4rem;
  transition: background-color 0.3s, top 0.3s;
  color: #fff;
  font-weight: bold;
  background-color: #dd9933;
}

.nav h1 a {
  color: #fff;
  font-size: 1.375rem;
}

.categoryMenuBtn {
  height: 50px;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Ensure the carousel section is positioned correctly */
.carouselSection {
  position: relative;
  z-index: 10; /* Lower than navbar but higher than other content */
  margin-top: 0; /* Remove any default margin that might interfere */
}

.carousel img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures images scale properly without being cut off */
}

.line {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 250ms ease-in-out;
}
.line::before,
.line::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background: #fff;
  transition: all 250ms ease-in-out;
}
.line::before {
  transform: translateY(-7px);
}
.line::after {
  transform: translateY(7px);
}

.categoryMenuBtn.open .line {
  transform: translateX(-50px);
  background: transparent;
  box-shadow: none;
}
.categoryMenuBtn.open .line::before {
  transform: rotate(45deg) translate(35px, -35px);
}
.categoryMenuBtn.open .line::after {
  transform: rotate(-45deg) translate(35px, 35px);
}

.categoryMenu {
  background-color: white;
  height: 100vh;
  width: 70vw;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 350ms ease;
}
.categoryMenu.show {
  transform: translateX(0%);
}
.categoryMenu h5,
.categoryMenu h2,
.categoryMenu h3 {
  margin: 10px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.categoryMenu .h3 {
  background-color: #f40c25;
  margin: 0;
  color: #fff;
  padding: 10px 0;
}

.categoryMenu a {
  text-transform: uppercase;
  border-bottom: 1px solid #eaeaea;
  padding: 12px 1rem;
  font-size: 13px;
  font-weight: bold;
}
.categoryMenu a:hover {
  color: red;
  /* transform: scale(0.98); */
}
.categoryMenu .noUnderline {
  border-bottom: none;
  padding: 0;
  color: #f40c25;
}

/* Original CSS */
.cart {
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 30px;
  padding: 5px;
  border-radius: 4px;
}

.cartAmount {
  position: absolute;
  top: -2px;
  right: -4px;
  font-size: 13px;
  background-color: red;
  color: white;
  padding: 3px;
  border-radius: 3px;
}

.details {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 10px;
}

.price-quantity {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.innerCart {
  font-size: 30px;
  margin-bottom: -20px;
}

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.innerButton {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.quantity {
  margin: 0 10px;
}

.bi-dash-lg {
  color: red;
}

.bi-plus-lg {
  color: green;
}

/**
* ! style rules for label and some buttons
**/

.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.text-center h2 {
  margin: 8rem 0 0 0;
}
.text-center button {
  background-color: #dd9933;
  margin: 1rem;
}

.HomeBtn,
.checkout,
.removeAll {
  background-color: #dd9933;
  color: white;
  border: none;
  padding: 6px;
  border-radius: 3px;
  cursor: pointer;
}

.checkout {
  background-color: green;
  margin-bottom: 2rem;
}
.removeAll {
  background-color: red;
}
.bi-x-lg {
  color: red;
  font-weight: bold;
}

/**
* ! style rules for shopping-cart
**/

.shopping-cart {
  display: grid;
  grid-template-columns: repeat(1, 320px);
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
}
.shopping-cart button {
  font-size: 1rem;
  padding: 0.5rem;
}

/**
* ! style rules for cart-item
**/

.cart-item {
  border-radius: 5px;
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.title-price-x {
  width: 195px;
  /* width: 200px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cartButtons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
}

.title-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-price {
  background-color: #dd9933;
  color: white;
  border-radius: 4px;
  padding: 3px 6px;
}

.sectionAboutText {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.disclaimerImg {
  margin-top: 2rem;
  /* max-width: 70vw; */
}

.sectionAboutText h2 {
  /* margin: 1rem 0; */
  text-align: center;
}

.gif {
  padding: 1rem 3rem;
  width: 70vw;
  max-width: 400px;
}

/* CSS for Carousel Start */

main {
  position: relative;
  padding-top: 4rem;
}

.carousel {
  width: 100vw;
  height: 50vw;
  max-height: 700px;
  position: relative;
}

.carousel > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 200ms opacity ease-in-out;
  transition-delay: 200ms;
}

.slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0ms;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  background: none;
  border: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 0.25rem;
  padding: 0.25rem;
  background-color: rgba(0, 0, 0, 0.1);
}

.carousel-button:hover,
.carousel-button:focus {
  color: white;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}
/* CSS for Carousel End*/

/* CSS for Floating Whatsapp Icons */

.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 5px;
  z-index: 1000;
}

.whatsapp-button a {
  display: block;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

.whatsapp-button a:hover,
.whatsapp-button a:focus {
  background-color: #128c7e;
}

.floating-phone-icon {
  position: fixed;
  bottom: 22px;
  left: 5px;
  z-index: 1000;
  cursor: pointer;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-phone-icon img {
  width: 35px;
  transition: background-color 0.3s;
}

.floating-phone-icon:hover,
.floating-phone-icon:focus {
  background-color: lightblue;
}

/* CSS for Floating Whatsapp Icons */

.footer {
  background-color: #eee;
  margin-top: 2rem;
  padding: 1rem 2rem 1rem 2rem;
}

.footer h2 {
  /* font-size: 2.25rem; */
  font-weight: 500;
  padding: 1rem 0 0 0;
  text-align: center;
}
.phone-number {
  /* font-size: 1.25rem; */
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-number a {
  margin-left: 0.5rem;
}

.message {
  /* font-size: 1.5rem; */
  text-align: center;
  margin: 1rem 0 0 0;
}

.footer-disclaimer {
  padding-top: 1rem;
  padding-bottom: 0;
  text-align: center;
  text-transform: uppercase;
}

/* Cart */
.categorySection {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
}

.categorySection h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 4rem;
  color: #fff;
}

.productCard {
  display: flex;
  flex-direction: column;
  /* width: 290px; */
  margin: 1rem;
  margin-top: 0;
  /* border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 8px; */
  /* box-shadow: 0; */
  /* transform: scale(0.99); */
  /* transition: box-shadow 0.5s, transform 0.5s;
  box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.4); */
}

.productCard:first-child {
  margin: 1rem;
}

.productCard:hover {
  /* transform: scale(1);
  box-shadow: 5px 20px 30px rgba(0, 0, 0, 0.5); */
  /* box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); */
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.cardImg video {
  width: 100%;
  height: auto;
  /* border-top-left-radius: 8px;
  border-top-right-radius: 8px; */
  object-fit: cover;
}

.videoClass {
  /* max-height: 250px; Adjust this value as needed */
  background-color: #000; /* Ensure a black background when the video is loading */
}

.productCard {
  overflow: hidden; /* Prevent overflow if video aspect ratio differs */
}

/* .cardImg img {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
} */

.cardContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  padding-top: 0.5rem;
  font-weight: bold;
  /* font-size: 1.5rem; */
}
.cardContent h3 {
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cardContentText {
  display: flex;
  flex-direction: column;
}

.cardContentText p {
  margin-top: 0.375rem;
  text-transform: capitalize;
}

.cardIcon {
  background-color: dodgerblue;
  padding: 0.5rem 0.5rem;
  padding: 5px;
  padding-bottom: 0;
  border-radius: 5px;
  cursor: pointer;
}

.imgCategoryText {
  background-image: url(../images/categoryBackground.jpg);
  text-transform: uppercase;
  width: 100%;
}

.cardGrid {
  display: grid;
  place-items: center;
}

@media (min-width: 650px) {
  .cardGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 950px) {
  .cardGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .cardGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#menuButton {
  border: 0;
  outline: 0;
  padding: 10px;
  background-color: black;
  color: white;
  position: fixed;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  bottom: 6rem;
  right: 7px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.menu {
  text-align: center;
}

#firecrackerMenu {
  background-color: black;
  color: white;
  border: 0;
  outline: 0;
  padding: 1rem;
  position: fixed;
  bottom: calc(7rem + 40px); /* Adjust based on your button's height */
  right: 5px;
  width: 200px;
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  border-radius: 10px;
}

#firecrackerMenu.open {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

#firecrackerMenu ul li a {
  background-color: black;
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

#firecrackerMenu p {
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0.5rem;
  margin-top: 0;
  text-align: center;
}

.ourProducts {
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0.5rem;
  letter-spacing: 1px;
}

.logoText {
  letter-spacing: 2px;
}
