/* Appily Fortyeight — Greens Garden home layout */

.page-home-garden .page-main { background: #fff; }

/* ── Hero slider ── */
.a48g-hero {
  position: relative;
  background: #f3f3f3;
  overflow: hidden;
  min-height: clamp(360px, 52vh, 520px);
}
.a48g-hero-track { position: relative; }
.a48g-hero-slide {
  display: none;
  padding: 2.5rem 0 3rem;
}
.a48g-hero-slide.is-active { display: block; animation: a48gFade .45s ease; }
@keyframes a48gFade {
  from { opacity: .35; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.a48g-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 2rem;
  min-height: 360px;
}
.a48g-hero-kicker {
  margin: 0 0 .75rem;
  color: #8a8a8a;
  font-size: .95rem;
  font-weight: 500;
}
.a48g-hero-copy h1,
.a48g-midhero-copy h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  color: #333;
  letter-spacing: -.02em;
  max-width: 14ch;
}
.a48g-hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.a48g-hero-visual img {
  width: min(460px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}
.a48g-hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--a48-primary); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; z-index: 3; box-shadow: 0 8px 18px rgba(111,186,44,.35);
}
.a48g-hero-nav:hover { background: var(--a48-primary-deep); }
.a48g-hero-nav--prev { left: clamp(.75rem, 3vw, 2rem); }
.a48g-hero-nav--next { right: clamp(.75rem, 3vw, 2rem); }
.a48g-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 1.1rem;
  display: flex; justify-content: center; gap: .45rem; z-index: 3;
}
.a48g-hero-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: #cfcfcf; cursor: pointer; padding: 0;
}
.a48g-hero-dot.is-active { background: var(--a48-primary); }

/* ── Category circles ── */
.a48g-cats { padding: 2.25rem 0 1.25rem; background: #fff; }
.a48g-cats-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  justify-items: center;
}
.a48g-cat {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  text-align: center; width: 100%; max-width: 140px;
}
.a48g-cat-ring {
  width: 108px; height: 108px; border-radius: 50%;
  border: 1px solid #e5e5e5; background: #fff;
  display: grid; place-items: center; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.a48g-cat-ring img {
  width: 72%; height: 72%; object-fit: cover; border-radius: 50%;
}
.a48g-cat-glyph { font-size: 2rem; }
.a48g-cat-name {
  font-size: .92rem; font-weight: 600; color: #444;
  position: relative; padding-bottom: .35rem;
}
.a48g-cat:hover .a48g-cat-ring,
.a48g-cat.is-active .a48g-cat-ring {
  border-color: var(--a48-primary);
  box-shadow: 0 0 0 3px rgba(111,186,44,.12);
}
.a48g-cat.is-active .a48g-cat-name::after,
.a48g-cat:hover .a48g-cat-name::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 28px; height: 2px; background: var(--a48-primary);
}

/* ── Promo banners ── */
.a48g-promos { padding: 1rem 0 2.5rem; }
.a48g-promos-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1.1fr;
  gap: 1rem;
}
.a48g-promo {
  border: 1px solid #ececec; border-radius: 4px; min-height: 220px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.2rem; gap: 1rem; overflow: hidden; background: #fff;
}
.a48g-promo--side img {
  width: min(42%, 150px); aspect-ratio: 1; object-fit: cover; border-radius: 6px;
}
.a48g-promo-copy { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.a48g-promo-copy span { color: #999; font-size: .9rem; }
.a48g-promo-copy strong {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem); color: #2f2f2f; line-height: 1.15;
}
.a48g-promo--center {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.18), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(255,255,255,.16), transparent 26%),
    var(--a48-primary);
  border-color: var(--a48-primary);
  flex-direction: column; justify-content: center; text-align: center; color: #fff;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.12);
}
.a48g-promo--center span { color: rgba(255,255,255,.9); font-size: .95rem; }
.a48g-promo--center strong {
  color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.95rem); max-width: 12ch; margin: .35rem 0 .9rem;
}

/* ── Product rails / cards ── */
.a48g-products { padding: 1.5rem 0 2.75rem; }
.a48g-sec-head {
  display: flex; align-items: center; justify-content: center;
  position: relative; margin-bottom: 1.75rem;
}
.a48g-sec-head h2 {
  margin: 0;
  font-family: var(--a48-font-serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700; color: #2f2f2f; text-align: center;
}
.a48g-sec-head h2::after {
  content: ""; display: block; width: 46px; height: 3px;
  background: var(--a48-primary); margin: .65rem auto 0;
}
.a48g-sec-nav {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; gap: .4rem;
}
.a48g-sec-nav button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #ddd; background: #fff; color: #666;
  cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.a48g-sec-nav button:hover { border-color: var(--a48-primary); color: var(--a48-primary); }

.a48g-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .35rem;
  scrollbar-width: thin;
}
.a48g-card {
  scroll-snap-align: start;
  border: 1px solid #ececec;
  background: #fff;
  padding: 1rem .9rem 1rem;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  min-height: 100%;
}
.a48g-card-badge {
  position: absolute; top: .65rem; right: .65rem; z-index: 2;
  background: #efefef; color: #555;
  font-size: .68rem; font-weight: 700; padding: .28rem .45rem; border-radius: 3px;
}
.a48g-card-badge--soft { max-width: 7.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a48g-card-media {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: .55rem;
}
.a48g-card-media img {
  width: 78%; height: 78%; object-fit: cover; border-radius: 4px;
}
.a48g-stars { display: flex; gap: .1rem; margin-bottom: .35rem; color: #d0d0d0; font-size: .85rem; }
.a48g-stars .is-on { color: #f0c14b; }
.a48g-card-title {
  font-size: .95rem; font-weight: 600; margin: 0 0 .4rem; min-height: 2.6em;
}
.a48g-card-title a:hover { color: var(--a48-primary); }
.a48g-card-price {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-bottom: .75rem;
}
.a48g-card-price strong { color: var(--a48-primary); font-size: 1.05rem; font-weight: 800; }
.a48g-card-price s { color: #b0b0b0; font-size: .88rem; }
.a48g-card-buy {
  width: 100%; display: grid; grid-template-columns: 54px 1fr; gap: .4rem; margin-top: auto;
}
.a48g-card-buy input {
  width: 100%; border: 1px solid #ddd; border-radius: 4px;
  text-align: center; font: inherit; padding: .55rem .2rem;
}
.a48g-card-buy button {
  border: 0; border-radius: 4px; background: var(--a48-primary); color: #fff;
  font-weight: 700; font-size: .78rem; cursor: pointer; padding: .6rem .4rem;
}
.a48g-card-buy button:hover { background: var(--a48-primary-deep); }

/* ── Mid hero offer ── */
.a48g-midhero {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 2.5rem 0;
}
.a48g-midhero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.a48g-midhero-copy { padding: 1rem; }
.a48g-midhero-art img {
  width: min(220px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

/* ── Features ── */
.a48g-features {
  padding: 1.75rem 0;
  border-bottom: 1px solid #eee;
}
.a48g-features-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.a48g-feature {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem 1rem;
  border-right: 1px solid #ececec;
}
.a48g-feature:last-child { border-right: 0; }
.a48g-feature-ico {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid #ddd; display: grid; place-items: center; font-size: 1.15rem; background: #fff;
}
.a48g-feature-ico--solid {
  background: var(--a48-primary); border-color: var(--a48-primary); color: #fff;
}
.a48g-feature strong { display: block; font-size: .92rem; color: #222; }
.a48g-feature span { display: block; font-size: .8rem; color: #999; margin-top: .15rem; }

@media (max-width: 1024px) {
  .a48g-hero-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .a48g-hero-copy h1 { margin-inline: auto; }
  .a48g-hero-visual { order: -1; }
  .a48g-cats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .a48g-promos-grid { grid-template-columns: 1fr; }
  .a48g-midhero-inner { grid-template-columns: 1fr; }
  .a48g-midhero-art { display: none; }
  .a48g-features-row { grid-template-columns: 1fr 1fr; }
  .a48g-feature { border-right: 0; border-bottom: 1px solid #eee; }
}

@media (max-width: 640px) {
  .a48g-cats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a48g-features-row { grid-template-columns: 1fr; }
  .a48g-hero-nav { width: 40px; height: 40px; }
  .a48g-rail { grid-auto-columns: minmax(190px, 78vw); }
  .a48g-sec-nav { position: static; transform: none; margin-left: .75rem; }
  .a48g-sec-head { justify-content: space-between; }
}
