/* Hero Section */
.hero-section {
  background-color: var(--navy);
  padding: 36px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, var(--navy), var(--gold), var(--navy)) 1;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(201, 168, 76, 0.12);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  color: var(--white);
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-title span {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--gold-pale);
  font-size: 0.95rem;
  margin-bottom: 24px;
  font-weight: 300;
}

.hero-cta {
  max-width: 200px;
  margin: 0 auto 28px;
}

.hero-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 8px;
  border-radius: var(--radius-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Home Section Wrappers */
.home-section {
  padding: 24px 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--gold);
}

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

/* Search Bar Card */
.search-card-container {
  margin-top: -16px;
  padding: 0 16px;
  z-index: 10;
  position: relative;
}

.search-card {
  background-color: var(--white);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--cream);
  outline: none;
}

.search-input:focus {
  border-color: var(--gold);
  background-color: var(--white);
}

.search-icon-left {
  position: absolute;
  left: 16px;
  color: var(--navy-light);
  pointer-events: none;
  font-size: 1.05rem;
}

.search-filter-right {
  position: absolute;
  right: 16px;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.05rem;
}

/* Shop by Category (8 icons) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.category-card {
  background-color: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.category-icon-wrapper {
  width: 42px;
  height: 42px;
  background-color: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.15rem;
}

.category-card:hover .category-icon-wrapper {
  background-color: var(--navy);
  color: var(--gold-light);
}

.category-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Shop by Location */
.location-tabs {
  display: flex;
  background-color: rgba(13, 27, 62, 0.05);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 16px;
}

.location-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}

.location-tab.active {
  background-color: var(--navy);
  color: var(--gold-light);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.location-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 168, 76, 0.1);
  cursor: pointer;
}

.location-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.location-icon {
  color: var(--gold);
  font-size: 1.1rem;
}

.location-info {
  display: flex;
  flex-direction: column;
}

.location-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.location-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Trending Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 168, 76, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 110%; /* Elegant aspect ratio for clothing */
  background-color: var(--gold-pale);
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
}

.wishlist-heart-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.wishlist-heart-overlay.active {
  color: #e53e3e;
}

.wishlist-heart-overlay:hover {
  transform: scale(1.1);
}

.product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.25;
  height: 2.5em; /* limit to 2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-seller {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-location {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.product-actions .btn {
  padding: 8px 10px;
  font-size: 0.78rem;
}

/* Top Sellers */
.sellers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seller-list-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0; /* allows text truncation */
}

.seller-shop-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.seller-shop-loc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.seller-shop-products {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
}

.seller-shop-btn {
  padding: 6px 12px !important;
  font-size: 0.72rem !important;
  width: auto !important;
  flex-shrink: 0;
}

/* Why ZestyZila */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.why-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 168, 76, 0.08);
}

.why-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.why-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.why-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Become Seller Banner */
.become-seller-banner {
  background-color: var(--navy);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.banner-tag {
  display: inline-block;
  background-color: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.banner-title {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.banner-subtitle {
  color: var(--gold-pale);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.banner-btn {
  max-width: 180px;
  margin: 0 auto;
}

/* Review Cards */
.reviews-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201, 168, 76, 0.08);
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviewer-img-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gold-pale);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.reviewer-name-city {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.reviewer-city {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.review-stars {
  color: var(--gold);
  font-size: 0.75rem;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}
