/* Infinity Store — storefront styles */

:root {
    --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-ar: "Cairo", var(--font-en);

    --bg: #f6f6f4;
    --surface: #fff;
    --text: #141414;
    --text-muted: #5c5c5c;
    --text-subtle: #8a8a8a;
    --border: #e4e4e0;
    --border-strong: #cfcfcb;

    --accent: #141414;
    --accent-hover: #2a2a2a;
    --accent-soft: #f0f0ec;

    --sale: #9f1239;
    --success: #14532d;
    --success-bg: #ecfdf3;
    --warning: #713f12;
    --warning-bg: #fef9ec;
    --error: #991b1b;
    --error-bg: #fef2f2;

    --container: 72rem;
    --gutter: 1.25rem;
    --header-h: 4rem;
    --radius: 3px;
    --transition: 150ms ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[dir="ltr"] body { font-family: var(--font-en); }
html[dir="rtl"] body { font-family: var(--font-ar); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.page { padding-block: 2.5rem; }
.page--narrow { max-width: 42rem; margin-inline: auto; }
.page--medium { max-width: 56rem; margin-inline: auto; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.site-nav a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav a.is-active { color: var(--text); font-weight: 600; }

.site-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lang-switch a {
    padding: 0.375rem 0.5rem;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}

.lang-switch a:hover { background: var(--accent-soft); }
.lang-switch a.is-active { background: var(--accent); color: #fff; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition);
}

.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 1.125rem; height: 1.125rem; }

.cart-link { position: relative; }

.cart-badge {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
}

.nav-badge {
    display: inline-block;
    margin-inline-start: 0.25rem;
    padding: 0.0625rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    vertical-align: middle;
}

.menu-toggle { display: inline-flex; }

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 0.75rem var(--gutter);
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
    display: block;
    padding: 0.625rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
}

.mobile-nav a:hover { background: var(--accent-soft); }

@media (min-width: 1024px) {
    .site-nav { display: flex; }
    .menu-toggle { display: none; }
}

/* Logo */
.store-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.store-logo img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    flex-shrink: 0;
}

.store-logo--sm img { width: 1.75rem; height: 1.75rem; }

.store-logo__name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-logo__tagline {
    display: none;
    font-size: 0.6875rem;
    color: var(--text-subtle);
    line-height: 1.2;
}

@media (min-width: 640px) {
    .store-logo img { width: 2.5rem; height: 2.5rem; }
    .store-logo__tagline { display: block; }
}

/* Alerts */
.alert {
    padding: 0.75rem var(--gutter);
    font-size: 0.875rem;
    text-align: center;
    border-bottom: 1px solid transparent;
}

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

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

/* Footer */
.site-footer {
    margin-top: auto;
    background: var(--text);
    color: #d4d4d4;
    padding-block: 3rem 2rem;
}

.site-footer a:hover { color: #fff; }

.site-footer__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer__brand p {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 22rem;
    color: #a3a3a3;
}

.site-footer__brand .store-logo__name { color: #fff; }

.site-footer h4 {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li { margin-top: 0.5rem; }

.site-footer li a {
    font-size: 0.875rem;
    color: #a3a3a3;
}

.site-footer__meta {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 0.8125rem;
    color: #737373;
    text-align: center;
}

.payment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.payment-tags span {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    border: 1px solid #404040;
    color: #a3a3a3;
}

/* Typography */
.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
}

.section-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header .link-arrow {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.section-header .link-arrow:hover { color: var(--text); text-decoration: underline; }

.page-title {
    margin: 0 0 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Hero */
.hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.hero__inner {
    display: grid;
    gap: 2rem;
    padding-block: 3rem 3.5rem;
}

@media (min-width: 768px) {
    .hero__inner {
        grid-template-columns: 1fr auto;
        align-items: end;
        padding-block: 4rem 4.5rem;
    }
}

.hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.hero__text {
    margin: 0 0 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 36rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__stats {
    display: none;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    background: var(--bg);
}

@media (min-width: 768px) {
    .hero__stats { display: flex; }
}

.hero__stat dt {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    margin-bottom: 0.25rem;
}

.hero__stat dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Occasion filters */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.filter-chip {
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    transition: border-color var(--transition), background var(--transition);
}

.filter-chip:hover {
    border-color: var(--border-strong);
    background: var(--accent-soft);
}

/* Sections */
.section { padding-block: 2.5rem; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }

/* Flash deals */
.flash-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.flash-countdown {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.flash-countdown time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text);
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
}

.category-tile {
    display: block;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.category-tile:hover { border-color: var(--border-strong); }

.category-tile h3 {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.category-tile p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-subtle);
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .product-grid--4 { grid-template-columns: repeat(4, 1fr); }
    .product-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Product card */
.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.product-card:hover { border-color: var(--border-strong); }

.product-card__badges {
    position: absolute;
    top: 0.625rem;
    inset-inline-start: 0.625rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
}

.badge--sale { background: var(--sale); color: #fff; }
.badge--tag { background: var(--text); color: #fff; }
.badge--flash { background: var(--warning-bg); color: var(--warning); border: 1px solid #fde68a; }

.product-card__wishlist {
    position: absolute;
    top: 0.625rem;
    inset-inline-end: 0.625rem;
    z-index: 2;
}

.product-card__wishlist button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-subtle);
    transition: color var(--transition), border-color var(--transition);
}

.product-card__wishlist button:hover,
.product-card__wishlist button.is-active { color: var(--sale); border-color: var(--border-strong); }

.product-card__wishlist svg { width: 0.875rem; height: 0.875rem; }

.product-card__media {
    aspect-ratio: 1;
    background: var(--bg);
    overflow: hidden;
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}

.product-card:hover .product-card__media img { opacity: 0.92; }

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 0.875rem;
}

.product-card__body { padding: 0.875rem; }

.product-card__category {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
}

.product-card__title {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-card__price {
    font-size: 0.9375rem;
    font-weight: 600;
}

.product-card__price small {
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--text-subtle);
}

.product-card__price-old {
    font-size: 0.75rem;
    color: var(--text-subtle);
    text-decoration: line-through;
    margin-inline-start: 0.25rem;
}

.stock-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

.stock-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--sale);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover { background: var(--accent-hover); }

.btn--secondary {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--secondary:hover { background: var(--accent-soft); }

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    padding-inline: 0.75rem;
}

.btn--ghost:hover { color: var(--text); }

.btn--block { display: flex; width: 100%; }

.btn svg { width: 1rem; height: 1rem; }
html[dir="rtl"] .btn svg.icon-flip { transform: scaleX(-1); }

/* Forms */
.field { margin-bottom: 1rem; }

.field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.input,
.textarea,
select.input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--border-strong);
}

.textarea { resize: vertical; min-height: 5rem; }

.field-error {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: var(--error);
}

.field-row { display: grid; gap: 1rem; }
@media (min-width: 480px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

/* Cards / panels */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.panel__header {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

.panel__body { padding: 1.25rem; }

.panel--sticky {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Shop layout */
.shop-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .shop-layout { grid-template-columns: 14rem 1fr; }
}

.sidebar-nav h3 {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav a {
    display: block;
    padding: 0.4375rem 0.625rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-radius: var(--radius);
    margin-bottom: 0.125rem;
}

.sidebar-nav a:hover { background: var(--accent-soft); color: var(--text); }
.sidebar-nav a.is-active { font-weight: 600; color: var(--text); background: var(--accent-soft); }

.search-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-bar .input { flex: 1; min-width: 12rem; }

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-subtle);
}

.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb span:last-child { color: var(--text); }

/* Product detail */
.product-detail {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .product-detail { grid-template-columns: 1fr 1fr; }
}

.product-gallery {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-meta__category {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
}

.product-meta__title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.product-meta__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.product-meta__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.25rem;
}

.product-meta__price .amount {
    font-size: 1.5rem;
    font-weight: 600;
}

.product-meta__desc {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.add-to-cart {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.add-to-cart .input { width: 4.5rem; text-align: center; }
.add-to-cart .btn { flex: 1; }

/* Cart */
.progress-bar {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
}

.progress-bar__labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.progress-bar__labels span:last-child { font-weight: 600; }

.progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 300ms ease;
}

.cart-item {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item__thumb {
    width: 4.5rem;
    height: 4.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item__info { flex: 1; min-width: 10rem; }

.cart-item__name {
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.cart-item__unit {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-subtle);
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item__qty .input { width: 3.5rem; padding: 0.375rem; text-align: center; }

.cart-item__total {
    font-weight: 600;
    font-size: 0.9375rem;
    min-width: 5rem;
    text-align: end;
}

.cart-summary {
    margin-top: 1.5rem;
    padding: 1.25rem;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cart-summary__note {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-subtle);
}

.text-link {
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.text-link:hover { color: var(--text); }
.text-link--danger { color: var(--sale); }

/* Checkout */
.checkout-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .checkout-grid { grid-template-columns: 1fr 20rem; }
}

.form-section-title {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.form-divider {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.radio-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition);
}

.radio-card:hover { border-color: var(--border-strong); }
.radio-card.is-selected { border-color: var(--text); background: var(--accent-soft); }

.radio-card input { margin-top: 0.125rem; flex-shrink: 0; }

.radio-card__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.radio-card__hint {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--text-subtle);
}

.bank-details {
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
}

.bank-details h4 {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bank-details dl {
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.bank-details .row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.bank-details dt { color: var(--text-subtle); }
.bank-details dd { margin: 0; font-weight: 500; text-align: end; }
.bank-details .mono { font-family: ui-monospace, monospace; font-weight: 600; }

.bank-details .total-row {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.bank-details .total-row dd { font-size: 1rem; font-weight: 600; }

.file-input {
    width: 100%;
    font-size: 0.8125rem;
}

.file-input::file-selector-button {
    margin-inline-end: 0.75rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.preview-img {
    margin-top: 0.75rem;
    max-height: 12rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.order-lines { font-size: 0.875rem; }

.order-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.625rem;
}

.order-line span:first-child {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-totals {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.order-totals .row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.order-totals .row--total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-row:hover { border-color: var(--border-strong); }

/* Success / track */
.status-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.status-icon--pending { background: var(--warning-bg); color: var(--warning); }
.status-icon--success { background: var(--success-bg); color: var(--success); }
.status-icon svg { width: 1.5rem; height: 1.5rem; }

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

.notice {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.notice--warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #fde68a; }

.order-ref {
    padding: 1.25rem;
    background: var(--bg);
    border-radius: var(--radius);
    text-align: start;
    margin-bottom: 1.5rem;
}

.order-ref__label {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-ref__number {
    margin: 0.25rem 0 0;
    font-size: 1.375rem;
    font-weight: 600;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.02em;
}

.order-ref__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.order-ref__grid dt { margin: 0; color: var(--text-subtle); font-size: 0.75rem; }
.order-ref__grid dd { margin: 0.125rem 0 0; font-weight: 600; }

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.status-pill {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
}

.status-pill--delivered { background: var(--success-bg); color: var(--success); }
.status-pill--cancelled { background: var(--error-bg); color: var(--error); }
.status-pill--default { background: var(--warning-bg); color: var(--warning); }

.timeline {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.timeline__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline__dot {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-subtle);
}

.timeline__dot.is-done { background: var(--accent); color: #fff; }

.timeline__label {
    margin-top: 0.375rem;
    font-size: 0.625rem;
    color: var(--text-subtle);
    max-width: 4.5rem;
    line-height: 1.3;
}

.timeline__line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-top: 0.875rem;
}

.timeline__line.is-done { background: var(--accent); }

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}

.list-row:last-child { border-bottom: none; }

.back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.back-link:hover { color: var(--text); text-decoration: underline; }

/* Pagination */
.pagination-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.pagination-nav a,
.pagination-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.pagination-nav a:hover { border-color: var(--border-strong); color: var(--text); }

.pagination-nav .active span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.pagination-nav .disabled span {
    opacity: 0.4;
    cursor: default;
}

/* Utilities */
.is-hidden { display: none !important; }
.mt-section { margin-top: 3rem; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.font-mono { font-family: ui-monospace, monospace; }
