/* =========================================================
   HIVORA MARKET - theme.css (loads after style.css)
   Header fix, phone layout, home page, delivery note, dark mode
   ========================================================= */

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

/* ===== HEADER: tablets and phones ===== */
@media (max-width: 1100px) {
  header {
    position: static !important; flex-direction: column; align-items: center;
    gap: 8px; padding: 10px 8px; text-align: center;
  }
  header h1 { font-size: 20px; letter-spacing: 1.5px; }
  nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 6px; }
  nav a { padding: 6px 11px; font-size: 13px; }
  .about-page, .products, .page-banner, .new-page, .track-box,
  .contact, .cart-page, .admin { padding-top: 18px !important; }
  .hp-hero { padding-top: 0 !important; }
}

/* ===== DELIVERY NOTE (cart) ===== */
.free-note {
  background: #e8f6ee; border-left: 5px solid #2e7d4f; border-radius: 10px;
  padding: 10px 14px; margin: 0 0 14px; color: #1f5a37; font-size: 14px; line-height: 1.5;
}

/* =========================================================
   HOME PAGE
   ========================================================= */
.hp-main { background: #fbf6ea; overflow: hidden; }
.hp-js .hp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.hp-js .hp-reveal.in { opacity: 1; transform: none; }

/* hero: image first, text card overlapping its bottom */
.hp-hero { padding-top: 84px; background: linear-gradient(180deg, #fde9b8 0%, #fbf6ea 100%); }
.hp-frame { max-width: 1100px; margin: 0 auto; padding: 22px 20px 0; }
.hp-hero-img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 520px;
  object-fit: cover; object-position: center 30%; border-radius: 26px;
  box-shadow: 0 16px 40px rgba(90,58,30,.35); background: #f5ead2;
}
.hp-hero-card {
  position: relative; z-index: 2; max-width: 760px; margin: -90px auto 0;
  background: #fff; border-radius: 22px; padding: 30px 32px; text-align: center;
  box-shadow: 0 16px 40px rgba(90,58,30,.28);
}
.hp-eyebrow {
  display: inline-block; background: #fff3d6; color: #8b4a2b; font-weight: 800;
  font-size: 12px; letter-spacing: 1.6px; padding: 7px 16px; border-radius: 22px;
}
.hp-eyebrow i { color: #2e7d4f; margin-right: 6px; }
.hp-hero-card h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; margin: 14px 0 10px; color: #5a3a1e; }
.hp-hero-card h2 span { color: #2e7d4f; }
.hp-hero-card p { font-size: 17px; line-height: 1.7; color: #5b4a3a; margin: 0 auto 22px; max-width: 560px; }
.hp-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hp-btn {
  display: inline-block; padding: 14px 28px; border-radius: 30px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: transform .2s, background .3s, box-shadow .3s;
}
.hp-btn i { margin-right: 6px; }
.hp-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.hp-btn.gold { background: #f2b632; color: #fff; }
.hp-btn.gold:hover { background: #c9861a; }
.hp-btn.wa { background: #25d366; color: #fff; }
.hp-btn.wa:hover { background: #1ebe5b; }
.hp-btn.white { background: #fff; color: #8b4a2b; }
.hp-btn.line { border: 2px solid #fff; color: #fff; }
.hp-ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hp-ticks li { color: #5b4a3a; font-size: 13px; font-weight: 700; }
.hp-ticks i { color: #2e7d4f; margin-right: 5px; }

/* new range strip */
.hp-strip { max-width: 1100px; margin: 40px auto 0; padding: 0 20px; }
.hp-strip-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #5a3a1e, #8b4a2b); color: #fff;
  border-radius: 20px; padding: 20px 26px; box-shadow: 0 10px 26px rgba(90,58,30,.35);
}
.hp-strip-inner > div { flex: 1 1 320px; }
.hp-strip-tag { background: #c0392b; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.hp-strip h3 { margin: 8px 0 4px; color: #fff; font-size: 20px; }
.hp-strip p { margin: 0; color: #f3e4d0; font-size: 14px; }

/* sections */
.hp-sec { max-width: 1150px; margin: 0 auto; padding: 56px 20px; text-align: center; }
.hp-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #c9861a; margin-bottom: 8px; }
.hp-title { font-size: 34px; color: #1f6f66; margin: 0 0 6px; }
.hp-sub { color: #777; margin: 0 0 30px; }

.hp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hp-feature { background: #fff; border-radius: 18px; padding: 28px 16px; box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: transform .3s, box-shadow .3s; }
.hp-feature:hover { transform: translateY(-6px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.hp-feature i, .hp-step i {
  font-size: 26px; color: #fff; width: 62px; height: 62px; line-height: 62px;
  border-radius: 50%; background: #f2b632; margin-bottom: 12px;
}
.hp-feature:nth-child(2) i { background: #8b4a2b; }
.hp-feature:nth-child(3) i { background: #1f6f66; }
.hp-feature:nth-child(4) i { background: #2e7d4f; }
.hp-feature h3, .hp-step h3 { margin: 4px 0 6px; color: #5a3a1e; font-size: 18px; }
.hp-feature p, .hp-step p { margin: 0; color: #666; font-size: 14px; line-height: 1.6; }

.hp-steps-bg { background: #fff3d6; }
.hp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hp-step { position: relative; background: #fff; border-radius: 18px; padding: 36px 16px 24px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.hp-num {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; line-height: 32px; border-radius: 50%;
  background: #8b4a2b; color: #fff; font-weight: 800; font-size: 14px;
}
.hp-step:nth-child(2) i { background: #2e7d4f; }
.hp-step:nth-child(3) i { background: #25d366; }
.hp-step:nth-child(4) i { background: #1f6f66; }

.hp-cta { text-align: center; padding: 64px 20px; background: linear-gradient(135deg, #1f6f66, #2e7d4f); }
.hp-cta h2 { font-size: 36px; margin: 0 0 8px; color: #fff; }
.hp-cta p { margin: 0 0 26px; color: #e6f3ee; font-size: 18px; }

.hp-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 900; width: 56px; height: 56px;
  line-height: 56px; text-align: center; border-radius: 50%; background: #25d366; color: #fff;
  font-size: 29px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  animation: hpPulse 2.4s infinite;
}
@keyframes hpPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 6px 18px rgba(0,0,0,.35); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 6px 18px rgba(0,0,0,.35); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 6px 18px rgba(0,0,0,.35); }
}

@media (max-width: 900px) {
  .hp-features, .hp-steps { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   PHONES
   ========================================================= */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  *, *::before, *::after { box-sizing: border-box; }

  .about-page, .products, .contact, .cart-page, .new-page { padding-left: 14px; padding-right: 14px; }
  .about-hero h2, .products h2, .page-banner h2, .contact h2, .new-hero h2, .svc-section h2 { font-size: 26px; }
  .about-story { padding: 18px 16px; }

  .product-container { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { padding: 10px; }
  .product-card h3 { font-size: 16px; }
  .product-card p { font-size: 13px; }
  .product-card select { font-size: 13px; padding: 8px; }
  .product-card .price { font-size: 18px; }
  .add-to-cart { padding: 10px; font-size: 14px; }

  .about-features, .contact-grid { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; gap: 10px; }
  .cart-item img { width: 64px; height: 64px; }
  .line-total { text-align: left; min-width: 0; }
  .checkout-form input, .checkout-form select { font-size: 16px; }
  .cart-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .whatsapp-btn, .remove-btn { width: 100%; text-align: center; }

  /* home */
  .hp-frame { padding: 12px 12px 0; }
  .hp-hero-img { aspect-ratio: 4 / 3; max-height: none; border-radius: 18px; }
  .hp-hero-card { margin: -36px 6px 0; padding: 22px 16px; border-radius: 18px; }
  .hp-hero-card p { font-size: 15px; margin-bottom: 18px; }
  .hp-btn { padding: 12px 22px; font-size: 15px; }
  .hp-strip { margin-top: 28px; padding: 0 12px; }
  .hp-strip-inner { padding: 18px; text-align: center; justify-content: center; }
  .hp-sec { padding: 40px 14px; }
  .hp-title { font-size: 26px; }
  .hp-features, .hp-steps { gap: 12px; }
  .hp-feature { padding: 20px 10px; }
  .hp-feature i, .hp-step i { width: 52px; height: 52px; line-height: 52px; font-size: 22px; }
  .hp-feature h3, .hp-step h3 { font-size: 16px; }
  .hp-feature p, .hp-step p { font-size: 13px; }
  .hp-cta h2 { font-size: 28px; }
  .hp-fab { width: 50px; height: 50px; line-height: 50px; font-size: 26px; }
}
@media (max-width: 400px) {
  .product-container { grid-template-columns: 1fr; }
}

/* =========================================================
   DARK MODE
   ========================================================= */
body.dark { background: #14110d; color: #eee5d8; }
body.dark header { background: #1c1712; box-shadow: 0 2px 10px rgba(0,0,0,.6); }
body.dark header h1 { color: #f2b632; }
body.dark #theme-toggle { background: rgba(255,255,255,.14); }
body.dark footer { background: #0e0c09; }

body.dark .about-story, body.dark .feature-card, body.dark .contact-card,
body.dark .product-card, body.dark .cart-item, body.dark .checkout-form,
body.dark .cart-summary, body.dark .cart-empty, body.dark .track-form,
body.dark .track-result, body.dark .done-card, body.dark .new-card,
body.dark .hp-hero-card, body.dark .hp-feature, body.dark .hp-step {
  background: #211b14; box-shadow: 0 4px 14px rgba(0,0,0,.55);
}
body.dark .pay-info, body.dark .about-contact, body.dark .track-note, body.dark .new-cta,
body.dark .wa-reminder, body.dark .done-warn, body.dark .ask-note, body.dark .code-box {
  background: #2b2216; color: #f0e6d6;
}
body.dark .free-note { background: #16281d; color: #9fe0b8; }

body.dark .hp-main { background: #14110d; }
body.dark .hp-hero { background: linear-gradient(180deg, #2b2216 0%, #14110d 100%); }
body.dark .hp-steps-bg { background: #1a150f; }
body.dark .hp-eyebrow { background: #2a231b; color: #f2b632; }
body.dark .hp-hero-card h2 { color: #f0e6d6; }
body.dark .hp-hero-card h2 span { color: #5ad08a; }
body.dark .hp-hero-card p, body.dark .hp-ticks li { color: #cdbfae; }
body.dark .hp-btn.white { background: #f0e6d6; color: #5a3a1e; }
body.dark .hp-strip-inner { background: linear-gradient(135deg, #2b2216, #4a2f1a); }

body.dark .about-hero h2, body.dark .products h2, body.dark .page-banner h2,
body.dark .contact h2, body.dark .new-hero h2, body.dark .svc-section h2,
body.dark .about-contact h3, body.dark .pay-info h3, body.dark .checkout-form h3,
body.dark .new-cta h3, body.dark .done-card h3, body.dark .hp-title { color: #f2b632; }
body.dark .product-card h3, body.dark .cart-info h3, body.dark .track-result h3,
body.dark .new-card h3, body.dark .feature-card h3, body.dark .hp-feature h3,
body.dark .hp-step h3 { color: #f2b632; }
body.dark .about-hero .tagline, body.dark .new-page .tagline { color: #e0a070; }

body.dark .products > p, body.dark .page-banner p, body.dark .about-story,
body.dark .about-contact p, body.dark .new-cta p, body.dark .product-card p,
body.dark .feature-card p, body.dark .contact-card p, body.dark .cart-info p,
body.dark .new-card p, body.dark .track-result p, body.dark .pay-info ol,
body.dark .cart-summary p, body.dark .hp-feature p, body.dark .hp-step p,
body.dark .hp-sub, body.dark .new-note { color: #b9ad9b; }
body.dark .contact-card { color: #eee5d8; }
body.dark .ask-line { color: #f2b632; }

body.dark input, body.dark select, body.dark textarea {
  background: #2a231b !important; color: #f0e6d6 !important; border-color: #4a3d2c !important;
}
body.dark input::placeholder { color: #8f8372; }

body.dark .product-card .price, body.dark .line-total, body.dark .track-total,
body.dark .cart-summary .cart-total { color: #5ad08a; }
body.dark .cart-summary .cart-total { border-top-color: #4a3d2c; }
body.dark .code-box { color: #f2b632; }
body.dark .steps li { color: #8f8372; }
body.dark .steps li.done { color: #5ad08a; }
body.dark .steps li.current { color: #f2b632; }
body.dark .product-card img, body.dark .hp-hero-img { background: #2a231b; }
body.dark .remove-btn { background: transparent; }
body.dark .cart-link, body.dark .call-line a { color: #f2b632; }
body.dark .order p, body.dark #count { color: #b9ad9b; }
body.dark .order, body.dark .login-card { background: #211b14; }
body.dark .order h3 { color: #f2b632; }
/* ===== PAYMENT METHOD & FAR AREA ===== */
.pay-method {
  background: #fff; border-radius: 16px; padding: 20px 22px; margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.pay-method h3 { margin: 0 0 12px; color: #5a3a1e; }
.pm {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; margin-bottom: 10px;
  border: 2px solid #e3d3b0; border-radius: 12px; cursor: pointer;
  font-weight: 700; color: #5a3a1e; background: #fffaf0;
}
.pm input { width: auto !important; margin: 0 !important; padding: 0 !important; accent-color: #2e7d4f; transform: scale(1.25); }
.pm:has(input:checked) { border-color: #2e7d4f; background: #e8f6ee; }
.pm.disabled { opacity: .45; cursor: not-allowed; }
.pm-note { margin: 4px 0 0; font-size: 13px; color: #c0392b; font-weight: 600; }
.far-note {
  background: #fff3d6; border-left: 5px solid #f2b632; border-radius: 10px;
  padding: 12px 14px; margin: 0 0 14px; color: #5a3a1e; font-size: 14px; line-height: 1.5;
}

/* ===== PROPOLIS SECTION ===== */
.prop-section { margin: 10px 0 50px; }
.prop-section h2 { font-size: 34px; color: #1f6f66; margin: 0 0 8px; }
.prop-photo { max-width: 520px; margin: 22px auto 0; }
.prop-photo img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 8px 22px rgba(0,0,0,.2); display: block; }
.prop-grid { display: grid; gap: 18px; margin: 28px 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.prop-card { background: #fff; border-radius: 16px; padding: 24px 18px; box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: transform .3s; }
.prop-card:hover { transform: translateY(-5px); }
.prop-card > i {
  font-size: 24px; color: #fff; width: 56px; height: 56px; line-height: 56px;
  border-radius: 50%; background: #f2b632; margin-bottom: 10px;
}
.prop-card:nth-child(2) > i { background: #8b4a2b; }
.prop-card:nth-child(3) > i { background: #2e7d4f; }
.prop-card:nth-child(4) > i { background: #1f6f66; }
.prop-card:nth-child(5) > i { background: #c0392b; }
.prop-card:nth-child(6) > i { background: #5a3a1e; }
.prop-card h3 { margin: 6px 0; color: #8b4a2b; }
.prop-card p { margin: 0; color: #666; font-size: 14px; line-height: 1.6; }

.prop-ginger {
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: linear-gradient(135deg, #fff3d6, #fde7b0); border-radius: 16px; padding: 20px 22px; margin-bottom: 22px;
}
.prop-ginger > i { font-size: 30px; color: #fff; background: #d2691e; width: 64px; height: 64px; line-height: 64px; border-radius: 50%; text-align: center; flex-shrink: 0; }
.prop-ginger h3 { margin: 0 0 4px; color: #5a3a1e; }
.prop-ginger p { margin: 0; color: #5b4a3a; line-height: 1.6; }

.prop-safety { background: #fff; border-left: 6px solid #c0392b; border-radius: 14px; padding: 20px 22px; text-align: left; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.prop-safety h3 { margin: 0 0 8px; color: #8b2f20; }
.prop-safety h3 i { margin-right: 6px; }
.prop-safety ul { margin: 0 0 12px; padding-left: 20px; color: #555; line-height: 1.8; font-size: 14px; }
.prop-disclaimer { margin: 0; font-size: 12px; color: #888; line-height: 1.5; }

@media (max-width: 768px) {
  .prop-section h2 { font-size: 26px; }
  .prop-ginger { flex-direction: column; text-align: center; }
}

/* dark mode */
body.dark .pay-method, body.dark .prop-card, body.dark .prop-safety { background: #211b14; box-shadow: 0 4px 14px rgba(0,0,0,.55); }
body.dark .pay-method h3, body.dark .prop-section h2 { color: #f2b632; }
body.dark .pm { background: #2a231b; border-color: #4a3d2c; color: #f0e6d6; }
body.dark .pm:has(input:checked) { background: #16281d; border-color: #5ad08a; }
body.dark .far-note { background: #2b2216; color: #f0e6d6; }
body.dark .prop-card h3 { color: #f2b632; }
body.dark .prop-card p, body.dark .prop-safety ul { color: #b9ad9b; }
body.dark .prop-ginger { background: linear-gradient(135deg, #2b2216, #3a2c18); }
body.dark .prop-ginger h3 { color: #f2b632; }
body.dark .prop-ginger p { color: #cdbfae; }
body.dark .prop-safety h3 { color: #ff8a7a; }
body.dark .prop-disclaimer { color: #8f8372; }