:root {
  --accent: #d35400;
  --muted: #666;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, system-ui, sans-serif;
  margin: 0;
  color: #222;
  background: #fff;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  flex-wrap: wrap;
  gap: 8px;
}
.site-header .logo {
  height: 48px;
}
.btn {
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn.secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.transparent {
  background: transparent;
  color: var(--accent);
}
.search-wrap {
  background: linear-gradient(90deg, #fff 0%, #fff 60%);
  padding: 36px 16px;
  text-align: center;
}
.search-form {
  display: flex;
  max-width: 720px;
  margin: 12px auto;
  gap: 8px;
  width: 100%;
  position: relative;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 24px;
  padding-right: 90px;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}
.search-form .clear-btn {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s;
}
.search-form .clear-btn:hover {
  color: #333;
}
.search-form .search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 20px;
  background: var(--accent);
  border: none;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.search-form .search-btn:hover {
  background: #e67300;
}
.search-form .search-btn svg {
  display: block;
}

/* Search Autocomplete Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 2px;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: #f0f8ff;
}

.search-suggestion-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #f9f9f9;
  flex-shrink: 0;
}

.search-suggestion-content {
  flex: 1;
  min-width: 0;
}

.search-suggestion-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f1111;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-meta {
  font-size: 12px;
  color: #565959;
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-suggestion-price {
  font-weight: 600;
  color: #0f1111;
}

.search-suggestion-category {
  color: #007185;
}

.search-suggestion-icon {
  color: #888;
  flex-shrink: 0;
}

.search-suggestions-header {
  padding: 10px 14px;
  font-size: 12px;
  color: #888;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  background: #f9f9f9;
}

.search-no-suggestions {
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

.hero {
  padding: 80px 24px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  margin: 0;
}
.cta {
  margin-top: 16px;
}
.container {
  max-width: 1400px;
  margin: 28px auto;
  padding: 0 24px;
}
.card {
  background: #fff;
  border: 1px solid #f2f2f2;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
label {
  display: block;
  margin-bottom: 8px;
}
input,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
}
.categories {
  padding: 20px 16px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.cat {
  display: block;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 6px;
  text-align: center;
  color: #333;
  text-decoration: none;
}
.featured {
  padding: 20px 16px;
}
#adsList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
#adsList .ad {
  background: #fff;
  border: 1px solid #f2f2f2;
  padding: 12px;
  border-radius: 8px;
}
.footer {
  background: linear-gradient(90deg, #d35400, #f39c12);
  text-align: center;
  padding: 24px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.site-footer.ecommerce-footer {
  background: #2c2c2c;
  color: #e0e0e0;
  padding: 40px 20px 20px;
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-brand {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.footer-columns {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}
.footer-col a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #999;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.social-icon {
  opacity: 0.7;
  transition: opacity 0.2s;
}
.social-icon:hover {
  opacity: 1;
}
.social-icon img {
  width: 20px;
  height: 20px;
}

/* Section headers with view all link */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  color: #222;
}
.view-all {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}
.view-all:hover {
  color: #e65100;
}

/* Stores grid - compact horizontal layout showing 2 rows max */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  max-height: 360px;
  overflow: hidden;
}

.store-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 160px;
}

.store-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.1);
  transform: translateY(-2px);
}

.store-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid #f5f5f5;
}

.store-logo-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #f39c12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.store-info {
  width: 100%;
}

.store-info h3 {
  font-size: 15px;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-location {
  color: #666;
  font-size: 11px;
  margin: 6px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-location svg {
  flex-shrink: 0;
}

.store-meta {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

/* Ads grid improvements */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ads-grid .ad {
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ads-grid .ad:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.1);
  transform: translateY(-2px);
}

.ads-grid .ad-image {
  width: 100%;
  height: 200px;
  margin: -12px -12px 12px -12px;
  border-radius: 8px 8px 0 0;
}

.ads-grid .ad-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px 0;
}

.ads-grid .ad-body p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Amazon-Style Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: #c45500;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f7f7f7;
  border-bottom: 1px solid #e7e7e7;
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f1111;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 38px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin: 2px 0;
}

.product-rating .stars {
  color: #ffa41c;
  font-size: 14px;
  letter-spacing: 1px;
}

.product-rating .review-count {
  color: #007185;
  font-size: 12px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 4px 0;
}

.price-amount {
  font-size: 24px;
  font-weight: 600;
  color: #0f1111;
  line-height: 1;
}

.price-unit {
  font-size: 14px;
  color: #565959;
}

.product-moq {
  font-size: 12px;
  color: #565959;
  padding: 4px 8px;
  background: #f7f7f7;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.product-supplier {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #565959;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.supplier-name {
  font-weight: 500;
}

.verified-mini {
  background: #067d62;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.delivery-badge {
  font-size: 11px;
  color: #007600;
  font-weight: 600;
  padding: 4px 8px;
  background: #e6f4ea;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.popular-badge {
  font-size: 11px;
  color: #b84800;
  font-weight: 600;
  padding: 4px 8px;
  background: #fef3e2;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
}

.store-popular-badge {
  font-size: 11px;
  color: #b84800;
  font-weight: 600;
  padding: 2px 8px;
  background: #fef3e2;
  border-radius: 10px;
}

.store-views-count {
  font-size: 11px;
  color: #999;
  padding: 2px 6px;
}

/* Empty and error states */
.empty-message,
.error-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 16px;
}

.error-message {
  color: #d32f2f;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 375px;
  overflow: hidden;
  background: #000;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Banner ad link wrapper — fills the whole slide */
.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.carousel-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #fff;
  line-height: 1.2;
}

.carousel-caption p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 400;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-btn svg {
  color: #333;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.carousel-indicators .indicator.active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

/* Old search-wrap styles (keeping for backwards compatibility) */
.search-wrap {
  background: linear-gradient(135deg, #ff7043 0%, #f39c12 100%);
  padding: 60px 16px;
  text-align: center;
  color: #fff;
}

.search-wrap h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #fff;
}

.search-wrap .hint {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  font-weight: 400;
}

/* Featured section spacing */
.featured {
  margin-bottom: 30px;
}

.featured:first-of-type {
  margin-top: 40px;
  margin-bottom: 30px;
}
.large {
  padding: 12px 20px;
  font-size: 16px;
}
.header-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.header-tags .cat {
  display: inline-flex;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 20px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

/* Modal styles for signup role selector */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  padding: 24px;
}
.modal.open {
  display: flex;
}
.modal .modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
}
.modal .modal-content .close {
  position: absolute;
  right: 18px;
  top: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.modal .muted {
  color: var(--muted);
  margin: 6px 0 12px;
}
.modal .modal-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 12px 0 8px;
}
.modal .modal-options .opt {
  flex: 1 1 0;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.modal .modal-options .opt.buyer {
  background: linear-gradient(90deg, #ff7a50, #ff9b57);
  color: #fff;
}
.modal .modal-options .opt.seller {
  background: linear-gradient(90deg, #fff, #fff);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.modal .modal-options .opt.large {
  padding: 14px 20px;
  font-size: 16px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-left .header-tags {
  display: flex;
  gap: 8px;
}
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* User dropdown menu */
.user-dropdown {
  position: relative;
  display: inline-block;
}
.user-dropdown .user {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.user-dropdown .user:hover {
  background: #f5f5f5;
}
.user-notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 100;
  padding-top: 4px;
  margin-top: -4px;
}
.user-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
}
.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
}
.dropdown-item:hover {
  background: #f5f5f5;
  color: var(--accent);
}
.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}
.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}
.notification-badge {
  display: none;
  background: #ff4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  min-width: 18px;
  text-align: center;
}
.sub-header {
  background: #fafafa;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  position: relative;
}

/* Category scroll wrapper with arrows */
.category-scroll-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  color: #333;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--accent);
}

.scroll-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-left {
  left: 8px;
}

.scroll-right {
  right: 8px;
}

.sub-header .header-tags {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 0 60px;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.sub-header .header-tags::-webkit-scrollbar {
  display: none;
}
.sub-header .cat {
  padding: 10px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #333;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}
.sub-header .cat:hover {
  border-color: var(--accent);
  background: #fff5f0;
  color: var(--accent);
}
.sub-header .cat.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
@media (max-width: 720px) {
  .hero-carousel {
    height: 263px;
  }

  .carousel-caption h1 {
    font-size: 24px;
  }

  .carousel-caption p {
    font-size: 14px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .carousel-indicators {
    bottom: 15px;
  }

  .carousel-indicators .indicator {
    width: 8px;
    height: 8px;
  }

  .carousel-indicators .indicator.active {
    width: 20px;
  }

  .search-form {
    flex-direction: column;
  }
  .site-header {
    padding: 10px 12px;
  }
  .scroll-arrow {
    width: 32px;
    height: 32px;
  }
  .hamburger-menu-wrapper {
    margin-left: 8px;
  }
  .hamburger-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .categories-dropdown {
    min-width: 240px;
  }
  .header-tags {
    overflow-x: auto;
    justify-content: flex-start;
    .header-tags .cat {
      flex: 0 0 auto;
    }
    .stores-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    .ads-grid {
      grid-template-columns: 1fr;
    }
    .store-card {
      min-height: 140px;
      padding: 12px;
    }
    .auth-card {
      padding: 24px 20px;
      margin: 16px;
    }
    .form-section {
      padding: 16px;
    }
    .form-row {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .search-wrap h1 {
      font-size: 32px;
    }
    .search-wrap .hint {
      font-size: 16px;
    }
    .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .section-header h2 {
      font-size: 24px;
    }
  }
  @media (max-width: 920px) {
    .header-center {
      order: 3;
      width: 100%;
      padding: 8px;
    }
    .header-left {
      order: 1;
    }
    .header-right {
      order: 2;
    }
    .site-header {
      flex-wrap: wrap;
      gap: 8px;
      padding: 12px;
    }
    .search-form input {
      min-width: 200px;
    }
  }

  /* Signup / seller styles */
  .auth-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 40px;
    max-width: 820px;
    margin: 30px auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  }
  .auth-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
  }
  .auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
  }
  .auth-header p.muted {
    font-size: 15px;
    color: #666;
    margin: 0;
  }
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.auth-header .logo {
  height: 36px;
}
.signup-grid {
  display: block; /* single column centered layout for clarity */
}
.signup-form {
  background: transparent;
}
.form-group,
.form-row,
.fieldset {
  margin-bottom: 14px;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row > div {
  flex: 1;
}
label {
  font-size: 14px;
  color: #2d2d2d;
  margin-bottom: 6px;
  display: block;
}
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
select,
textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e6e6ea;
  background: #fff;
  height: 44px;
  box-sizing: border-box;
}
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
select,
textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e6e6ea;
  background: #fff;
  height: 44px;
  box-sizing: border-box;
}
.fieldset {
  border: 1px solid #f3f4f6;
  padding: 12px;
  border-radius: 10px;
}
.fieldset legend {
  padding: 0 8px;
  font-weight: 600;
}

.logo-row {
  align-items: center;
}
.logo-preview {
  min-height: 62px;
  border: 1px dashed #e6e6ea;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #999;
  padding: 8px;
}
.logo-row > div {
  display: flex;
  flex-direction: column;
}
.logo-preview {
  min-height: 62px;
  border: 1px dashed #e6e6ea;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #999;
  padding: 8px;
  width: 120px;
}

/* select wrap with chevron */
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b6b6b;
  font-size: 14px;
}
.select-wrap {
  position: relative;
  display: block;
}
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #6b6b6b;
  font-size: 14px;
}
.select-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  width: 100%;
  box-sizing: border-box;
}
input[type="file"] {
  padding: 6px 4px;
}

/* Sectioned form styles (Cognito-inspired) */
.form-section {
  background: #fafbfc;
  border: 1px solid #e8eaed;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.section-title {
  margin: 0 0 20px;
  font-size: 18px;
  color: #222;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  display: inline-block;
}
.form-section .form-row {
  gap: 20px;
  margin-bottom: 16px;
}
.form-section .form-row > div {
  display: flex;
  flex-direction: column;
}
.form-section label {
  font-weight: 600;
  color: #444;
  font-size: 14px;
  margin-bottom: 8px;
}
.form-section label .muted {
  font-weight: 400;
  color: #999;
  font-size: 13px;
}

/* Input focus and improvements */
.form-control {
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: #fff;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

/* Primary CTA - full width on small screens, larger on desktop */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8eaed;
}
.btn.primary.large {
  background: linear-gradient(135deg, var(--accent), #f39c12);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn.primary.large:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
}
.btn.link {
  background: transparent;
  border: none;
  color: #666;
  text-decoration: none;
  padding: 14px 20px;
}
.btn.link:hover {
  color: var(--accent);
}
/* Checkbox and terms styling */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.terms-label {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  font-weight: 400;
}
.terms-label a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.terms-label a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .btn.primary.large {
    width: 100%;
  }
  .form-actions {
    flex-direction: column;
  }
}
.btn.small {
  padding: 6px 10px;
  font-size: 13px;
}
.btn.outline {
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
}
.btn.primary.large {
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 10px;
}

.muted {
  color: var(--muted);
}

/* checkbox / terms alignment */
.terms-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.terms-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* make regular selects visually match inputs (single-select) */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
select[multiple] {
  height: auto;
  min-height: 88px;
}

/* Trust strip */
.trust-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #666;
}
.trust-strip img {
  height: 32px;
  opacity: 0.95;
}

/* Footer polish */
.site-footer.ecommerce-footer {
  background: #2c2c2c;
  color: #e0e0e0;
  padding: 40px 20px 20px;
}
.ecommerce-footer .footer-main {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ecommerce-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.footer-columns {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}
.footer-col a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #999;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.social-icon {
  opacity: 0.7;
  transition: opacity 0.2s;
}
.social-icon:hover {
  opacity: 1;
}
.social-icon img {
  width: 20px;
  height: 20px;
  flex: 0 0 220px;
}
.footer-columns {
  display: flex;
  gap: 34px;
  flex: 1 1 auto;
  justify-content: space-between;
}
.ecommerce-footer a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin: 6px 0;
}
.ecommerce-footer h4 {
  color: #fff;
  margin-bottom: 8px;
}
.ecommerce-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
}

@media (max-width: 900px) {
  .ecommerce-footer .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .form-row {
    flex-direction: column;
  }
  .auth-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ecommerce-footer .footer-main {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   AMAZON-STYLE SEARCH RESULTS LAYOUT
   ============================================ */

.search-results-container {
  background: #f5f5f5;
  min-height: 80vh;
  padding: 20px 0;
}

.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: #565959;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #007185;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #c7511f;
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #888;
}

.results-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  background: #fff;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.results-count {
  font-size: 14px;
  color: #565959;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-sort label {
  font-size: 13px;
  color: #565959;
}

.results-sort select {
  padding: 8px 12px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.search-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

/* Left Sidebar Filters */
.filters-sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.filters-sidebar h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid #e7e7e7;
  padding-bottom: 12px;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7e7e7;
}

.filter-group:last-of-type {
  border-bottom: none;
}

.filter-group h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #0f1111;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  color: #565959;
}

.filter-options label:hover {
  color: #c7511f;
}

.filter-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #c7511f;
}

.filter-options .count {
  margin-left: auto;
  color: #888;
  font-size: 12px;
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-range-inputs input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 13px;
}

.price-range-inputs span {
  color: #888;
  font-size: 13px;
}

/* MOQ dropdown */
.moq-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background: #fff;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.15s;
}

.moq-select:hover,
.moq-select:focus {
  border-color: #c7511f;
  outline: none;
}

/* Star rating chip buttons */
.star-rating-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.star-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border: 1.5px solid #d5d9d9;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.star-chip .chip-stars {
  color: #f5a623;
  font-size: 11px;
  letter-spacing: -1px;
}

.star-chip .chip-label {
  color: #555;
}

.star-chip:hover {
  border-color: #c7511f;
  color: #c7511f;
  background: #fff8f4;
}

.star-chip:hover .chip-label {
  color: #c7511f;
}

.star-chip.active {
  border-color: #c7511f;
  background: #c7511f;
  color: #fff;
}

.star-chip.active .chip-stars {
  color: #ffe8a0;
}

.star-chip.active .chip-label {
  color: #fff;
}

.apply-filter-btn {
  padding: 6px 16px;
  background: #f0f2f2;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.apply-filter-btn:hover {
  background: #e3e6e6;
  border-color: #a8a8a8;
}

.clear-filters-btn {
  width: 100%;
  padding: 10px;
  background: #fff;
  color: #007185;
  border: 1px solid #007185;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  transition: all 0.2s;
}

.clear-filters-btn:hover {
  background: #f0f8ff;
}

/* Results Grid */
.results-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  min-height: 400px;
}

.amazon-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.amazon-product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.amazon-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #ccc;
  transform: translateY(-2px);
}

.amazon-product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 8px;
}

.amazon-product-title {
  font-size: 14px;
  color: #0f1111;
  margin: 0 0 8px 0;
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 40px;
}

.amazon-product-card:hover .amazon-product-title {
  color: #c7511f;
}

.amazon-product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

.amazon-stars {
  color: #ffa41c;
  display: flex;
  gap: 2px;
}

.amazon-rating-count {
  color: #007185;
  font-size: 12px;
}

.amazon-product-price {
  font-size: 20px;
  font-weight: 700;
  color: #0f1111;
  margin: 8px 0;
}

.amazon-product-price-small {
  font-size: 12px;
  font-weight: 400;
  color: #565959;
}

.amazon-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.amazon-product-tag {
  background: #f0f2f2;
  color: #565959;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.amazon-product-store {
  font-size: 12px;
  color: #007185;
  margin-top: 8px;
}

.amazon-product-store:hover {
  color: #c7511f;
  text-decoration: underline;
}

.amazon-product-views {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.amazon-badge {
  display: inline-block;
  background: #232f3e;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.amazon-badge.prime {
  background: #00a8e1;
}

/* Empty State */
.amazon-empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1/-1;
}

.amazon-empty-state svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.amazon-empty-state h3 {
  font-size: 20px;
  margin: 0 0 12px 0;
  color: #0f1111;
}

.amazon-empty-state p {
  color: #565959;
  margin: 0 0 24px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .search-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }

  .amazon-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .results-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .amazon-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .amazon-product-card {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .amazon-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Password requirements checklist */
.pwd-requirements {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.78rem;
  line-height: 1.7;
}
.pwd-requirements li {
  list-style: disc;
  color: #c0392b;
  transition: color 0.2s;
}
.pwd-requirements li::marker {
  color: inherit;
}
.pwd-requirements li.req-met {
  color: #27ae60;
}

/* ═══════════════════════════════════════════════════════════════
   AMAZON-STYLE REDESIGN — OVERRIDES & NEW COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Light Header ── */
.site-header {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 8px 16px;
  gap: 10px;
}
.site-header .logo {
  height: 42px;
}
.deliver-to {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.deliver-label {
  font-size: 10px;
  color: #888;
  line-height: 1.2;
}
.deliver-loc {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

/* Search form in dark header */
.site-header .search-form {
  max-width: 900px;
  margin: 0;
  border: 2px solid #febd69;
  border-radius: 4px;
  overflow: hidden;
  gap: 0;
  background: #fff;
}
.site-header .search-form input[type="search"] {
  border: none;
  border-radius: 0;
  padding: 10px 14px;
  font-size: 15px;
  height: 42px;
  padding-right: 14px;
  background: #fff;
}
.site-header .search-form input[type="search"]:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}
.site-header .search-form .search-btn {
  position: static;
  transform: none;
  border-radius: 0;
  background: #febd69;
  width: 46px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
}
.site-header .search-form .search-btn:hover {
  background: #f3a847;
}
.site-header .search-form .search-btn svg {
  stroke: #131921;
}
.site-header .search-form .clear-btn {
  position: static;
  transform: none;
  right: auto;
  width: 32px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
  color: #888;
}

/* Buttons & nav in light header */
.site-header .btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  white-space: nowrap;
}
.site-header .btn:hover {
  background: #b84700;
  border-color: #b84700;
}
.site-header .user-dropdown .user {
  color: #222 !important;
  background: transparent;
}
.site-header .user-dropdown .user:hover {
  background: #f5f5f5 !important;
}
.site-header .header-right nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Orange Sub-nav ── */
.sub-header {
  background: var(--accent);
  border-bottom: 1px solid #b84700;
  padding: 0;
}
.sub-header-inner {
  display: flex;
  align-items: stretch;
  max-width: 100%;
  padding: 0 4px;
  overflow: visible;
}
.all-categories-wrapper {
  position: relative;
  flex-shrink: 0;
}
.all-categories-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  z-index: 1000;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow-y: auto;
}
.all-categories-dropdown.open {
  display: block;
}
.cat-dropdown-group {
  padding: 8px 0;
}
.cat-dropdown-group + .cat-dropdown-group {
  border-top: 1px solid #eee;
}
.cat-dropdown-group h4 {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.06em;
  margin: 0;
}
.cat-dropdown-group a {
  display: block;
  padding: 7px 16px 7px 24px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s;
}
.cat-dropdown-group a:hover {
  background: #fff4ee;
  color: var(--accent);
}
.sub-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 3px;
  flex-shrink: 0;
  margin: 4px 2px;
}
.sub-all-btn:hover {
  border-color: #fff;
}
.sub-header .category-scroll-wrapper {
  flex: 1;
  min-width: 0;
  max-width: none;
}
.sub-header .header-tags {
  padding: 0 44px;
  gap: 0;
  margin-bottom: 0;
}
.sub-header .cat {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 400;
  margin: 4px 0;
}
.sub-header .cat:hover {
  border-color: #fff;
  background: transparent;
  color: #fff;
}
.sub-header .cat.active {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.sub-header .scroll-arrow {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #fff;
  width: 36px;
  height: 36px;
  top: 50%;
}
.sub-header .scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}
.sub-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 3px;
  flex-shrink: 0;
  margin: 4px 0;
}
.sub-nav-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
}
.sub-deal-link {
  color: #fff3cd;
}
.sub-deal-link:hover {
  color: #fff3cd;
}

/* ── Home Sections common layout ── */
.home-section {
  border-bottom: 8px solid #f3f3f3;
}
.home-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 20px;
}
.home-section-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.home-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f1111;
  margin: 0 0 16px 0;
}
.home-section-hdr .home-section-title {
  margin: 0;
}
.home-see-all {
  color: #007185;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  flex-shrink: 0;
}
.home-see-all:hover {
  color: #c45500;
  text-decoration: underline;
}

/* ── Shop by Category tiles ── */
.cat-tiles-section {
  background: #fff;
}
.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 8px 18px;
  background: #f8f8f8;
  border-radius: 8px;
  text-decoration: none;
  color: #0f1111;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    color 0.15s;
  text-align: center;
  border: 1px solid #e8e8e8;
}
.cat-tile:hover {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
  color: #c45500;
}
.cat-tile-icon {
  font-size: 34px;
  margin-bottom: 10px;
  line-height: 1;
}
.cat-tile-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Horizontal scroll carousels ── */
.products-home-section,
.stores-home-section {
  background: #fff;
}
.hscroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hscroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 16px;
  flex: 1;
  min-width: 0;
}
.hscroll-track::-webkit-scrollbar {
  display: none;
}
.hscroll-btn {
  flex-shrink: 0;
  width: 40px;
  height: 90px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #ddd;
  font-size: 30px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    background 0.15s,
    box-shadow 0.15s;
  z-index: 2;
  line-height: 1;
}
.hscroll-btn:hover {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

/* Product cards in horizontal scroll */
.products-hscroll .product-card {
  flex: 0 0 210px;
  width: 210px;
  min-width: 210px;
  margin: 0;
}

/* Store cards in horizontal scroll */
.stores-hscroll {
  align-items: stretch;
}
.stores-hscroll .store-card {
  flex: 0 0 190px;
  width: 190px;
  min-width: 190px;
  height: auto;
  min-height: 150px;
}

/* ── Value Props Bar ── */
.value-props-bar {
  background: #232f3e;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.vp-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.vp-item:last-child {
  border-right: none;
}
.vp-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.vp-text {
  display: flex;
  flex-direction: column;
}
.vp-text strong {
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}
.vp-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Requirements section ── */
.requirements-section {
  background: #fafafa;
}

/* ── CTA Banner ── */
.cta-home-banner {
  background: linear-gradient(135deg, #131921 0%, #232f3e 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  border-bottom: none;
}
.cta-banner-inner {
  max-width: 700px;
  margin: 0 auto;
}
.cta-home-banner h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
}
.cta-home-banner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 30px;
  line-height: 1.6;
}
.cta-banner-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-btn-primary {
  background: #ff9900;
  color: #111;
  padding: 13px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-block;
}
.cta-btn-primary:hover {
  background: #e68a00;
}
.cta-btn-secondary {
  background: transparent;
  color: #fff;
  padding: 13px 30px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.55);
  transition: border-color 0.15s;
  display: inline-block;
}
.cta-btn-secondary:hover {
  border-color: #fff;
}

/* ── Dark Multi-column Footer ── */
.site-footer {
  background: #232f3e;
  color: #ccc;
  font-size: 13px;
}
.footer-back-top {
  background: #37475a;
  text-align: center;
  padding: 14px;
}
.footer-back-top a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.footer-back-top a:hover {
  text-decoration: underline;
}
.footer-links-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 36px 24px;
}
.site-footer .footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
}
.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .footer-col ul li {
  margin-bottom: 8px;
}
.site-footer .footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
}
.site-footer .footer-col ul li a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}
.footer-bottom-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 12px;
}
.footer-bottom-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom-bar p {
  margin: 0;
  color: #888;
  font-size: 12px;
}

/* ── Responsive overrides ── */
@media (max-width: 1100px) {
  .cat-tiles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .value-props-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deliver-to {
    display: none;
  }
}
@media (max-width: 600px) {
  .cat-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .value-props-bar {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sub-nav-link {
    display: none;
  }
  .sub-all-btn {
    display: none;
  }
  .cta-home-banner h2 {
    font-size: 22px;
  }
  .hscroll-btn {
    display: none;
  }
}
