@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Spartan', sans-serif;
  font-weight: 400;
}

body {
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  font-weight: 400; /* consistent body text weight */
  line-height: 1.6;
}

h1 {
  font-weight: 700; /* for page titles */
  font-size: 30px;
  line-height: 60px;
}

h2 {
  font-weight: 600; /* slightly lighter */
  font-size: 50px;
  line-height: 70px;
}

h3 {
  font-weight: 600; /* even lighter, for sections */
  font-size: 28px;
}

h5 {
  font-weight: 600;
  font-size: 14px;
}

h4, h6 {
  font-weight: 700;
  font-size: 30px;
  color: #444;
}

p {
  font-size: 15px;
  font-weight: 300;
  color: #444;
  line-height: 1.7;
}

.section-p1 {
  padding: 40px 80px;
}

.section-m1 {
  margin: 40px 0;
}

.add-to-cart-btn .btn-icon {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

.logo-img {
  height: 40px;
  max-height: 60px;
  width: auto;
}

#searchBarContainer {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  width: 410px;
  max-width: 1300px;
  height: auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: none;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
  box-sizing: border-box;
}

.search-item-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.search-item-link:visited,
.search-item-link:hover,
.search-item-link:active {
  text-decoration: none !important;
  color: inherit !important;
}

#searchScrollableArea {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 4px;
  width: 100%;
  border: 1px solid #ddd;
}

.search-suggestions li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.search-suggestions li:hover {
  background-color: #f1f1f1;
}

.search-suggestions li:last-child {
  border-bottom: none;
}

.search-item:hover {
  background-color: #eaeaea;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* ========== GLOBAL SPINNER ========== */
.plus-spinner {
  border: 2px solid rgba(0, 0, 0, 0.1);  /* Light border */
  border-top: 2px solid #1890ff;        /* Blue top */
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Spinner wrapper: hidden by default */
.plus-loader {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: -2px;  /* 🔄 Shift spinner left slightly */
  font-size: 0.75rem;
  color: #1890ff;
  vertical-align: middle;
}

/* Show spinner only when .loading is present on button */
.qty-btn.plus.loading .plus-loader {
  display: inline-flex;
}

/* Hide the + sign when loading */
.qty-btn.plus.loading .plus-text {
  display: none;
}


/* Plus sign */
.qty-btn.plus .plus-text {
  display: inline-block;
  font-weight: 600; /* Optional, extra emphasis */
}

/* Quantity button: plus */
.qty-btn.plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 4px;
  font-weight: 600; /* 💪 Bold the row */
}

/* Limit message beneath the item */
.limit-message {
  font-size: 0.8rem;
  color: #555;
  margin-top: 6px;
  margin-left: 70px; /* Adjust for alignment under product info */
  padding-left: 2px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  opacity: 0;
}

.limit-message.visible {
  display: block;
  opacity: 1;
}

/* ------------------------- GLOBAL LIMIT MESSAGE ------------------------- */
/* Wrapper ensures absolute positioning doesn’t affect layout */
.add-to-cart-wrapper {
  position: relative;
  display: block; /* allow button to stay full width */
  width: 100%;    /* matches natural layout */
}

/* The floating message itself */
.global-limit-message {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px); /* directly above the button with small gap */
  transform: translateX(-50%);
  color: #3196de;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

/* Visible state with slight upward motion */
.global-limit-message.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ------------------------- RESPONSIVE TWEAKS ------------------------- */
@media (max-width: 600px) {
  .global-limit-message {
    font-size: 0.8rem;
    bottom: calc(100% + 2px);
  }

  .global-limit-message.visible {
    transform: translateX(-50%) translateY(-4px);
  }
}


/* Basic cart item wrapper layout */
.cart-item-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

/* Disabled checkout button */
.checkout-bar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.search-open {
  overflow: hidden;
  touch-action: none;
  height: 100vh;
}

/* ========== ANIMATIONS ========== */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 416px) and (max-width: 881px) {
  #searchBarContainer {
    width: 90%;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
    top: unset;
  }

  #searchBarContainer.active {
    display: flex;
  }

  .search-input-wrapper {
    position: relative;
    width: 100%;
  }

  #searchInput {
    font-size: 15px;
    padding: 10px 20px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 16px;
    box-sizing: border-box;
  }

  #clearSearch {
    position: absolute;
    right: 12px;
    top: 20px;
    transform: translateY(-50%);
    font-size: 30px;
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    z-index: 2;
  }

  #searchScrollableArea {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #noResultsMessage {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
    display: none;
  }

  .search-item {
    background: #f9f9f9;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #111;
  }

  .search-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
  }

  .search-info h4 {
    margin: 0;
    font-size: 14px;
    color: #111;
  }

  .search-info p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #666;
  }

  .search-item-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
  }

  .search-item-link:visited,
  .search-item-link:hover,
  .search-item-link:active {
    text-decoration: none !important;
    color: inherit !important;
  }

  .search-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 4px;
    width: 100%;
    border: 1px solid #ddd;
  }

  .search-suggestions li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #eee;
  }

  .search-suggestions li:hover {
    background-color: #f1f1f1;
  }

  .search-suggestions li:last-child {
    border-bottom: none;
  }

  .search-item:hover {
    background-color: #eaeaea;
    cursor: pointer;
    transition: background 0.2s ease;
  }
}

@media (min-width: 882px) {
  #searchBarContainer {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 100%; /* You can override this */
    background: white;
    z-index: 1000;
    padding: 10px 20px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: none;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    border-radius: 10px;
  }

  #searchBarContainer.active {
    display: flex;
  }

  .search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    z-index: 999;
  }

  #searchInput {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
  }

  #clearSearch {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    z-index: 2;
  }

  #searchOverlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.45);
    z-index: 900;
    display: none;
  }

  #searchOverlay.visible {
    display: block;
  }

  #searchResultsWrapper {
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 10px;
  }

  #searchScrollableArea {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    z-index: 1001;
  }

  .search-item {
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
  }

  .search-info h4 {
    margin: 0;
    font-size: 16px;
    color: #111;
  }

  .search-info p {
    margin: 3px 0 0;
    font-size: 14px;
    color: #666;
  }

  .search-item-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
  }

  .search-item-link:visited,
  .search-item-link:hover,
  .search-item-link:active {
    text-decoration: none !important;
    color: inherit !important;
  }

  .search-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 4px;
    width: 100%;
    border: 1px solid #ddd;
  }

  .search-suggestions li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #eee;
  }

  .search-suggestions li:hover {
    background-color: #f1f1f1;
  }

  .search-suggestions li:last-child {
    border-bottom: none;
  }

  .search-item:hover {
    background-color: #eaeaea;
    cursor: pointer;
    transition: background 0.2s ease;
  }
}


@media (min-width: 769px) {
  h1 {
    font-size: 30px;
  }
  
  h2 {
    font-size: 50px;
  }
  
  h3 {
    font-size: 28px;
  }
  
  h5 {
    font-size: 14px;
  }
  
  h4, h6 {
    font-size: 30px;
  }
  
  p {
    font-size: 15px;
  }
  /* === DESKTOP NAVBAR LAYOUT === */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95); /* subtle light tint */
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* faint shadow */
  }
  
  .nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  /* Position logo on the far left */
  .logo {
    display: block;
    order: 0;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }

  .logo-img {
    height: 50px;
  }
  
  /* Show nav links inline for desktop */
  #navbar {
    display: flex;
    gap: 30px;
  }

  #navbar a {
    color: #111; /* dark links for light background */
    text-decoration: none;
    font-weight: 500;
  }
  
  /* Make sure nav-wrapper is visible on desktop */
  .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: flex-start;
  }
  
  /* Search and cart on right */
  .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .nav-right i,
  .nav-right button {
    font-size: 18px;
    color: #222; /* Updated: dark icon color for white background */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  #navbar a:hover {
    color: #333;
  }
  
  .nav-right i:hover,
  .nav-right button:hover {
    color: #555; /* Optional: subtle hover color */
  }
  
  .cart-wrapper {
    position: relative;
    display: inline-block;
  }
  
  #cart-count {
    position: absolute;
    top: -4px;
    right: -7px;
    background: crimson;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
  }
  
  .cart-link {
    position: relative;
    display: inline-block;
  }
  
  body.sticky-footer, html.sticky-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  body.sticky-footer main {
    flex-grow: 1;
  }
}

/* 3 products per row: 700px to 1000px */
@media (max-width: 1000px) and (min-width: 700px) {
  .pro-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
  }
}

/* ========== ACTIVE NAV LINK ========== */
nav a.active {
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #666;
}

/* ========== PRODUCTS GRID ========== */
#products {
  text-align: center;
  padding: 40px 20px;
}

/* 4 products per row: screens wider than 1000px */
@media (min-width: 1001px) {
  .pro-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
  }
}
  
.pro {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  transition: 0.3s ease;
  position: relative;
}

.pro:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pro img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.pro .des {
  text-align: left;
  padding: 10px 0;
}

.pro .des span {
  font-size: 12px;
  color: #888;
}

.pro .des h5 {
  font-size: 14px;
  color: #222;
  margin-top: 5px;
}

.pro .des h4 {
  font-size: 16px;
  font-weight: 700;
  color: #444;
  margin-top: 5px;
}

.add-to-cart-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: transparent;  /* or a color if you want background */
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 5;
}

.add-to-cart-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);  /* light hover */
}

.btn-icon {
  width: 24px;
  height: 24px;
}

/* === PRODUCT CARD HOVER POP-UP === */
.pro {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pro:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* === PRODUCT IMAGE SWAP === */
.product-img {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  display: block;
  border-radius: 0px;
}

.product-img .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.pro:hover .hover-img {
  opacity: 1;
}

.pro:hover .main-img {
  opacity: 0;
}

.pro-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ==== HERO ==== */
#hero {
  background-image: url('IMAGE (5).jpg');
  height: 90vh;
  background-size: cover;
  background-position: center;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

#hero h1 {
  font-size: 48px;
  color: #fff;
}

#hero p {
  font-size: 18px;
  margin: 15px 0;
}

#hero button {
  padding: 15px 90px;
  font-size: 16px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.3s ease, border 0.3s ease;
}

#hero button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

#formSuccessMessage {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1e20;
  font-weight: 600;
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 20px;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#formSuccessMessage .icon {
  background-color: #2b7a4b;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
}

#formSuccessMessage.fade-out {
  opacity: 0;
  transition: opacity 2s ease;
}

.read-more {
  color: #222;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.popup {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  position: relative;
  max-height: 90vh;       /* Limit height to screen size */
  overflow-y: auto;       /* Allow vertical scrolling */
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
}

.popup h2 {
  margin-top: 0;
}

#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  font-size: 24px;
  font-weight: bold;
}

/* ==== NEWSLETTER ==== */
#newsletter {
  background: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

#newsletter form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

#newsletter input {
  padding: 10px;
  width: 250px;
  border: none;
  margin-right: 10px;
}

#newsletter button {
  padding: 10px 20px;
  background: #46bd89;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.checkout-bar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==== MODALS ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Allows full-page scroll on small screens */
  background-color: rgba(0, 0, 0, 0.4);
  padding: 40px 20px; /* Adds spacing around the modal content */
  box-sizing: border-box;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;        /* Slightly more height for taller viewports */
  overflow-y: auto;        /* Enable vertical scroll */
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;  /* Prevents padding from breaking sizing */
}

.modal-content h3 {
  margin-top: 0;
}

.modal .close {
  color: #aaa;
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal .close:hover {
  color: #000;
}

@media (max-width: 600px) {
  .modal-content {
    max-height: 70vh;
    padding: 20px;
  }
}

/* 2 products per row: 350px to 699px */
@media (max-width: 699px) and (min-width: 350px) {
  .pro-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .section-p1 {
    padding: 20px;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 30px 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .nav-left {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  #bar.hamburger-icon {
    display: block;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
  }
  
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .logo-img {
    height: 42px;
    display: block;
  }
  
  .nav-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .nav-wrapper {
    position: fixed;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 998;
    transition: left 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
  }

  .nav-wrapper.active {
    left: 0;
  }

  #navbar {
    display: flex;
    flex-direction: column;
    padding: 80px 20px 30px;
    gap: 20px;
  }

  #navbar a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
  }
  
  .close-icon {
    display: block !important;
    position: absolute;
    top: 20px;
    right: 20px;
    height: 28px;
    width: 28px;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.2s ease;
  }
  
  .close-icon:hover {
    opacity: 0.7;
  }
  
  .shop-card {
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .shop-card .product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 4px;
  }
  
  .shop-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .shop-card .des {
    padding-top: 6px;
    text-align: left;
  }
  
  .shop-card .des h5 {
    font-size: 13px;
    margin: 4px 0 2px;
  }
  
  .shop-card .des h4 {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
  }
  
  .thrift-btn {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .empty-cart-mobile {
    text-align: center;
    padding: 20px;
  }

  .proceed-to-shop-btn {
    margin-top: 12px;
    padding: 10px 18px;
    background: #f1f1f1;
    color: #222;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
  }

  .proceed-to-shop-btn:hover {
    background: #333;
    color: #fff;
  }

  .empty-cart-message {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .form-group {
    width: 100%;
  }
  
  .contact-form {
    padding: 0 10px;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  .btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
  }
}

/* 1 product per row: 99px to 349px */
@media (max-width: 349px) and (min-width: 99px) {
  .pro-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 30px;
  }
  
  h2 {
    font-size: 30px;
  }
  
  #header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }
  
  .logo-img {
    height: 42px;
  }
  
  .logo {
    position: absolute;
    left: 50%;
    top: 50%; /* Center vertically too */
    transform: translate(-50%, -50%);
    z-index: 10;
  }
  
  #bar.hamburger-icon {
    display: block;         /* Ensure it’s visible */
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;        /* Good for UX */
    z-index: 15;            /* Make sure it's above other elements */
  }
  
  .nav-icons {
    margin-top: 10px;
  }
  
  .nav-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
  }
  
  .navbar {
    padding: 30px 0px;
  }

  #bar.hamburger-icon {
    height: 28px;
  }
  
  .btn-icon {
    width: 24px;
    height: 24px;
  }
  
  .shop-grid .pro {
    padding: 4px;
    background: #fff;
    border-radius: 2px;
    box-sizing: border-box;
  }

  .shop-grid .product-img {
    height: 230px;
    border-radius: 2px;
  }

  .shop-grid .des h5 {
    font-size: 13px;
    margin: 4px 0 2px;
  }

  .shop-grid .des h4 {
    font-size: 14px;
    font-weight: bold;
  }

  .pro-container .pro {
    padding: 4px;
    background: #fff;
    border-radius: 2px;
    box-sizing: border-box;
  }

  .pro-container .product-img {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 2px;
  }

  .pro-container .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pro-container .des {
    padding-top: 6px;
    text-align: left;
    width: 110px;
  }

  .pro-container .des h5 {
    font-size: 13px;
    margin: 4px 0 2px;
  }

  .pro-container .des h4 {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
  }

  .pro-container .add-to-cart-btn {
    bottom: 6px;
    right: 6px;
    padding: 6px;
  }

  .pro-container .btn-icon {
    width: 22px;
    height: 22px;
  }

}

@media (max-width: 369px) and (min-width: 200px) {
  /* Typography */
  h1, h2 {
    font-size: 20px;
  }

  #hero button {
    padding: 12px 60px;
  }
  
  .pro-container {
    padding: 0px;
    gap: 1px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pro-container .product-img {
    height: 120px;
    width: 125px;
    
  }
  
  .pro-container .des h5,
  .pro-container .des h4 {
    font-size: 12px;
  }
  
  .pro-container .btn-icon,
  .btn-icon {
    width: 18px;
    height: 18px;
  }
  
  #cart-count {
    position: absolute;
    top: -3px;
    right: -8px;
    width: 15px;
    background-color: crimson;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    z-index: 2;
    display: none;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 30px 10px;
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .nav-left {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    z-index: 10;
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
  
  #bar.hamburger-icon {
    display: block !important;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    z-index: 15;
    cursor: pointer;
  }
  
  .close-icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    height: 28px;
    width: 28px;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.2s ease;
  }
  
  .close-icon:hover {
    opacity: 0.7;
  }
  
  .nav-wrapper {
    position: fixed;
    top: 0;
    left: -70%;
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 998;
    transition: left 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
  }
  
  .nav-wrapper.active {
    left: 0;
  }
  
  #navbar {
    display: flex;
    flex-direction: column;
    padding: 80px 67px 80px;
    gap: 50px;
  }
  
  #navbar a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
  }
  
  #navbar a:hover {
    color: #46bd89;
  }
  
  .btn-icon {
    width: 20px;
    height: 20px;
  }
  
  .nav-icons {
    margin-top: 10px;
  }
  
  #header {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Shop cards / grid */
  .shop-grid .product-img {
    height: 140px;
  }
  
  .shop-grid .des h5 {
    font-size: 12px;
  }

  .shop-grid .des h4 {
    font-size: 13px;
    font-weight: bold;
  }

  .shop-grid .pro,
  .pro-container .pro {
    padding: 4px;
    background: #fff;
    border-radius: 2px;
    box-sizing: border-box;
  }

  /* Fix overflow and scale */
  body {
    overflow-x: hidden;
  }
}



/* ===============================
   UNIVERSAL FIX for #searchBarContainer on 200px–350px screens
   =============================== */
@media screen and (max-width: 415px) and (min-width: 200px) {
  /* Overlay that covers entire screen for outside-tap close */
  #searchOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    display: none;
  }

  #searchOverlay.visible {
    display: block;
  }

  #searchBarContainer {
    width: 90% !important;
    max-width: 90% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    z-index: 1000;
    position: fixed;
    top: 70px;
    background: rgba(255, 255, 255, 0.98);
  }
  
  #searchBarContainer {
    display: none; /* hide by default */
  }
  
  #searchBarContainer.active {
    display: flex; /* show when active */
  }

  /* 🔐 Move this inside the media query */
  body.search-open {
    overflow: hidden;
    touch-action: none;
    height: 100vh;
  }

  .search-input-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  #searchInput {
    flex: 1 1 100%;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  #clearSearch {
    font-size: 30px;
    top: 20px;
    right: 8px;
  }

  #searchScrollableArea {
    max-height: 150px;
    overflow-y: auto;
    gap: 10px;
  }

  .search-item {
    padding: 8px 10px;
    font-size: 13px;
    gap: 8px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f9f9f9;
  }

  .search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
  }

  .search-info h4 {
    font-size: 13px;
    margin: 0;
    color: #111;
  }

  .search-info p {
    font-size: 12px;
    color: #666;
    margin: 2px 0 0;
  }

  .search-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    width: 100%;
  }

  .search-suggestions li {
    font-size: 13px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
  }

  .search-suggestions li:hover {
    background-color: #f1f1f1;
  }

  .search-suggestions li:last-child {
    border-bottom: none;
  }

  #noResultsMessage {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
  }
}



