/* =========================================================
   Binjai Printing - Main Stylesheet
   ========================================================= */
:root {
    --bp-black: #14171c;
    --bp-red: #c8202f;
    --bp-red-dark: #9e1723;
    --bp-gray: #6b7280;
    --bp-light: #f5f6f8;
    --bp-border: #e5e7eb;
    --bp-white: #ffffff;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--bp-black);
    background: var(--bp-white);
    margin: 0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Topbar ===== */
.topbar {
    background: var(--bp-black);
    color: #cbd0d8;
    font-size: 13px;
    padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cbd0d8; }
.topbar a:hover { color: var(--bp-white); }

/* ===== Header ===== */
.site-header {
    border-bottom: 1px solid var(--bp-border);
    position: sticky;
    top: 0;
    background: var(--bp-white);
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}
.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--bp-black);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--bp-red); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--bp-red); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions a { font-size: 14px; font-weight: 600; }
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bp-light);
}
.cart-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--bp-red); color: #fff;
    font-size: 11px; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary { background: var(--bp-red); color: #fff; }
.btn-primary:hover { background: var(--bp-red-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--bp-black); color: var(--bp-black); }
.btn-outline:hover { background: var(--bp-black); color: #fff; }
.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--bp-black) 0%, #2a2f3a 100%);
    color: #fff;
    padding: 70px 0;
}
.hero-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { font-size: 40px; line-height: 1.2; margin: 0 0 16px; }
.hero-text h1 em { color: var(--bp-red); font-style: normal; }
.hero-text p { color: #cbd0d8; font-size: 16px; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    flex: 1;
    min-width: 150px;
}
.hero-image { flex: 1; min-width: 280px; text-align: center; font-size: 120px; }

/* ===== Section ===== */
.section { padding: 60px 0; }
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.section-sub { color: var(--bp-gray); margin-bottom: 30px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.section-head .link-all { font-weight: 700; color: var(--bp-red); }

/* ===== Category grid ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
}
.cat-card {
    background: var(--bp-light);
    border-radius: var(--radius);
    padding: 24px 12px;
    text-align: center;
    font-weight: 700;
    transition: 0.2s;
    border: 1px solid transparent;
}
.cat-card:hover { border-color: var(--bp-red); transform: translateY(-3px); }
.cat-card .emoji { font-size: 38px; display: block; margin-bottom: 10px; }

/* ===== Product grid ===== */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}
.prod-card {
    border: 1px solid var(--bp-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: 0.2s;
    position: relative;
}
.prod-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); transform: translateY(-3px); }
.prod-thumb {
    aspect-ratio: 1/1;
    background: var(--bp-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 54px;
    overflow: hidden;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 14px; }
.prod-tag {
    position: absolute; top: 10px; left: 10px;
    background: var(--bp-red); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 4px;
    z-index: 2;
}
.prod-name { font-weight: 700; font-size: 14.5px; margin: 0 0 4px; line-height: 1.4; }
.prod-meta { color: var(--bp-gray); font-size: 12px; margin-bottom: 8px; }
.prod-price { color: var(--bp-red); font-weight: 800; font-size: 16px; }
.color-dots { display: flex; gap: 4px; margin-top: 8px; }
.color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #ddd; }

/* ===== Forms ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--bp-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--bp-red); }
.auth-box {
    max-width: 420px;
    margin: 50px auto;
    padding: 36px;
    border: 1px solid var(--bp-border);
    border-radius: 14px;
}
.auth-box h2 { margin-top: 0; }

/* ===== Alerts ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-success { background: #e7f7ed; color: #187a3c; border: 1px solid #b9e6c9; }
.alert-error { background: #fdecec; color: #b3261e; border: 1px solid #f6c6c3; }

/* ===== Table ===== */
table { width: 100%; border-collapse: collapse; }
table th, table td {
    text-align: left; padding: 10px 12px;
    border-bottom: 1px solid var(--bp-border);
    font-size: 14px;
}
table th { background: var(--bp-light); font-weight: 700; }

/* ===== Badge status ===== */
.badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; }
.badge-pending { background: #fff4e0; color: #a86400; }
.badge-paid { background: #e0f0ff; color: #0b5ed7; }
.badge-processing { background: #f0e6ff; color: #6a2fbf; }
.badge-shipped { background: #e0f7f4; color: #0f8a72; }
.badge-completed { background: #e7f7ed; color: #187a3c; }
.badge-cancelled { background: #fdecec; color: #b3261e; }

/* ===== Footer ===== */
.site-footer { background: var(--bp-black); color: #cbd0d8; padding: 50px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; }
.footer-grid a { color: #cbd0d8; display: block; margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #8b93a1; }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.testi-card { background: var(--bp-light); border-radius: var(--radius); padding: 20px; }
.testi-card p { font-size: 14px; color: #333; margin: 0 0 12px; }
.testi-name { font-weight: 700; font-size: 13px; }
.testi-source { color: var(--bp-gray); font-size: 12px; }
.stars { color: #f5a623; margin-bottom: 8px; }

/* ===== Cart ===== */
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bp-border); }
.cart-item .thumb { width: 70px; height: 70px; background: var(--bp-light); border-radius: 8px; display:flex;align-items:center;justify-content:center; font-size: 28px; }
.qty-input { width: 60px; padding: 6px; text-align: center; border: 1px solid var(--bp-border); border-radius: 6px; }
.cart-summary { border: 1px solid var(--bp-border); border-radius: var(--radius); padding: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.cart-summary-total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--bp-border); padding-top: 12px; margin-top: 12px; }

/* Responsive */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hero-text h1 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
}
