@font-face {
  font-family: "Maginina";
  src: url(../fonts/Maginia.otf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffff;
  --bg-secondary: #fbf6ed;
  --primary-color: #f9f3ea;
  --secondary-color: #fad6a8;
  --tertiary-color: #a72a23;
  --text-primary: #000;
  --text-secondary: #ba180e;
  --box-shadow: #333;
  --primary-font: "Montserrat", sans-serif;
  --secondary-font: "Maginina", serif;
}

html,
body {
  scroll-behavior: smooth;
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  overflow: visible;
}

i{
  overflow: visible ;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Maginina", serif;
  letter-spacing: 2px;
}


/* Navbar Starts */
/* Full-Width Navbar */
.top-nav {
  background: var(--text-secondary);
  padding: 10px 0;
  font-size: 14px;
  color: white;
  border-bottom: 1px solid #ddd;
}
.top-nav .container {
  text-align: center;
}
.message-slider {
  position: relative;
  overflow: hidden;
  height: 20px;
}
.message-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.message-slide.active {
  opacity: 1;
}

/* Navbar Starts */
nav{
  background-color: white !important;
}
.navbar-nav .nav-link:hover {
  color: var(--text-secondary) !important;
}
.search-bar-btn-desktop{
  background-color: var(--text-secondary);
  border: none;
  color: white;
  border-radius: 0 50px 50px 0;
}

.search-bar input {
  border-radius: 50px 0 0 50px;
  background-color: whitesmoke;
}

.search-bar button {
  border-radius: 0 50px 50px 0;
}

.action-icons a {
  font-size: 20px;
  margin-left: 15px;
  /* color: black; */
  color: var(--text-secondary);
}

.action-icons a:hover {
  color: var(--text-secondary);
}

.mobile-topbar {
  display: none;
  background: white;
  padding: 10px 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: var(--text-secondary);
  color:white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease-in-out;
  padding: 20px;
  z-index: 1050;
}

.mobile-drawer.active {
  left: 0;
}

.mobile-drawer .close-btn {
  font-size: 20px;
  cursor: pointer;
  display: block;
  margin-bottom: 20px;
}

.mobile-drawer ul {
  list-style: none;
  padding: 0;
}

.mobile-drawer ul li {
  margin-bottom: 15px;
}

.mobile-drawer ul li a {
  text-decoration: none;
  color: #ffff;
  font-size: 18px;
  font-weight: 500;
}

.mobile-drawer ul li a:hover {
  color: var(--text-secondary);
}

.fa-times{
  color: white;
}

.mobile-menu {
  position: fixed;
  bottom: 0;
  left: -1px;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #ddd;
  z-index: 1000;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 22px;
  text-align: center;
}

.mobile-menu a:hover {
  color: var(--tertiary-color);
}

.mobile-menu .menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

@media (max-width: 991px) {
  .desktop-navbar {
    display: none;
  }

  .mobile-topbar {
    display: flex;
  }
}
/* Navbar Ends */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

/* Popup Container */
.popup-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 420px;
  background: var(--bg-primary);
  padding: 25px;
  box-shadow: 0px 5px 15px var(--box-shadow);
  border-radius: 12px;
  text-align: center;
  z-index: 1000;
  animation: fadeIn 0.5s ease-in-out;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: 0.3s;
}

.close-btn:hover {
  color: var(--tertiary-color);
  transform: scale(1.1);
}

/* Title */
.popup-container h2 {
  font-family: var(--secondary-font);
  font-size: 26px;
  color: var(--text-secondary);
  font-weight: 700;
}

/* Message Text */
.popup-container p {
  font-family: var(--primary-font);
  color: var(--text-primary);
  font-size: 18px;
  margin-top: 12px;
}

/* Offer Button */
.offer-btn {
  margin-top: 15px;
  padding: 12px 20px;
  background: var(--text-secondary);
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--primary-font);
  font-weight: 600;
  transition: 0.3s;
}

.offer-btn:hover {
  background: var(--tertiary-color);
  transform: scale(1.05);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive */
@media (max-width: 500px) {
  .popup-container {
    width: 90%;
  }
}


/* Product Card*/
.product-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
  height: 100%;
  min-width: 250px;
  background-color: var(--bg-primary);
}
.image-container {
  position: relative;
  overflow: hidden;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease-in-out;
}
.product-image-hover {
  display: none;
  width: 100%;
  height: 100%;
}
.image-container:hover .product-image {
  display: none;
}
.image-container:hover .product-image-hover {
  display: block;
}
.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.price-container {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.discounted-price {
  color: var(--text-secondary);
}
.original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
}
.rating-container {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  margin-bottom: 8px;
}
.rating-container i {
  color: var(--text-secondary);
}

/* Footer Section */
.footer {
  background: var(--bg-secondary);
  color: var(--box-shadow);
  padding: 40px 0;
  font-family: var(--primary-font);
}
.footer h5 {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}
.footer ul li a {
  color: var(--box-shadow);
  text-decoration: none;
}

.footer form input{
  border: 1px solid;
  width: 60% !important;
}

.footer ul li a:hover {
  color: var(--tertiary-color);
}
.footer .btn {
  background-color: var(--tertiary-color);
  border: none;
}
.footer .btn:hover {
  transform: scale(1.05);
}
.footer i {
  font-size: 20px;
  color: var(--text-secondary);
}
.footer i:hover {
  color: var(--tertiary-color);
}

/* Page Styling */
.mb-minus-5 {
  margin-bottom: -3rem !important; /* Same as Bootstrap's mb-5 but negative */
}
