/* =====================================================================
   UD FAUZI MEAT SHOP — style.css
   Tema brand asli: navy + maroon daging + blush.
   Display: Fraunces (serif karakterful) · Body: Poppins · Label: Roboto Condensed
   ===================================================================== */

:root {
  --navy:        #232946;   /* latar gelap utama */
  --ink:         #121629;   /* paling gelap (judul/stroke) */
  --primary:     #1a2533;
  --blush:       #eebbc3;   /* tombol aksen */
  --blush-dark:  #e3a3ad;
  --periwinkle:  #b8c1ec;   /* teks terang di area gelap */
  --maroon:      #b22222;   /* highlight merah daging */
  --maroon-dark: #8b0000;
  --paper:       #fffffe;   /* latar terang */
  --paper-2:     #f7f4f1;   /* krem lembut */
  --paper-3:     #efe9e3;
  --text:        #2b2b30;
  --muted:       #6c6f7a;
  --line:        #e7e0d8;

  --shadow-sm: 0 4px 14px rgba(18, 22, 41, 0.06);
  --shadow-md: 0 14px 36px rgba(18, 22, 41, 0.10);
  --shadow-lg: 0 26px 60px rgba(18, 22, 41, 0.16);
  --radius:    18px;
  --radius-sm: 12px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.highlight { color: var(--maroon); }

.eyebrow {
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--maroon);
}
.eyebrow i { margin-right: 7px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border: none; border-radius: 999px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn-primary { background: var(--blush); color: var(--ink); box-shadow: 0 8px 20px rgba(238,187,195,.5); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(238,187,195,.7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); background: var(--navy); }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { transform: translateY(-3px); background: var(--maroon-dark); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(37,211,102,.35); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(35, 41, 70, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184,193,236,.12);
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(20px, 5vw, 60px);
}
.navbar-logo img { width: 64px; transition: transform .3s var(--ease); }
.navbar-logo img:hover { transform: scale(1.06) rotate(-2deg); }
.navbar-logo { flex: 1; }
.navbar-links { flex: 2; display: flex; justify-content: center; gap: 30px; list-style: none; }
.navbar-links a {
  font-family: "Roboto Condensed", sans-serif; font-size: 1.05rem; font-weight: 600;
  color: var(--periwinkle); letter-spacing: .02em; padding-bottom: 4px; position: relative;
  transition: color .25s;
}
.navbar-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--blush); transition: width .3s var(--ease);
}
.navbar-links a:hover { color: #fff; }
.navbar-links a:hover::after { width: 100%; }

.nav-actions { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.btn-icon { position: relative; color: #fff; font-size: 1.35rem; transition: transform .3s var(--ease); }
.btn-icon:hover { transform: translateY(-2px); }
.cart-badge {
  position: absolute; top: -9px; right: -11px; background: var(--maroon); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center; line-height: 1;
}
.nav-user { color: var(--periwinkle); font-size: .92rem; font-family: "Roboto Condensed", sans-serif; }
.nav-login { color: #fff; font-weight: 600; font-family: "Roboto Condensed", sans-serif; font-size: 1.02rem; }
.menu-toggle { display: none; color: #fff; font-size: 1.7rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(178,34,34,.12), transparent 60%),
    radial-gradient(700px 500px at 0% 120%, rgba(35,41,70,.08), transparent 60%),
    var(--paper-2);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(18,22,41,.04) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 40px; min-height: 84vh; padding-block: 60px;
}
.hero-text .eyebrow { margin-bottom: 16px; display: inline-block; }
.hero-text h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero-text h1 .script { display: block; color: var(--maroon); font-style: italic; font-weight: 500; }
.hero-tagline { font-style: italic; color: var(--navy); font-size: 1.1rem; margin: 10px 0 6px; }
.hero-text p.lead { color: var(--muted); max-width: min(46ch, 100%); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats i { color: var(--maroon); font-size: 1.05rem; margin-bottom: 6px; display: block; }
.hero-stats .num { font-family: "Fraunces", serif; font-size: 1.9rem; color: var(--ink); font-weight: 600; }
.hero-stats .lbl { font-size: .82rem; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { position: relative; z-index: 1; max-width: 700px; width: 100%;
  animation: float 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(18,22,41,.25)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* ---------- FEATURE STRIP (ikon kepercayaan) ---------- */
.feature-strip { background: var(--navy); }
.feature-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-block: 32px;
}
.feature-item { display: flex; align-items: center; gap: 14px; color: #fff; }
.feature-item .ic {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; color: var(--blush);
  background: rgba(238,187,195,.12); border: 1px solid rgba(238,187,195,.25);
  transition: transform .3s var(--ease), background .3s;
}
.feature-item:hover .ic { transform: translateY(-4px); background: rgba(238,187,195,.22); }
.feature-item h4 { font-family: "Roboto Condensed", sans-serif; font-size: 1.02rem; color: #fff;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.feature-item p { font-size: .82rem; color: var(--periwinkle); line-height: 1.3; }

/* ---------- SECTION SHELL ---------- */
.section { padding-block: clamp(60px, 9vw, 110px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 12px 0 10px; }
.section-head p { color: var(--muted); }

/* ---------- PRODUCTS ---------- */
#produk { background: var(--paper); }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px;
}
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-cat {
  position: absolute; top: 12px; left: 12px; background: rgba(35,41,70,.9); color: #fff;
  font-family: "Roboto Condensed", sans-serif; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; padding: 5px 11px; border-radius: 999px;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 1.18rem; }
.product-rating { font-size: .82rem; color: #e0a200; }
.product-rating span { color: var(--muted); margin-left: 4px; }
.product-price { font-family: "Fraunces", serif; color: var(--maroon); font-size: 1.35rem; font-weight: 600; margin-top: 2px; }
.product-price .unit { font-family: "Poppins", sans-serif; font-size: .8rem; color: var(--muted); font-weight: 400; }
.product-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; }
.add-to-cart {
  flex: 1; border: none; cursor: pointer; border-radius: var(--radius-sm); padding: 11px;
  background: var(--maroon); color: #fff; font-family: "Poppins", sans-serif; font-weight: 600;
  transition: background .25s, transform .25s var(--ease);
}
.add-to-cart:hover { background: var(--maroon-dark); transform: translateY(-2px); }
.btn-detail {
  display: grid; place-items: center; width: 46px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); color: var(--ink); transition: .25s;
}
.btn-detail:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- TENTANG ---------- */
#tentang { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 26px; }
.about-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.about-visual { display: grid; place-items: center; }
.about-visual img { max-width: 360px; border-radius: var(--radius); }

/* ---------- KEUNGGULAN ---------- */
#keunggulan { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-keunggulan { border-top: 4px solid var(--maroon); }
.card-testi { border-top: 4px solid var(--navy); }
.card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; margin-bottom: 22px; }
.card h3 i { color: var(--maroon); }
.list-clean { list-style: none; display: grid; gap: 15px; }
.list-clean li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.list-clean li i { color: var(--maroon); }
.testi { background: var(--paper-2); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.testi p { font-style: italic; color: #555; margin-bottom: 8px; font-size: .96rem; }
.testi span { font-weight: 700; color: var(--muted); font-size: .82rem; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: #cfd3e6; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer h2.brand { color: #fff; font-size: 1.9rem; margin-bottom: 16px; }
.footer h4 { color: #fff; font-family: "Roboto Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: .12em; font-size: .95rem; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #cfd3e6; transition: .25s; }
.footer ul a:hover { color: var(--blush); padding-left: 5px; }
.footer .socials { display: flex; gap: 12px; margin-bottom: 18px; }
.footer .socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: .3s var(--ease);
}
.footer .socials a:hover { background: var(--maroon); transform: translateY(-3px); }
.footer-bottom { text-align: center; margin-top: 46px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1); color: #8a8fae; font-size: .88rem; }

/* ---------- AUTH PAGES ---------- */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--paper);
}
.auth-aside {
  position: relative; color: #fff; padding: 56px; display: flex; flex-direction: column;
  justify-content: space-between; overflow: hidden;
  background:
    radial-gradient(700px 420px at 80% 10%, rgba(178,34,34,.4), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--ink));
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.auth-aside .auth-brand { position: relative; display: flex; align-items: center; gap: 12px; }
.auth-aside .auth-brand img { width: 56px; }
.auth-aside h2 { position: relative; color: #fff; font-size: 2.4rem; margin-top: auto; }
.auth-aside p { position: relative; color: var(--periwinkle); max-width: 38ch; margin-top: 14px; }
.auth-aside .auth-points { position: relative; list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.auth-aside .auth-points li { display: flex; gap: 10px; align-items: center; color: #e7e9f5; }
.auth-aside .auth-points i { color: var(--blush); }

.auth-form-side { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: "Poppins", sans-serif; font-size: .98rem; background: var(--paper-2);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus {
  outline: none; border-color: var(--maroon); background: #fff;
  box-shadow: 0 0 0 4px rgba(178,34,34,.1);
}
.auth-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--muted); font-size: .94rem; }
.auth-switch a { color: var(--maroon); font-weight: 600; }

.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .92rem; }
.alert-error { background: #fdecea; color: #8b1f17; border: 1px solid #f5c6c0; }
.alert-success { background: #e9f7ef; color: #1d6b3f; border: 1px solid #b8e3c9; }

/* ---------- PRODUCT DETAIL ---------- */
.detail { background: var(--paper-2); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; }
.detail-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.detail-info .eyebrow { margin-bottom: 10px; display: inline-block; }
.detail-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.detail-meta { display: flex; gap: 20px; align-items: center; padding-bottom: 16px;
  border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.detail-meta .rating { color: #e0a200; font-size: .92rem; }
.detail-meta .rating span { color: var(--muted); margin-left: 4px; }
.detail-meta .stok { color: #1d6b3f; font-size: .9rem; font-weight: 600; }
.detail-price { font-family: "Fraunces", serif; color: var(--maroon); font-size: 2.2rem; margin-bottom: 18px; }
.detail-price .unit { font-family: "Poppins", sans-serif; font-size: 1rem; color: var(--muted); }
.detail-info .desc { color: var(--muted); margin-bottom: 22px; }
.detail-features { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.detail-features li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.detail-features i { color: var(--maroon); }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
  font-weight: 600; margin-bottom: 28px; transition: .25s; }
.back-link:hover { color: var(--maroon); }

/* ---------- CART DRAWER ---------- */
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: min(380px, 90vw); height: 100%;
  background: #fff; box-shadow: -10px 0 40px rgba(18,22,41,.2); z-index: 2000;
  transition: right .4s var(--ease); display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(18,22,41,.45); opacity: 0;
  visibility: hidden; transition: .35s; z-index: 1900; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center;
  padding: 22px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.3rem; }
.cart-close { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--ink); line-height: 1; }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { text-align: center; color: var(--muted); margin-top: 40px; }
.cart-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-row .info { flex: 1; }
.cart-row .info h4 { font-family: "Poppins", sans-serif; font-size: .98rem; font-weight: 600; }
.cart-row .info .price { color: var(--maroon); font-weight: 600; font-size: .9rem; }
.cart-row .info .qty { color: var(--muted); font-size: .85rem; }
.cart-row .rm { background: none; border: none; color: var(--maroon); cursor: pointer; font-size: 1rem; }
.cart-foot { padding: 20px 22px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; }
.cart-total .amount { color: var(--maroon); font-family: "Fraunces", serif; font-size: 1.25rem; }
.cart-foot .btn { width: 100%; justify-content: center; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; min-height: auto; padding-block: 36px 44px; }
  .hero-text .eyebrow { margin-inline: auto; }
  .hero-text p.lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 420px; }
  .about-grid, .detail-grid, .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { min-height: 240px; padding: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .navbar-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--navy); padding: 22px 0; gap: 18px; align-items: center;
    transform: translateY(-130%); transition: transform .4s var(--ease); z-index: -1;
  }
  .navbar-links.active { transform: translateY(0); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer .socials { justify-content: center; }
  .hero-stats { gap: 22px; }
  .feature-strip .container { grid-template-columns: 1fr; }
  .feature-item { justify-content: center; }
  .hero-visual img { max-width: 340px; }
}

/* ===================================================================
   TOAST · CART PAGE · CHECKOUT · INVOICE
   =================================================================== */

/* Toast notifikasi */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px; z-index: 4000;
  opacity: 0; visibility: hidden; transition: .35s var(--ease);
}
.toast i { color: var(--blush); }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Head halaman cart/checkout */
.cart-page-head { margin-bottom: 34px; }
.cart-page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 8px; }

/* Layout keranjang */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: box-shadow .3s var(--ease);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cart-item-price { color: var(--maroon); font-weight: 600; margin-bottom: 10px; }
.qty-control { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-control button {
  width: 34px; height: 34px; border: none; background: var(--paper-2); cursor: pointer;
  font-size: 1.1rem; color: var(--ink); transition: background .2s;
}
.qty-control button:hover { background: var(--blush); }
.qty-control span { min-width: 38px; text-align: center; font-weight: 600; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cart-item-right strong { font-family: "Fraunces", serif; color: var(--ink); font-size: 1.15rem; }
.cart-remove { background: none; border: none; color: var(--maroon); cursor: pointer; font-size: 1rem; transition: transform .2s; }
.cart-remove:hover { transform: scale(1.2); }

/* Ringkasan (cart & checkout) */
.cart-summary {
  position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.cart-summary h2 { font-size: 1.4rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; color: var(--muted); }
.summary-row strong { color: var(--ink); }
.summary-row.total { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 16px; font-size: 1.15rem; }
.summary-row.total strong { font-family: "Fraunces", serif; color: var(--maroon); font-size: 1.4rem; }
.cart-summary .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* Empty state */
.cart-empty-state { text-align: center; padding: 70px 20px; }
.cart-empty-state i { font-size: 3.4rem; color: var(--line); margin-bottom: 18px; }
.cart-empty-state h2 { margin-bottom: 8px; }
.cart-empty-state p { color: var(--muted); margin-bottom: 22px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 22px; }
.checkout-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.checkout-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 20px; }
.checkout-card h2 i { color: var(--maroon); }
.pay-option { display: block; margin-bottom: 12px; cursor: pointer; }
.pay-option input { display: none; }
.pay-body {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: .25s; font-weight: 500;
}
.pay-body i { color: var(--maroon); font-size: 1.2rem; }
.pay-option input:checked + .pay-body { border-color: var(--maroon); background: #fdf3f3; box-shadow: 0 0 0 3px rgba(178,34,34,.08); }

/* Ganti Metode Pembayaran (invoice, hanya saat pending) */
.ganti-metode-box { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.gm-panel { margin-top: 12px; }
.gm-bank-wrap { padding: 0 14px 10px 38px; }
.gm-bank-wrap label { font-size: .85rem; color: var(--muted); }
.gm-select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--paper); }
.gm-note { display: block; color: var(--muted); margin-top: 6px; font-size: .85rem; }
.gm-submit { margin-top: 6px; }
.batal-form { margin-top: 10px; }
.btn-batal { background: transparent; border: 1.5px solid #d9a3a3; color: #b22222; }
.btn-batal:hover { background: #b22222; border-color: #b22222; color: #fff; }

/* Modal konfirmasi (mis. batalkan pesanan) */
.modal-overlay { position: fixed; inset: 0; background: rgba(18,22,41,.55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000; animation: modalFade .18s ease; }
.modal-overlay[hidden] { display: none; }
.modal-box { background: var(--paper); border-radius: var(--radius); max-width: 380px; width: 100%; padding: 26px 24px; text-align: center; box-shadow: 0 24px 60px rgba(18,22,41,.3); animation: modalPop .22s cubic-bezier(.22,1,.36,1); }
.modal-icon { width: 60px; height: 60px; border-radius: 50%; background: #fdeef0; color: var(--maroon); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 14px; }
.modal-title { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink); }
.modal-box .modal-title { display: block; text-align: center; justify-content: center; }
.modal-box .modal-text, .modal-box .modal-icon { text-align: center; }
.modal-text { margin: 0 0 20px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.modal-actions .btn { flex: 1; justify-content: center; }
.btn-batal-solid { background: var(--maroon); border: 1.5px solid var(--maroon); color: #fff; }
.btn-batal-solid:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.checkout-items { margin-bottom: 8px; }
.checkout-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.checkout-item em { color: var(--muted); font-style: normal; }

/* Invoice */
.invoice-wrap { max-width: 760px; margin-inline: auto; }
.invoice-success { text-align: center; margin-bottom: 30px; }
.invoice-success i { font-size: 3.4rem; color: #25a259; margin-bottom: 12px; }
.invoice-success h1 { font-size: 2rem; }
.invoice-success p { color: var(--muted); margin-top: 6px; }
.invoice-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.invoice-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.invoice-top .lbl { display: block; font-size: .82rem; color: var(--muted); }
.invoice-top .kode { font-family: "Roboto Condensed", sans-serif; font-size: 1.3rem; letter-spacing: .05em; }
.status-badge { padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.status-pending { background: #fff3cd; color: #8a6d00; }
.status-dibayar { background: #d9f2e3; color: #1d6b3f; }
.status-dikirim { background: #d9e8ff; color: #1c4f9c; }
.status-selesai { background: #e0e0e0; color: #444; }
.status-batal   { background: #fdecea; color: #8b1f17; }
.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.invoice-table th { text-align: left; font-family: "Roboto Condensed", sans-serif; text-transform: uppercase;
  font-size: .8rem; letter-spacing: .06em; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--line); }
.invoice-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.invoice-table tfoot td { font-weight: 700; border: none; padding-top: 14px; }
.invoice-table .grand { color: var(--maroon); font-family: "Fraunces", serif; font-size: 1.2rem; }
.invoice-ship { background: var(--paper-2); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; font-size: .92rem; line-height: 1.6; }
.pay-instruction { border-top: 1px dashed var(--line); padding-top: 22px; }
.pay-instruction h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pay-instruction h3 i { color: var(--maroon); }
.pay-instruction ul { list-style: none; margin: 12px 0; display: grid; gap: 8px; }
.pay-instruction li { background: var(--paper-2); padding: 12px 16px; border-radius: var(--radius-sm); }
.confirm-note { color: var(--muted); font-size: .9rem; margin: 14px 0 18px; }
.pay-instruction .btn { margin-right: 10px; margin-top: 6px; }

@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .invoice-table th:nth-child(2), .invoice-table td:nth-child(2) { display: none; }
  .hero-visual img { max-width: 280px; }
}

/* ---- Indikator stok di kartu produk depan ---- */
.product-stock{font-size:.82rem;font-weight:600;color:#1d6b3f;display:flex;align-items:center;gap:6px;margin-top:2px}
.product-stock.low{color:#8a6d00}
.product-stock.out{color:#8b1f17}
.add-to-cart:disabled{background:#cbb6b6;cursor:not-allowed}
.add-to-cart:disabled:hover{background:#cbb6b6;transform:none}

/* ---- Riwayat Pesanan (front-end pelanggan) ---- */
.order-history{display:flex;flex-direction:column;gap:16px;max-width:760px}
.order-row{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;transition:box-shadow .3s var(--ease)}
.order-row:hover{box-shadow:var(--shadow-sm)}
.order-row-main{display:flex;justify-content:space-between;align-items:center;gap:12px}
.order-kode{font-family:"Roboto Condensed",sans-serif;letter-spacing:.04em;font-size:1.05rem;display:block}
.order-date{font-size:.82rem;color:var(--muted)}
.order-items{color:var(--muted);font-size:.92rem;margin:12px 0;line-height:1.5}
.order-row-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed var(--line);padding-top:14px}
.order-total{font-family:"Fraunces",serif;color:var(--maroon);font-size:1.25rem;font-weight:600}

/* =====================================================================
   PENAMBAHAN v6 — badge, ongkir, VA, bukti, ulasan, lupa-password
   ===================================================================== */

/* ---- Badge logo (Halal / Tanpa Pengawet) ---- */
.feature-item .ic-badge { background: #fff; border: 1px solid rgba(238,187,195,.3); padding: 4px; }
.feature-item .ic-badge img { width: 100%; height: 100%; object-fit: contain; }
.trust-badges { display: flex; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.trust-badges img { width: 92px; height: 92px; filter: drop-shadow(0 6px 14px rgba(18,22,41,.14)); transition: transform .3s var(--ease); }
.trust-badges img:hover { transform: translateY(-4px) scale(1.04); }
.detail-features li.feat-badge { align-items: center; }
.detail-features li.feat-badge img { width: 40px; height: 40px; }

/* ---- Link lupa password ---- */
.field-foot { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.link-muted { color: var(--maroon); font-weight: 600; font-size: .9rem; }
.link-muted:hover { text-decoration: underline; }
.alert-info { background: #eef4fd; color: #1c466f; border: 1px solid #c4dbf5; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .9rem; }

/* ---- Catatan ongkir ---- */
.ongkir-note { font-size: .82rem; color: var(--muted); margin: 4px 0 10px; padding: 8px 12px; background: var(--paper-2); border-radius: 10px; border: 1px solid var(--line); }
.ongkir-note.free { color: #1d6b3f; background: #e9f7ef; border-color: #b8e3c9; }
.ongkir-note i { margin-right: 6px; }

/* ---- Virtual Account ---- */
.va-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--paper-2); border: 1.5px dashed var(--maroon); border-radius: 12px; padding: 14px 18px; margin: 12px 0; max-width: 100%; }
.va-box > * { min-width: 0; }
.va-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.va-number { font-family: "Roboto Condensed", monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); word-break: break-all; overflow-wrap: anywhere; }
.va-steps { margin: 10px 0 0 18px; color: var(--muted); font-size: .9rem; display: grid; gap: 4px; }

/* ---- Upload bukti ---- */
.bukti-box { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.bukti-box h4 { font-size: 1rem; margin-bottom: 10px; }
.bukti-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.bukti-form input[type="file"] { font-size: .88rem; }
.bukti-done { color: #1d6b3f; font-weight: 600; margin-bottom: 6px; }
.bukti-done a { color: var(--maroon); margin-left: 8px; text-decoration: underline; }

/* ---- Ulasan (tampil di product.php) ---- */
.reviews-section { background: var(--paper-2); }
.reviews-summary { display: flex; gap: 24px; margin-bottom: 24px; }
.reviews-score { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 28px; box-shadow: var(--shadow-sm); }
.reviews-score strong { display: block; font-family: "Fraunces", serif; font-size: 2.6rem; color: var(--ink); line-height: 1; }
.reviews-score .stars { color: #e0a200; font-size: 1.1rem; margin: 4px 0; }
.reviews-score span { font-size: .82rem; color: var(--muted); }
.reviews-list { display: grid; gap: 14px; }
.review-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-name { font-weight: 600; color: var(--ink); }
.review-name i { color: var(--maroon); margin-right: 6px; }
.review-stars { color: #e0a200; letter-spacing: 1px; }
.review-text { color: var(--text); font-size: .95rem; margin: 4px 0; }
.review-date { font-size: .78rem; color: var(--muted); }

/* ---- Form beri ulasan (ulasan.php) ---- */
.ulasan-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ulasan-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.ulasan-body { flex: 1; }
.ulasan-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.ulasan-body textarea { width: 100%; margin-top: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; resize: vertical; }
/* bintang interaktif (radio terbalik utk efek hover dgn ~ selector) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { font-size: 1.7rem; color: #d8d2ca; cursor: pointer; padding: 0 2px; transition: color .15s; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f5b301; }

/* ---- btn kecil (front-end) ---- */
.btn-sm { padding: 8px 16px; font-size: .85rem; }

@media (max-width: 560px) {
  .trust-badges { justify-content: center; }
  .va-number { font-size: 1.2rem; }
}
