/* =====================================================
   GLOBAL RESET
===================================================== */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #eaeaea;
}

/* =====================================================
   SEARCH PAGE WRAPPER (IMPORTANT)
===================================================== */

.search-page {
  min-height: calc(100vh - 220px); /* header + footer height */
  background-color: #eaeaea;
  padding-bottom: 80px;
}

/* =====================================================
   SEARCH BAR
===================================================== */

.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 40px 0 30px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 560px;
  max-width: 92%;
  background: #ffffff;
  border: 1px solid #111;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 15px;
  color: #111;
  background: transparent;
}

.search-bar button {
  background: none;
  border: none;
  padding: 0 14px;
  font-size: 16px;
  cursor: pointer;
  color: #111;
}

.search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}

/* Clear (X) button */
.close-btn {
  position: absolute;
  right: -36px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  color: #111;
}

/* =====================================================
   RESULTS CONTAINER
===================================================== */

.results-box {
  display: none;              /* hidden by default */
  width: 100%;
  max-width: 1200px;
  margin: 80px auto 0;
}

.results-box.show {
  display: block;
}

/* =====================================================
   RESULTS TITLE
===================================================== */

.results-title {
  padding: 0 20px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 22px;
}

/* =====================================================
   PRODUCT GRID
===================================================== */

#productResults {
  display: none;              /* IMPORTANT */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

#productResults.show {
  display: grid;
}

/* =====================================================
   PRODUCT CARD
===================================================== */

.product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  cursor: pointer;
  transition: all 0.25s ease;
}

.product:hover {
  border-color: #b27b63;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* =====================================================
   PRODUCT IMAGE
===================================================== */

.product img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* =====================================================
   PRODUCT NAME
===================================================== */

.product-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* =====================================================
   NO RESULTS MESSAGE
===================================================== */

.no-results {
  display: none;
  text-align: center;
  padding: 80px 0;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #777;
}

/* =====================================================
   SHOW ALL LINK
===================================================== */

.show-all {
  display: none;
  margin: 20px 0 30px;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  text-align: center;
}

.show-all.show {
  display: block;
}

.show-all:hover {
  color: #b27b63;
}

/* =====================================================
   HEADER SAFETY
===================================================== */

nav.navbar {
  z-index: 1000;
}

/* =====================================================
   FOOTER (NORMAL FLOW)
===================================================== */

footer {
  width: 100%;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

  .search-container {
    margin: 30px 0 20px;
  }

  .results-box {
    margin-top: 60px;
  }

  #productResults {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .close-btn {
    right: -28px;
  }
}
.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #111;
}

.product-price {
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

