* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #fff;
  color: #111;
  font-size: clamp(15px, 1.1vw, 17px);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.navbar {
  width: 100%;
  background: #e5e5e5;
}

.navbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: #111;
}

.navbar nav a {
  margin-left: 28px;
  text-decoration: none;
  color: #111;
  font-size: 15px;
}

.page-title {
  text-align: center;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  margin-top: 96px;
  margin-bottom: 28px;
  transition: all 0.4s ease;
}

.page-results .page-title,
.page-product .page-title {
  margin-top: 40px;
  font-size: clamp(22px, 2.2vw, 30px);
}

.search-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  transition: all 0.4s ease;
}

.search-wrapper.small {
  margin-top: 24px;
}

.search-input {
  width: 560px;
  max-width: 92%;
  padding: 18px 22px;
  font-size: 16px;
  border-radius: 14px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.35s ease;
}

.search-wrapper.small .search-input {
  width: 420px;
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 12px;
}

.suggestions {
  margin-top: 56px;
  padding: 40px;
  height: 240px;
  background: #e5e5e5;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.suggestions-title {
  font-weight: 500;
  margin-bottom: 24px;
}

.floating-suggestions {
  position: absolute;
  inset: 0;
}

.floating-suggestions span {
  position: absolute;
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}

.floating-suggestions span:nth-child(1) {
  top: 45%;
  left: 10%;
}
.floating-suggestions span:nth-child(2) {
  top: 60%;
  left: 30%;
  animation-duration: 8s;
}
.floating-suggestions span:nth-child(3) {
  top: 48%;
  left: 50%;
  animation-duration: 6.5s;
}
.floating-suggestions span:nth-child(4) {
  top: 62%;
  left: 68%;
  animation-duration: 8.5s;
}
.floating-suggestions span:nth-child(5) {
  top: 42%;
  left: 82%;
  animation-duration: 7.5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -22px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.shop {
  margin-top: 56px;
}

.results-subtitle {
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
  text-align: center;
}

.filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filters span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 6px;
}

.product-card .brand {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.product-card .retailer {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.product-card .price {
  font-weight: 600;
}

.product-page {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.product-image img {
  width: 100%;
  max-width: 420px;
}

.product-info h1 {
  font-size: clamp(26px, 2.5vw, 36px);
  margin-bottom: 12px;
}

.product-brand {
  color: #666;
  margin-bottom: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.product-actions button {
  padding: 14px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-right: 12px;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-secondary {
  background: #f2f2f2;
}

.product-description {
  margin: 24px 0;
}

.product-description h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-description p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.product-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-meta span {
  background: #f2f2f2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.product-meta {
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.product-meta p {
  margin-bottom: 6px;
}

.product-details {
  margin-bottom: 28px;
}

.product-details h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.redirect-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #777;
}

.btn-primary {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #222;
}

.product-card {
  position: relative;
}

.stock-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  z-index: 2;
}

/* In stock yellow */
.stock-pill.in-stock {
  background: #fff3c4;
  color: #7a5d00;
}

/* Availability may vary */
.stock-pill.out-stock {
  background: #f2f2f2;
  color: #666;
}

/* Stock status (search cards) */
.stock {
  margin: 6px 0 4px;
  font-size: 13px;
  font-weight: 500;
}

.stock.in {
  color: #b38600;
}

.stock.out {
  color: #c00;
}

/* Slight fade for out-of-stock cards */
.product-card.out {
  opacity: 0.6;
}
/* disabled (out-of-stock) product cards */
.product-card.disabled {
  cursor: not-allowed;
}

.product-card.disabled * {
  pointer-events: none;
}

/* stock helper note */
.stock-note {
  font-size: 12px;
  color: #c00;
  line-height: 1.4;
  margin-top: 2px;
}
.feedback-section {
  max-width: 560px;
  margin: 100px auto 60px;
  padding: 20px;
  text-align: center;
}

.feedback-section h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}

.feedback-section p {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

.feedback-section textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  resize: none;
  outline: none;
}

.feedback-section textarea:focus {
  border-color: #111;
}

.feedback-section button {
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.feedback-section button:hover {
  background: #222;
}

.feedback-section button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-status {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}
