/* ============================================================
   Pempek Nyai Putri — Stylesheet Utama (mobile-first)
   ============================================================ */

:root {
    --brand: #c0392b;
    --brand-dark: #96281b;
    --brand-soft: #fdeeea;
    --accent: #e67e22;
    --wa: #25d366;
    --wa-dark: #1da851;
    --ink: #2d2420;
    --muted: #8a7a70;
    --bg: #fdf8f4;
    --card: #ffffff;
    --line: #ecdfd5;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(80, 40, 20, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 2px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { font-size: 1.5rem; }
.brand-name strong { color: var(--brand); }
.main-nav { display: none; gap: 18px; }
.main-nav a { color: var(--ink); font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--brand); text-decoration: none; border-color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
    position: relative;
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 1.1rem;
    color: var(--brand-dark);
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 7px;
}
.nav-toggle {
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 1.3rem;
    padding: 4px 10px;
    cursor: pointer;
}
@media (min-width: 860px) {
    .main-nav { display: flex; }
    .nav-toggle { display: none; }
}

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; font-weight: 500; }
.alert-success { background: #e8f8ee; color: #1e6b40; border: 1px solid #b7e4c7; }
.alert-error { background: #fdecea; color: #a12622; border: 1px solid #f5c6c0; }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    gap: 18px;
    padding: 40px 0 26px;
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(230, 126, 34, 0.16), transparent),
        radial-gradient(900px 380px at -10% 110%, rgba(192, 57, 43, 0.10), transparent);
}
.hero-tag {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 10px;
}
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 0 0 10px; line-height: 1.15; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p { color: var(--muted); max-width: 46ch; margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { font-size: clamp(5rem, 18vw, 9rem); text-align: center; filter: drop-shadow(0 12px 20px rgba(192, 57, 43, .25)); }
@media (min-width: 760px) {
    .hero { grid-template-columns: 1.4fr 1fr; align-items: center; }
    .hero-art { text-align: right; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.06s ease, background 0.15s ease;
    font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: var(--line); color: var(--ink); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-danger { background: #fdecea; color: #a12622; border-color: #f5c6c0; }
.btn-lg { padding: 13px 30px; font-size: 1.05rem; }
.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Sections ---------- */
.section { padding: 26px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.link-more { font-weight: 600; font-size: 0.9rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.12s ease;
}
.product-card:hover { transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 3/2; background: var(--brand-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    border-radius: 999px;
    padding: 2px 9px;
}
.badge-hot { background: var(--accent); }
.badge-out { background: #7c766f; }
.product-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body form { margin-top: auto; }
.product-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.product-name { margin: 0; font-size: 1rem; }
.product-name a { color: var(--ink); }
.product-name a:hover { color: var(--brand); }
.product-price-row { display: flex; justify-content: space-between; align-items: baseline; }
.product-price { color: var(--brand); font-weight: 800; }
.stock-low { color: var(--accent); font-size: 0.75rem; font-weight: 600; }
.product-card.is-out .product-media img { filter: grayscale(1); opacity: 0.6; }

/* ---------- Category chips ---------- */
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.category-chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 16px;
    color: var(--ink);
    font-weight: 600;
}
.category-chip:hover { border-color: var(--brand); text-decoration: none; }
.chip-count { color: var(--muted); font-size: 0.8rem; margin-left: 4px; }

/* ---------- Feature strip ---------- */
.feature-strip { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .feature-strip { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.feature-icon { font-size: 1.6rem; line-height: 1; }
.feature p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Catalog ---------- */
.catalog-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 22px 0 6px; }
.catalog-head h1 { margin: 0; font-size: 1.5rem; }
.search-form { display: flex; gap: 8px; flex: 1; max-width: 380px; }
.search-form input[type="search"] {
    flex: 1;
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
}
.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 30px; }
@media (min-width: 860px) { .catalog-layout { grid-template-columns: 220px 1fr; } }
.catalog-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; height: fit-content; }
.catalog-side h3 { margin: 4px 8px 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.catalog-side a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.catalog-side a span { color: var(--muted); font-size: 0.8rem; }
.catalog-side a:hover { background: var(--brand-soft); text-decoration: none; }
.catalog-side a.active { background: var(--brand); color: #fff; }
.catalog-side a.active span { color: #f4d7d2; }
.result-info { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 6px 13px;
    color: var(--ink);
    font-weight: 600;
}
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { color: var(--muted); font-size: 0.85rem; padding: 18px 0 6px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 12px 0 30px; }
@media (min-width: 760px) { .product-detail { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.product-detail-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.product-detail-info h1 { margin: 6px 0 8px; font-size: 1.6rem; }
.price-big { font-size: 1.9rem; font-weight: 800; color: var(--brand); margin: 4px 0 12px; }
.stock-status { font-weight: 600; }
.stock-ok { color: #1e6b40; }
.stock-low { color: var(--accent); }
.stock-out { color: #a12622; }
.product-desc { color: #444; }
.qty-row { display: flex; gap: 10px; margin: 8px 0 14px; }
.qty-row input[type="number"] {
    width: 90px;
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}
.detail-form label { font-weight: 600; font-size: 0.9rem; color: var(--muted); }

/* ---------- Cart ---------- */
.cart-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row {
    display: grid;
    grid-template-columns: 72px 1fr 70px 92px 40px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.cart-name { font-weight: 600; color: var(--ink); }
.cart-price { color: var(--muted); font-size: 0.85rem; }
.cart-qty input {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 6px 4px;
    font-family: inherit;
    text-align: center;
    background: #fff;
}
.cart-line-total { font-weight: 700; text-align: right; }
.btn-icon {
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
}
.btn-icon:hover { color: #a12622; border-color: #f5c6c0; background: #fdecea; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 16px; max-width: 460px; margin-left: auto; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.cart-note { color: var(--muted); font-size: 0.83rem; }
.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 16px; }
.form-field label, .form-field .label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); }
textarea { resize: vertical; }
.field-error { color: #a12622; font-size: 0.85rem; margin: 4px 0 0; }
.field-hint { color: var(--muted); font-size: 0.83rem; margin: 4px 0 0; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
}
.radio-pill:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.form-note { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 10px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 30px; }
@media (min-width: 860px) { .checkout-layout { grid-template-columns: 1.5fr 1fr; } }
.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; height: fit-content; }
.checkout-summary h3 { margin-top: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.summary-total { display: flex; justify-content: space-between; padding-top: 10px; font-size: 1.1rem; color: var(--brand); }

/* ---------- Success ---------- */
.success-page { text-align: center; max-width: 520px; margin: 30px auto 50px; }
.success-icon { font-size: 4rem; }
.success-sub { color: var(--muted); margin: 8px 0; }
.order-code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: var(--radius);
    padding: 10px;
    margin: 6px auto 12px;
    width: fit-content;
}
.order-recap { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0; }
.success-page .btn { margin: 8px 4px; }
.success-note { color: var(--muted); font-size: 0.95rem; }

/* ---------- Status chips ---------- */
.status-chip {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 12px;
}
.status-pending { background: #fff5e0; color: #9c6b0c; }
.status-processing { background: #e3efff; color: #1d5eae; }
.status-completed { background: #e2f6e9; color: #1e6b40; }
.status-cancelled { background: #fdecea; color: #a12622; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 16px; }
.empty-icon { font-size: 3.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); }
.empty-state h1 { font-size: 1.4rem; }

/* ---------- About & contact ---------- */
.about-hero { text-align: center; padding: 26px 0; }
.about-art { font-size: 5rem; filter: drop-shadow(0 10px 16px rgba(192, 57, 43, .2)); }
.about-page { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.about-page p { color: #444; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 22px 0; }
@media (min-width: 700px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.about-card h3 { margin: 8px 0 4px; }
.about-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.steps li { margin-bottom: 8px; }
.contact-page { max-width: 560px; margin: 0 auto; padding-bottom: 50px; text-align: center; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin-bottom: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.contact-item p { margin: 0; color: var(--muted); }

.page-title { font-size: 1.6rem; padding: 22px 0 6px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cfc7; margin-top: 30px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 30px 16px; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
.site-footer .brand-name { color: #fff; font-size: 1.05rem; }
.site-footer .brand-name strong { color: var(--accent); }
.site-footer a { color: #f2b9a5; }
.site-footer p { margin: 6px 0; font-size: 0.92rem; }
.footer-copy { border-top: 1px solid #463b34; padding-top: 14px; padding-bottom: 14px; font-size: 0.82rem; color: #9c8f86; }
