/* SideMyney — Malaysia Kitchen Appliance Reviews */
/* Fast, mobile-first, no-JS-required design */

:root {
  --brand: #e8590c;        /* warm orange — kitchen heat */
  --brand-dark: #c2410c;
  --brand-light: #fff4e6;
  --teal: #0c8599;
  --ink: #1f2933;
  --ink-2: #52606d;
  --ink-3: #7b8794;
  --bg: #ffffff;
  --bg-2: #f7f5f2;
  --line: #e4e7eb;
  --green: #2f9e44;
  --green-bg: #ebfbee;
  --red: #e03131;
  --red-bg: #fff5f5;
  --amber-bg: #fff9db;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(31, 41, 51, .08), 0 4px 14px rgba(31, 41, 51, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; }
.logo .logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #f59f00);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 900;
}
.logo span.tag { font-size: .62rem; color: var(--ink-3); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; display: block; line-height: 1.1; }
nav.main-nav ul { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
nav.main-nav a { display: block; padding: 8px 12px; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 600; border-radius: 8px; }
nav.main-nav a:hover { color: var(--brand); background: var(--brand-light); }

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; padding: 28px 0 60px; }
main.article { min-width: 0; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } aside.sidebar { display: none; } }

/* ---------- Article ---------- */
.article-header { padding: 12px 0 20px; }
.crumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.post-meta { font-size: .88rem; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.post-meta .updated { color: var(--green); font-weight: 600; }
.article-body { font-size: 1.02rem; }
.article-body h2 { font-size: 1.45rem; margin: 2rem 0 .9rem; font-weight: 800; letter-spacing: -.01em; scroll-margin-top: 80px; }
.article-body h3 { font-size: 1.18rem; margin: 1.6rem 0 .6rem; font-weight: 700; scroll-margin-top: 80px; }
.article-body p { margin: 0 0 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.4rem; }
.article-body li { margin-bottom: .45rem; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--brand-dark); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body strong { font-weight: 700; }
.article-body blockquote { border-left: 4px solid var(--brand); background: var(--brand-light); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 1rem; }

/* verdict box */
.verdict-box {
  background: linear-gradient(135deg, var(--brand-light), #fff);
  border: 1px solid #ffd8a8;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 1.4rem 0;
  box-shadow: var(--shadow);
}
.verdict-box h2 { margin: 0 0 10px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .4px; color: var(--brand-dark); }
.verdict-box ul { list-style: none; margin: 0; }
.verdict-box li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed #ffe3c0; }
.verdict-box li:last-child { border-bottom: 0; }
.verdict-box li::before { content: "★"; position: absolute; left: 0; color: var(--brand); }

/* disclosure */
.disclosure { font-size: .84rem; color: var(--ink-3); background: var(--bg-2); border-radius: 8px; padding: 10px 14px; margin: 0 0 1.4rem; }

/* ---------- Product cards ---------- */
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 1.6rem 0;
  background: var(--bg);
  box-shadow: var(--shadow);
  scroll-margin-top: 80px;
}
.product-card .pc-head { display: flex; gap: 16px; align-items: flex-start; }
.product-card .pc-img {
  width: 96px; height: 96px; flex: 0 0 96px; border-radius: 10px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-fallback { font-size: 2.2rem; opacity: .85; }
.product-card h3 { margin: 0 0 2px; font-size: 1.12rem; }
.product-card .pc-badge {
  display: inline-block; font-size: .72rem; font-weight: 700; color: #fff;
  background: var(--brand); border-radius: 20px; padding: 2px 10px; margin: 4px 0 6px; letter-spacing: .3px;
}
.product-card .pc-meta { font-size: .88rem; color: var(--ink-2); margin: 4px 0 0; }
.product-card .pc-price { font-weight: 800; color: var(--ink); font-size: 1rem; }
.product-card .pc-body { margin-top: 12px; }
.product-card .pc-body p { margin-bottom: .7rem; }
.product-card .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 0; }
@media (max-width: 560px) { .product-card .pros-cons { grid-template-columns: 1fr; } }
.product-card .pros, .product-card .cons { font-size: .92rem; }
.product-card .pros h4, .product-card .cons h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.product-card .pros h4 { color: var(--green); }
.product-card .cons h4 { color: var(--red); }
.product-card .pros li, .product-card .cons li { list-style: none; padding: 3px 0 3px 20px; position: relative; }
.product-card .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.product-card .cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.product-card .pc-cta { margin-top: 14px; }
.btn-lazada {
  display: inline-block; background: linear-gradient(135deg, #f59f00, #e8590c);
  color: #fff; font-weight: 700; font-size: .95rem;
  padding: 11px 22px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 2px 6px rgba(232, 89, 12, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-lazada:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232, 89, 12, .4); color: #fff; }
.btn-lazada small { display: block; font-weight: 500; font-size: .72rem; opacity: .9; }

/* comparison table */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border-radius: var(--radius); border: 1px solid var(--line); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
table.cmp th { background: var(--brand-light); text-align: left; padding: 10px 12px; font-weight: 700; border-bottom: 2px solid #ffd8a8; white-space: nowrap; }
table.cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp tr:hover td { background: var(--bg-2); }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; overflow: hidden; }
.faq-item details { padding: 0; }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 1rem; list-style: none; position: relative; padding-right: 40px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--brand); font-weight: 700; }
.faq-item details[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 16px 14px; font-size: .97rem; }

/* quick answer box (GEO) */
.quick-answer { background: var(--green-bg); border: 1px solid #b2f2bb; border-radius: var(--radius); padding: 16px 18px; margin: 1.4rem 0; }
.quick-answer h2 { margin: 0 0 6px !important; font-size: .95rem !important; color: var(--green); text-transform: uppercase; letter-spacing: .4px; }
.quick-answer p { margin: 0; }

/* ---------- Pillar / hub ---------- */
.hero { background: linear-gradient(140deg, var(--brand-light), #fff4e6 55%, #fff); border-radius: 16px; padding: 34px 30px; margin: 22px 0 30px; border: 1px solid #ffe3c0; }
.hero h1 { margin-bottom: 12px; }
.hero p.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 640px; }
.hero .stats { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.hero .stat b { display: block; font-size: 1.5rem; color: var(--brand-dark); }
.hero .stat span { font-size: .85rem; color: var(--ink-3); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.cat-card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease; }
.cat-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.cat-card .cat-icon { font-size: 1.6rem; margin-bottom: 8px; }
.cat-card b { display: block; margin-bottom: 4px; font-size: 1.02rem; }
.cat-card span { font-size: .85rem; color: var(--ink-3); }
.cat-card .count { font-size: .75rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Sidebar ---------- */
.sidebar-sticky { position: sticky; top: 80px; }
.widget { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.widget h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-2); margin-bottom: 12px; }
.widget ul { list-style: none; }
.widget li { margin-bottom: 8px; }
.widget a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.widget a:hover { color: var(--brand); }
.widget .toc a { display: block; padding: 4px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd2d9; padding: 34px 0 26px; margin-top: 30px; font-size: .9rem; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-grid { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 10px; font-size: .95rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-note { max-width: 1080px; margin: 22px auto 0; padding: 14px 20px 0; border-top: 1px solid #334155; font-size: .8rem; color: #94a3b8; }

/* ---------- Misc ---------- */
.prose-note { font-size: .88rem; color: var(--ink-3); font-style: italic; }
.section-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--brand); margin-bottom: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
mark { background: #fff3bf; padding: 0 2px; border-radius: 3px; }
.notice { background: var(--amber-bg); border: 1px solid #ffe066; border-radius: 10px; padding: 12px 16px; font-size: .92rem; margin: 1rem 0; }

/* 404 */
.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 3rem; }
