@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ======================================
   CSS VARIABLES
====================================== */
:root {
    --primary: #f4b400;
    --primary-dark: #e0a300;
    --primary-light: #fff8e1;
    --orange: #ee4d2d;
    --orange-hover: #d93e20;
    --dark: #0f172a;
    --dark2: #1e293b;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --success: #10b981;
    --success-light: #ecfdf5;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --warning: #f59e0b;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --transition: all .25s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--light-bg);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ======================================
   NAVBAR
====================================== */
.main-navbar, .admin-navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-navbar { background: var(--dark); }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo span { color: var(--primary); }

.admin-navbar .nav-logo { color: var(--white); }

.admin-badge {
    background: rgba(244,180,0,.2);
    color: var(--primary);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: .5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover { color: var(--primary); background: var(--primary-light); }

.admin-navbar .nav-link { color: var(--gray-300); }
.admin-navbar .nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }

/* Cart icon in navbar */
.nav-cart {
    position: relative;
    font-size: 20px;
    padding: 8px 12px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--orange);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform .2s;
}

.cart-badge.bump { transform: scale(1.4); }

.nav-user {
    font-size: 13px;
    color: var(--gray-600);
    padding: 6px 10px;
    background: var(--gray-50);
    border-radius: var(--r-sm);
    border: 1px solid var(--gray-200);
}

.nav-link.admin-btn {
    background: var(--primary);
    color: var(--dark);
    font-weight: 800;
}
.nav-link.admin-btn:hover { background: var(--primary-dark); color: var(--dark); }
.admin-navbar .nav-link.admin-btn { background: var(--primary); color: var(--dark); }

.nav-link.login-btn {
    color: var(--orange);
    border: 1.5px solid var(--orange);
}
.nav-link.login-btn:hover { background: var(--orange); color: var(--white); }

.nav-link.register-btn {
    background: var(--orange);
    color: var(--white);
    font-weight: 700;
}
.nav-link.register-btn:hover { background: var(--orange-hover); }

.nav-link.logout-btn { color: var(--danger); }
.nav-link.logout-btn:hover { background: var(--danger-light); color: var(--danger); }

/* ======================================
   FLY-TO-CART ANIMATION
====================================== */
.fly-element {
    position: fixed;
    font-size: 22px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: scale(0);
    transition: left .6s cubic-bezier(.25,.46,.45,.94),
                top .6s cubic-bezier(.25,.46,.45,.94),
                opacity .6s,
                transform .6s;
}

.fly-element.flying { transition: left .65s ease-in, top .65s cubic-bezier(.5,-0.4,.5,1.4), opacity .65s, transform .65s; }

/* ======================================
   HERO SECTION
====================================== */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f2340 100%);
    padding: 0 24px;
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(244,180,0,.12) 0%, transparent 65%);
}

.hero-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 70px 0;
    position: relative;
    z-index: 2;
}

.hero-text { flex: 1; }

.hero-tag {
    display: inline-block;
    background: rgba(244,180,0,.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(244,180,0,.25);
    letter-spacing: .3px;
}

.hero-text h1 {
    font-size: 44px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.hero-accent { color: var(--primary); }

.hero-text p {
    font-size: 17px;
    color: var(--gray-300);
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 480px;
    line-height: 1.7;
}

/* Hero Search */
.hero-search-form { max-width: 500px; }

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    border: 2px solid transparent;
    transition: border-color .2s;
}

.search-wrapper:focus-within { border-color: var(--primary); }

.search-icon-left { font-size: 18px; padding: 0 0 0 18px; }

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 14px;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    margin: 0;
    width: auto;
}

.search-btn {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
    margin: 0;
    border-radius: 0;
}

.search-btn:hover { background: var(--orange-hover); transform: none; box-shadow: none; }

/* Hero Image */
.hero-image-wrap {
    flex-shrink: 0;
    position: relative;
    width: 340px;
}

.hero-img-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(244,180,0,.08);
    border: 3px solid rgba(244,180,0,.2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-floating-badge {
    position: absolute;
    background: var(--white);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.badge-1 { top: 20px; right: 0; animation: float 3s ease-in-out infinite; }
.badge-2 { bottom: 40px; left: 0; animation: float 3s ease-in-out infinite .5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ======================================
   PROMO STRIP
====================================== */
.promo-strip {
    background: var(--orange);
    padding: 14px 24px;
}

.promo-strip-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 24px;
}

.promo-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.3);
}

/* ======================================
   MAIN CONTAINER & PRODUCT GRID
====================================== */
.main-container {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.section-title-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.section-sub { font-size: 14px; color: var(--gray-500); }
.reset-link { color: var(--orange); font-weight: 600; }

.product-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 6px 14px;
    border-radius: 50px;
}

/* Product Grid */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* Product Card — Shopee style */
.produk-card {
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.produk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(238,77,45,.2);
}

/* Product Image */
.card-img-link { display: block; }

.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--gray-50);
    overflow: hidden;
}

.img-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.produk-card:hover .img-wrapper img { transform: scale(1.07); }

/* Stock badge */
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    letter-spacing: .3px;
}
.badge-success { background: var(--success); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--dark); }
.badge-danger { background: var(--danger); color: var(--white); }

/* Hover overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.produk-card:hover .card-overlay { opacity: 1; }
.overlay-text { color: var(--white); font-weight: 700; font-size: 14px; }

/* Product Info */
.produk-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.produk-kategori {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.nama-produk {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.stars { color: var(--primary); font-size: 11px; letter-spacing: -1px; }
.sold-count { font-size: 11px; color: var(--gray-400); }

.harga {
    font-size: 18px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 3px;
}

.stok-text {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

/* Card Action Buttons */
.card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.btn-cart {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--orange);
    color: var(--orange);
    padding: 9px 8px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: inherit;
}
.btn-cart:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }

.btn-buy {
    flex: 1;
    background: var(--orange);
    color: var(--white);
    padding: 9px 8px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}
.btn-buy:hover { background: var(--orange-hover); transform: translateY(-2px); color: var(--white); }

.btn-habis {
    width: 100%;
    background: var(--gray-200);
    color: var(--gray-400);
    border: none;
    padding: 9px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: not-allowed;
    font-family: inherit;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--dark);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all .35s cubic-bezier(.25,.46,.45,.94);
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-success { background: #065f46; }
.toast.toast-error { background: #991b1b; }

/* ======================================
   EMPTY STATE
====================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-icon { font-size: 70px; margin-bottom: 16px; }
.empty-state h2 { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); max-width: 400px; margin: 0 auto; }

/* ======================================
   FOOTER
====================================== */
.store-footer { background: var(--dark2); padding: 0; margin-top: 60px; }

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 24px 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    display: block;
    margin-bottom: 14px;
}
.footer-logo span { color: var(--primary); }
.footer-brand p { color: var(--gray-400); font-size: 14px; line-height: 1.7; }

.footer-links h4 { color: var(--white); font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.footer-links a { display: block; color: var(--gray-400); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 20px 24px;
    text-align: center;
}
.footer-bottom p { color: var(--gray-500); font-size: 13px; }

/* ======================================
   AUTH PAGES
====================================== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #fef8e1 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container { width: 90%; max-width: 1200px; margin: 30px auto; }

.card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.card h1 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 20px; }

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 40px auto;
    padding: 40px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}

.auth-title { text-align: center; font-size: 30px; font-weight: 900; color: var(--dark); letter-spacing: -1px; margin-bottom: 6px; }
.auth-title span { color: var(--primary); }
.auth-subtitle { text-align: center; color: var(--gray-500); font-size: 15px; font-weight: 500; margin-bottom: 28px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--gray-500); margin-top: 20px; }
.auth-footer a { color: var(--orange); font-weight: 700; }
.back-link { color: var(--gray-400) !important; font-weight: 500 !important; font-size: 13px; }

/* ======================================
   FORMS
====================================== */
label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.form-group { margin-bottom: 18px; }

input[type="text"],
input[type="number"],
input[type="password"],
input[type="tel"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: var(--white);
    margin-top: 4px;
    margin-bottom: 0;
}

input:focus, textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(238,77,45,.1);
}

textarea { resize: vertical; }

input[type="file"] { padding: 10px; background: var(--gray-50); cursor: pointer; }

/* Buttons global */
button, .btn, .btn-block {
    display: block;
    text-align: center;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.4;
}

button:hover, .btn:hover, .btn-block:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238,77,45,.25);
}

.btn-block { width: 100%; }

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}
.btn-secondary:hover { background: var(--gray-300); color: var(--gray-800); box-shadow: none; }

.btn-sm { padding: 8px 16px; font-size: 13px; display: inline-block; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert-danger { background: var(--danger-light); color: var(--danger); border-left: 4px solid var(--danger); }
.alert-success { background: var(--success-light); color: var(--success); border-left: 4px solid var(--success); }

/* ======================================
   CHECKOUT / BELI LANGSUNG / KERANJANG
====================================== */
.checkout-page-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px 60px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 28px;
}

.checkout-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.checkout-product-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-form-panel {
    flex: 1;
    background: var(--white);
    padding: 28px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 80px;
}

.checkout-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

/* Checkout product card */
.checkout-product-card {
    display: flex;
    gap: 16px;
    background: var(--white);
    padding: 18px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.checkout-product-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--r-md);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.checkout-product-details { flex: 1; }
.checkout-brand { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.checkout-product-details h3 { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.checkout-price { font-size: 22px; font-weight: 900; color: var(--orange); margin-bottom: 4px; }
.checkout-stock { font-size: 12px; color: var(--gray-400); }

/* Qty Selector */
.qty-selector {
    background: var(--white);
    padding: 16px 18px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 16px;
}
.qty-selector label { font-size: 14px; font-weight: 700; color: var(--gray-600); margin: 0; min-width: 60px; }

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-sm);
    overflow: hidden;
}
.qty-control button {
    width: 36px;
    height: 36px;
    background: var(--gray-50);
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}
.qty-control button:hover { background: var(--gray-200); transform: none; box-shadow: none; }
.qty-control input {
    width: 52px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--gray-200);
    border-right: 1.5px solid var(--gray-200);
    border-radius: 0;
    margin: 0;
    padding: 8px 4px;
    font-size: 15px;
    font-weight: 700;
}
.qty-control input:focus { box-shadow: none; border-color: var(--gray-200); }

.cart-qty { margin-top: 8px; }

/* Price breakdown */
.price-breakdown {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 18px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray-600);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}
.price-row:last-child { border-bottom: none; }

.price-total {
    font-size: 15px;
    color: var(--dark);
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px dashed var(--gray-200) !important;
    border-bottom: none !important;
}

.total-price { color: var(--orange); font-size: 20px; }

.checkout-final-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-light);
    padding: 14px 18px;
    border-radius: var(--r-md);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid rgba(244,180,0,.3);
}

.btn-checkout-submit {
    width: 100%;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--r-md);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
    font-family: inherit;
    display: block;
}
.btn-checkout-submit:hover { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(238,77,45,.3); }

.btn-cancel-checkout {
    display: block;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: var(--r-sm);
    transition: var(--transition);
}
.btn-cancel-checkout:hover { background: var(--gray-100); color: var(--dark); }

.checkout-form-modern textarea {
    resize: vertical;
    min-height: 90px;
}

/* Cart item card */
.cart-item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
    margin-bottom: 12px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--r-md);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }

.cart-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-subtotal { font-size: 16px; font-weight: 800; color: var(--orange); }

.btn-hapus-item {
    font-size: 12px;
    color: var(--danger);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    background: var(--danger-light);
    transition: var(--transition);
}
.btn-hapus-item:hover { background: var(--danger); color: var(--white); }

.btn-update-cart {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
    padding: 10px 20px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
    width: auto;
    display: inline-block;
    font-family: inherit;
}
.btn-update-cart:hover { background: var(--gray-200); color: var(--dark); transform: none; box-shadow: none; }

/* ======================================
   CHECKOUT RESULT PAGE
====================================== */
.checkout-result-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--r-xl);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.success-animation { text-align: center; margin-bottom: 24px; }

.success-title { font-size: 26px; font-weight: 900; color: var(--dark); text-align: center; margin-bottom: 10px; }
.success-sub { font-size: 15px; color: var(--gray-500); text-align: center; margin-bottom: 30px; }
.error-title { font-size: 24px; font-weight: 900; color: var(--danger); text-align: center; margin-bottom: 10px; }
.error-sub { font-size: 15px; color: var(--gray-500); text-align: center; margin-bottom: 30px; }

.invoice-box {
    background: var(--gray-50);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark);
    color: var(--white);
    padding: 14px 20px;
    font-weight: 700;
    font-size: 14px;
}

.invoice-date { font-size: 12px; color: var(--gray-300); font-weight: 500; }

.invoice-section { padding: 18px 20px; border-bottom: 1px solid var(--gray-200); }
.invoice-section:last-child { border-bottom: none; }
.invoice-section h4 { font-size: 13px; font-weight: 800; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-600);
    padding: 5px 0;
}

.invoice-row span:first-child { min-width: 120px; }
.invoice-row strong { color: var(--dark); font-weight: 700; text-align: right; }

.invoice-total-row {
    border-top: 2px dashed var(--gray-300);
    padding-top: 12px;
    margin-top: 8px;
    font-size: 15px;
}

.invoice-grand-total { color: var(--orange); font-size: 20px; }

.success-actions { text-align: center; }

/* ======================================
   ADMIN DASHBOARD
====================================== */
.admin-welcome { margin-bottom: 30px; }
.admin-welcome h1 { font-size: 28px; font-weight: 900; color: var(--dark); margin-bottom: 5px; }
.admin-welcome p { color: var(--gray-500); }

.stats { display: flex; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--r-lg);
    flex: 1;
    min-width: 200px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
    border-top: 4px solid var(--primary);
}

.stat-card h3 { color: var(--gray-500); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; font-weight: 700; }
.stat-card p { font-size: 30px; font-weight: 900; color: var(--dark); }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-header h2 { font-size: 20px; font-weight: 800; color: var(--dark); }

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
table th { background: var(--gray-50); color: var(--gray-700); padding: 13px 15px; font-weight: 700; font-size: 13px; border-bottom: 2px solid var(--gray-200); text-align: left; white-space: nowrap; }
table td { padding: 13px 15px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; font-size: 14px; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--gray-50); }

.table-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--gray-200); }
.color-primary { color: var(--orange); font-weight: 700; }

.action-btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
    transition: var(--transition);
}
.action-btn.edit { background: rgba(16,185,129,.1); color: var(--success); }
.action-btn.edit:hover { background: var(--success); color: var(--white); }
.action-btn.hapus { background: var(--danger-light); color: var(--danger); }
.action-btn.hapus:hover { background: var(--danger); color: var(--white); }

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 900px) {
    .hero-wrapper { flex-direction: column; text-align: center; padding: 50px 0; }
    .hero-text h1 { font-size: 32px; }
    .hero-image-wrap { width: 220px; }
    .hero-img-circle { width: 220px; height: 220px; }
    .hero-text p { margin: 0 auto 28px; }
    .hero-search-form { margin: 0 auto; }
    .checkout-layout { flex-direction: column; }
    .checkout-form-panel { position: static; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .nav-container { padding: 0 16px; height: 56px; }
    .nav-logo { font-size: 18px; }
    .nav-link { padding: 6px 10px; font-size: 13px; }
    .produk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .main-container { padding: 0 12px; }
    .promo-strip-inner { justify-content: flex-start; }
    .cart-item-card { flex-wrap: wrap; }
    .checkout-result-card { padding: 30px 20px; }
}