:root {
    --ink: #090909;
    --paper: #fff;
    --red: #92152a;
    --line: #dedede;
    --muted: #686868;
    --header-height: 86px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.drawer-open, body.search-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; background: #000; color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.mobile-only { display: none !important; }

/* Header */
.site-header { position: sticky; z-index: 80; top: 0; height: var(--header-height); background: rgba(255,255,255,.96); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; padding: 0 16px; }
.desktop-nav { display: flex; gap: 8px; justify-self: start; }
.desktop-nav a, .header-nav a, .header-nav button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; font-size: 14px; font-weight: 500; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--red); }
.brand { grid-column: 2; font-size: 29px; font-weight: 700; letter-spacing: -2.4px; line-height: 1; text-transform: lowercase; }
.brand-index { margin-left: 2px; color: var(--red); font-size: 10px; letter-spacing: 0; vertical-align: top; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 4px; }
.currency { padding-right: 8px; font-size: 14px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 8px; }
.icon-button img { width: 24px; height: 24px; }
.cart-count { position: absolute; right: 1px; top: 0; display: none; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; background: var(--red); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.cart-count:not(:empty) { display: block; }
.cart-count:empty, .cart-count[data-zero="true"] { display: none; }

/* Mobile drawers and search */
.site-menu { position: fixed; z-index: 110; inset: 0 auto 0 0; display: flex; flex-direction: column; width: min(90vw, 352px); padding: 8px; background: #fff; transform: translateX(-102%); transition: transform .38s var(--ease); box-shadow: 10px 0 24px rgba(0,0,0,.12); }
.site-menu.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; }
.menu-links { display: flex; flex-direction: column; gap: 14px; padding: 10px 28px; }
.menu-links a { font-size: 14px; }
.drawer-currency { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.drawer-scrim, .search-scrim { position: fixed; z-index: 100; inset: 0; visibility: hidden; background: rgba(0,0,0,.28); opacity: 0; transition: opacity .25s ease, visibility .25s; }
body.drawer-open .drawer-scrim, body.search-open .search-scrim { visibility: visible; opacity: 1; }
.search-panel { position: fixed; z-index: 120; top: 0; right: 0; left: 0; padding: 16px; background: #fff; transform: translateY(-105%); transition: transform .3s var(--ease); box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.search-panel.open { transform: translateY(0); }
.search-form { display: flex; max-width: 920px; margin: auto; gap: 8px; }
.search-form input { flex: 1; height: 52px; border: 1px solid var(--ink); border-radius: 12px; padding: 0 16px; outline: 0; }
.search-form input:focus { box-shadow: 0 0 0 2px rgba(146,21,42,.18); }

/* Top announcement bar */
.top-announcement {
    background: #000;
    color: #fff;
    padding: 9px 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

/* Home Hero */
.home-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 38px 24px 20px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #222;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.hero-title {
    margin: 0 0 10px;
    font-size: clamp(34px, 5.5vw, 68px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .95;
    text-transform: uppercase;
}
.hero-desc {
    margin: 0 auto;
    max-width: 580px;
    color: var(--muted);
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.5;
}

/* Category filter tabs */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.catalog-filters::-webkit-scrollbar { display: none; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #444;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all .2s ease;
    cursor: pointer;
}
.filter-chip:hover {
    border-color: var(--ink);
    color: var(--ink);
}
.filter-chip.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Catalogue — same rhythm as source */
.catalog-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 24px; row-gap: 58px; padding: 40px 47px 88px; }
.catalog-item { min-width: 0; text-align: center; opacity: 0; transform: translateY(12px); animation: item-in .6s var(--ease) forwards; animation-delay: calc(var(--item-index, 0) * 35ms); }
.catalog-item a { display: flex; height: 100%; flex-direction: column; align-items: center; gap: 4px; }
.catalog-media { position: relative; display: grid; width: 100%; aspect-ratio: 1; place-items: center; overflow: hidden; }
.catalog-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .55s var(--ease), opacity .25s ease; }
.catalog-item:hover .catalog-media img { transform: scale(1.045); }
.catalog-item h2 { max-width: 100%; margin: 0; font-size: clamp(14px, 1.2vw, 17px); font-weight: 400; line-height: 1.35; text-transform: uppercase; text-wrap: balance; }
.catalog-item.is-sold-out .catalog-media img { opacity: .38; filter: grayscale(1); }
.sold-out-label { position: absolute; top: 50%; left: 50%; padding: 5px 9px; background: #000; color: #fff; font-size: 12px; letter-spacing: .06em; transform: translate(-50%,-50%); }

/* Catalog price row */
.catalog-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
}
.price-original {
    color: var(--muted);
    font-size: 12px;
    text-decoration: line-through;
}
.price-current {
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
}
.catalog-empty { grid-column: 1 / -1; min-height: 50vh; padding-top: 60px; text-align: center; }
@keyframes item-in { to { opacity: 1; transform: translateY(0); } }

/* Footer */
.site-footer { padding: 18px 16px 64px; text-align: center; }
.footer-social { margin-bottom: 2px; font-size: 13px; font-weight: 700; }
.footer-links { display: flex; justify-content: center; gap: 14px; font-size: 12px; }
.footer-inner, .footer-top, .footer-bottom { max-width: 1240px; margin: auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); text-align: left; }
.footer-brand { font-size: 28px; font-weight: 700; }
.footer-note { max-width: 420px; color: var(--muted); }
.footer-column h2 { font-size: 13px; text-transform: uppercase; }
.footer-column .footer-links { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: left; }

/* Product detail */
.detail-main { padding: 24px 6vw 80px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1280px; margin: auto; }
.detail-media { min-width: 0; }
.detail-slider { display: flex; overflow: hidden; scroll-snap-type: x mandatory; }
.detail-slide { flex: 0 0 100%; aspect-ratio: 1; display: grid; place-items: center; scroll-snap-align: start; background: #fff; }
.detail-slide img { width: 100%; height: 100%; padding: 2%; object-fit: contain; }
.slider-dots { display: none; }
.detail-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.detail-thumb { aspect-ratio: 1; padding: 0; border: 1px solid transparent; overflow: hidden; opacity: .65; }
.detail-thumb.active { border-color: var(--ink); opacity: 1; }
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.detail-panel { min-width: 0; padding: 0 0 0 0; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-title-row h1 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.25; text-transform: uppercase; }
.wishlist-button { flex: 0 0 40px; padding: 8px; }
.wishlist-button img { width: 24px; }
.wishlist-button.active img { filter: invert(14%) sepia(64%) saturate(3126%) hue-rotate(332deg); }
.detail-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.detail-price-row span { color: var(--muted); text-decoration: line-through; }
.detail-price-row strong { font-weight: 700; }
.detail-subtitle { margin: 5px 0 18px; color: var(--muted); font-size: 13px; }
.option-block { margin-top: 18px; }
.option-label { margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.size-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 390px; }
.size-button { height: 38px; border: 1px solid var(--line); background: #fff; }
.size-button:hover, .size-button.selected { border-color: var(--ink); background: #000; color: #fff; }
.quantity-control { display: grid; grid-template-columns: 38px 62px 38px; width: max-content; margin: 48px 0 30px; border: 1px solid var(--line); }
.quantity-control button, .quantity-control span { display: grid; height: 38px; place-items: center; }
.quantity-control span { border-inline: 1px solid var(--line); }
.selection-error { min-height: 20px; margin: -18px 0 8px; color: var(--red); font-size: 13px; }
.purchase-actions { display: grid; gap: 8px; }
.outline-button, .solid-button, .button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--ink); padding: 0 16px; font-weight: 400; }
.solid-button, .button-signal, .checkout-submit { background: #000; color: #fff; }
.solid-button { color: #fff; }
.solid-button:hover, .button-signal:hover { color: #fff; background: var(--red); border-color: var(--red); }
.outline-button:hover { background: #000; color: #fff; }
.outline-button:disabled, .solid-button:disabled { cursor: not-allowed; opacity: .45; }
.product-summary { display: flex; flex-direction: column; gap: 4px; margin: 32px 0 24px; font-size: 14px; text-transform: uppercase; }
.detail-tabs { margin-top: 22px; }
.tab-buttons { display: flex; border-bottom: 1px solid var(--line); }
.tab-buttons button { min-width: 120px; padding: 10px 16px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; }
.tab-buttons button.active { border-color: var(--ink); }
.tab-panel { display: none; padding: 16px 0; font-size: 14px; }
.tab-panel.active { display: block; }
.tab-panel p { margin: 0 0 12px; }
.tab-panel ul { margin: 0; padding-left: 18px; }
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table-scroll th, .table-scroll td { padding: 8px; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.mobile-purchase-bar { display: none; }
.toast { position: fixed; z-index: 130; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 28px; padding: 14px 16px; background: #000; color: #fff; visibility: hidden; opacity: 0; transform: translateY(calc(100% + 100px)); transition: transform .35s var(--ease), opacity .2s ease, visibility .35s; }
.toast.show { visibility: visible; opacity: 1; transform: translateY(0); }
.toast div { display: flex; flex-direction: column; }
.toast span { font-size: 12px; }
.toast a { color: #fff; font-size: 12px; text-decoration: underline; }

/* Checkout */
.announcement { display: none; }
.checkout-shell { max-width: 1240px; min-height: 70vh; margin: auto; padding: 48px 24px 100px; }
.checkout-head { margin-bottom: 46px; }
.eyebrow { margin-bottom: 8px; font-size: 12px; letter-spacing: .08em; }
.checkout-title, .policy-title { margin: 0; font-size: clamp(46px, 7vw, 96px); font-weight: 400; letter-spacing: -.06em; line-height: .88; }
.checkout-progress { display: flex; gap: 22px; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; }
.checkout-step:not(.active) { color: #aaa; }
.cart-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; }
.cart-list { border-top: 1px solid var(--ink); }
.cart-item { position: relative; display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item-image { display: grid; aspect-ratio: 1; place-items: center; }
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-name { margin: 0; font-size: 16px; text-transform: uppercase; }
.cart-item-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.mini-qty { display: grid; grid-template-columns: 30px 34px 30px; border: 1px solid var(--line); }
.mini-qty > * { display: grid; height: 30px; place-items: center; }
.cart-item-price { font-weight: 500; }
.remove-item { align-self: start; font-size: 22px; }
.checkout-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.checkout-card-title { margin: 0; font-size: 20px; }
.checkout-intent { color: var(--muted); font-size: 13px; }
.checkout-form { display: grid; gap: 17px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 12px; outline: 0; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.text-button { width: max-content; padding: 2px 0; color: var(--red); font-size: 12px; text-decoration: underline; }
.shipping-options { display: grid; gap: 8px; }
.shipping-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shipping-option label { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); padding: 12px; cursor: pointer; }
.shipping-option label > span { display: flex; flex-direction: column; }
.shipping-option label span span { color: var(--muted); font-size: 11px; }
.shipping-option input:checked + label { border-color: var(--ink); box-shadow: inset 3px 0 0 #000; }
.summary { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 16px; }
.summary-row { display: flex; justify-content: space-between; }
.summary-row.total { margin-top: 7px; border-top: 1px solid var(--ink); padding-top: 12px; font-size: 18px; font-weight: 700; }
.checkout-submit { width: 100%; min-height: 44px; border: 1px solid #000; }
.checkout-safe { color: var(--muted); font-size: 11px; }
.empty-cart { display: grid; min-height: 420px; place-items: center; border-block: 1px solid var(--line); text-align: center; }
.empty-cart h2 { font-size: 30px; font-weight: 400; }
.empty-cart .button { margin-top: 16px; background: #000; color: #fff; }
.success-shell { text-align: center; }
.success-mark { display: grid; width: 46px; height: 46px; margin: 0 auto 16px; place-items: center; border: 1px solid #000; border-radius: 50%; }
.success-title { margin: 0; font-size: clamp(40px, 6vw, 80px); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.order-id { font-size: 13px; }
.success-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 40px auto; text-align: left; }
.success-card { border-top: 1px solid #000; padding-top: 16px; }
.success-card h3 { margin: 0 0 16px; }
.success-item, .success-total { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.success-total { border-color: #000; font-weight: 700; }
.qris-image { width: min(100%, 420px); margin: auto; }
.qris-note { color: var(--muted); font-size: 12px; }
.success-actions .button, .success-back { margin-top: 12px; background: #000; color: #fff; }

/* Policies */
.policy-shell { max-width: 1120px; margin: auto; padding: 48px 24px 100px; }
.back-link { display: inline-flex; gap: 8px; margin-bottom: 50px; font-size: 13px; }
.policy-lead { max-width: 700px; font-size: 18px; }
.policy-content { margin-top: 70px; }
.policy-section { display: grid; grid-template-columns: 1fr 2fr; padding: 32px 0; border-top: 1px solid var(--ink); }
.policy-section > div { grid-column: 2; }
.policy-section h2 { margin-top: 0; font-size: 22px; }
.policy-callout { margin-top: 20px; padding: 16px; background: #f5f5f5; }

/* Shared legacy header compatibility */
.header-nav { display: flex; justify-self: start; gap: 8px; }
.header-action { font-size: 13px; }
.language-pill { margin-right: 8px; }

@media (max-width: 900px) {
    :root { --header-height: 56px; }
    .desktop-only, .desktop-nav, .header-nav { display: none !important; }
    .mobile-only { display: inline-grid !important; }
    .header-inner { padding: 0 7px; }
    .brand { font-size: 21px; letter-spacing: -1.7px; }
    .header-actions { gap: 0; }
    .icon-button { width: 40px; height: 40px; }

    .home-hero { padding: 24px 16px 12px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 13px; }
    .catalog-filters { padding: 12px 16px 0; justify-content: flex-start; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; padding: 28px 16px 68px; }
    .catalog-item h2 { font-size: 13px; line-height: 1.3; }
    .catalog-price { font-size: 12px; gap: 5px; }
    .price-original { font-size: 11px; }
    .price-current { font-size: 13px; }
    .catalog-item:hover .catalog-media img { transform: none; }

    .detail-main { padding: 0 0 80px; }
    .detail-layout { display: block; }
    .detail-slider { aspect-ratio: 1; }
    .detail-slide { min-width: 100%; height: 100%; aspect-ratio: auto; }
    .detail-slide img { padding: 5%; }
    .slider-dots { display: flex; justify-content: center; gap: 8px; height: 32px; padding-top: 10px; }
    .slider-dots span { width: 6px; height: 6px; border-radius: 50%; background: #ccc; }
    .slider-dots span.active { background: #000; }
    .detail-gallery { display: none; }
    .detail-panel { padding: 0 12px 62px; }
    .detail-title-row h1 { font-size: 20px; }
    .detail-subtitle { margin-bottom: 14px; }
    .size-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 300px; }
    .quantity-control { margin: 48px auto 32px; }
    .purchase-actions { display: none; }
    .product-summary { margin-top: 32px; }
    .mobile-purchase-bar { position: fixed; z-index: 75; right: 8px; bottom: 8px; left: 8px; display: block; }
    .mobile-purchase-bar button { width: 100%; min-height: 42px; }
    .detail-page.is-sold-out .mobile-purchase-bar { display: none; }
    .detail-page .site-footer { padding-bottom: 88px; }
    .toast { right: 8px; bottom: 58px; left: 8px; justify-content: space-between; }

    .checkout-shell { padding: 34px 16px 80px; }
    .checkout-title, .policy-title { font-size: 52px; }
    .checkout-progress { gap: 12px; overflow-x: auto; }
    .cart-layout { display: block; }
    .checkout-card { margin-top: 40px; }
    .cart-item { grid-template-columns: 96px 1fr auto; gap: 12px; }
    .success-grid { grid-template-columns: 1fr; }
    .policy-shell { padding: 34px 16px 80px; }
    .policy-section { display: block; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 520px) {
    .catalog-grid { padding-right: 47px; padding-left: 47px; }
    .catalog-media { aspect-ratio: 1; }
    .catalog-item h2 { font-size: 20px; }
    .site-footer { padding-bottom: 48px; }
    .tab-buttons { overflow-x: auto; }
    .tab-buttons button { min-width: 105px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Morteils-aligned checkout */
.m-checkout-page { background: #fff; }
.checkout-header { position: sticky; z-index: 80; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; border-bottom: 1px solid #e5e5e5; background: rgba(255,255,255,.97); }
.checkout-header > :first-child { justify-self: start; }
.checkout-header .brand { grid-column: 2; justify-self: center; font-size: 29px; }
.m-checkout-shell { min-height: calc(100vh - 56px); }
.m-checkout-layout { display: grid; grid-template-columns: minmax(0, 696px) minmax(400px, 500px); justify-content: center; gap: 40px; padding: 40px 24px 80px; }
.m-address-form { min-width: 0; }
.m-form-section { margin-bottom: 54px; }
.m-form-section h1, .m-form-section h2, .mobile-summary-title { margin: 0 0 14px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.m-login-line { margin: 0 0 18px; font-size: 14px; }
.m-login-line a, .m-terms a { text-decoration: underline; }
.m-field { position: relative; display: flex; height: 52px; flex-direction: column; justify-content: center; margin-bottom: 20px; border: 1px solid #dedede; border-radius: 12px; padding: 7px 16px 4px; background: #fff; }
.m-field label { color: #666; font-size: 14px; line-height: 18px; transition: font-size .15s ease; }
.m-field input, .m-field select, .m-field textarea { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; font-size: 15px; }
.m-field small { position: absolute; top: calc(100% + 3px); left: 12px; color: #666; font-size: 10px; }
.m-field:focus-within { border-color: #111; }
.m-select-field { height: 54px; }
.m-select-field select { appearance: auto; }
.m-search-field { padding-right: 48px; }
.m-search-field > img { position: absolute; right: 14px; width: 24px; height: 24px; }
.m-textarea-field { height: 104px; justify-content: flex-start; padding-top: 14px; }
.m-textarea-field textarea { flex: 1; resize: none; }
.m-textarea-field small { right: 4px; left: auto; }
.m-shipping-options { display: grid; gap: 10px; }
.m-method, .m-payment-method { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; min-height: 68px; border: 1px solid #dedede; border-radius: 12px; padding: 12px 16px; cursor: pointer; }
.m-method input, .m-payment-method input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.m-radio { display: block; width: 18px; height: 18px; border: 1px solid #aaa; border-radius: 50%; box-shadow: inset 0 0 0 4px #fff; }
.m-method input:checked + .m-radio, .m-payment-method input:checked + .m-radio { border-color: #000; background: #000; }
.m-method:has(input:checked), .m-payment-method:has(input:checked) { border-color: #111; }
.m-method > span:nth-of-type(2) { display: flex; flex-direction: column; }
.m-method small { color: #777; font-size: 11px; font-weight: 400; }
.m-payment-method { grid-template-columns: 22px 1fr auto; min-height: 54px; }
.m-order-summary { position: sticky; top: 80px; align-self: start; min-width: 0; }
.mobile-summary-title { display: none; }
.m-summary-card { border: 1px solid #dedede; border-radius: 12px; padding: 12px 24px 22px; }
.m-order-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 82px; padding: 10px 0; }
.m-order-image { display: grid; width: 48px; height: 60px; place-items: center; }
.m-order-image img { width: 100%; height: 100%; object-fit: contain; }
.m-order-copy { display: flex; min-width: 0; flex-direction: column; font-size: 12px; }
.m-order-copy strong { overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.m-order-copy span { color: #666; }
.m-order-price { color: #ed1140; font-size: 14px; white-space: nowrap; }
.m-remove { position: absolute; top: 0; right: -14px; width: 26px; height: 26px; font-size: 20px; }
.m-row-button { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: space-between; margin-top: 14px; border: 1px solid #dedede; border-radius: 9px; padding: 0 16px; text-align: left; }
.m-total-list { display: grid; gap: 10px; padding: 18px 24px 0; }
.m-total-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; }
.m-total-list strong { color: #ed1140; font-weight: 500; }
.m-total-list .m-grand-total { margin-top: 4px; border-top: 1px solid #dedede; padding-top: 16px; font-size: 15px; font-weight: 500; }
.m-total-list .m-grand-total strong { font-size: 18px; font-weight: 700; }
.m-secure { margin: 16px 0; color: #666; font-size: 12px; text-align: center; }
.m-notice { margin: 0 0 24px; border-radius: 4px; padding: 16px; background: #f0f1fb; color: #555; font-size: 13px; }
.m-primary, .m-secondary { display: flex; width: 100%; min-height: 45px; align-items: center; justify-content: center; border: 1px solid #000; padding: 0 18px; text-align: center; }
.m-primary { background: #000; color: #fff; }
.m-primary:hover { background: #ed1140; border-color: #ed1140; color: #fff; }
.m-secondary { margin-top: 8px; background: #fff; color: #000; }
.m-terms { margin: 8px 0 0; color: #666; font-size: 11px; text-align: center; }
.m-empty { display: grid; max-width: 520px; min-height: calc(100vh - 56px); margin: auto; place-content: center; text-align: center; }
.m-empty-bag { width: 54px; margin: 0 auto 14px; }
.m-empty h1 { margin: 0; font-size: 24px; }
.m-empty p { color: #666; }
.m-empty .m-primary { margin-top: 12px; }

/* Payment and completed order */
.m-payment-screen { max-width: 1200px; margin: auto; padding: 48px 24px 100px; }
.m-payment-intro { margin-bottom: 42px; text-align: center; }
.m-success-icon { display: grid; width: 42px; height: 42px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: #000; color: #fff; }
.m-payment-intro p { margin: 0 0 4px; color: #666; font-size: 13px; }
.m-payment-intro h1 { margin: 0 0 12px; font-size: clamp(42px, 6vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: .95; }
.m-payment-intro > span { font-size: 13px; }
.m-payment-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 38px; }
.m-qris-card, .m-payment-summary { border: 1px solid #dedede; border-radius: 12px; padding: 24px; }
.m-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.m-card-heading span { color: #666; font-size: 12px; }
.m-card-heading h2, .m-payment-summary h2 { margin: 2px 0 0; font-size: 21px; }
.m-card-heading > strong { color: #ed1140; font-size: 19px; }
.m-qris-frame { display: grid; width: min(100%, 430px); margin: 20px auto; place-items: center; overflow: hidden; }
.m-qris-frame img { width: 100%; height: auto; object-fit: contain; }
.m-qris-card ol { max-width: 430px; margin: 16px auto 0; padding-left: 22px; color: #555; font-size: 13px; }
.m-payment-summary { height: max-content; }
.m-payment-summary h2 { margin-bottom: 12px; }
.m-payment-summary .m-summary-card { padding: 4px 14px; }
.m-payment-summary .m-total-list { padding-inline: 0; }
.m-payment-summary .m-primary { margin-top: 24px; }

@media (max-width: 800px) {
    .checkout-header .brand { font-size: 21px; }
    .m-checkout-layout { display: flex; flex-direction: column; gap: 0; padding: 20px 23px 60px; }
    .m-form-section { margin-bottom: 58px; }
    .m-form-section h1, .m-form-section h2, .mobile-summary-title { font-size: 21px; }
    .m-field { height: 52px; margin-bottom: 22px; }
    .m-textarea-field { height: 102px; }
    .m-order-summary { position: static; }
    .mobile-summary-title { display: block; }
    .m-summary-card { padding: 10px 12px 18px; }
    .m-order-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
    .m-order-price { font-size: 13px; }
    .m-total-list { padding-inline: 0; }
    .m-notice { margin-top: 18px; }
    .m-payment-screen { padding: 30px 16px 70px; }
    .m-payment-intro { margin-bottom: 28px; }
    .m-payment-intro h1 { font-size: 44px; }
    .m-payment-layout { grid-template-columns: 1fr; gap: 18px; }
    .m-qris-card, .m-payment-summary { padding: 18px; }
    .m-card-heading > strong { font-size: 16px; }
}
