:root {
  --green: #07834c;
  --green-dark: #025c2a;
  --gold: #ffb300;
  --red: #e60000;
  --cream: #fbfaf5;
  --card: #fff;
  --ink: #233027;
  --muted: #5e6b61;
  --line: #e4e6dc;
  --radius: 1.3rem;
  --shadow: 0 20px 42px -26px rgba(2,92,42,.4);
  --display: 'Archivo', 'Montserrat', sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--cream); -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 110px; }
h1, h2, .branding-title, .cart-popup-title { font-family: var(--display); }

/* Header: the original 160px sticky header plus a 320x110 logo box
   covered a huge chunk of the screen on scroll. Rebuilt compact. */
#main-header { min-height: 0; background: var(--card); border-bottom: 4px solid var(--gold); box-shadow: none; padding: 0; }
/* Legal pages reuse their own plain <header> without the #main-header id,
   so they keep the original red/yellow striped header unless caught here. */
header { min-height: 0; background: var(--card); border-bottom: 4px solid var(--gold); box-shadow: none; }
.branding { gap: .7rem; margin: 0; top: 0; padding: .7rem 0 .3rem; justify-content: flex-start; }
.branding-logo-box { min-width: 0; min-height: 0; padding: .2rem .5rem; margin: 0; border-radius: .6rem; border: none; box-shadow: none; background: transparent; }
.branding-logo-box img { max-width: 150px; max-height: 42px; width: auto; }
.branding-title { display: none; }
nav { margin: 0 0 .5rem; }
nav ul { gap: .3rem; }
#nav-list a { font-weight: 700; color: var(--ink); font-size: .88rem; background: transparent; border: none; box-shadow: none; border-radius: 999px; padding: .4rem .9rem; }
#nav-list a:hover, #nav-list a.active { background: #eef6ef; color: var(--green); border-color: transparent; }

/* Intro / hero */
.intro {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff;
  border-radius: 2rem; padding: clamp(2rem, 5vw, 3.6rem); margin-top: 1.6rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.intro::after { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,179,0,.25); }
.intro::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.intro h1 { color: #fff; text-shadow: none; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; position: relative; }
.intro > p { color: #dff3e6; max-width: 56ch; margin-top: .8rem; position: relative; }
.features { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; margin-top: 1.6rem; position: relative; }
.feature {
  background: transparent; border: 1.5px dashed rgba(255,255,255,.55); border-radius: .4rem; padding: .5rem 1rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .02em; transform: rotate(-1.5deg); transition: transform .2s, background .2s;
}
.feature:nth-child(2n) { transform: rotate(1.3deg); }
.feature:nth-child(3n) { transform: rotate(-.8deg); }
.feature:hover { background: rgba(255,255,255,.12); transform: rotate(0deg) scale(1.04); }
.intro p[style] { color: var(--gold) !important; position: relative; }

/* About */
.about-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.4rem; align-items: center; margin-top: clamp(3rem,7vw,5rem); }
.about-section h2 { font-size: clamp(1.8rem,3.5vw,2.4rem); color: var(--green-dark); margin-bottom: 1rem; }
.about-section ul { display: grid; gap: .6rem; }
.about-section li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 .8rem .8rem 0; padding: .7rem 1rem; font-size: .92rem; }
.hero-media-wrap { width: 100%; }
.refresh-hero-media { width: 100%; margin: 0; position: relative; height: 0; padding-top: 100%; }
.refresh-hero-media::before, .refresh-hero-media::after {
  content: ''; position: absolute; width: 34px; height: 34px; border: 3px solid var(--gold); z-index: 2; pointer-events: none;
}
.refresh-hero-media::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.refresh-hero-media::after { bottom: -10px; right: -10px; border-left: none; border-top: none; }
.refresh-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: .9rem; box-shadow: var(--shadow); z-index: 1; }
.media-caption {
  margin-top: 1rem; text-align: center; font-size: .86rem; color: var(--muted); display: flex; flex-direction: column; gap: .15rem;
}
.media-caption strong { font-family: var(--display); color: var(--green-dark); font-size: .98rem; }

/* Products */
#products { margin-top: clamp(3rem,7vw,5rem); }
#products h2 { font-size: clamp(1.8rem,3.5vw,2.4rem); color: var(--green-dark); margin-bottom: 1.6rem; }
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.product-card { width: auto; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem; padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-card:nth-child(1) { border: 2px solid var(--gold); }
.product-card:nth-child(1)::before {
  content: 'Paborito ng Suki'; position: absolute; top: .7rem; right: -2.1rem; z-index: 2; background: var(--gold); color: var(--ink);
  font-size: .64rem; font-weight: 800; letter-spacing: .03em; padding: .3rem 2.4rem; transform: rotate(40deg); box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.product-card img { width: 100%; height: 130px; object-fit: contain; background: #f1f6f1; padding: .6rem; }
.prod-name { font-family: var(--display); font-weight: 800; color: var(--green-dark); font-size: .92rem; padding: .7rem .8rem 0; }
.prod-desc { color: var(--muted); font-size: .76rem; padding: .25rem .8rem 0; flex: 1; }
.prod-price { color: var(--red); font-weight: 800; font-size: 1rem; padding: .5rem .8rem 0; }
.prod-stock, .product-card .prod-stock { color: var(--muted); font-size: .72rem; padding: .1rem .8rem .6rem; }
.product-card button { margin: 0 .8rem .8rem; background: var(--green); color: #fff; border: none; border-radius: 999px; padding: .6rem; font-weight: 700; font-size: .82rem; cursor: pointer; }
.product-card button:hover { background: var(--gold); color: var(--ink); }

/* Contact */
.contact-section { background: var(--ink); color: #e7efe9; border-radius: 1.6rem; padding: clamp(1.8rem,4vw,3rem); margin-top: clamp(3rem,7vw,5rem); }
.contact-section h2 { color: #fff; margin-bottom: 1rem; }
.contact-details strong { color: var(--gold); }

/* Testimonials */
.testimonials-section { margin-top: clamp(3rem,7vw,5rem); }
.testimonials-section h2 { color: var(--green-dark); font-size: clamp(1.8rem,3.5vw,2.4rem); margin-bottom: 1.6rem; }
.testimonials-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial { background: var(--card); border-top: 4px solid var(--green); border-radius: 0 1rem 1rem 1rem; box-shadow: var(--shadow); padding: 1.4rem 1.3rem; font-size: .92rem; }
.testimonial strong { color: var(--green); display: block; margin-top: .8rem; font-size: .8rem; }

/* FAQ */
.faq-section { margin-top: clamp(3rem,7vw,5rem); }
.faq-section h2 { color: var(--green-dark); font-size: clamp(1.8rem,3.5vw,2.4rem); margin-bottom: 1.4rem; }
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: .9rem; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 700; color: var(--green-dark); display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #eef6ef; color: var(--green); display: flex; align-items: center; justify-content: center; }
.faq-item[open] summary::after { content: '\2212'; background: var(--gold); color: var(--ink); }
.faq-item p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

/* Delivery + credentials */
.delivery-section, .credentials-section { margin-top: clamp(3rem,7vw,5rem); background: var(--card); border: 1px dashed var(--green); border-radius: 1.3rem; padding: 1.8rem clamp(1.2rem,4vw,2.4rem); }
.delivery-section h2, .credentials-section h2 { color: var(--green-dark); font-size: 1.5rem; margin-bottom: .9rem; }
.delivery-details strong, .credentials-details strong { color: var(--red); }

/* Cart */
.cart-float-btn { background: var(--green); box-shadow: 0 14px 28px -8px rgba(2,92,42,.6); }
.cart-popup-content { border-radius: 1.3rem; }
.cart-popup-title { color: var(--green-dark); }
.cart-popup-checkout { background: var(--green); border-radius: 999px; }
.cart-popup-checkout:hover { background: var(--gold); color: var(--ink); }

/* Footer */
footer { background: var(--ink); border-radius: 1.6rem 1.6rem 0 0; margin-top: 3rem; }
.footer-links a { color: var(--green-dark); background: var(--gold); border-color: var(--gold); }

@media (max-width: 1000px) {
  .about-section { grid-template-columns: 1fr; }
  .hero-media-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .intro { border-radius: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
