/* =========================================================
   HIVORA MARKET - FULL STYLESHEET
   ========================================================= */

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: Arial, Helvetica, sans-serif;
  background: #fbf6ea; color: #444; line-height: 1.5;
}
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

/* ===== HEADER & MENU ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 28px; background: #fff8e7; box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
header h1 {
  margin: 0; font-size: 26px; letter-spacing: 2px; color: #8b4a2b; white-space: nowrap;
}
nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
nav a {
  text-decoration: none; color: #fff; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 22px; background: #8b4a2b; white-space: nowrap;
  transition: transform .2s, filter .3s, box-shadow .3s;
}
nav a:hover { transform: translateY(-2px); filter: brightness(1.12); }
nav a[href="index.html"]        { background: #d2691e; }
nav a[href="shop.html"]         { background: #a8323e; }
nav a[href="new-products.html"] { background: #f2b632; color: #3a2410; }
nav a[href="about.html"]        { background: #2b2a6b; }
nav a[href="contact.html"]      { background: #9c2f62; }
nav a[href="track.html"]        { background: #1f4d52; }
nav a.cart                      { background: #2e7d4f; }
nav a.active { box-shadow: 0 0 0 3px #f2b632; }

#theme-toggle {
  border: none; background: rgba(0,0,0,.08); cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
#theme-toggle:hover { transform: scale(1.1); }

/* ===== FOOTER ===== */
footer { background: #1f6f66; color: #fff; text-align: center; padding: 22px 16px; }
footer p { margin: 0; color: #fff; }

/* ===== BUTTONS & TOAST ===== */
.add-to-cart, .btn {
  display: inline-block; width: 100%; padding: 12px; border: none; border-radius: 25px;
  background: #f2b632; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  text-decoration: none; text-align: center; transition: background .3s, transform .2s;
}
.add-to-cart:hover, .btn:hover { background: #c9861a; transform: scale(1.03); }

.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px);
  background: #2e7d4f; color: #fff; padding: 12px 24px; border-radius: 25px;
  opacity: 0; transition: all .3s; z-index: 3000; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== SHOP ===== */
.products { max-width: 1200px; margin: 0 auto; padding: 110px 20px 50px; text-align: center; }
.products h2 { font-size: 34px; color: #1f6f66; margin: 0 0 8px; }
.products > p { color: #666; margin: 0 0 35px; }
.product-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.product-card {
  background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.product-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px;
  margin-bottom: 14px; background: #f5ead2;
}
.product-card h3 { margin: 0 0 6px; color: #8b4a2b; }
.product-card p { margin: 0 0 12px; color: #666; font-size: 14px; flex-grow: 1; }
.product-card select {
  width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #e3d3b0;
  border-radius: 10px; background: #fffaf0; color: #5a3a1e; font-size: 14px;
}
.product-card .price { font-size: 22px; font-weight: 700; color: #2e7d4f; margin: 4px 0 12px; flex-grow: 0; }

/* ===== PAGE BANNER ===== */
.page-banner { text-align: center; padding: 110px 20px 10px; }
.page-banner h2 { font-size: 34px; color: #1f6f66; margin: 0 0 6px; }
.page-banner p { color: #666; margin: 0; }

/* ===== CART ===== */
.cart-page { max-width: 900px; margin: 0 auto; padding: 20px 20px 50px; }
.cart-item {
  display: flex; align-items: center; gap: 15px; background: #fff; border-radius: 16px;
  padding: 14px; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.cart-info { flex: 1; }
.cart-info h3 { margin: 0 0 4px; color: #8b4a2b; font-size: 18px; }
.cart-info p { margin: 0; color: #666; font-size: 14px; }
.cart-info .unit { color: #999; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: #f2b632; color: #fff; font-size: 18px; cursor: pointer;
}
.qty button:hover { background: #c9861a; }
.line-total { font-weight: 700; color: #2e7d4f; min-width: 90px; text-align: right; }
.remove { border: none; background: none; color: #c0392b; font-size: 18px; cursor: pointer; }

.pay-info, .checkout-form, .cart-summary {
  background: #fff; border-radius: 16px; padding: 22px; margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.pay-info { background: #fff3d6; }
.pay-info h3, .checkout-form h3 { margin: 0 0 12px; color: #5a3a1e; }
.pay-info ol { margin: 0; padding-left: 20px; line-height: 1.8; color: #444; }
.checkout-form input, .checkout-form select {
  width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #e3d3b0;
  border-radius: 10px; background: #fffaf0; font-size: 16px;
}
.checkout-form input:focus, .checkout-form select:focus {
  outline: none; border-color: #f2b632; box-shadow: 0 0 0 3px rgba(242,182,50,.25);
}
.cart-summary p { display: flex; justify-content: space-between; margin: 0 0 10px; color: #555; font-size: 16px; }
.cart-summary .cart-total {
  border-top: 2px dashed #e3d3b0; padding-top: 12px; margin-top: 6px;
  font-size: 22px; font-weight: 700; color: #2e7d4f;
}
.wa-reminder {
  background: #fff3d6; border-left: 5px solid #f2b632; border-radius: 12px;
  padding: 14px 16px; margin-top: 18px; color: #5a3a1e; font-size: 15px; line-height: 1.5;
}
.cart-error { color: #c0392b; font-weight: 600; text-align: center; min-height: 20px; margin: 14px 0 0; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-link { color: #8b4a2b; font-weight: 600; text-decoration: none; }
.cart-link:hover { text-decoration: underline; }
.remove-btn {
  padding: 12px 22px; border: 2px solid #c0392b; border-radius: 25px;
  background: #fff; color: #c0392b; font-weight: 700; cursor: pointer;
}
.remove-btn:hover { background: #c0392b; color: #fff; }
.whatsapp-btn {
  padding: 13px 26px; border-radius: 25px; background: #25d366; color: #fff;
  font-weight: 700; text-decoration: none; text-align: center; transition: .3s;
}
.whatsapp-btn:hover { background: #1ebe5b; transform: scale(1.04); }
.cart-empty { text-align: center; padding: 50px 20px; background: #fff; border-radius: 16px; }
.cart-empty .btn { max-width: 220px; margin-top: 10px; }

/* ===== ORDER DONE POPUP ===== */
.order-done {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex;
  align-items: center; justify-content: center; padding: 16px; z-index: 2000; overflow-y: auto;
}
.done-card {
  background: #fff; border-radius: 20px; padding: 26px 22px; width: 100%; max-width: 420px;
  text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.done-tick {
  width: 60px; height: 60px; line-height: 60px; margin: 0 auto 8px; border-radius: 50%;
  background: #2e7d4f; color: #fff; font-size: 30px;
}
.done-card h3 { margin: 0 0 6px; color: #1f6f66; font-size: 24px; }
.done-card p { margin: 4px 0; color: #555; }
.done-warn {
  background: #fff3d6; border: 2px solid #f2b632; border-radius: 12px;
  padding: 10px 12px; margin: 10px 0; color: #5a3a1e; font-size: 14px; line-height: 1.5;
}
.code-box {
  font-size: 26px; font-weight: 800; letter-spacing: 2px; color: #8b4a2b; background: #fff3d6;
  border: 2px dashed #f2b632; border-radius: 12px; padding: 12px; margin: 8px 0; word-break: break-all;
}
.done-note { font-size: 14px; }
.done-card .whatsapp-btn, .done-btn { display: block; margin-top: 12px; padding: 13px; border-radius: 25px; font-weight: 700; text-decoration: none; text-align: center; }
.done-btn { background: #1f6f66; color: #fff; }
.done-close { margin-top: 12px; background: none; border: none; color: #888; font-size: 15px; cursor: pointer; }

/* ===== TRACK ===== */
.track-box { max-width: 560px; margin: 0 auto; padding: 20px 16px 50px; }
.track-form, .track-result {
  background: #fff; border-radius: 16px; padding: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08); margin-bottom: 18px;
}
.track-form input {
  width: 100%; padding: 12px; margin-bottom: 12px; font-size: 16px;
  border: 1px solid #e3d3b0; border-radius: 10px; background: #fffaf0;
}
.track-result h3 { margin: 0 0 4px; color: #8b4a2b; }
.track-result p { margin: 6px 0; color: #444; }
.track-result .muted { color: #888; font-size: 14px; }
.track-total { font-weight: 700; color: #2e7d4f; font-size: 18px; }
.track-note { background: #fff3d6; padding: 10px; border-radius: 10px; }
.badge-cancel { background: #c0392b; color: #fff; padding: 10px; border-radius: 10px; font-weight: 700; margin: 10px 0; }
.steps { list-style: none; padding: 0; margin: 16px 0; }
.steps li { position: relative; padding: 8px 0 8px 34px; color: #999; font-weight: 600; }
.steps li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: #ddd; }
.steps li.done { color: #2e7d4f; }
.steps li.done::before { background: #2e7d4f; }
.steps li.current { color: #8b4a2b; }
.steps li.current::before { background: #f2b632; box-shadow: 0 0 0 4px rgba(242,182,50,.3); }

/* ===== ABOUT ===== */
.about-page { max-width: 1000px; margin: 0 auto; padding: 110px 20px 50px; text-align: center; }
.about-hero h2 { font-size: 36px; color: #1f6f66; margin: 0 0 10px; }
.about-hero .tagline { font-size: 18px; color: #8b4a2b; font-weight: 600; margin: 0 0 30px; }
.about-story {
  background: #fff; border-radius: 16px; padding: 25px 30px; max-width: 800px;
  margin: 0 auto 40px; line-height: 1.7; color: #444; box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.about-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-bottom: 45px; }
.feature-card {
  background: #fff; border-radius: 16px; padding: 28px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1); transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.feature-card i {
  font-size: 28px; color: #fff; width: 64px; height: 64px; line-height: 64px;
  border-radius: 50%; background: #f2b632; margin-bottom: 12px;
}
.feature-card:nth-child(2) i { background: #8b4a2b; }
.feature-card:nth-child(3) i { background: #2e7d4f; }
.feature-card:nth-child(4) i { background: #1f6f66; }
.feature-card h3 { margin: 8px 0; color: #5a3a1e; }
.feature-card p { margin: 0; color: #666; }
.about-contact { background: #fff3d6; border-radius: 16px; padding: 30px 20px; }
.about-contact h3 { margin: 0 0 6px; color: #5a3a1e; font-size: 24px; }
.about-contact p { margin: 0 0 18px; color: #555; }
.social-row { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.social {
  width: 50px; height: 50px; line-height: 50px; border-radius: 50%; color: #fff;
  font-size: 22px; text-decoration: none; transition: transform .3s;
}
.social:hover { transform: scale(1.15); }
.social.facebook  { background: #1877f2; }
.social.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.social.whatsapp  { background: #25d366; }
.social.tiktok    { background: #000; }
.call-line a { color: #8b4a2b; font-weight: 700; text-decoration: none; }
.call-line i { color: #2e7d4f; margin-right: 6px; }

/* ===== CONTACT ===== */
.contact { padding: 40px 20px; text-align: center; }
.contact h2 { font-size: 34px; color: #1f6f66; margin: 0; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; max-width: 900px; margin: 30px auto 0;
}
.contact-card {
  background: #fff; border-radius: 16px; padding: 25px 15px; text-decoration: none; color: #5a3a1e;
  box-shadow: 0 4px 12px rgba(0,0,0,.1); transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.contact-card i {
  font-size: 34px; color: #fff; width: 70px; height: 70px; line-height: 70px;
  border-radius: 50%; margin-bottom: 12px;
}
.contact-card h3 { margin: 8px 0 4px; }
.contact-card p { margin: 0; color: #777; }
.contact-card.whatsapp i  { background: #25d366; }
.contact-card.phone i     { background: #f2b632; }
.contact-card.facebook i  { background: #1877f2; }
.contact-card.instagram i { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.contact-card.tiktok i    { background: #000; }

/* ===== NEW PRODUCTS PAGE ===== */
.new-dot {
  background: #c0392b; color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 10px; margin-left: 4px; vertical-align: middle;
}
.new-page { max-width: 1100px; margin: 0 auto; padding: 110px 20px 50px; text-align: center; }
.new-hero h2, .svc-section h2 { font-size: 34px; color: #1f6f66; margin: 0 0 8px; }
.new-page .tagline { color: #8b4a2b; font-weight: 600; margin: 0 0 10px; }
.ask-note {
  display: inline-block; background: #fff3d6; border-left: 5px solid #25d366; border-radius: 12px;
  padding: 12px 16px; margin: 14px auto 0; color: #5a3a1e; font-size: 15px; line-height: 1.5;
}
.ask-note i { color: #25d366; margin-right: 6px; }
.new-grid { display: grid; gap: 22px; margin: 28px 0 45px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.new-card {
  position: relative; background: #fff; border-radius: 18px; padding: 28px 20px 22px;
  display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
}
.new-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.new-card .tag {
  position: absolute; top: 14px; right: 14px; background: #c0392b; color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px;
}
.new-card .ico {
  width: 76px; height: 76px; line-height: 76px; margin: 0 auto 14px; border-radius: 50%;
  background: #f2b632; color: #fff; font-size: 32px;
}
.new-grid .new-card:nth-child(2) .ico { background: #2e7d4f; }
.new-grid .new-card:nth-child(3) .ico { background: #8b4a2b; }
.new-grid .new-card:nth-child(4) .ico { background: #1f6f66; }
.new-card h3 { margin: 0 0 8px; color: #8b4a2b; }
.new-card p { margin: 0; color: #666; flex-grow: 1; line-height: 1.6; }
.ask-line { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; color: #8b4a2b; }
.enquire {
  display: block; margin-top: 12px; padding: 12px; border-radius: 25px; background: #25d366;
  color: #fff; font-weight: 700; text-decoration: none; transition: background .3s, transform .2s;
}
.enquire:hover { background: #1ebe5b; transform: scale(1.03); }
.new-cta { background: #fff3d6; border-radius: 16px; padding: 28px 20px; max-width: 520px; margin: 0 auto 20px; }
.new-cta h3 { margin: 0 0 6px; color: #5a3a1e; }
.new-cta p { margin: 0 0 6px; color: #555; }
.new-note { font-size: 13px; color: #888; margin-top: 20px; }

/* ===== HOME PAGE ===== */
.hm-main { background: #fbf6ea; }
.hm-wrap { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
.hm-section { padding-top: 56px; padding-bottom: 56px; text-align: center; }
.hm-mt { margin-top: 28px; }

.hm-js .hm-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.hm-js .hm-reveal.in { opacity: 1; transform: none; }

.hm-hero-bg {
  position: relative; padding-top: 100px; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34zm0 34L0 84V66l28 16 28-16v18z' fill='none' stroke='%23d9a21b' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #fff8e1, #fde7b0 60%, #f7d27a);
}
.hm-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; padding-top: 40px; padding-bottom: 96px; }
.hm-eyebrow {
  display: inline-block; background: #fff; color: #8b4a2b; font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; padding: 8px 18px; border-radius: 22px; box-shadow: 0 3px 10px rgba(0,0,0,.12);
}
.hm-eyebrow i { color: #2e7d4f; margin-right: 6px; }
.hm-hero-text h2 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.1; margin: 20px 0 14px; color: #5a3a1e; }
.hm-hero-text h2 span { color: #2e7d4f; }
.hm-hero-text p { font-size: 18px; line-height: 1.7; color: #5b4a3a; margin: 0 0 26px; max-width: 540px; }
.hm-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hm-ticks li { color: #5b4a3a; font-size: 14px; font-weight: 600; }
.hm-ticks i { color: #2e7d4f; margin-right: 6px; }
.hm-hero-img { position: relative; }
.hm-hero-img::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 26px; background: #f2b632; opacity: .55; z-index: 0; }
.hm-hero-img img {
  position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  display: block; border-radius: 24px; box-shadow: 0 16px 38px rgba(90,58,30,.38); background: #f5ead2;
}
.hm-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.hm-wave path { fill: #fbf6ea; }

.hm-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hm-center { justify-content: center; }
.hm-btn {
  display: inline-block; padding: 14px 30px; border-radius: 30px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: transform .2s, background .3s, box-shadow .3s;
}
.hm-btn i { margin-right: 6px; }
.hm-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.hm-btn.gold { background: #f2b632; color: #fff; }
.hm-btn.gold:hover { background: #c9861a; }
.hm-btn.wa { background: #25d366; color: #fff; }
.hm-btn.wa:hover { background: #1ebe5b; }
.hm-btn.white { background: #fff; color: #8b4a2b; }
.hm-btn.outline { border: 2px solid #fff; color: #fff; }

.hm-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: -26px; position: relative; z-index: 2; }
.hm-badge { background: #fff; border-radius: 18px; padding: 24px 16px; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.hm-badge i, .hm-step i, .hm-service i {
  font-size: 26px; color: #fff; width: 60px; height: 60px; line-height: 60px;
  border-radius: 50%; background: #f2b632; margin-bottom: 10px;
}
.hm-badge:nth-child(2) i { background: #8b4a2b; }
.hm-badge:nth-child(3) i { background: #1f6f66; }
.hm-badge:nth-child(4) i { background: #2e7d4f; }
.hm-badge h3 { margin: 4px 0 6px; color: #5a3a1e; font-size: 18px; }
.hm-badge p { margin: 0; color: #666; font-size: 14px; }

.hm-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #c9861a; margin-bottom: 8px; }
.hm-kicker.light { color: #ffd77a; }
.hm-title { font-size: 36px; color: #1f6f66; margin: 0 0 6px; }
.hm-title.light { color: #fff; }
.hm-sub { color: #777; margin: 0 0 32px; }
.hm-sub.light { color: #f3e4d0; }

.hm-products { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hm-card {
  background: #fff; border-radius: 18px; padding: 14px; text-decoration: none;
  color: #5a3a1e; display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: transform .3s, box-shadow .3s;
}
.hm-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }