:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --accent: #a855f7;
    --ok: #047857;
    --ok-bg: #ecfdf5;
    --err: #b91c1c;
    --err-bg: #fef2f2;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
    --shadow-lg: 0 24px 60px -24px rgba(15, 23, 42, .35);
    --max: 1140px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
    margin: 0 0 .4em;
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 800;
}

p {
    margin: 0 0 1em;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: .84rem;
}

.mt {
    margin-top: 26px;
}

.nowrap {
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 247, 251, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(79, 70, 229, .9);
}

.brand-mark svg {
    width: 22px;
    height: 22px;
}

.brand-text em {
    font-style: normal;
    color: var(--brand);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .95rem;
}

.nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink-soft);
    transition: background .18s, color .18s;
}

.nav a:hover {
    background: #eef2ff;
    color: var(--brand-dark);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
}

/* Alerts */
.alert {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: .92rem;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: #a7f3d0;
}

.alert-error {
    background: var(--err-bg);
    color: var(--err);
    border-color: #fecaca;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

/* Hero */
.hero {
    padding: 56px 0 34px;
    background:
        radial-gradient(1000px 400px at 85% -10%, rgba(168, 85, 247, .18), transparent 60%),
        radial-gradient(700px 300px at 10% 0%, rgba(79, 70, 229, .14), transparent 60%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero p {
    color: var(--muted);
    max-width: 48ch;
    font-size: 1.02rem;
}

.pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--brand-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-art {
    background: linear-gradient(150deg, #fff, #eef2ff);
    border-radius: 28px;
    border: 1px solid var(--line);
    padding: 18px;
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    text-align: center;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(79, 70, 229, .85);
}

.btn-primary:hover {
    box-shadow: 0 16px 30px -12px rgba(79, 70, 229, .95);
}

.btn-outline {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 14px;
    font-size: .85rem;
}

.link-danger {
    background: none;
    border: 0;
    padding: 0;
    color: var(--err);
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Forms */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label,
legend {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-soft);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .14);
}

textarea {
    min-height: 96px;
    resize: vertical;
}

/* Catalog */
.catalog {
    padding: 34px 0 64px;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-head h2 {
    font-size: 1.6rem;
    margin: 0 0 4px;
}

.filters {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr auto;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.filters-admin {
    grid-template-columns: 2fr 1fr auto;
}

.filters-action {
    align-self: end;
}

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

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-media {
    position: relative;
    display: block;
    padding: 18px 18px 6px;
    background: linear-gradient(160deg, #f8fafc, #eef2ff);
}

.shoe-svg {
    display: block;
    width: 100%;
    height: auto;
}

.product-media .shoe-svg {
    max-height: 170px;
    transition: transform .35s ease;
}

.product-card:hover .product-media .shoe-svg {
    transform: translateY(-4px) rotate(-2deg);
}

.product-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-brand {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
}

.product-body h3 {
    font-size: 1.02rem;
    margin: 0;
}

.product-body h3 a:hover {
    color: var(--brand-dark);
}

.product-price {
    font-weight: 800;
    font-size: 1.05rem;
}

.size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2px;
}

.chip {
    font-size: .74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.empty {
    text-align: center;
    padding: 56px 20px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 22px;
}

.empty h3 {
    font-size: 1.2rem;
}

/* Detail */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .85rem;
    color: var(--muted);
    padding: 24px 0 0;
}

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 18px 0 56px;
    align-items: start;
}

.detail-media {
    background: linear-gradient(160deg, #fff, #eef2ff);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.detail-media .shoe-svg {
    max-width: 520px;
    margin: 0 auto;
}

.detail-info h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 6px;
}

.price-lg {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 6px 0 14px;
}

.size-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.size-fieldset legend {
    padding: 0;
    margin-bottom: 8px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    position: relative;
}

.size-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.size-option span {
    display: grid;
    place-items: center;
    min-width: 52px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: .15s;
}

.size-option input:checked + span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(79, 70, 229, .9);
}

.size-option input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .2);
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.qty-row label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.qty-row input {
    width: 96px;
}

.add-form {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.perks {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: .9rem;
    color: var(--ink-soft);
}

.perks li {
    position: relative;
    padding-left: 24px;
}

.perks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.related {
    padding: 0 0 64px;
}

.related h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
}

/* Cart & checkout */
.page-head {
    padding: 34px 0 18px;
}

.page-head h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 6px;
}

.page-head .pill {
    margin-bottom: 10px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.6fr .9fr;
    gap: 26px;
    align-items: start;
    padding-bottom: 64px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-row {
    display: grid;
    grid-template-columns: 88px 1fr auto auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.cart-thumb {
    background: linear-gradient(160deg, #f8fafc, #eef2ff);
    border-radius: 14px;
    padding: 8px;
}

.cart-main a {
    font-weight: 700;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty input {
    width: 76px;
    padding: 8px 10px;
}

.cart-subtotal {
    font-weight: 800;
    min-width: 110px;
    text-align: right;
}

.summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 88px;
}

.summary h2 {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: .95rem;
    color: var(--ink-soft);
}

.summary-row.total {
    border-top: 1px dashed var(--line);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
}

.summary .btn {
    margin-top: 10px;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.panel h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .span-2 {
    grid-column: span 2;
}

.pay-options {
    display: grid;
    gap: 10px;
}

.pay-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: .15s;
}

.pay-option input {
    margin-top: 5px;
    accent-color: var(--brand);
}

.pay-option span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pay-option em {
    font-style: normal;
    font-size: .83rem;
    color: var(--muted);
}

.pay-option:has(input:checked) {
    border-color: var(--brand);
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

/* Bank card */
.bank-card {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(135deg, #eef2ff, #ffffff 70%);
}

.bank-label {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.bank-name {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink-soft);
}

.bank-account {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--ink);
    line-height: 1.3;
    word-break: break-all;
}

.bank-holder {
    font-size: .92rem;
    color: var(--ink-soft);
}

.bank-amount {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #c7d2fe;
    font-size: .92rem;
    color: var(--ink-soft);
}

.bank-note {
    margin: 10px 0 0;
    font-size: .82rem;
    color: var(--muted);
}

/* Admin */
.admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.admin-head form {
    margin-bottom: 8px;
}

.back-link {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.auth-card {
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 64px;
}

.auth-card form {
    display: grid;
    gap: 14px;
}

.auth-card .btn {
    margin-top: 4px;
}

.auth-card .small {
    margin: 16px 0 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card span {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-card strong {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    margin-bottom: 64px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 820px;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.table thead th {
    background: #f8fafc;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.table-link {
    font-weight: 700;
    color: var(--brand-dark);
}

.table-link:hover {
    text-decoration: underline;
}

.status {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-baru {
    background: #eef2ff;
    color: #4338ca;
}

.status-diproses {
    background: #fff7ed;
    color: #b45309;
}

.status-dikirim {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-selesai {
    background: #ecfdf5;
    color: #047857;
}

.status-batal {
    background: #fef2f2;
    color: #b91c1c;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 28px 0;
    font-size: .88rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    font-weight: 700;
    color: var(--brand-dark);
}

/* Responsive */
@media (max-width: 960px) {
    .hero-inner,
    .detail-grid,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .filters,
    .filters-admin {
        grid-template-columns: 1fr 1fr;
    }

    .summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .filters,
    .filters-admin {
        grid-template-columns: 1fr;
    }

    .cart-row {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "thumb main"
            "qty subtotal";
        gap: 12px;
    }

    .cart-thumb {
        grid-area: thumb;
    }

    .cart-main {
        grid-area: main;
    }

    .cart-qty {
        grid-area: qty;
        flex-wrap: wrap;
    }

    .cart-subtotal {
        grid-area: subtotal;
        min-width: 0;
        text-align: right;
    }

    .nav a {
        padding: 8px 10px;
        font-size: .9rem;
    }

    .header-inner {
        min-height: 62px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2 {
        grid-column: auto;
    }

    .stat-card strong {
        font-size: 1.35rem;
    }
}