@import url("https://fonts.googleapis.com/css2?family=Aladin&family=Berkshire+Swash&family=Hanuman:wght@100..900&display=swap");

html {
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  padding-top: 120px;
}

:root {
  --primary-color: #e2d3c3;
  --secondary-color: #97642a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased; /* smooth fonts on Safari */
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; /* removes tap highlight on iOS */
}

/* Header Container */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000 !important; /* important */
  background-color: white;
  padding: 10px 0;
}

/* Navigation Wrapper */
.laptop-nav {
  /* padding: 10px 12px; */
  width: 80%;
  /* border-radius: 50px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--primary-color);
}

/* Logo */
.lap-logo {
  height: 70px;
  width: 70px;
  object-fit: contain;
}

/* Search Form */
.laptop-nav form {
  flex: 1;
  margin: 0 20px;
  display: flex;
}

.laptop-nav input[type="text"] {
  width: 100%;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--primary-color);
  outline: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.laptop-nav input[type="text"]:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

/* Contact & Icons */
.laptop-nav > div {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
}

.laptop-nav a {
  color: var(--secondary-color);
  font-size: 20px;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.laptop-nav a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .laptop-nav {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .laptop-nav form {
    width: 100%;
    margin: 0;
  }
}

.nav-contact a {
  text-decoration: none;
}

.nav-contact a span {
  font-size: 1rem;
}

.call-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.nav-small-text {
  font-size: 0.6rem;
}

.nav-tel-number a {
  font-size: 0.8rem !important;
  color: black;
  font-weight: 600;
}

/* mobi nav  */

.mobi-nav {
  /* padding: 10px 12px; */
  width: 95%;
  /* border-radius: 50px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--primary-color);
}

.mobi-logo img {
  height: 70px;
  width: 70px;
}

.mobi-nav form {
  flex: 1;
  margin: 0 20px;
  display: flex;
}

.mobi-nav input[type="text"] {
  width: 100%;
  padding: 10px 10px;
  border-radius: 50px;
  border: 1px solid var(--primary-color);
  outline: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.mobi-nav input[type="text"]:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

.mobi-cart a {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.section-padding {
  padding-right: 10px;
  padding-left: 10px;
}

.section-margin {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.category-box {
  text-align: center;
  padding: 10px;
}

.category-img img {
  width: 100%; /* fills carousel item width */
  height: auto;
  border-radius: 50%;
  display: block;
}

.category-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
}

.category-inner-box a {
  text-decoration: none;
  color: var(--secondary-color);
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.product-box {
  flex: 0 0 calc(50% - 15px); /* mobile: 2 per row */
  max-width: calc(50% - 15px);
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
}

.product-box:hover {
  transform: scale(1.05);
}

.product-img img {
  width: 100%;
  height: auto;
  display: block;
}

.product-title {
  font-weight: bold;
  font-size: 16px;
  padding: 10px 0;
}

.product-price {
  color: #e35010;
  font-weight: bold;
  padding-bottom: 10px;
}

/* Desktop */
@media (min-width: 768px) {
  .product-box {
    flex: 0 0 calc(25% - 15px); /* 4 per row on desktop */
    max-width: calc(25% - 15px);
  }
}

.categories-carousel .category-box,
.products-carousel .product-box {
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
}

.categories-carousel .category-box:hover,
.products-carousel .product-box:hover {
  transform: scale(1.05);
}

.category-img img,
.product-img img {
  width: 100%;
  display: block;
}

.category-title,
.product-title {
  font-weight: bold;
  padding: 10px 0;
}

.product-price {
  color: var(--secondary-color);
  font-weight: bold;
  padding-bottom: 10px;
}

.add-to-cart {
  background-color: var(--primary-color);
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  transition: 0.3s;
}

.add-to-cart:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Mobile grid for categories */
.categories-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}
.categories-section .category-box {
  flex: 0 0 calc(50% - 15px);
  max-width: calc(50% - 15px);
  margin-bottom: 20px;
}

/* products  */

:root {
  --primary-color: #e2d3c3;
  --secondary-color: #97642a;
}

.products-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 products per row on desktop */
  gap: 15px;
  margin-bottom: 30px;
}

.product-box {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.product-img img {
  width: 100%;
  display: block;
}

.product-title {
  font-weight: bold;
  padding: 10px 0;
}

.product-price {
  color: var(--secondary-color);
  font-weight: bold;
}

.add-to-cart {
  display: inline-block;
  margin: 10px 0;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border: 1px solid var(--secondary-color);
}

.add-to-cart:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Mobile view: 2 products per row */
@media (max-width: 767px) {
  .products-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* admin pannel  */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-header h1 {
  margin: 0;
}
.logout-btn {
  background: #e2d3c3;
  color: #fff;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

table th {
  background: #97642a;
  color: #fff;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: #97642a;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #e2d3c3;
  color: #000;
}

.login-container {
  width: 300px;
  margin: 100px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.error {
  color: red;
  margin-bottom: 10px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #dc3545;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

.nav-cart {
  position: relative;
  display: inline-block;
}

.card-title {
  color: var(--secondary-color) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: capitalize !important;
}

.card-text {
  color: black !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-transform: capitalize !important;
}

.btn {
  font-size: 1rem !important;
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  background-color: var(--primary-color) !important;
  border-radius: 5px;
  transition: 0.3s;
}

.btn:hover {
  font-size: 1rem !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  background-color: var(--secondary-color) !important;
  border-radius: 5px;
}

.category-title-x {
  display: inline-block; /* so underline fits text width */
  position: relative;
  padding-bottom: 5px; /* gap between text and underline */
  font-size: 1.2rem !important;
  color: var(--secondary-color);
}

.category-title-x::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%; /* underline spans full text */
  height: 2px; /* thickness of underline */
  background-color: black; /* underline color */
  border-radius: 2px; /* makes it smoother */
}

.section-title {
  display: inline-block; /* so underline fits text width */
  position: relative;
  padding-bottom: 5px; /* gap between text and underline */
  font-size: 1.2rem !important;
  color: var(--secondary-color);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%; /* underline spans full text */
  height: 2px; /* thickness of underline */
  background-color: black; /* underline color */
  border-radius: 2px; /* makes it smoother */
}

.alert {
  background-color: var(--primary-color) !important;
}

.hero-section {
  background: linear-gradient( rgba(151, 100, 42, 0.849),rgba(151,100,42,0.25),rgba(151,100,42,0.25)), url(../img/hero.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 500px;
  /* text-align: right; */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* aligns text vertically */
  /* padding: 0 15px; optional horizontal padding */
  overflow: hidden; /* prevents scroll due to minor overflow */
}

.hero-section .hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
}

.hero-section .hero-desc {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 10px;
}

.hero-section a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: #97642a;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}


#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: red;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}


.card img {
  transition: 0.3s;
}

.card:hover img {
  transform: scale(1.1);
}


.card {
  object-fit: cover;
  overflow: hidden;
}