/* BASE */
*{
  margin: 0;
  padding-left: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background-color: #f1f1f1; /* DARKER WHITE */
  color: #000;
  overflow-x: hidden;
}

main {
  margin-top: 40px;
}

.intro-msg {
  font-size: 30px;
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}

.hidden{
  display: block;
  text-align: center;
}

/* HEADER */
header {
  background-color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* TOP ROW */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #ddd;
}

#menu-toggle {
    cursor: pointer;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-btn {
  background-color: #ff5500;
  color: #fff;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 14px;
}

.seller-btn:hover {
  background-color: #ff5500cb;
  color: #fff;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 14px;
}

/* SEARCH ROW */
/* --- Search Row --- */
.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  min-width: 0;
}

/* --- Search Bar --- */
.search-box {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
   flex: 1 1 auto; /* ✅ allows shrinking if needed */
  min-width: 0;    /* ✅ prevents overflow */
  max-width: 100%;
}

.search-box i {
  margin-right: 8px;
  color: #888;
  font-size: 14px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  background: transparent;
  flex: 1;
    min-width: 0;
    width: auto;
}

/* --- Icon Links (Filter + Cart) --- */
.icon-link {
  font-size: 20px;
  color: #333;
  text-decoration: none;
  position: relative;
}

/* --- Cart Badge --- */
#cart-count-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff5500;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
  font-weight: bold;
}


.cart-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  font-size: 20px;
}


.fa-shopping-cart{
  color: black;
  font-size: larger;
}

.fa-shopping-cart:hover{
  color: #ff5500cb;
}

.fas-fa-filter{
  color: black;
  font-size: larger;
}

.cart-link {
  margin-left: 12px;
  color: #000;
  font-size: 18px;
}

/* SLIDE-OUT NAV MENU */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
  z-index: 1100;
}

#mobile-menu.show {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

#menu-close {
  font-size: 20px;
  cursor: pointer;
}

#menu-close:hover {
  font-size: 20px;
  cursor: pointer;
  background: #ff5500;
}

/* NAV LINKS */
#mobile-menu ul {
  list-style: none;
  padding: 0;
}

#mobile-menu li {
  margin-bottom: 16px;
}

#mobile-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 500;
}

#mobile-menu li a:hover {
  background: #ffefea;
  color: #ff5500;
}

/* INFO BANNER */
.info-banner {
  background-color: #ffefea;
  padding: 14px 16px;
  font-size: 14px;
  text-align: center;
  color: #222;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  margin-top: 130px; /* PUSH BELOW FIXED HEADER */
}

.info-banner a {
  text-decoration: underline;
}

/* BACK TO TOP BAR */
.back-to-top {
  background-color: #ff5500;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* FOOTER STYLING */
footer {
  background-color: #222; /* DARK BACKGROUND FOR STRONG CONTRAST */
  color: #fff;
  text-align: center;
  padding: 30px 16px;
}

/* SUBSCRIPTION FORM */
#subscribe-form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 0;
}

#subscribe-form input[type="text"] {
  padding: 10px 14px;
  border: none;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  font-size: 14px;
  outline: none;
  width: 220px;
}

#subscribe-form button {
  padding: 10px 18px;
  border: none;
  background-color: #ff5500;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#subscribe-form button:hover {
  background-color: #e24a00;
}

/* FOOTER LINKS */
.footer-links {
  margin-top: 12px;
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

/* COPYRIGHT TEXT */
.footer-copy {
  font-size: 13px;
  color: #aaa;
  margin-top: 10px;
}

/* ✅ GRID CONTAINER FOR PRODUCTS */
.product-grid {
  display: grid;
   grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1rem;
  width: 100%;
}

/* ✅ PRODUCT CARD STYLING */
.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


/* ✅ PRODUCT IMAGE */
.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ✅ PRODUCT NAME */
.product-name {
  font-size: 1rem;
  padding: 0.5rem 0.8rem 0 0.8rem;
  color: #111;
}

/* ✅ PRODUCT PRICE */
.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem 0.6rem 0.8rem;
  color: #000;
}

/* ✅ BUTTONS CONTAINER */
.card-buttons {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border-top: 1px solid #eee;
}

/* ✅ ORDER NOW BUTTON */
.order-now {
  background: #ff5500;
  color: white;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-now:hover {
  background: #c74708;
  color: white;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ✅ ADD TO CART ICON */
.add-to-cart {
  font-size: 1.3rem;
  color: #000;
  cursor: pointer;
  transition: color 0.3s;
}

.add-to-cart:hover {
  color: #ff5500;
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .order-now {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .product-image-gallery img {
    max-width: 100%;
    height: auto;
  }

  .search-box input {
    font-size: 12px;
  }

  .icon-link {
    font-size: 18px;
  }

  #cart-count-badge {
    font-size: 9px;
    padding: 1px 5px;
  }
}

