:root {
    --shop-primary: #1565C0;
    --shop-primary-dark: #0D47A1;
    --shop-accent: #E91E63;
    --shop-bg: #f4f6fb;
    --shop-card: #ffffff;
    --shop-text: #1e293b;
    --shop-muted: #64748b;
    --shop-border: #e2e8f0;
    --shop-radius: 14px;
    --shop-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.shop-body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--shop-bg);
    color: var(--shop-text);
    margin: 0;
}

.shop-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--shop-border);
}

.shop-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--shop-text);
}

.shop-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.shop-brand-title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.shop-brand-sub { font-size: 11px; color: var(--shop-muted); }

.shop-nav-actions { display: flex; align-items: center; gap: 8px; }

.shop-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shop-btn-primary {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
    color: #fff;
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.25);
}

.shop-btn-outline {
    background: #fff;
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
}

.shop-btn-cart {
    position: relative;
    background: #fff;
    border: 1px solid var(--shop-border);
    color: var(--shop-primary-dark);
}

.shop-cart-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--shop-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

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

.shop-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #42a5f5 100%);
    color: #fff;
    border-radius: calc(var(--shop-radius) + 4px);
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shop-shadow);
    overflow: hidden;
    position: relative;
}

.shop-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.shop-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 0 0 8px; }
.shop-hero p { margin: 0; opacity: .92; max-width: 620px; }

.shop-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.shop-pill {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.shop-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
}

.shop-search {
    position: relative;
}

.shop-search input {
    width: 100%;
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    padding: 12px 14px 12px 42px;
    font-size: 14px;
}

.shop-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shop-muted);
}

.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.shop-chip {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--shop-border);
    background: #fff;
    color: var(--shop-muted);
    font-size: 13px;
    font-weight: 600;
}

.shop-chip.active {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.shop-card {
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shop-shadow); }

.shop-card-media {
    height: 120px;
    background: linear-gradient(135deg, #e3f2fd, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shop-primary);
    font-size: 36px;
    border-bottom: 1px solid var(--shop-border);
}

.shop-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.shop-card-kode { font-size: 11px; color: var(--shop-muted); font-weight: 700; letter-spacing: .04em; }
.shop-card-title { font-size: 15px; font-weight: 700; margin: 6px 0; line-height: 1.35; }
.shop-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.shop-tag { font-size: 10px; background: #f1f5f9; color: var(--shop-muted); padding: 3px 8px; border-radius: 999px; }
.shop-card-meta { font-size: 12px; color: var(--shop-muted); margin-bottom: 8px; }
.shop-card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.shop-price { font-weight: 800; color: var(--shop-primary-dark); font-size: 15px; }
.shop-price small { display: block; font-size: 11px; font-weight: 500; color: var(--shop-muted); }
.shop-stock { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; white-space: nowrap; }
.shop-stock.out { background: #fef2f2; color: #b91c1c; }

.shop-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 200;
}

.shop-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.shop-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(15,23,42,0.15);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 201;
    display: flex;
    flex-direction: column;
}

.shop-drawer.open { transform: translateX(0); }

.shop-drawer-head {
    padding: 16px;
    border-bottom: 1px solid var(--shop-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-drawer-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.shop-drawer-foot { padding: 16px; border-top: 1px solid var(--shop-border); background: #f8fafc; }

.shop-cart-item {
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.shop-qty {
    display: inline-flex;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    overflow: hidden;
}

.shop-qty button {
    width: 32px;
    border: 0;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 700;
}

.shop-qty input {
    width: 64px;
    border: 0;
    text-align: center;
    border-left: 1px solid var(--shop-border);
    border-right: 1px solid var(--shop-border);
}

.shop-footer {
    margin-top: 40px;
    padding: 24px 16px;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 13px;
}

.shop-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.shop-form-card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 20px;
    box-shadow: var(--shop-shadow);
}

.shop-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shop-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: var(--shop-muted);
}

.shop-step.active { background: #dbeafe; color: var(--shop-primary-dark); }

.shop-timeline { list-style: none; padding: 0; margin: 0; }
.shop-timeline li {
    position: relative;
    padding-left: 28px;
    padding-bottom: 16px;
}
.shop-timeline li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}
.shop-timeline li.active::before { background: var(--shop-primary); box-shadow: 0 0 0 4px #dbeafe; }
.shop-timeline li.done::before { background: #16a34a; }

@media (max-width: 768px) {
    .shop-toolbar { grid-template-columns: 1fr; }
    .shop-nav-actions .shop-hide-mobile { display: none; }
}
