:root {
  --ink: #15324a;
  --ink-soft: #5a6d7e;
  --line: #dce7ee;
  --surface: #ffffff;
  --surface-soft: #f5f9fc;
  --shadow-sm: 0 8px 24px rgba(18, 63, 91, 0.08);
  --shadow-md: 0 18px 50px rgba(18, 63, 91, 0.13);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); }
h3 { font-size: 1.05rem; }

:focus-visible {
  outline: 3px solid rgba(2, 166, 244, 0.36);
  outline-offset: 3px;
}

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; color: #fff; background: var(--brand-dark); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--brand-dark); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--brand-dark); box-shadow: 0 8px 20px rgba(2, 133, 195, 0.22); }
.button-primary:hover { background: #006fa9; }
.button-secondary { color: var(--brand-dark); background: #fff; border-color: #a7dff7; }
.button-secondary:hover { background: var(--brand-light); }
.button-danger { color: #fff; background: #c63b3b; }
.button-danger-soft { color: #a22e2e; background: #fff0f0; border-color: #f3c7c7; }
.button-block { width: 100%; }
.link-button { min-width: 44px; min-height: 44px; padding: 8px; color: var(--brand-dark); background: transparent; font-weight: 700; }
.form-error { min-height: 1.4em; color: #b33737; font-weight: 700; }
.danger-link { color: #b33737; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; color: var(--brand-dark); font-weight: 800; }

.demo-strip { padding: 7px 16px; color: #644b00; background: #fff5c9; font-size: 0.76rem; font-weight: 700; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding-block: 10px; }
.menu-toggle { display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; padding: 0; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.brand { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: 1rem; font-weight: 850; }
.brand img { width: 58px; height: 32px; object-fit: contain; }
.brand span { white-space: nowrap; }
.site-search { display: flex; grid-column: 1 / -1; min-width: 0; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.site-search input { width: 100%; min-height: 44px; padding: 9px 13px; background: transparent; border: 0; outline: 0; }
.site-search button { min-width: 64px; color: #fff; background: var(--brand-dark); font-weight: 750; }
.header-actions { display: flex; align-items: center; gap: 5px; }
.cart-link, .account-link { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 5px; padding: 7px 8px; border-radius: 11px; font-size: 0.84rem; font-weight: 750; }
.cart-link:hover, .account-link:hover { background: var(--brand-light); }
.cart-link strong { display: grid; width: 20px; height: 20px; place-content: center; color: #fff; background: var(--brand-dark); border-radius: 50%; font-size: 0.7rem; }
.action-label, .account-link span:last-child { display: none; }
.category-nav { display: none; border-top: 1px solid var(--line); }
.category-nav.is-open { display: block; }
.category-list { display: grid; padding-block: 8px 13px; }
.category-list a { display: flex; min-height: 44px; align-items: center; padding: 8px 10px; border-radius: 9px; font-size: 0.91rem; font-weight: 700; }
.category-list a:hover, .category-list a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-light); }

.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #004d83 0%, var(--brand-dark) 54%, #00a2e8 100%); }
.hero::before, .hero::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.hero::before { width: 420px; height: 420px; top: -260px; right: -100px; }
.hero::after { width: 240px; height: 240px; bottom: -150px; left: -70px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 36px; padding-block: 58px; }
.hero .eyebrow { color: #bfeeff; }
.hero-copy h1 { max-width: 800px; margin-bottom: 18px; font-size: clamp(2.35rem, 11vw, 5.2rem); }
.hero-copy > p { max-width: 650px; margin-bottom: 26px; color: #e1f6ff; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .button-primary { color: #614900; background: var(--amf-select); box-shadow: 0 10px 26px rgba(0,0,0,.15); }
.hero .button-secondary { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 32px 0 0; list-style: none; }
.hero-facts li { padding: 13px 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 13px; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: var(--amf-select); font-size: 1.35rem; }
.hero-facts span { color: #dff4fc; font-size: 0.72rem; }
.hero-story { position: relative; display: grid; min-height: 340px; align-content: end; padding: 28px; background: linear-gradient(160deg, rgba(255,255,255,.17), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.story-card { position: relative; z-index: 1; padding: 20px; color: var(--ink); background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); }
.story-card span, .story-card strong { display: block; }
.story-card span { margin-bottom: 7px; color: var(--brand-dark); font-size: 0.73rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.story-card strong { font-size: 1.35rem; line-height: 1.2; }
.story-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: .88rem; }
.story-card-small { width: 78%; margin: -5px 0 0 auto; color: #624a00; background: #fff2ad; transform: rotate(-2deg); }
.story-seal { position: absolute; top: 24px; right: 26px; display: grid; width: 92px; height: 92px; place-content: center; color: #5b4700; background: var(--amf-select); border: 4px solid rgba(255,255,255,.7); border-radius: 50%; font-size: .9rem; font-weight: 900; line-height: 1.15; text-align: center; transform: rotate(7deg); }

.section { padding-block: 54px; }
.section-amf { background: linear-gradient(180deg, #fff9dc, #fff); }
.section-shops { background: var(--surface-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { max-width: 680px; margin-bottom: 0; color: var(--ink-soft); }
.section-heading .text-link { display: none; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 15px; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.product-card:hover { border-color: #a9dff4; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-image-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-light); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.025); }
.product-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; min-height: 26px; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: .66rem; font-weight: 850; line-height: 1.15; }
.badge-amf { color: #5f4900; background: var(--amf-select); box-shadow: 0 4px 10px rgba(120,92,0,.15); }
.badge-muted { color: var(--ink-soft); background: #edf2f5; }
.product-card-body { padding: 11px; }
.product-card-body h3 { min-height: 2.36em; margin: 8px 0; font-size: .9rem; }
.product-card-body h3 a:hover { color: var(--brand-dark); }
.sync-tag { display: inline-block; max-width: 100%; padding: 4px 7px; color: #075a82; background: var(--brand-light); border-radius: 6px; font-size: .6rem; font-weight: 750; line-height: 1.25; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.product-price strong { color: #c93b2f; font-size: .98rem; }
.product-price del { color: #8493a0; font-size: .71rem; }
.product-origin { margin: 8px 0 3px; color: var(--ink-soft); font-size: .7rem; }
.shop-name { display: block; overflow: hidden; color: var(--brand-dark); font-size: .68rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.shop-grid { display: grid; gap: 12px; }
.shop-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) 30px; gap: 13px; align-items: center; min-height: 86px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }
.shop-card:hover { border-color: #a9dff4; transform: translateY(-2px); }
.shop-logo { display: grid; width: 54px; height: 54px; place-content: center; overflow: hidden; background: var(--brand-light); border-radius: 14px; }
.shop-logo img { width: 47px; height: 34px; object-fit: contain; }
.shop-card strong, .shop-card small { display: block; }
.shop-card strong { font-size: .95rem; }
.shop-card small { margin-top: 4px; color: var(--ink-soft); }
.shop-arrow { color: var(--brand-dark); font-size: 1.3rem; }

.page-shell { padding-block: 28px 60px; }
.narrow-shell { max-width: 1120px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 24px; color: var(--ink-soft); font-size: .82rem; }
.breadcrumbs a:hover { color: var(--brand-dark); }
.page-heading { display: flex; flex-direction: column; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { margin-bottom: 10px; font-size: clamp(2rem, 8vw, 3.4rem); }
.page-heading p { max-width: 740px; margin-bottom: 0; color: var(--ink-soft); }
.category-heading { padding: 24px; background: linear-gradient(130deg, var(--brand-light), #fff8d4); border: 1px solid #cdebf8; border-radius: var(--radius-md); }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form label { color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
select, input, textarea { min-height: 44px; padding: 10px 12px; background: #fff; border: 1px solid #cbd9e2; border-radius: 10px; outline: 0; }
select:focus, input:focus, textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(2,166,244,.13); }
.category-product-grid { margin-top: 24px; }
.empty-state, .empty-cell { padding: 28px; color: var(--ink-soft); background: var(--surface-soft); border-radius: 14px; text-align: center; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }
.pagination a, .pagination span { display: grid; width: 44px; height: 44px; place-content: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 750; }
.pagination a[aria-current="page"] { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.pagination .disabled { color: #a9b5bd; background: #f5f7f8; }

.product-detail { display: grid; gap: 30px; }
.gallery-main { overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-light); border-radius: var(--radius-md); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 78px; min-height: 58px; padding: 3px; overflow: hidden; background: #fff; border: 2px solid transparent; border-radius: 9px; }
.gallery-thumbs button:hover, .gallery-thumbs button.active { border-color: var(--brand-primary); }
.gallery-thumbs img { width: 100%; height: 54px; object-fit: cover; border-radius: 6px; }
.product-info h1 { margin: 12px 0; font-size: clamp(2rem, 8vw, 3.3rem); }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 17px; }
.detail-price strong { color: #c93b2f; font-size: 1.8rem; }
.detail-price del { color: #8493a0; }
.detail-description { color: var(--ink-soft); }
.product-specs { padding: 0; margin: 20px 0; border-block: 1px solid var(--line); }
.product-specs div { display: grid; grid-template-columns: 120px 1fr; gap: 15px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.product-specs div:last-child { border-bottom: 0; }
.product-specs dt { color: var(--ink-soft); font-size: .83rem; }
.product-specs dd { margin: 0; font-weight: 650; }
.form-field label, .stack-form label, .form-grid label, .admin-filters label, .transition-actions label, .danger-panel label { display: grid; gap: 6px; color: var(--ink-soft); font-size: .82rem; font-weight: 750; }
.form-field select { width: 100%; }
.purchase-row { display: grid; gap: 12px; margin-top: 19px; }
.quantity-control { display: grid; gap: 6px; color: var(--ink-soft); font-size: .82rem; font-weight: 750; }
.quantity-box { display: grid; grid-template-columns: 44px 62px 44px; width: max-content; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.quantity-box button { min-height: 44px; background: var(--surface-soft); font-size: 1.2rem; }
.quantity-box input { width: 62px; padding: 0 5px; border: 0; border-inline: 1px solid var(--line); border-radius: 0; text-align: center; }
.shop-summary { display: flex; gap: 13px; align-items: center; margin-top: 24px; padding: 15px; background: var(--surface-soft); border-radius: 14px; }
.shop-summary img { width: 66px; height: 42px; object-fit: contain; }
.shop-summary span, .shop-summary strong, .shop-summary a { display: block; }
.shop-summary span { color: var(--ink-soft); font-size: .72rem; }
.shop-summary a { margin-top: 5px; color: var(--brand-dark); font-size: .8rem; font-weight: 750; }

.shop-hero { position: relative; overflow: hidden; padding-block: 48px; color: #fff; background: linear-gradient(125deg, #004a7b, var(--brand-primary)); }
.shop-hero::after { position: absolute; width: 330px; height: 330px; right: -100px; top: -190px; content: ""; border: 70px solid rgba(255,255,255,.08); border-radius: 50%; }
.shop-hero-content { position: relative; z-index: 1; display: grid; gap: 20px; }
.shop-hero-logo { display: grid; width: 100px; height: 100px; place-content: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow-md); }
.shop-hero-logo img { width: 87px; height: 60px; object-fit: contain; }
.shop-hero .eyebrow { color: #c9efff; }
.shop-hero h1 { margin-bottom: 9px; font-size: clamp(2rem, 8vw, 3.7rem); }
.shop-hero p { max-width: 740px; color: #e4f7ff; }
.shop-stat { display: inline-flex; padding: 7px 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .8rem; font-weight: 750; }

.auth-shell { display: grid; min-height: 75vh; place-content: center; padding: 42px 16px; background: radial-gradient(circle at top left, var(--brand-light), transparent 45%), var(--surface-soft); }
.auth-card { width: min(100%, 460px); padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-md); }
.auth-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 30px; font-weight: 850; }
.auth-logo img { width: 70px; height: 40px; object-fit: contain; }
.auth-card h1 { margin-bottom: 10px; font-size: 2rem; }
.auth-card > p { color: var(--ink-soft); }
.stack-form { display: grid; gap: 15px; margin-top: 22px; }
.demo-note { margin-top: 18px; padding: 13px; color: #5c5700; background: #fff9d8; border: 1px solid #f0df87; border-radius: 11px; font-size: .8rem; }

.cart-layout, .checkout-layout, .order-detail-grid { display: grid; gap: 20px; }
.cart-groups { display: grid; gap: 16px; }
.cart-group { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.cart-group > header, .cart-group > footer { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface-soft); }
.cart-group > header a { color: var(--brand-dark); font-weight: 800; }
.cart-group > header span, .cart-group > footer span { color: var(--ink-soft); font-size: .8rem; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 14px; border-top: 1px solid var(--line); }
.cart-item img { width: 72px; height: 58px; object-fit: cover; border-radius: 9px; }
.cart-item-info h2 { margin-bottom: 4px; font-size: .9rem; }
.cart-item-info p, .cart-item-info strong { margin: 0; font-size: .76rem; }
.cart-item-info p { color: var(--ink-soft); }
.compact-quantity { display: grid; gap: 3px; color: var(--ink-soft); font-size: .68rem; }
.compact-quantity input { width: 58px; min-height: 40px; padding: 5px; }
.cart-line-total { grid-column: 2; font-size: .85rem; }
.cart-item .link-button { grid-column: 3; grid-row: 2; }
.summary-card { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.summary-card h2 { margin-bottom: 18px; font-size: 1.2rem; }
.summary-card > div { display: flex; justify-content: space-between; gap: 15px; margin: 10px 0; font-size: .83rem; }
.summary-card hr, .price-breakdown hr { border: 0; border-top: 1px solid var(--line); }
.summary-card .summary-total { align-items: end; margin-block: 17px; }
.summary-total strong { color: #c93b2f; font-size: 1.2rem; }
.summary-help { margin: 12px 0 0; color: var(--ink-soft); font-size: .75rem; text-align: center; }

.checkout-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0; margin: 0 0 23px; list-style: none; }
.checkout-progress li { display: grid; justify-items: center; gap: 5px; color: var(--ink-soft); font-size: .67rem; font-weight: 700; text-align: center; }
.checkout-progress span { display: grid; width: 34px; height: 34px; place-content: center; background: #edf2f5; border-radius: 50%; }
.checkout-progress .active { color: var(--brand-dark); }
.checkout-progress .active span { color: #fff; background: var(--brand-dark); }
.checkout-steps { display: grid; gap: 17px; }
.checkout-step { padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.checkout-step > header { display: grid; grid-template-columns: 38px 1fr; gap: 11px; margin-bottom: 19px; }
.checkout-step > header > span { display: grid; width: 38px; height: 38px; place-content: center; color: #fff; background: var(--brand-dark); border-radius: 50%; font-weight: 850; }
.checkout-step h2 { margin: 0 0 4px; font-size: 1.18rem; }
.checkout-step header p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.form-grid { display: grid; gap: 13px; margin-bottom: 17px; }
.sim-label { display: flex; gap: 8px; align-items: center; margin-block: 13px; padding: 10px 12px; color: #674f00; background: #fff5c7; border: 1px solid #ead77a; border-radius: 10px; font-size: .77rem; font-weight: 800; }
.payment-options { display: grid; gap: 9px; margin-block: 15px; }
.payment-option { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; min-height: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.payment-option.active { background: var(--brand-light); border-color: var(--brand-primary); }
.payment-option input { width: 18px; min-height: 18px; padding: 0; accent-color: var(--brand-dark); }
.payment-option strong, .payment-option small { display: block; }
.payment-option small { color: var(--ink-soft); }
.payment-demo { display: grid; gap: 14px; align-items: center; margin: 15px 0; padding: 15px; background: var(--surface-soft); border: 1px dashed #9bcce1; border-radius: 14px; }
.fake-qr { display: grid; width: 130px; height: 130px; place-content: center; color: var(--brand-dark); background: repeating-conic-gradient(#15324a 0 25%, #fff 0 50%) 50% / 18px 18px; border: 9px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.fake-qr span { padding: 6px; background: #fff; font-weight: 900; }
.confirm-shop { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.confirm-shop span { color: var(--ink-soft); font-size: .76rem; }
.confirm-shop span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--ink); font-size: .9rem; font-weight: 800; }

.success-shell { display: grid; min-height: 68vh; place-content: center; }
.success-card { width: min(100%, 760px); padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow-md); text-align: center; }
.success-icon { display: grid; width: 68px; height: 68px; place-content: center; margin: 0 auto 17px; color: #fff; background: #258b50; border-radius: 50%; font-size: 2rem; font-weight: 900; }
.success-card h1 { margin-bottom: 10px; font-size: clamp(2rem, 8vw, 3rem); }
.success-orders { display: grid; gap: 9px; margin-block: 22px; text-align: left; }
.success-orders article { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 14px; background: var(--surface-soft); border-radius: 12px; }
.success-orders span, .success-orders strong, .success-orders small { display: block; }
.success-orders span, .success-orders small { color: var(--ink-soft); font-size: .75rem; }
.success-actions { display: flex; flex-direction: column; gap: 9px; }

.dashboard-heading { align-items: flex-start; }
.filter-tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 5px; }
.filter-tabs a { flex: 0 0 auto; display: flex; min-height: 42px; align-items: center; padding: 8px 12px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 750; }
.filter-tabs a[aria-current="page"] { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.order-table { width: 100%; border-collapse: collapse; }
.order-table thead { display: none; }
.order-table tbody { display: grid; gap: 12px; }
.order-table tr { display: grid; gap: 8px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.order-table td { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: .82rem; }
.order-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: .71rem; }
.order-table .table-action { margin-top: 5px; padding-top: 9px; border-top: 1px solid var(--line); }
.order-table .table-action::before { content: ""; }
.table-action a { display: flex; min-height: 40px; align-items: center; color: var(--brand-dark); font-weight: 800; }
.status-pill { display: inline-flex; min-height: 28px; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: .68rem; font-weight: 850; white-space: nowrap; }
.status-pill.large { min-height: 38px; padding: 7px 14px; font-size: .78rem; }
.status-pending-confirmation { color: #765900; background: #fff1b8; }
.status-confirmed { color: #00618f; background: #dff4fe; }
.status-shipping { color: #9a4b00; background: #ffead4; }
.status-completed { color: #176b38; background: #dff5e6; }
.status-cancelled { color: #9a3434; background: #f9e4e4; }

.order-heading { display: flex; flex-direction: column; gap: 15px; margin-bottom: 22px; }
.order-heading h1 { margin-bottom: 7px; font-size: clamp(2rem, 8vw, 3.2rem); }
.order-heading p { margin: 0; color: var(--ink-soft); }
.detail-panel { margin-bottom: 17px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.detail-panel h2 { margin-bottom: 16px; font-size: 1.15rem; }
.detail-panel p { margin-bottom: 8px; color: var(--ink-soft); font-size: .84rem; }
.order-line { display: grid; grid-template-columns: 62px 1fr; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line img { width: 62px; height: 52px; object-fit: cover; border-radius: 8px; }
.order-line div strong, .order-line div span { display: block; }
.order-line div strong { font-size: .85rem; }
.order-line div span { color: var(--ink-soft); font-size: .72rem; }
.order-line > strong { grid-column: 2; font-size: .84rem; }
.price-breakdown > div { display: flex; justify-content: space-between; gap: 14px; margin-block: 10px; font-size: .82rem; }
.danger-panel { border-color: #f2caca; }
.danger-panel input { width: 100%; margin-bottom: 12px; }
.timeline { position: relative; padding: 0; margin: 0; list-style: none; }
.timeline::before { position: absolute; top: 12px; bottom: 12px; left: 8px; width: 2px; content: ""; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: relative; z-index: 1; width: 18px; height: 18px; margin-top: 3px; background: var(--brand-primary); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--brand-primary); }
.timeline-item.status-completed .timeline-dot { background: #3ba064; box-shadow: 0 0 0 2px #3ba064; }
.timeline-item.status-shipping .timeline-dot { background: #e9892e; box-shadow: 0 0 0 2px #e9892e; }
.timeline-item.status-cancelled .timeline-dot { background: #c84e4e; box-shadow: 0 0 0 2px #c84e4e; }
.timeline-content time { color: var(--ink-soft); font-size: .69rem; }
.timeline-content h3 { margin: 2px 0 3px; font-size: .9rem; }
.timeline-content p { margin: 0; font-size: .73rem; }
.timeline-note { margin-top: 6px !important; padding: 7px 9px; background: var(--surface-soft); border-radius: 8px; }

.dashboard-shell { display: grid; min-height: 70vh; background: var(--surface-soft); }
.dashboard-nav { padding: 19px 16px 12px; color: #fff; background: #0b3c59; }
.dashboard-role { display: block; color: #a9dcf1; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.dashboard-nav > strong { display: block; margin-top: 4px; }
.dashboard-nav nav { display: flex; gap: 7px; margin-top: 14px; overflow-x: auto; }
.dashboard-nav nav a { flex: 0 0 auto; display: flex; min-height: 42px; align-items: center; padding: 8px 11px; color: #d5eaf4; border-radius: 9px; font-size: .77rem; font-weight: 700; }
.dashboard-nav nav a.active, .dashboard-nav nav a:hover { color: #fff; background: rgba(255,255,255,.14); }
.dashboard-content { min-width: 0; padding: 24px 16px 55px; }
.transition-panel { display: grid; gap: 16px; margin-bottom: 20px; padding: 18px; color: #fff; background: linear-gradient(130deg, #0b3c59, var(--brand-dark)); border-radius: var(--radius-md); }
.transition-panel .eyebrow { color: #aee6ff; }
.transition-panel h2 { margin-bottom: 6px; }
.transition-panel p { margin: 0; color: #d7eff9; font-size: .84rem; }
.transition-actions { display: grid; gap: 9px; }
.transition-actions label { color: #d7eff9; }
.no-action { padding: 13px; background: rgba(255,255,255,.1); border-radius: 10px; }
.feature-banner { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 22px; padding: 16px; color: #5b4600; background: #fff0a7; border: 1px solid #e5c852; border-radius: 14px; }
.feature-banner > span { display: grid; width: 44px; height: 44px; place-content: center; background: #fff9d9; border-radius: 50%; font-size: 1.5rem; }
.feature-banner p { margin: 4px 0 0; font-size: .78rem; }
.sync-list { display: grid; gap: 11px; }
.sync-list article { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 12px; align-items: center; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.sync-list img { width: 66px; height: 55px; object-fit: cover; border-radius: 8px; }
.sync-list strong, .sync-list span { display: block; }
.sync-list article > span { grid-column: 2; }
.sync-list div > span { color: var(--ink-soft); font-size: .73rem; }
.sync-ready { color: #218148; font-size: .75rem; font-weight: 800; }
.admin-filters { display: grid; gap: 11px; margin-bottom: 18px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.admin-filters select { width: 100%; }
.admin-notice { margin-bottom: 18px; padding: 13px; color: #594f00; background: #fff9d8; border: 1px solid #edde89; border-radius: 11px; font-size: .8rem; }
.admin-product-list { display: grid; gap: 9px; }
.admin-product-list article { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 10px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.admin-product-list img { width: 60px; height: 52px; object-fit: cover; border-radius: 8px; }
.admin-product-info strong, .admin-product-info span { display: block; }
.admin-product-info strong { font-size: .84rem; }
.admin-product-info > span { color: var(--ink-soft); font-size: .69rem; }
.admin-product-list .badge-state { grid-column: 2; }
.admin-product-list .button { grid-column: 1 / -1; }

.legal-shell { min-height: 60vh; }
.legal-card { max-width: 800px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.legal-card h1 { margin-bottom: 20px; font-size: clamp(2rem, 8vw, 3.2rem); }
.legal-card p { color: var(--ink-soft); }

.site-footer { padding-block: 44px; color: #d7e8f1; background: #092f47; }
.footer-grid { display: grid; gap: 30px; }
.footer-brand { display: inline-block; margin-bottom: 10px; color: #fff; font-size: 1.45rem; font-weight: 900; }
.site-footer p { max-width: 460px; color: #aac7d6; }
.site-footer strong { color: var(--amf-select); font-size: .82rem; }
.site-footer h2 { margin-bottom: 9px; color: #fff; font-size: .95rem; }
.site-footer nav a, .site-footer > .footer-grid > div:last-child a { display: block; width: fit-content; min-height: 36px; padding-block: 6px; color: #bdd3de; font-size: .8rem; }
.site-footer a:hover { color: #fff; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 80; max-width: min(360px, calc(100% - 32px)); padding: 12px 15px; color: #fff; background: #15324a; border-radius: 11px; box-shadow: var(--shadow-md); font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 600px) {
  .container { width: min(100% - 48px, var(--container)); }
  .action-label { display: inline; }
  .section-heading .text-link { display: inline-flex; }
  .product-card-body { padding: 14px; }
  .product-card-body h3 { font-size: 1rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .purchase-row { grid-template-columns: auto 1fr; align-items: end; }
  .add-cart-button { min-height: 48px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .full-field { grid-column: 1 / -1; }
  .payment-demo { grid-template-columns: auto 1fr; }
  .success-actions { flex-direction: row; justify-content: center; }
  .order-line { grid-template-columns: 70px 1fr auto; }
  .order-line img { width: 70px; height: 58px; }
  .order-line > strong { grid-column: 3; align-self: center; }
  .admin-product-list article { grid-template-columns: 64px minmax(0,1fr) auto auto; }
  .admin-product-list .badge-state, .admin-product-list .button { grid-column: auto; }
}

@media (min-width: 768px) {
  .demo-strip { font-size: .8rem; }
  .header-main { grid-template-columns: auto minmax(260px, 1fr) auto; gap: 22px; padding-block: 13px; }
  .menu-toggle { display: none; }
  .brand img { width: 82px; height: 44px; }
  .brand span { font-size: 1.12rem; }
  .site-search { grid-column: auto; }
  .account-link span:last-child { display: inline; }
  .category-nav { display: block; }
  .category-list { display: flex; justify-content: space-between; gap: 2px; padding-block: 5px; }
  .category-list a { min-height: 38px; padding: 6px 8px; font-size: .76rem; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; align-items: center; padding-block: 78px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 6vw, 5.1rem); }
  .hero-story { min-height: 450px; }
  .section { padding-block: 72px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .page-shell { padding-block: 36px 80px; }
  .page-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .category-heading { padding: 32px; }
  .product-detail { grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr); gap: 44px; align-items: start; }
  .product-info { position: sticky; top: 160px; }
  .shop-hero-content { grid-template-columns: 128px 1fr; align-items: center; }
  .shop-hero-logo { width: 128px; height: 128px; }
  .shop-hero-logo img { width: 110px; height: 74px; }
  .auth-card { padding: 38px; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0,1fr) 320px; align-items: start; }
  .sticky-card { position: sticky; top: 158px; }
  .cart-item { grid-template-columns: 82px minmax(0,1fr) 70px 110px 52px; }
  .cart-item img { width: 82px; height: 66px; }
  .cart-line-total, .cart-item .link-button { grid-column: auto; grid-row: auto; }
  .checkout-progress li { grid-template-columns: 36px auto; justify-content: center; align-items: center; font-size: .78rem; text-align: left; }
  .checkout-step { padding: 25px; }
  .order-table thead { display: table-header-group; }
  .order-table tbody { display: table-row-group; }
  .order-table tr { display: table-row; padding: 0; box-shadow: none; }
  .order-table th { padding: 12px 14px; color: var(--ink-soft); background: var(--surface-soft); font-size: .7rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
  .order-table td { display: table-cell; padding: 14px; border-bottom: 1px solid var(--line); font-size: .8rem; }
  .order-table td::before { display: none; }
  .order-table-wrap { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
  .order-table .table-action { margin: 0; padding: 14px; border-top: 0; text-align: right; }
  .order-heading { flex-direction: row; align-items: center; justify-content: space-between; }
  .order-detail-grid { grid-template-columns: minmax(0,1fr) 320px; align-items: start; }
  .order-detail-grid > aside { position: sticky; top: 158px; }
  .dashboard-shell { grid-template-columns: 230px minmax(0,1fr); }
  .dashboard-nav { padding: 30px 20px; }
  .dashboard-nav nav { display: grid; overflow: visible; }
  .dashboard-nav nav a { padding-inline: 12px; }
  .dashboard-content { padding: 36px 28px 70px; }
  .transition-panel { grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); align-items: center; padding: 24px; }
  .admin-filters { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .sync-list article { grid-template-columns: 74px minmax(0,1fr) auto; }
  .sync-list article > span { grid-column: auto; }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; }
}

@media (min-width: 1200px) {
  .category-list a { padding-inline: 12px; font-size: .82rem; }
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .product-card-body h3 { font-size: .96rem; }
  .dashboard-shell { grid-template-columns: 260px minmax(0,1fr); }
  .dashboard-content { padding-inline: 44px; }
}

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