:root {
  --bg: #fffaf2;
  --cream: #fbefd9;
  --cream-deep: #f8ecd8;
  --card: #fffdf8;
  --text: #3f2a1f;
  --muted: #6f5b4d;
  --green: #5f7f3a;
  --green-dark: #3f5f2a;
  --accent: #c7653f;
  --border: #eadfce;
  --yellow: #f4d48f;
  --shadow: 0 18px 48px rgba(63, 42, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Poppins", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.section-container,
.nav-container,
.hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(255, 250, 242, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(63, 42, 31, 0.06);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 242, 0.98);
  box-shadow: 0 8px 26px rgba(63, 42, 31, 0.1);
}

.nav-container {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__icon {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
  background: #f4ddb0;
}

.brand strong,
h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
}

.brand strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
  content: "";
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
}

.nav-link.active::after,
.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.basket-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  background: #f3e7d6;
  font-weight: 800;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--text);
  background: #f3e7d6;
}

.hero-section {
  min-height: calc(100vh - 86px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--cream);
}

.hero-inner {
  width: min(1320px, calc(100% - 48px));
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  gap: 0;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 540px;
  padding: 72px 0;
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
  align-self: stretch;
  height: 100%;
  min-height: 680px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.hero-image {
  width: calc(100% + ((100vw - min(1320px, calc(100% - 48px))) / 2));
  height: 100%;
  min-height: 680px;
  margin-right: calc((100vw - min(1320px, calc(100% - 48px))) / -2);
  background-image:
    linear-gradient(
      90deg,
      rgba(251, 239, 217, 1) 0%,
      rgba(251, 239, 217, 0.96) 8%,
      rgba(251, 239, 217, 0.78) 16%,
      rgba(251, 239, 217, 0.32) 26%,
      rgba(251, 239, 217, 0.08) 36%,
      rgba(251, 239, 217, 0) 46%
    ),
    url("images/02_hero_shopkeeper_sari_sari_store.png");
  background-repeat: no-repeat;
  background-position: 72% center;
  background-size: cover;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(3.5rem, 5.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 500px;
  margin: 0 0 28px;
  color: #5f4c3f;
  font-size: 1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fffaf2;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(63, 95, 42, 0.2);
}

.button--primary:hover {
  background: var(--green-dark);
}

.button--secondary {
  color: var(--green-dark);
  border: 1px solid var(--border);
  background: var(--card);
}

.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.hero-badges i {
  color: var(--accent);
}

.favorites-section,
.categories-section,
.how-section,
.contact-section {
  padding: 90px 0;
  background: var(--bg);
}

.trust-section,
.about-section {
  padding: 82px 0;
  background: var(--cream-deep);
}

.promos-section {
  padding: 90px 0;
  background: var(--cream);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading h2,
.promo-banner h2,
.about-card h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  line-height: 1;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.trust-card,
.category-card,
.promo-card,
.step-card,
.order-form,
.contact-details,
.about-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.category-card:hover,
.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(63, 42, 31, 0.14);
}

.product-card img {
  width: 100%;
  height: 128px;
  margin-bottom: 14px;
  object-fit: contain;
}

.product-card h3,
.trust-card h3,
.category-card h3,
.promo-card h3,
.step-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.price {
  margin: auto 0 14px;
  color: var(--accent);
  font-weight: 800;
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #edf3e5;
  font-weight: 800;
}

.add-button.added {
  color: #fffaf2;
  background: var(--green);
}

.trust-grid,
.category-grid,
.promo-grid,
.steps {
  display: grid;
  gap: 20px;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-grid,
.promo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-card,
.category-card,
.promo-card,
.step-card,
.contact-details {
  padding: 24px;
}

.trust-card i,
.category-card i,
.promo-card i,
.step-card i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--green-dark);
  background: #edf3e5;
}

.trust-card p,
.category-card p,
.promo-card p,
.about-card p,
.contact-details p {
  color: var(--muted);
  line-height: 1.7;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.step-card {
  position: relative;
  min-height: 172px;
}

.step-card span {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(199, 101, 63, 0.2);
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.about-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 32px;
  padding: 34px;
}

.about-card img {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  background: #f4ddb0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 24px;
}

.order-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: #fffaf2;
  outline: none;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: rgba(95, 127, 58, 0.72);
  box-shadow: 0 0 0 4px rgba(95, 127, 58, 0.12);
}

.form-success {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--green-dark);
  background: #edf3e5;
  font-weight: 800;
}

.form-success.show {
  display: block;
}

.contact-details h3 {
  margin-top: 0;
}

.contact-details i {
  width: 22px;
  color: var(--accent);
}

.site-footer {
  background: var(--yellow);
}

.footer-inner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 38px 0;
}

.site-footer img {
  width: 170px;
}

.site-footer p {
  margin: 8px 0 6px;
  color: var(--muted);
}

.site-footer small {
  color: var(--green-dark);
  font-weight: 800;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 250, 242, 0.68);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .hero-section,
  .hero-inner {
    min-height: max(680px, calc(100vh - 86px));
  }
}

@media (max-width: 1100px) {
  .nav-container {
    grid-template-columns: 1fr auto auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 13px 10px;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 76px;
  }

  .section-container,
  .nav-container,
  .hero-inner {
    width: min(100% - 32px, 680px);
  }

  .nav-container {
    min-height: 76px;
  }

  .basket-button span {
    display: none;
  }

  .basket-button {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero-section {
    min-height: auto;
    display: block;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 0 36px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.8rem, 11vw, 4.1rem);
  }

  .hero-image-wrap {
    min-height: 400px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .hero-image {
    width: 100%;
    min-height: 400px;
    margin-right: 0;
    background-image:
      linear-gradient(
        180deg,
        rgba(251, 239, 217, 0.92) 0%,
        rgba(251, 239, 217, 0.25) 28%,
        rgba(251, 239, 217, 0) 48%
      ),
      url("images/02_hero_shopkeeper_sari_sari_store.png");
    background-position: center center;
  }

  .favorites-section,
  .categories-section,
  .promos-section,
  .how-section,
  .contact-section {
    padding: 68px 0;
  }

  .trust-section,
  .about-section {
    padding: 64px 0;
  }

  .product-grid,
  .category-grid,
  .promo-grid,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-card,
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .section-container,
  .nav-container,
  .hero-inner {
    width: min(100% - 28px, 480px);
  }

  .brand__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-badges span {
    align-items: flex-start;
  }

  .hero-image-wrap,
  .hero-image {
    min-height: 300px;
  }

  .product-grid,
  .category-grid,
  .promo-grid,
  .steps,
  .trust-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .product-card img {
    height: 150px;
  }

  .about-card {
    padding: 24px;
  }

  .site-footer img {
    width: 145px;
  }
}
