/* ========== Bulk Buy Pages ========== */

/* --- Hero --- */
.bulk-hero {
  background: linear-gradient(135deg, #1a2a0a 0%, #2d4a14 50%, #1a2a0a 100%);
  position: relative;
  padding: 56px 20px;
  text-align: center;
  overflow: hidden;
}
.bulk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/about.webp') center / cover no-repeat;
  opacity: 0.1;
}
.bulk-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.bulk-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4em;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.bulk-hero-subtitle {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
  line-height: 1.7;
}
.bulk-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.bulk-hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82em;
  font-weight: 600;
}

/* --- Page Layout --- */
.bulk-page-layout {
  display: flex;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  align-items: flex-start;
}
.bulk-main-content {
  flex: 1 1 0;
  min-width: 0;
}
.bulk-page-layout .search-featured {
  flex: 0 0 220px;
  min-width: 0;
}

/* --- CTA Bar --- */
.bulk-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.bulk-cta-bar h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}
.bulk-suggest-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #556B2F;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.bulk-suggest-btn:hover {
  background: #3f5222;
  transform: translateY(-1px);
}

/* --- Listings Grid --- */
.bulk-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* --- Listing Card --- */
.bulk-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
}
.bulk-card:hover {
  box-shadow: 0 4px 16px rgba(85, 107, 47, 0.14);
  border-color: #a8c060;
  transform: translateY(-2px);
}
.bulk-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  overflow: hidden;
}
.bulk-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.bulk-card:hover .bulk-card-img-wrap img {
  transform: scale(1.04);
}
.bulk-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2.5rem;
}
.bulk-interest-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #556B2F;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.bulk-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.bulk-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.35;
}
.bulk-card-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3d5020;
  margin: 0;
}
.bulk-card-desc {
  font-size: 0.83rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bulk-card-footer {
  margin-top: auto;
  padding-top: 10px;
}
.bulk-interest-btn {
  width: 100%;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid #556B2F;
  background: #556B2F;
  color: #fff;
}
.bulk-interest-btn.registered {
  background: transparent;
  color: #556B2F;
}
.bulk-interest-btn:hover {
  background: #3f5222;
  border-color: #3f5222;
  color: #fff;
}
.bulk-interest-btn:disabled {
  opacity: 0.65;
  cursor: default;
}
.bulk-login-prompt {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 6px;
}
.bulk-login-prompt a {
  color: #556B2F;
  font-weight: 600;
  text-decoration: none;
}
.bulk-login-prompt a:hover { text-decoration: underline; }

/* --- Empty State --- */
.bulk-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 0.95rem;
}
.bulk-empty p { margin: 0 0 16px; }

/* --- Suggestion Form Page --- */
.bulk-suggest-wrap {
  max-width: 680px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
.bulk-suggest-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 32px 36px;
}
.bulk-suggest-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid #556B2F;
}
.bulk-suggest-subtitle {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 24px;
}
.bulk-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bulk-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bulk-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #3a4a25;
}
.bulk-form .field-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0;
}
.bulk-form input[type="text"],
.bulk-form input[type="number"],
.bulk-form textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #d4dfc0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1c2b0e;
  background: #fafcf7;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.bulk-form input:focus,
.bulk-form textarea:focus {
  border-color: #556B2F;
  box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.15);
  background: #fff;
}
.bulk-form textarea {
  resize: vertical;
  min-height: 120px;
}
.bulk-file-input { display: none; }

.bulk-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: #eef4e4;
  border: 1.5px dashed #8a9e5a;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3a5a0a;
  transition: background 0.18s, border-color 0.18s;
  width: fit-content;
}
.bulk-upload-btn:hover {
  background: #e0ecd0;
  border-color: #556B2F;
}
.bulk-upload-filename {
  font-size: 0.8rem;
  color: #556B2F;
  font-weight: 600;
  margin: 2px 0 0;
  word-break: break-all;
}
.bulk-form-submit {
  width: 100%;
  padding: 12px;
  background: #556B2F;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.bulk-form-submit:hover { background: #3f5222; }

.bulk-flash {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.bulk-flash-success {
  background: #e8f5e9;
  color: #2e6b35;
  border: 1px solid #b6d9ba;
}
.bulk-flash-error {
  background: #fdf0f0;
  color: #9b2c2c;
  border: 1px solid #f5c6c6;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .bulk-page-layout {
    flex-direction: column;
  }
  .bulk-page-layout .search-featured {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .bulk-page-layout .latest-ads {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .bulk-hero-title { font-size: 1.8em; }
  .bulk-suggest-card { padding: 24px 20px; }
  .bulk-listings-grid { grid-template-columns: 1fr; }
}
