/* ORRANET homepage — public/index.php */

:root {
  --landing-dark: #075e54;
  --landing-accent: #25d366;
  --landing-bg: #f7f7f5;
  --landing-surface: #ffffff;
  --landing-text: #111b21;
  --landing-muted: #667781;
  --landing-border: #e2e5e0;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--landing-text);
  background: var(--landing-bg);
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* Header */

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--landing-dark);
}

.landing-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.landing-header__logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.landing-header__login {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 7px 16px;
}

.landing-header__login:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */

.landing-hero {
  background:
    radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
    linear-gradient(160deg, var(--landing-dark), #0a7a6d);
  background-size: 22px 22px, auto;
  color: #fff;
  text-align: center;
  padding: 48px 20px 40px;
}

.landing-hero h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero p {
  font-size: 14px;
  color: #dff5ee;
  margin: 0 0 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero__cta {
  display: inline-block;
  background: var(--landing-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 26px;
  margin-bottom: 28px;
}

.landing-hero__cta:hover {
  background: #1fb856;
}

.landing-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 28px;
  padding: 6px 8px 6px 18px;
  max-width: 500px;
  margin: 0 auto;
}

.landing-search__icon {
  color: var(--landing-muted);
  flex-shrink: 0;
}

.landing-search input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--landing-text);
  background: transparent;
  min-width: 0;
  padding: 8px 0;
}

.landing-search input[type="text"]::placeholder {
  color: var(--landing-muted);
}

.landing-search button {
  flex-shrink: 0;
  background: var(--landing-dark);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Results */

.landing-results {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.landing-section {
  margin-bottom: 32px;
}

.landing-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}

.landing-section h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 18px;
  position: relative;
  padding-left: 14px;
}

.landing-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: var(--landing-accent);
}

.landing-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--landing-muted);
}

.landing-empty__hint {
  font-size: 13px;
}

/* Store cards (used both for the default featured list and search results) */

.store-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.store-card {
  display: block;
  background: var(--landing-surface);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(7, 94, 84, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(7, 94, 84, 0.16);
}

.store-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0efec;
}

.store-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

.store-card__info {
  padding: 14px;
}

.store-card__name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.store-card__description {
  font-size: 12px;
  color: var(--landing-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Product cards */

.landing-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.landing-product-card {
  display: block;
  background: var(--landing-surface);
  overflow: hidden;
  text-decoration: none;
  min-width: 0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(7, 94, 84, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(7, 94, 84, 0.16);
}

.landing-product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0efec;
}

.landing-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--landing-muted);
}

.landing-product-card__info {
  padding: 10px;
}

.landing-product-card__name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-product-card__vendor {
  font-size: 11px;
  color: var(--landing-muted);
  margin-bottom: 6px;
}

.landing-product-card__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--landing-accent);
}

/* Footer */

.landing-footer {
  text-align: center;
  padding: 24px 16px 32px;
  font-size: 12px;
  color: var(--landing-muted);
}

@media (min-width: 600px) {
  .store-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .store-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .landing-product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}