* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-size: alc(var(--fontt-body-scale) * 1.6rem);
}

header {
  /* font-size: calc(var(--fontt-body-scale)*1.6rem); */
  height: 100px;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  /* backdrop-filter: blur(6px);    */
  z-index: 2000;
  /* transition: background 0.3s ease; */
}

#product-section3 {
  margin: 5vh 0vh;
}

.logo img {
  width: 140px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 45px;
}

.nav-links a {
  text-decoration: none;
  color: #f4ecae;
  font-size: 15px;
  transition: 0.3s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.icons i {
  font-size: 18px;
  margin-left: 18px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.icons i:hover {
  transform: scale(1.1);
}

.menu-btn {
  display: none;
  cursor: pointer;
}

.menu-btn i {
  color: white;
  font-size: 26px;
}

.hero {
  width: 100%;
  height: 90vh;
  background: url("../images/banner.png") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  /* ✅ Fixed gap issue */
}

.hero-slider {
  width: 100%;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

/* DARK OVERLAY */
.slide::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  top: 0;
  left: 0;
}

/* --- HERO TEXT --- */
.hero-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 850px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 80px;
  font-weight: 700;
  font-family: Sofadi One, system-ui;
  margin-bottom: 15px;
}

.hero-content .sub {
  font-size: 24px;
  margin-top: 10px;
}

.hero-content .tag {
  margin-top: 16px;
  font-size: 16px;
  background: rgba(41, 17, 17, 0.6);
  padding: 8px 20px;
  border-radius: 4px;
  display: inline-block;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-slider {
    height: 72vh;
  }

  .hero-content h1 {
    font-size: 60px;
  }

  .hero-content .sub {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content .sub {
    font-size: 17px;
  }

  .hero-content .tag {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 20px 25px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    right: 25px;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 20px 30px;
    text-align: right;
    border-radius: 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content .sub {
    font-size: 18px;
  }

  .hero-content .tag {
    font-size: 13px;
  }
}

@media (max-width: 450px) {
  .logo img {
    width: 120px;
  }
}

/* Add at the end of your CSS: */

.search-bar-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 130px;
  /* adjust height as needed */
  background: #fff;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.15);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.search-bar-container.active {
  display: flex;
}

.search-input {
  width: 70vw;
  max-width: 600px;
  padding: 13px 20px;
  font-size: 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.close-search {
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 20px;
  color: #555;
}

.hide-header {
  display: none !important;
}

/* Overlay Search Bar Responsive Styles */

.search-bar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100px;
  background: #fff;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
  z-index: 201;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.search-bar-overlay.active {
  display: flex;
}

.search-bar-content {
  display: flex;
  align-items: center;
  width: 90vw;
  max-width: 900px;
  margin: 0 auto;
  gap: 22px;
}

.search-logo {
  width: 100px;
  min-width: 54px;
  height: auto;
}

.search-input {
  flex: 1 1 110px;
  padding: 13px 18px;
  min-width: 50px;
  font-size: 17px;
  border-radius: 7px;
  border: 1px solid #ebeaea;
}

.search-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-icons i {
  font-size: 22px;
  color: #2d2d2d;
  cursor: pointer;
}

.close-search {
  font-size: 27px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  margin-left: 10px;
}

.hide-header {
  display: none !important;
}

/* Tablet Responsiveness */
@media (max-width: 900px) {
  .search-bar-content {
    width: 98vw;
    max-width: 99vw;
    gap: 12px;
    padding: 0 6px;
  }

  .search-input {
    font-size: 15px;
  }
}

/* Desktop nav visible only desktop */
.desktop-nav {
  display: flex;
}

.menu-btn {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  /* WHITE BACKGROUND */
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: 0.4s ease;
  z-index: 4000;
  border-right: 1px solid #ddd;
  /* Clean border */
}

.mobile-menu a {
  color: #000;
  /* BLACK TEXT */
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: #f4ecae;
  /* hover effect optional */
}

.mobile-menu.active {
  left: 0;
}

.close-mobile {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #000;
  /* close button black */
  font-size: 36px;
  cursor: pointer;
}

/* Hide desktop nav in mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .menu-btn {
    display: block;
  }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .search-bar-overlay {
    height: auto;
    min-height: 94px;
    padding: 14px 0;
  }

  .search-bar-content {
    flex-direction: column;
    width: 97vw;
    gap: 12px;
    align-items: stretch;
    padding: 0 5px;
  }

  .search-logo {
    margin-bottom: 2px;
    width: 65px;
    align-self: flex-start;
  }

  .search-input {
    width: 100%;
    min-width: 90px;
    padding: 11px 9px;
    border-radius: 6px;
  }

  .search-icons {
    width: 100%;
    justify-content: flex-end;
    gap: 16px;
  }
}

.search-bar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100px;
  background: #fff;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
  z-index: 201;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.search-bar-overlay.active {
  display: flex;
}

.search-bar-content {
  display: flex;
  align-items: center;
  width: 90vw;
  max-width: 900px;
  margin: 0 auto;
  gap: 22px;
}

.search-logo {
  width: 100px;
  min-width: 54px;
  height: auto;
}

.search-input {
  flex-grow: 1;
  padding: 13px 18px;
  min-width: 50px;
  font-size: 17px;
  border-radius: 7px;
  border: 1px solid #ebeaea;
}

.search-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-icons i {
  font-size: 22px;
  color: #2d2d2d;
  cursor: pointer;
}

.close-search {
  font-size: 27px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #333;
  margin-left: 10px;
}

.hide-header {
  display: none !important;
}

.login-btn {
  padding: 8px 22px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-btn:hover {
  background: rgba(251,238, 175, 1);
  color: #000;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .login-btn {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .search-bar-overlay {
    height: auto;
    min-height: 94px;
    padding: 14px 0;
  }

  .search-bar-content {
    flex-direction: column;
    width: 97vw;
    gap: 12px;
    align-items: stretch;
    padding: 0 5px;
  }

  .search-logo {
    margin-bottom: 2px;
    width: 65px;
    align-self: flex-start;
    display: none;
    /* Logo is hidden */
  }

  .search-input {
    width: 100%;
    min-width: 90px;
    padding: 11px 9px;
    border-radius: 6px;
  }

  .search-icons i.fa-regular.fa-heart {
    display: none;
  }

  .search-icons {
    width: 100%;
    justify-content: flex-end;
    gap: 16px;
  }
}

/* -------------------------------------------------------------- */
/*  */
/* ===== GLOBAL HEADER FIX ===== */
header {
  height: 90px;
  padding: 15px 50px;
}

@media (max-width: 1200px) {
  header {
    padding: 15px 30px;
  }
}

@media (max-width: 900px) {
  header {
    padding: 15px 20px;
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }

  .menu-btn {
    display: none !important;
  }
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
  .logo img {
    width: 120px;
  }

  .nav-links {
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 54px;
  }

  .hero-content .sub {
    font-size: 20px;
  }
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  header {
    height: 80px;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: 15px;
    width: 240px;
    background: #000;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }

  .icons i {
    margin-left: 12px;
  }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
  header {
    padding: 12px 15px;
  }

  .logo img {
    width: 105px;
  }

  .icons i {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content .sub {
    font-size: 16px;
  }

  .hero-content .tag {
    font-size: 12px;
  }
}

/* ===== HERO HEIGHT CONTROL ===== */
.hero,
.hero-slider {
  min-height: calc(100vh - 90px);
}

@media(max-width:768px) {

  .hero,
  .hero-slider {
    min-height: calc(100vh - 80px);
  }
}

/*  */
/* ------------------------------------------------------------ */

.section {
  width: 100%;
  padding: 50px 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
  margin: 0;
  box-sizing: border-box;
  border-radius: 3px;
}

.card img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h2 {
  margin-top: 18px;
  font-size: 1.4rem;
  font-weight: 600;
}

.card p {
  margin: 10px 0 15px;
  color: #444;
  font-size: 0.9rem;
}

.card a {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: 0.3s;
  margin-bottom: 18px;
}

.card a:hover {
  border: none;
  background:rgba(251, 238, 175, 1);
  color: #fff;
}

/* Middle card image margin */
.middle-card img {
  margin-top: 25px;
}

/* Responsive adjustments */
/* Responsive for Tablet & Mobile */
@media (max-width: 768px) {
  .card {
    position: relative;
    overflow: hidden;
    color: white;
    height: 350px;
  }

  .card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(45%);
    border-radius: 6px;
  }

  /* Text Position Over Image */
  .card h2,
  .card p,
  .card a {
    position: absolute;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    text-shadow: 0px 3px 8px rgba(0, 0, 0, 0.7);
  }

  .card h2 {
    top: 100px;
    font-size: 1.4rem;
  }

  .card p {
    top: 140px;
    font-size: 0.9rem;
  }

  .card a {
    bottom: 95px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 0.8rem;
    border-radius: 5px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .card h2 {
    font-size: 1.1rem;
    top: 100px;
  }

  .card p {
    font-size: 0.8rem;
    top: 140px;
  }

  .card a {
    padding: 8px 18px;
    font-size: 0.7rem;
  }
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 23px;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  flex-wrap: wrap;
  /* Added for responsiveness on smaller screens */
}

.product-tabs .tab {
  font-size: 16px;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-tabs .tab.active {
  color: #111;
  border-bottom: 2px solid #111;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 0px 15px;
}

.product-grid a {
  text-decoration: none;
}

/* Card */
.product-card {
  text-align: center;
  color: #111;
  transition: all ease 0.5s;
}

/* Image Box */
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  padding-top: 100%;
  height: 0;
  background: #f7f7f7;
}

/* Image */
.product-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Hover Zoom */
.product-card:hover .product-image {
  transform: translate(-50%, -50%) scale(1.08);
}

/* wishlist cart heeart */
.wish-cart {
  width: 350px;
  display: flex;
  justify-content: center;
  position: absolute;
  gap: 20px;
  /* left: 120px; */
}

.wish-cart-cart {
  position: relative;
  top: -80px;
  padding: 8px;
  font-size: 18px;
  background-color: white;
  border-radius: 50px;
  margin-top: 5px;
  transition: all ease 0.2s;
}

.wish-cart-cart:hover {
  font-size: 18px;
  background-color: black;
  color: white;
  border-radius: 50px;
}

@media (min-width: 920px) and (max-width: 1100px) {
  .wish-cart {
    width: 250px;
    display: flex;
    justify-content: center;
    position: absolute;
    gap: 20px;
    /* left: 120px; */
  }
}

@media screen and (max-width: 750px) {
  .wish-cart {
    width: 180px;
    display: flex;
    justify-content: center;
    position: absolute;
    gap: 10px;
    /* left: 120px; */
  }

  .wish-cart-cart {
    position: relative;
    top: -60px;
    left: 0px;
    padding: 8px;
    font-size: 14px;
    background-color: white;
    border-radius: 50px;
    margin-top: 5px;
    transition: all ease 0.2s;
  }
}

/*  */
/* back overlay */
.product-modal {
  position: fixed;
  top: 0px ;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(3px);
}

/* modal box */
.product-modal-content {
background: #fff;
width: 60%;
max-height: 90vh;
overflow-y: auto;
padding: 30px;
border-radius: 16px;
display: flex;
gap: 30px;
position: relative;
animation: showModel 0.3s ease;
}

@keyframes showModal {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* left image */
.modal-left img {
  width: 400px;
  border-radius: 10px;
}
/* close button */
.close-modal {
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 30px;
  cursor: pointer;
}

/* right panel */
.modal-right {
  flex: 1;

}

.price-box {
  margin: 10px 0;
}

.price-box .current {
  color: #e63939;
  font-size: 22px;
  font-weight: bold;
}

.price-box .old {
  text-decoration: line-through;
  margin-left: 10px;
  color: gray;
}

.price-box .save {
  margin-left: 10px;
  background: #e63939;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.stock-alert {
  margin: 15px 0;
  background: #ffe1e1;
  padding: 8px 12px;
  border-left: 4px solid #ff3b3b;
  border-radius: 6px;
}

/* quantity box */
.qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.qty-btn:hover {
  background: #ddd;
}

.qty-input {
  width: 50px;
  text-align: center;
  padding: 6px;
  border: 1px solid #ccc;
}

/* Buttons */
.add-cart-btn {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}
.buy-btn {
  width: 100%;
  padding: 12px;
  background-color: #ff6600;
  color: white;
  border-radius: none;
  font-size: 16px;
  cursor: pointer;
}


.add-cart-btn:hover,
.buy-btn:hover {
  opacity: 0.9;
}

/* Image zoom container */
.zoom-container {
  width: 350px;
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #eee;
  position: relative;
  cursor: zoom-in;
}

.zoom-container img {
  width: 100%;
  transition: transform 0.2s ease;
  transform-origin: center center;
}

/* Thumbnail Row */
.thumbnail-row {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.thumbnail-row img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.thumbnail-row img.active,
.thumbnail-row img:hover {
  border-color: #e63939;
}

/* --- */
/* ---------- MODAL CENTER FIX ---------- */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(3px);
}

/* ---------- MODAL BOX ---------- */
.product-modal-content {
  background: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  padding: 25px;
  border-radius: 16px;
  display: flex;
  gap: 25px;
  position: relative;
  overflow-y: auto;
}

/* ---------- LEFT IMAGE ---------- */
.modal-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zoom-container {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1 / 1;
}

.zoom-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- THUMBNAILS ---------- */
.thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- RIGHT PANEL ---------- */
.modal-right {
  flex: 1;
}

/* ---------- TABLET ---------- */
@media (max-width: 900px) {
  .product-modal-content {
    max-width: 700px;
  }
}

/* ---------- MOBILE ---------- */
@media (max-width: 600px) {
  .product-modal-content {
    flex-direction: column;
    padding: 18px;
    position: relative;
    top: 40px;
    height: 84vh;
  
  }

  .close-modal{
    position: relative;
    left: 5px;
    top: 0px;
    font-size: 30px;
    cursor: pointer;
  }

  .zoom-container {
    max-width: 100%;
  }

  .thumbnail-row img {
    width: 60px;
    height: 60px;
  }

  .modal-right h2 {
    font-size: 20px;
  }

  .add-cart-btn,
  .buy-btn {
    font-size: 15px;
  }
}

/* --- */


/*  */

/* Sale Badge */
.sale-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff4d4d;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  font-weight: 600;
  border-radius: 2px;
  z-index: 10;
}

/* Hover Icons */
.overlay-icons {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.product-card:hover .overlay-icons {
  transform: translateY(0);
}

.overlay-icons .icon {
  font-size: 18px;
  cursor: pointer;
  color: #111;
  padding: 5px;
}

/* Text */
.product-title {
  font-weight: 500;
  margin-bottom: 5px;
}

.product-price {
  font-size: 14px;
}

.current-price {
  font-weight: 600;
  color: #ff4d4d;
  margin-right: 8px;
}

.old-price {
  color: #999;
  text-decoration: line-through;
}

/* Spin Animation */
@keyframes spinProduct {
  0% {
    transform: translate(-50%, -50%) rotateY(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotateY(360deg);
  }
}

.spin {
  animation: spinProduct 0.8s ease-in-out;
}

/* ✅ RESPONSIVE BREAKPOINTS */

/* Tablet (4 → 2 columns) */
@media (max-width: 992px) {
  .products-section {
    padding: 40px 40px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (2 → 1 column) */
@media (max-width: 600px) {
  .products-section {
    padding: 25px 0px;
  }

  .product-grid {
    grid-template-columns: fr;
    gap: 8px;
  }

  .overlay-icons {
    display: none;
    /* hover icons remove (touch screens) */
  }

  .product-image-wrapper {
    padding-top: 120%;
    /* thoda image badi dikhe */
  }
}

/* Center Button Bar */
.center-button-bar {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* All Books Button Style */
.all-books-btn {
  padding: 12px 35px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hover Effect */
.all-books-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

.banner-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/v1.png") center/cover no-repeat;
  z-index: -1;
}

.banner-overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  padding: 20px;
  width: 90%;
  max-width: 700px;
}

.banner-overlay-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-family: Sofadi One, system-ui;
}

.banner-overlay-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.banner-overlay-content button {
  padding: 12px 30px;
  border: none;
  background: #ffffff;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.banner-overlay-content button:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .banner-overlay-content h1 {
    font-size: 2.1rem;
  }

  .banner-overlay-content p {
    font-size: 1rem;
  }
}

.handcrafted-leather-section {
  padding: 40px 20px;
  width: 100%;
  margin: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

/* Section Header */
.sec-hea {
  padding: 0px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.sec-hea h2 {
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.8rem;
  display: inline-block;
  position: relative;
}

/* Tabs */
.categ-tabs {
  display: flex;
  gap: 15px;
  align-items: center;
}

.categ {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

.categ-btn {
  background-color: #b63431;
  border: none;
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.categ-btn:hover,
.categ-btn.active {
  background-color: #8b1d16;
}

/* Horizontal Scroll Grid */
.pro-grid {
  display: flex;
  overflow-x: hidden;
  gap: 15px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* hide scrollbar for Firefox */
}

.pro-grid::-webkit-scrollbar {
  display: none;
  /* hide scrollbar for Chrome/Safari */
}

.pro-card {
  min-width: 200px;
  /* decreased size */
  flex: 0 0 auto;
  background-color: #f9f9f9;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
  position: relative;
  scroll-snap-align: start;
}

.pro-card:hover {
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.pro-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.pro-image {
  width: 100%;
  display: block;
  transition: 0.3s;
}

.pro-card:hover .pro-image {
  transform: scale(1.08);
}

.sale-badge {
  position: absolute;
  top: 10px;
  right: -15px;
  background-color: #b63431;
  color: white;
  padding: 3px 30px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(45deg);
}

/* Hover Icons */
.overlay-icons {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: 0.3s;
}

.pro-card:hover .overlay-icons {
  opacity: 1;
}

.overlay-icons .icon {
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b63431;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.overlay-icons .icon:hover {
  background: #b63431;
  color: white;
}

.pro-title {
  margin: 10px 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.pro-price {
  color: #b63431;
  font-weight: 600;
  font-size: 0.95rem;
}

.pro-price .old-price {
  color: #999;
  text-decoration: line-through;
  margin-left: 4px;
  font-size: 0.85rem;
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #b63431;
}

@media (max-width: 600px) {
  .sec-hea {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 900px) {
  .pro-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .pro-card {
    min-width: 70vw;
    max-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* Mobile: Full Width Cards */
@media (max-width: 600px) {
  .pro-card {
    min-width: 80vw;
    max-width: 85vw;
  }

  .logo img {
    width: 40px;
    height: auto;
  }
}

.logo img {
  width: 80px;
  height: auto;
}

/* --- Desktop Dropdown --- */
.dropdown {
  position: relative;
}

.dropdown .dropbtn {
  color: #f4ecae;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown .dropbtn i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 15px;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  padding: 10px 0;
  z-index: 3000;
  transition: all 0.3s ease;
}

/* FOOTER CSS STYLING */
/* ------------------------------------- */
.main-footer {
  background-color: #252121;
  color: #333;
  padding-top: 50px;
  font-family: sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 30px;
  border-bottom: 1px solid #ddd;
}

/* Footer Column Titles */
.col-title {
  font-size: 14px;
  font-weight: bold;
  color: #cccccc;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Contact Info Column */
.footer-bagging-logo {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fafafa;
}

.call-us-free {
  font-size: 12px;
  font-weight: bold;
  color: #666;
  margin-top: 20px;
}

.phone-number {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #666;
}

.address-details {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

/* Links Columns */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #666;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #000;
}

/* Newsletter Column */
.newsletter-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  margin-bottom: 20px;
}

.newsletter-form input[type="email"] {
  padding: 10px 15px;
  border: 1px solid #ddd;
  flex-grow: 1;
  font-size: 14px;
}

.newsletter-form .submit-btn {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon-box {
  width: 35px;
  height: 35px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #dcd6d6;
  transition: background-color 0.2s, border-color 0.2s;
  /* Transition for border-color too */
  /* --- CIRCULAR ICONS ADDED HERE --- */
  border-radius: 50%;
  /* इसे पूरी तरह से गोलाकार बनाता है */
  /* ---------------------------------- */
}

.social-icon-box:hover {
  background-color: #eee;
  border-color: #bbb;
  /* Hover पर बॉर्डर कलर बदल सकते हैं */
}

/* Copyright Bar */
.copyright-bar {
  background-color: #252121;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.copyright-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #777;
}

.payment-icons i {
  font-size: 20px;
  margin-left: 10px;
  color: #777;
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-col:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-links ul {
    text-align: center;
  }

  .footer-col:nth-child(5) {
    grid-column: span 1;
  }

  .newsletter-form {
    flex-direction: row;
    max-width: 90%;
    margin: 10px auto 20px auto;
  }

  .social-icons {
    justify-content: center;
    margin-bottom: 20px;
  }

  .copyright-content {
    flex-direction: column;
    text-align: center;
  }

  .copyright-content p {
    margin-bottom: 10px;
  }
}

.dropdown-content a {
  color: #f4ecae;
  padding: 10px 18px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Show dropdown on hover (desktop only) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: flex;
  }
}

/* --- Mobile Dropdown --- */
.mobile-dropdown {
  display: none;
  /* Hidden by default on desktop */
}

.mobile-dropdown a {
  color: #000;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
}

.mobile-dropdown i {
  transition: transform 0.3s ease;
}

.mobile-dropdown.open i {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  margin-left: 15px;
  margin-top: 5px;
  transition: max-height 0.4s ease;
}

.mobile-dropdown-content a {
  color: #000;
  font-size: 16px;
  text-decoration: none;
  padding: 6px 0;
}

.mobile-dropdown-content a:hover {
  color: #f4ecae;
}
.mobile-dropdown.open + .mobile-dropdown-content {
  display: flex;
}

/* --- RESPONSIVE BEHAVIOR --- */

/* Hide desktop dropdown inside main nav when mobile */
@media (max-width: 768px) {
  .dropdown {
    display: none;
  }

  .mobile-dropdown {
    display: block;
  }

  /* Better spacing for mobile menu items */
  .mobile-dropdown-content a {
    font-size: 15px;
    padding: 6px 4px;
  }
}

/* ------------------------------------- */
/* 1. SHOPPING CART SIDEBAR CSS (Desktop Default) */
/* ------------------------------------- */
.shopping-cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  /* Desktop पर डिफ़ॉल्ट चौड़ाई */
  width: 380px;
  height: 100vh;
  background-color: white;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Class to show the sidebar */
.shopping-cart-sidebar.open {
  right: 0;
}

/* ------------------------------------- */
/* 2. MEDIA QUERY (Mobile & Small Screens) */
/* ------------------------------------- */
@media (max-width: 600px) {
  .shopping-cart-sidebar {
    /* Mobile पर, चौड़ाई 100% कर दें */
    width: 100%;
    /* जब छिपा हो, तो इसे स्क्रीन की पूरी चौड़ाई के बाहर धकेल दें */
    right: -100%;
  }

  .shopping-cart-sidebar.open {
    /* Mobile पर, इसे 0 पर ले आएं */
    right: 0;
  }

  /* प्रोडक्ट लिस्ट को मोबाइल पर बेहतर बनाने के लिए: */
  .product-list {
    /* Allow the list to scroll horizontally if needed */
    overflow-x: auto;
  }
}

/* ------------------------------------- */
/* 3. Overlay/Background Dimmer */
/* ------------------------------------- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  cursor: pointer;
}

/* ------------------------------------- */
/* 4. Cart Content Styling (कोई बदलाव नहीं, यह responsive है) */
/* ------------------------------------- */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px 20px;
  border-bottom: 1px solid #eee;
}

.cart-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.cart-content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.empty-cart {
  text-align: center;
  padding: 50px 0;
}

.cart-icon-box {
  margin-bottom: 20px;
  color: #dcdcdc;
  font-size: 60px;
}

.empty-cart h3 {
  font-weight: 500;
  margin-bottom: 5px;
}

.empty-cart p {
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
}

.continue-shopping-btn {
  background-color: black;
  color: white;
  padding: 12px 25px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  cursor: pointer;
}

.you-may-also-like {
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-top: 30px;
}

.you-may-also-like h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
}

.product-list {
  display: flex;
  gap: 15px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.product-card {
  min-width: 120px;
  text-align: left;
  border: 1px solid #eee;
  padding: 0px;
}

.product-card img {
  width: 100%;
  height: auto;
  background-color: #f3f3f3;
  min-height: 120px;
}

.product-card p {
  margin: 5px 0 5px 4px;
  font-size: 13px;
  color: #333;
}

.product-card .price {
  font-weight: bold;
  color: black;
  margin-bottom: 5px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* Black overlay with 60% opacity */
  z-index: 10000;
  /* Ensure it is above all other content */
  display: none;
  /* **शुरुआत में इसे JavaScript द्वारा दिखाया जाएगा** */
  justify-content: center;
  align-items: center;
}

/* Modal Box: पॉप-अप का सफेद कंटेनर */
/* ----------------------------- */
/* MODAL CONTENT BOX */
/* ----------------------------- */
.modal-content {
  background-color: white;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  border-radius: 8px;
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

/* Titles & Text */
.modal-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.modal-discount {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 15px 0 20px 0;
}

.modal-text {
  color: #555;
  font-size: 15px;
  margin-bottom: 30px;
}

/* ----------------------------- */
/* FORM */
/* ----------------------------- */
.modal-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  /* Important for mobile responsive */
}

.modal-form input[type="email"] {
  padding: 12px;
  border: 1px solid #ccc;
  flex-grow: 1;
  max-width: 300px;
  font-size: 15px;
  border-radius: 4px;
}

.subscribe-btn {
  background-color: black;
  color: white;
  padding: 12px 25px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}

/* No Thanks Button */
.no-thanks-btn {
  background: none;
  border: none;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 10px;
}

/* ----------------------------- */
/* RESPONSIVE STYLES */
/* ----------------------------- */

/* Tablet Screens */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px;
    max-width: 90%;
  }

  .modal-discount {
    font-size: 26px;
  }

  .modal-form {
    flex-direction: column;
    align-items: start;
  }

  .modal-form input[type="email"] {
    max-width: 100%;
  }

  .subscribe-btn {
    width: 100%;
    margin-top: 10px;
  }
}

/* Mobile Screens */
@media (max-width: 480px) {
  .modal-content {
    padding: 25px;
  }

  .modal-title {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .modal-discount {
    font-size: 22px;
  }

  .modal-text {
    font-size: 14px;
  }

  .modal-form {
    gap: 8px;
  }

  .subscribe-btn {
    padding: 12px;
    font-size: 14px;
    width: 100%;
  }

  .modal-form input[type="email"] {
    padding: 10px;
    font-size: 14px;
  }

  .modal-close-btn {
    font-size: 20px;
  }
}