/* Homepage — proportional layout v5 */

body.ls-home {
  background: #f8fafc;
}

body.ls-home .ls-main {
  max-width: 960px;
  padding: 0.75rem 1rem 0;
}

/* legacy header removed — public uses Tailwind header in layout-start */

/* Hero banner — foto outlet + overlay */
.ls-hero-banner {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #0c4a6e;
}

@media (min-width: 720px) {
  .ls-hero-banner {
    height: 320px;
    border-radius: 20px;
    margin-bottom: 1.25rem;
  }
}

.ls-hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.2) 100%);
}

.ls-hero-banner-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem 1.25rem;
  color: #fff;
}

@media (min-width: 720px) {
  .ls-hero-banner-content {
    padding: 1.75rem 2rem;
  }
}

.ls-hero-banner-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.ls-hero-banner h1 {
  font-size: clamp(1.25rem, 4.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  color: #fff;
}

.ls-hero-banner-lead {
  font-size: 0.82rem;
  opacity: 0.92;
  max-width: 32rem;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.ls-hero-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ls-hero-banner .ls-btn-hero-outline {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  color: #fff !important;
}

.ls-hero-banner .ls-btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Quick menu dari produk — gaya MitraJual */
.ls-home-quick {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 1.25rem;
  padding-bottom: 0.15rem;
}

.ls-home-quick::-webkit-scrollbar {
  display: none;
}

.ls-home-quick-item {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-height: 88px;
  padding: 0.65rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ls-home-quick-item:hover {
  border-color: #bae6fd;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.ls-home-quick-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e0f2fe;
  font-size: 1.1rem;
}

.ls-home-quick-item strong {
  font-size: 0.68rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ls-home-quick-price {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-dark);
}

@media (min-width: 640px) {
  .ls-home-quick-item {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Stats */
body.ls-home .ls-stat-strip {
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Promo */
.ls-home .ls-promo {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
}

.ls-home .ls-promo h2 {
  font-size: 1rem;
  margin: 0.25rem 0 0.35rem;
}

.ls-home .ls-promo p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Sections */
body.ls-home .ls-section {
  margin-bottom: 1.75rem;
}

body.ls-home .ls-section-head {
  margin-bottom: 0.85rem;
}

body.ls-home .ls-section-head h2 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

body.ls-home .ls-section-head .ls-muted {
  font-size: 0.82rem;
}

/* Price grid */
.ls-home .ls-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .ls-home .ls-price-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

.ls-home .ls-price-card {
  padding: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.ls-price-thumb {
  height: 120px;
  overflow: hidden;
  background: #e2e8f0;
}

@media (min-width: 640px) {
  .ls-price-thumb { height: 130px; }
}

.ls-price-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ls-price-body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.ls-price-body h3 {
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.ls-price-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ls-price-amount {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-dark);
  margin: 0;
}

.ls-price-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

/* Gallery */
.ls-home .ls-gallery-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .ls-home .ls-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ls-home .ls-gallery-card {
  padding: 0;
  overflow: hidden;
}

.ls-gallery-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.ls-gallery-half {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f5f9;
}

.ls-gallery-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ls-gallery-label {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 1;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.ls-gallery-label-after {
  background: rgba(22, 163, 74, 0.8);
}

.ls-gallery-info {
  padding: 0.65rem 0.85rem;
}

.ls-gallery-info h3 {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.ls-gallery-info p {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

/* Member banner */
.ls-home-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
}

.ls-home-member h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.ls-home-member .ls-muted {
  font-size: 0.8rem;
  margin: 0;
}

.ls-home-member .ls-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

/* Track CTA */
.ls-home .ls-track-cta {
  margin-bottom: 1.5rem;
  padding: 1.15rem;
  text-align: center;
}

.ls-home .ls-track-cta h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ls-home .ls-track-cta .ls-muted {
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

/* Site footer — gaya Citra Harmoni */
.ls-site-footer {
  margin: 0 -1rem;
  padding: 2rem 1.25rem calc(var(--bottom-nav-h) + 1.25rem);
  background: #0f172a;
  color: #94a3b8;
  border-radius: 24px 24px 0 0;
}

@media (min-width: 720px) {
  .ls-site-footer {
    margin: 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: 1.5rem;
  }

  body.ls-home .ls-main {
    padding-bottom: 0;
  }
}

.ls-site-footer-inner {
  display: grid;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 1.25rem;
}

@media (min-width: 640px) {
  .ls-site-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .ls-site-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.ls-site-footer-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.ls-site-footer-tagline {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.ls-site-footer-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.65rem;
}

.ls-site-footer-links,
.ls-site-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ls-site-footer-links a,
.ls-site-footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.ls-site-footer-links a:hover,
.ls-site-footer-contact a:hover {
  color: #38bdf8;
}

.ls-site-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.ls-site-footer-ico {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.ls-site-footer-address {
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}

.ls-site-footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.ls-site-footer-bottom p {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
}

/* Mobile */
@media (max-width: 480px) {
  .ls-home .ls-price-grid {
    grid-template-columns: 1fr;
  }

  .ls-price-thumb {
    height: 140px;
  }

  .ls-hero-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .ls-hero-banner-actions .ls-btn {
    width: 100%;
    text-align: center;
  }

  .ls-home-member {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .ls-home-member .ls-btn {
    width: 100%;
  }
}
