/* =========================================================
   AdraCraft — style.css
   Tema: Mint Candy (lembut)
   Nak tukar warna? Tukar kat bahagian :root je.
   ========================================================= */

:root {
  --mint:        #6FD3C4;  /* mint utama (hiasan) */
  --mint-deep:   #0E7C72;  /* butang & link (senang baca) */
  --mint-soft:   #E4F6F1;  /* background lembut */
  --pink:        #FF8FAB;  /* aksen */
  --pink-soft:   #FFE6EC;
  --butter:      #FFF1C9;
  --bg:          #FDFCF8;  /* putih susu */
  --card:        #FFFFFF;
  --ink:         #2B2D42;  /* teks */
  --ink-soft:    #5E6178;
  --line:        #E9EEEC;

  --r-lg: 28px;
  --r-md: 18px;
  --shadow: 0 10px 30px rgba(43, 45, 66, .08);
  --font-head: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 76px; /* ruang untuk butang WhatsApp melekat */
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mint-deep); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- Butang ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--main { background: var(--mint-deep); color: #fff; box-shadow: 0 8px 18px rgba(14, 124, 114, .28); }
.btn--main:hover { background: #0A6A61; }
.btn--soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--soft:hover { box-shadow: inset 0 0 0 2px var(--mint); }
.btn--pink { background: var(--pink-soft); color: #A8234A; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .92rem; width: 100%; background: var(--mint-soft); color: var(--mint-deep); }
.btn--sm:hover { background: var(--mint); color: var(--ink); }
.btn--sm.btn--pink { background: var(--pink-soft); color: #A8234A; }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 1.1rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* ---------- Navigasi ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(253, 252, 248, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.logo { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--mint-deep); }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; margin-right: 8px; }
.nav__right { display: flex; align-items: center; gap: 10px; }

.lang { display: flex; background: var(--mint-soft); border-radius: 999px; padding: 3px; }
.lang a { padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: .8rem; color: var(--ink-soft); text-decoration: none; }
.lang a.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(43, 45, 66, .12); }

.burger { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); }

.menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px; box-shadow: var(--shadow);
}
.menu.is-open { display: block; }
.menu a { display: block; padding: 13px 4px; font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 92% 8%, var(--pink-soft) 0 130px, transparent 131px),
    radial-gradient(circle at 4% 96%, var(--butter) 0 110px, transparent 111px),
    var(--mint-soft);
  padding: 30px 0 44px;
  overflow: hidden;
}
.hero__in { display: grid; gap: 30px; }
.tag { display: inline-block; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .82rem; color: var(--mint-deep); }
.hero h1 { font-size: clamp(1.9rem, 8vw, 3.1rem); margin: 14px 0 12px; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--mint-deep); background: linear-gradient(transparent 62%, var(--butter) 62%); padding: 0 .08em; }
.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 30em; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: rgba(255, 255, 255, .75); border-radius: 999px; padding: 6px 13px; font-size: .84rem; font-weight: 700; }
/* Rahsia: tekan baru nampak */
.rahsia summary { list-style: none; cursor: pointer; font-weight: 700; }
.rahsia summary::-webkit-details-marker { display: none; }
.rahsia p { margin-top: 6px; font-weight: 700; }
.rahsia a { color: var(--mint-deep); white-space: nowrap; }
.pills .rahsia { background: var(--butter); border: 2px dashed #E3B93C; border-radius: 18px; padding: 4px 12px; }
.pills .rahsia:not(:has([open])) { transform: rotate(-1.5deg); }
details.bulk { border: 2px dashed #E3B93C; cursor: pointer; }

.hero__pic { position: relative; max-width: 380px; margin: 0 auto; width: 100%; }
.hero__pic img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 44% 56% 48% 52% / 38% 40% 60% 62%; border: 8px solid #fff; box-shadow: var(--shadow); }
.sticker { position: absolute; font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 8px 15px; border-radius: 999px; box-shadow: var(--shadow); }
.sticker--a { left: -4px; top: 12%; background: var(--pink); color: #4A0D22; transform: rotate(-8deg); }
.sticker--b { right: -2px; bottom: 12%; background: var(--butter); color: var(--ink); transform: rotate(6deg); }

/* ---------- Seksyen ---------- */
.sec { padding: 52px 0; }
.sec--mint { background: var(--mint-soft); }
.sec h2, .cta h2 { font-size: clamp(1.7rem, 6.5vw, 2.3rem); }
.sub { color: var(--ink-soft); margin: 6px 0 24px; }

/* ---------- Kad produk ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { background: var(--card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img, .card__ph { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.card__ph { display: grid; place-content: center; font-size: 3rem; background: repeating-linear-gradient(45deg, var(--pink-soft) 0 14px, #fff 14px 28px); }
.card__b { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.02rem; }
.price { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--mint-deep); margin-bottom: auto; padding-bottom: 6px; }
.price small { font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--ink-soft); }
.price--ask { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--ink-soft); }

.bulk { margin-top: 20px; text-align: center; background: var(--butter); border-radius: var(--r-md); padding: 14px 16px; font-weight: 700; }
.bulk a { color: var(--mint-deep); white-space: nowrap; }

/* ---------- Cara order ---------- */
.steps { display: grid; gap: 12px; }
.steps li { background: #fff; border-radius: var(--r-md); padding: 18px 18px 18px 70px; position: relative; }
.steps b { position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; background: var(--pink); color: #4A0D22; font-family: var(--font-head); font-size: 1.2rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: 2px; }
.steps p { color: var(--ink-soft); font-size: .95rem; }
.notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.notes li { background: var(--butter); border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 700; }

/* ---------- Galeri ---------- */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--r-md); }
.gal img:nth-child(odd) { border-radius: var(--r-lg) var(--r-md) var(--r-lg) var(--r-md); }

/* ---------- Instagram ---------- */
.ig { width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; color: var(--ink); background: var(--pink-soft); }
.ig:hover { background: var(--pink); }
.igbar { margin-top: 20px; background: var(--pink-soft); border-radius: var(--r-md); padding: 18px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; text-align: center; font-weight: 700; }
.igbar .btn { background: #fff; gap: 8px; }
.foot__ig { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.foot__ig:hover { color: var(--mint-deep); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: #fff; border-radius: var(--r-md); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--pink-soft); color: #A8234A; font-size: 1.3rem; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta--gap { padding-top: 52px; }
.cta { padding: 0 0 52px; }
.cta__in { text-align: center; }
.cta__in { background: radial-gradient(circle at 12% 20%, var(--butter) 0 60px, transparent 61px), radial-gradient(circle at 90% 85%, var(--mint) 0 70px, transparent 71px), var(--pink-soft); border-radius: var(--r-lg); padding: 44px 20px; max-width: 1048px; width: calc(100% - 32px); }
.cta h2 { margin-bottom: 20px; }

/* ---------- Borang order ---------- */
body.no-float { padding-bottom: 0; }
.ohead { background: radial-gradient(circle at 94% 10%, var(--pink-soft) 0 90px, transparent 91px), var(--mint-soft); padding: 28px 0 30px; }
.ohead h1 { font-size: clamp(2rem, 8vw, 2.8rem); margin: 12px 0 8px; }
.sec--form { padding-top: 24px; }
.oform { display: grid; gap: 16px; max-width: 640px; margin: 0 auto; }
.box { border: 0; margin: 0; min-width: 0; background: var(--card); border-radius: var(--r-lg); padding: 20px 16px; box-shadow: var(--shadow); }
.box legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.box legend + * { clear: both; }
.box legend b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; background: var(--pink); color: #4A0D22; font-size: 1.05rem; }
.box--sum { background: var(--mint-soft); box-shadow: none; }

.item { border: 2px dashed var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 12px; }
.item__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.item__no { font-family: var(--font-head); color: var(--mint-deep); }
.item__del { border: 0; background: var(--pink-soft); color: #A8234A; border-radius: 999px; min-height: 36px; padding: 0 14px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }

.f { display: block; margin-bottom: 12px; }
.f > span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; }
.f small { font-weight: 400; color: var(--ink-soft); }
.f input, .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
}
.f textarea { resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.dah-cuba .f input:invalid, .dah-cuba .f select:invalid, .dah-cuba .f textarea:invalid { border-color: var(--pink); background: #FFF7F9; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f2 .f--qty { max-width: 130px; }
.item .f2 { grid-template-columns: 1fr 110px; }
.item .f:last-child, .item .f2 .f { margin-bottom: 0; }

.btn--add { width: 100%; }
.btn--full { width: 100%; margin-top: 14px; }
.hint { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.hint--top { margin: 0 0 12px; }
.hint--c { text-align: center; }
.notes--c { justify-content: center; }

.sum li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(43, 45, 66, .15); font-size: .95rem; }
.sum li span:last-child { font-weight: 700; white-space: nowrap; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.total strong { font-size: 1.9rem; color: var(--mint-deep); }
.check { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: .92rem; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--mint-deep); }
.dah-cuba .check:has(input:invalid) { box-shadow: 0 0 0 2px var(--pink); }
.err { background: var(--pink-soft); color: #8E1B3D; border-radius: 14px; padding: 10px 14px; margin-top: 12px; font-weight: 700; font-size: .9rem; }
[hidden] { display: none !important; }

/* ---------- Page 404 ---------- */
.nf { min-height: 100vh; display: grid; align-items: center; }
.nf .logo { margin-bottom: 18px; }
.nf .btns { margin-bottom: 0; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0; text-align: center; color: var(--ink-soft); font-size: .9rem; }
.foot__in { display: grid; gap: 6px; justify-items: center; }
.foot__c { font-size: .8rem; }

/* ---------- Butang WhatsApp melekat ---------- */
.float {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--mint-deep); color: #fff; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 10px 24px rgba(14, 124, 114, .38);
}

/* =========================================================
   Tablet & desktop
   ========================================================= */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .float { left: auto; right: 20px; bottom: 20px; padding: 0 26px; }
  .box { padding: 28px; }
  .ohead { padding: 48px 0; }
  .burger { display: none; }
  .menu { display: flex; position: static; background: none; border: 0; box-shadow: none; padding: 0; gap: 26px; }
  .menu a { border: 0; padding: 6px 0; font-size: 1rem; }
  .menu a:hover { color: var(--mint-deep); }
  .hero { padding: 60px 0 70px; }
  .hero__in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .sec { padding: 76px 0; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .card:hover { transform: translateY(-4px); transition: transform .2s ease; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .gal { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .cta { padding-bottom: 76px; }
}

/* =========================================================
   Animasi bila scroll (main.js tambah class "js" dan "is-in")
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero__pic.reveal { transform: scale(.9) rotate(-4deg); }
.js .hero__pic.reveal.is-in { transform: none; }

@keyframes goyang { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.sticker { animation: goyang 3.5s ease-in-out infinite; }
.sticker--b { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sticker { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
