* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7f8f5;
    color: #1f2937;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.expo-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.expo-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.expo-header__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.expo-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.expo-brand__title {
    font-size: 20px;
    font-weight: 700;
    color: #14532d;
}

.expo-brand__meta {
    font-size: 12px;
    color: #6b7280;
}

.expo-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.expo-nav a,
.expo-nav button {
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    color: #374151;
}

.expo-nav .is-primary {
    background: #166534;
    color: #fff;
    border-color: #166534;
}

.expo-main {
    flex: 1;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    padding: 18px 16px 120px;
}

.expo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.expo-hero {
    padding: 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}

.expo-hero h1,
.expo-section h2 {
    margin: 0 0 8px;
}

.expo-hero p,
.expo-muted,
.expo-section__desc {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.expo-alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 14px;
    line-height: 1.6;
}

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

.expo-search {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
}

.expo-btn {
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    background: #166534;
    color: #fff;
    font-weight: 600;
}

.expo-btn--secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.expo-btn--danger {
    background: #b91c1c;
}

.expo-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.expo-section {
    margin-bottom: 16px;
    padding: 18px;
}

.expo-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.expo-product {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.expo-product__image-wrap {
    background: #f3f4f6;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.expo-product__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    background: #f3f4f6;
}

.expo-product__image-btn {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.expo-product__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.expo-product__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.expo-product__meta,
.expo-list__meta,
.expo-order-meta {
    font-size: 13px;
    color: #6b7280;
}

.expo-price {
    font-size: 18px;
    font-weight: 700;
    color: #166534;
}

.expo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    background: #ecfdf5;
    color: #166534;
}

.expo-badge--muted {
    background: #f3f4f6;
    color: #4b5563;
}

.expo-badge--warn {
    background: #fff7ed;
    color: #c2410c;
}

.expo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expo-list__item {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.expo-list__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.expo-list__title {
    font-weight: 700;
    margin-bottom: 4px;
}

.expo-list__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.expo-order-card {
    border-width: 3px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.expo-order-card--paid {
    border-color: #f59e0b;
    background: #fffbeb;
}

.expo-order-card--free {
    box-shadow: inset 0 0 0 2px #10b981;
}

.expo-order-card--paid.expo-order-card--free {
    background: linear-gradient(135deg, #fffbeb 0%, #f0fdf4 100%);
}

.expo-order-detail-card {
    border-width: 3px;
}

.expo-order-detail-card--paid {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}

.expo-order-detail-card--free {
    box-shadow: inset 0 0 0 2px #10b981;
}

.expo-order-flags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.expo-order-flags--spacious {
    margin-top: 14px;
    margin-bottom: 6px;
}

.expo-order-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .3px;
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.06);
}

.expo-order-flag--paid {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.expo-order-flag--unpaid {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.expo-order-flag--free {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.expo-order-flag--shipping {
    background: #e0e7ff;
    color: #3730a3;
    border: 2px solid #6366f1;
}

.expo-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.expo-qty-row input {
    width: 88px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 8px 10px;
}

.expo-summary {
    display: grid;
    gap: 10px;
}

.expo-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.expo-summary__row--total {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 18px;
    font-weight: 700;
}

.expo-form {
    display: grid;
    gap: 12px;
}

.expo-form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.expo-form input,
.expo-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
}

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

.expo-empty {
    padding: 24px;
    text-align: center;
    color: #6b7280;
}

.expo-floating-cart {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 25;
    background: #166534;
    color: #fff;
    border-radius: 999px;
    padding: 14px 16px;
    box-shadow: 0 16px 32px rgba(22, 101, 52, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.expo-floating-cart__meta {
    font-size: 12px;
    opacity: 0.9;
}

.expo-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 92px;
    z-index: 30;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.expo-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 40;
}

.expo-modal.is-open {
    display: flex;
}

.expo-modal__panel {
    max-width: 720px;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.expo-modal__panel img {
    width: 100%;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    background: #111827;
}

.expo-modal__footer {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.expo-loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.expo-hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .expo-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .expo-toolbar {
        grid-template-columns: 1fr;
    }

    .expo-main {
        padding: 16px 14px 120px;
    }

    .expo-section,
    .expo-hero {
        padding: 16px;
    }
}
