/**
 * OmniMart Frontend — base stylesheet (Phase 11A)
 *
 * No frontend styling existed before this phase — this covers the site
 * shell (header/nav/mini-cart/footer), shared components (buttons, forms,
 * alerts, empty states), and the Cart/Wishlist/Login pages. Kept
 * deliberately plain/neutral so future phases (Product/Category/Checkout
 * pages) can extend it without fighting an opinionated design.
 */

:root {
    --om-primary: #2563eb;
    --om-primary-dark: #1d4ed8;
    --om-text: #1f2937;
    --om-text-muted: #6b7280;
    --om-border: #e5e7eb;
    --om-bg: #ffffff;
    --om-bg-alt: #f9fafb;
    --om-success-bg: #ecfdf5;
    --om-success: #059669;
    --om-error-bg: #fef2f2;
    --om-error: #dc2626;
    --om-warning-bg: #fffbeb;
    --om-warning: #b45309;
    --om-radius: 8px;
    --om-space-xs: 4px;
    --om-space-sm: 8px;
    --om-space-md: 16px;
    --om-space-lg: 24px;
    --om-space-xl: 40px;
}

* { box-sizing: border-box; }

body.site-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--om-text);
    background: var(--om-bg-alt);
    line-height: 1.5;
}

a { color: var(--om-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
    background: var(--om-bg);
    border-bottom: 1px solid var(--om-border);
    position: relative;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--om-space-md) var(--om-space-lg);
    display: flex;
    align-items: center;
    gap: var(--om-space-lg);
    flex-wrap: wrap;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--om-text);
}
.site-logo:hover { text-decoration: none; }

.site-nav {
    display: flex;
    gap: var(--om-space-md);
    flex: 1;
}

.site-nav__badge {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--om-primary);
    color: #fff;
    font-size: 11px;
    text-align: center;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--om-space-sm);
}

.site-header__customer {
    font-size: 14px;
    color: var(--om-text-muted);
}

.mini-cart-trigger {
    position: relative;
    background: none;
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--om-text);
    display: inline-flex;
    align-items: center;
}

.mini-cart-trigger__count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--om-primary);
    color: #fff;
    font-size: 11px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---------- Mini Cart ---------- */
.mini-cart {
    position: absolute;
    top: 100%;
    right: var(--om-space-lg);
    width: 320px;
    max-width: calc(100vw - 32px);
    background: var(--om-bg);
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
    padding: var(--om-space-md);
}

.mini-cart__items {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--om-space-sm);
}

.mini-cart__item {
    display: flex;
    gap: var(--om-space-sm);
    align-items: center;
}

.mini-cart__item-image {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--om-bg-alt);
}

.mini-cart__item-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.mini-cart__item-name { font-weight: 600; }
.mini-cart__item-meta { color: var(--om-text-muted); }

.mini-cart__empty {
    color: var(--om-text-muted);
    text-align: center;
    padding: var(--om-space-md) 0;
    margin: 0;
}

.mini-cart__footer {
    margin-top: var(--om-space-md);
    padding-top: var(--om-space-md);
    border-top: 1px solid var(--om-border);
}

.mini-cart__total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: var(--om-space-sm);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--om-radius);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--om-primary); color: #fff; }
.btn--primary:hover { background: var(--om-primary-dark); }

.btn--ghost { background: transparent; border-color: var(--om-border); color: var(--om-text); }
.btn--ghost:hover { background: var(--om-bg-alt); }

.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--block { width: 100%; }

.link-btn {
    background: none;
    border: none;
    color: var(--om-primary);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}
.link-btn:hover { text-decoration: underline; }
.link-btn--danger { color: var(--om-error); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--om-space-md); }
.form-label { display: block; margin-bottom: var(--om-space-xs); font-size: 14px; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    font-size: 14px;
}
.form-hint { color: var(--om-text-muted); font-size: 13px; }

/* ---------- Alerts ---------- */
.notifications {
    max-width: 1200px;
    margin: var(--om-space-md) auto 0;
    padding: 0 var(--om-space-lg);
}
.alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--om-radius);
    margin-bottom: var(--om-space-sm);
}
.alert--success { background: var(--om-success-bg); color: var(--om-success); }
.alert--error { background: var(--om-error-bg); color: var(--om-error); }
.alert--warning { background: var(--om-warning-bg); color: var(--om-warning); }
.alert__close { background: none; border: none; cursor: pointer; font-size: 16px; color: inherit; }

/* ---------- Page layout ---------- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--om-space-lg);
}

.page-title { font-size: 26px; margin: 0 0 var(--om-space-lg); }

.empty-state {
    text-align: center;
    padding: var(--om-space-xl) var(--om-space-lg);
    background: var(--om-bg);
    border-radius: var(--om-radius);
}
.empty-state p { color: var(--om-text-muted); margin-bottom: var(--om-space-md); }

/* ---------- Cart page ---------- */
.cart-search { margin-bottom: var(--om-space-md); max-width: 320px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--om-space-lg);
    align-items: start;
}

.cart-items, .cart-summary {
    background: var(--om-bg);
    border-radius: var(--om-radius);
    padding: var(--om-space-md);
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto auto auto;
    gap: var(--om-space-md);
    align-items: center;
    padding: var(--om-space-md) 0;
    border-bottom: 1px solid var(--om-border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--om-bg-alt);
}

.cart-item__details { display: flex; flex-direction: column; gap: 2px; }
.cart-item__name { font-weight: 600; color: var(--om-text); }
.cart-item__variant, .cart-item__price { font-size: 13px; color: var(--om-text-muted); margin: 0; }

.cart-item__quantity { display: flex; align-items: center; gap: var(--om-space-xs); }
.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--om-border);
    background: var(--om-bg);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
.cart-item__qty-input {
    width: 48px;
    text-align: center;
    padding: 6px;
    border: 1px solid var(--om-border);
    border-radius: 4px;
}

.cart-item__total { font-weight: 700; white-space: nowrap; }

.cart-item__actions { display: flex; flex-direction: column; gap: var(--om-space-xs); align-items: flex-start; }

.cart-summary h2 { font-size: 18px; margin-top: 0; }
.cart-summary__row { display: flex; justify-content: space-between; padding: var(--om-space-xs) 0; color: var(--om-text-muted); }
.cart-summary__row--grand { font-weight: 700; font-size: 18px; color: var(--om-text); border-top: 1px solid var(--om-border); margin-top: var(--om-space-sm); padding-top: var(--om-space-sm); }
.cart-summary form { margin-top: var(--om-space-md); }

/* ---------- Cart coupon (Phase 15A) ---------- */
.cart-coupon { margin-bottom: var(--om-space-md); padding-bottom: var(--om-space-md); border-bottom: 1px solid var(--om-border); }
.cart-coupon__form { display: flex; gap: var(--om-space-xs); }
.cart-coupon__form .form-control { flex: 1; }
.cart-coupon__applied-list { list-style: none; margin: 0 0 var(--om-space-sm); padding: 0; display: flex; flex-direction: column; gap: var(--om-space-xs); }
.cart-coupon__applied { display: flex; justify-content: space-between; align-items: center; padding: var(--om-space-xs) var(--om-space-sm); background: var(--om-success-bg); color: var(--om-success); border-radius: var(--om-radius); font-weight: 600; }
#cart-coupon-message { margin: var(--om-space-xs) 0 0; }
#cart-coupon-message.form-error { color: var(--om-error); }

.cart-saved { margin-top: var(--om-space-xl); }
.cart-saved h2 { font-size: 20px; }

/* ---------- Wishlist page ---------- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--om-space-md);
}

.wishlist-card {
    background: var(--om-bg);
    border-radius: var(--om-radius);
    overflow: hidden;
}

.wishlist-card__image { width: 100%; height: 160px; object-fit: cover; background: var(--om-bg-alt); }
.wishlist-card__body { padding: var(--om-space-md); display: flex; flex-direction: column; gap: 4px; }
.wishlist-card__name { font-weight: 600; color: var(--om-text); }
.wishlist-card__price { font-weight: 700; margin: 0; }
.wishlist-card__actions { display: flex; justify-content: space-between; align-items: center; margin-top: var(--om-space-sm); }

/* ---------- Auth page ---------- */
.auth-page { display: flex; justify-content: center; }
.auth-card {
    background: var(--om-bg);
    border-radius: var(--om-radius);
    padding: var(--om-space-xl);
    width: 100%;
    max-width: 400px;
}
.auth-form .form-group:last-of-type { margin-bottom: var(--om-space-lg); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: var(--om-space-xl);
    padding: var(--om-space-lg);
    text-align: center;
    color: var(--om-text-muted);
    font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .site-header__inner { padding: var(--om-space-sm) var(--om-space-md); }
    .site-nav { order: 3; width: 100%; justify-content: center; }
    .page-container { padding: var(--om-space-md); }
    .cart-item {
        grid-template-columns: 56px 1fr;
        grid-template-areas:
            "image details"
            "image quantity"
            "image total"
            "image actions";
    }
    .cart-item__image { grid-area: image; }
    .cart-item__details { grid-area: details; }
    .cart-item__quantity { grid-area: quantity; }
    .cart-item__total { grid-area: total; }
    .cart-item__actions { grid-area: actions; flex-direction: row; gap: var(--om-space-md); }
    .mini-cart { right: var(--om-space-md); left: var(--om-space-md); width: auto; }
}

/* ============================================================
   Checkout (Phase 12A)
   Appended here rather than a new stylesheet so the layout file
   doesn't need a second <link> — every frontend page already loads
   this one file.
   ============================================================ */

.checkout-page { max-width: 900px; }

.checkout-progress {
    display: flex;
    list-style: none;
    margin: 0 0 var(--om-space-lg);
    padding: 0;
    gap: var(--om-space-xs);
}
.checkout-progress__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.checkout-progress__dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--om-bg);
    border: 1px solid var(--om-border);
    color: var(--om-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.checkout-progress__label { font-size: 12px; color: var(--om-text-muted); }
.checkout-progress__step--current .checkout-progress__dot { background: var(--om-primary); border-color: var(--om-primary); color: #fff; }
.checkout-progress__step--current .checkout-progress__label { color: var(--om-text); font-weight: 600; }
.checkout-progress__step--done .checkout-progress__dot { background: var(--om-success); border-color: var(--om-success); color: #fff; }

.checkout-step {
    background: var(--om-bg);
    border-radius: var(--om-radius);
    padding: var(--om-space-lg);
}
.checkout-step h2 { margin-top: 0; font-size: 20px; }

.checkout-form .form-row { display: flex; gap: var(--om-space-md); }
.checkout-form .form-row .form-group { flex: 1; }
.form-error { color: var(--om-error); font-size: 13px; margin: 4px 0 0; }

.checkout-or { text-align: center; color: var(--om-text-muted); font-size: 13px; margin: var(--om-space-md) 0; }
.checkout-same-as-billing { margin-bottom: var(--om-space-sm); }

.checkout-address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--om-space-md);
    margin-bottom: var(--om-space-md);
}
.checkout-address-card {
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    padding: var(--om-space-md);
    font-size: 13px;
}
.checkout-address-card p { margin: 2px 0; }
.checkout-address-card__name { font-weight: 600; }
.checkout-address-card__actions { display: flex; align-items: center; gap: var(--om-space-sm); margin-top: var(--om-space-sm); }

.checkout-method-list { display: flex; flex-direction: column; gap: var(--om-space-sm); margin-bottom: var(--om-space-md); }
.checkout-method-option {
    display: flex;
    align-items: flex-start;
    gap: var(--om-space-sm);
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    padding: var(--om-space-md);
    cursor: pointer;
}
.checkout-method-option input { margin-top: 4px; }
.checkout-method-option__body { display: flex; flex-direction: column; gap: 2px; }
.checkout-method-option__name { font-weight: 600; }
.checkout-method-option__desc, .checkout-method-option__meta { font-size: 13px; color: var(--om-text-muted); }

.checkout-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--om-space-md);
    margin-bottom: var(--om-space-lg);
}
.checkout-review-card {
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    padding: var(--om-space-md);
    font-size: 13px;
}
.checkout-review-card h3 { margin: 0 0 var(--om-space-xs); font-size: 14px; }
.checkout-review-address { white-space: pre-line; color: var(--om-text-muted); }

.checkout-review-items { margin-bottom: var(--om-space-lg); }

.checkout-success, .checkout-failed { text-align: center; background: var(--om-bg); border-radius: var(--om-radius); padding: var(--om-space-xl); }
.checkout-success__icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 999px;
    background: var(--om-success-bg);
    color: var(--om-success);
    font-size: 28px;
    margin: 0 auto var(--om-space-md);
}
.checkout-failed__list { list-style: none; padding: 0; margin: 0 0 var(--om-space-lg); text-align: left; }
.checkout-failed__actions { display: flex; gap: var(--om-space-sm); justify-content: center; }

.btn.is-loading { opacity: 0.7; cursor: default; }

@media (max-width: 640px) {
    .checkout-form .form-row { flex-direction: column; gap: 0; }
    .checkout-progress__label { font-size: 10px; }
}

/* ============================================================
   Products & Categories (Phase 17A follow-up)
   No frontend template existed for either module before this — appended
   here rather than a new stylesheet, same reasoning as the Checkout
   section above.
   ============================================================ */

.breadcrumbs { font-size: 13px; color: var(--om-text-muted); margin-bottom: var(--om-space-md); }
.breadcrumbs a { color: var(--om-text-muted); }

.catalog-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--om-space-lg);
    align-items: start;
}

.catalog-sidebar {
    background: var(--om-bg);
    border-radius: var(--om-radius);
    padding: var(--om-space-md);
}
.catalog-sidebar__title { font-size: 14px; margin: 0 0 var(--om-space-sm); }
.catalog-category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.catalog-category-list li a { display: block; padding: 6px 8px; border-radius: var(--om-radius); color: var(--om-text); font-size: 14px; }
.catalog-category-list li a:hover { background: var(--om-bg-alt); text-decoration: none; }
.catalog-category-list li.is-active a { background: var(--om-primary); color: #fff; }

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--om-space-md);
    margin-bottom: var(--om-space-md);
    flex-wrap: wrap;
}
.catalog-toolbar__count { color: var(--om-text-muted); font-size: 14px; }
.catalog-sort { display: flex; align-items: center; gap: var(--om-space-sm); font-size: 13px; }
.catalog-sort .form-control { width: auto; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--om-space-md);
}

.product-card {
    background: var(--om-bg);
    border-radius: var(--om-radius);
    overflow: hidden;
    display: block;
    color: var(--om-text);
}
.product-card:hover { text-decoration: none; }
.product-card__link { display: block; color: var(--om-text); }
.product-card__image { width: 100%; height: 160px; object-fit: cover; background: var(--om-bg-alt); display: block; }
.product-card__name { display: block; padding: var(--om-space-sm) var(--om-space-sm) 0; font-weight: 600; font-size: 14px; }
.product-card__price { display: block; padding: 4px var(--om-space-sm) var(--om-space-sm); font-weight: 700; }
.product-card__price-original { font-weight: 400; color: var(--om-text-muted); margin-left: 6px; }
.product-card__actions { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--om-space-sm) var(--om-space-sm); gap: var(--om-space-sm); }

.pagination { display: flex; justify-content: center; align-items: center; gap: var(--om-space-md); margin-top: var(--om-space-lg); font-size: 14px; }
.pagination__status { color: var(--om-text-muted); }

/* ---------- Product detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--om-space-xl);
    background: var(--om-bg);
    border-radius: var(--om-radius);
    padding: var(--om-space-lg);
    margin-bottom: var(--om-space-xl);
}
.product-gallery__main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--om-radius); background: var(--om-bg-alt); }
.product-gallery__thumbs { display: flex; gap: var(--om-space-sm); margin-top: var(--om-space-sm); }
.product-gallery__thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 1px solid var(--om-border); }

.product-info__name { font-size: 24px; margin: 0 0 var(--om-space-xs); }
.product-info__rating { color: #f59e0b; margin-bottom: var(--om-space-xs); }
.product-info__sku { color: var(--om-text-muted); font-size: 13px; margin: 0 0 var(--om-space-sm); }
.product-info__price { font-size: 24px; font-weight: 700; margin-bottom: var(--om-space-sm); }
.product-info__price-original { font-size: 16px; font-weight: 400; color: var(--om-text-muted); margin-left: var(--om-space-sm); }
.product-info__short-description { color: var(--om-text-muted); margin-bottom: var(--om-space-md); }
.product-info__stock--out { color: var(--om-error); font-weight: 600; }
.product-info__stock--in { color: var(--om-success); font-weight: 600; }
.product-info__actions { display: flex; gap: var(--om-space-sm); margin: var(--om-space-md) 0; }
.product-info__qty { max-width: 90px; }
.product-info__description { margin-top: var(--om-space-lg); }
.product-info__description h2 { font-size: 16px; }

.product-reviews, .product-related { margin-bottom: var(--om-space-xl); }
.product-review { background: var(--om-bg); border-radius: var(--om-radius); padding: var(--om-space-md); margin-bottom: var(--om-space-sm); }
.product-review__rating { color: #f59e0b; }
.product-review__title { font-weight: 600; margin: var(--om-space-xs) 0 0; }
.product-review__comment { margin: var(--om-space-xs) 0; }

/* ---------- Category detail ---------- */
.category-header { display: flex; gap: var(--om-space-md); align-items: center; margin-bottom: var(--om-space-md); }
.category-header__image { width: 96px; height: 96px; object-fit: cover; border-radius: var(--om-radius); }
.category-header__description { color: var(--om-text-muted); margin: 0; }
.category-children { display: flex; flex-wrap: wrap; gap: var(--om-space-sm); margin-bottom: var(--om-space-lg); }
.category-children__link { padding: 6px 12px; background: var(--om-bg); border-radius: 999px; font-size: 13px; color: var(--om-text); }
.category-children__link:hover { background: var(--om-bg-alt); text-decoration: none; }

@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
}

/* ---------- Phase 22: Catalogue search / price filter ---------- */
.catalog-search, .catalog-price-filter { margin-bottom: var(--om-space-md); display: flex; flex-direction: column; gap: var(--om-space-sm); }
.catalog-price-filter__row { display: flex; gap: var(--om-space-sm); }
.catalog-search-summary { color: var(--om-text-muted); margin: 0 0 var(--om-space-sm); }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: var(--om-space-md); align-items: flex-end; margin-bottom: var(--om-space-md); }
.catalog-toolbar form { display: flex; flex-wrap: wrap; gap: var(--om-space-sm); align-items: center; }

/* ---------- Phase 22: Product variant selector ---------- */
.product-variants { margin: var(--om-space-md) 0; }
.product-variants__group { margin-bottom: var(--om-space-sm); }
.product-variants__label { display: block; font-weight: 600; font-size: 13px; margin-bottom: var(--om-space-xs); }
.product-variants__options { display: flex; flex-wrap: wrap; gap: var(--om-space-xs); }
.product-variants__option {
    padding: 6px 14px;
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    background: var(--om-bg);
    color: var(--om-text);
    cursor: pointer;
    font-size: 13px;
}
.product-variants__option.is-selected { border-color: var(--om-primary); color: var(--om-primary); font-weight: 600; }
.product-info__brand { color: var(--om-text-muted); margin: 0 0 var(--om-space-xs); }

/* ---------- Phase 22: Account pages ---------- */
.account-dashboard__links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--om-space-md);
    margin: var(--om-space-md) 0 var(--om-space-lg);
}
.account-dashboard__card {
    display: block;
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    padding: var(--om-space-md);
    background: var(--om-bg);
    color: var(--om-text);
}
.account-dashboard__card:hover { border-color: var(--om-primary); text-decoration: none; }
.account-dashboard__card h3 { margin: 0 0 var(--om-space-xs); font-size: 15px; }
.account-dashboard__card p { margin: 0; color: var(--om-text-muted); font-size: 13px; }

.account-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--om-space-md);
    margin-bottom: var(--om-space-lg);
}
.account-address-card {
    border: 1px solid var(--om-border);
    border-radius: var(--om-radius);
    padding: var(--om-space-md);
    background: var(--om-bg);
    font-size: 13px;
}
.account-address-card__type { font-weight: 600; margin: 0 0 var(--om-space-xs); display: flex; align-items: center; gap: var(--om-space-xs); }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--om-success-bg);
    color: var(--om-success);
    font-size: 11px;
    font-weight: 600;
}

.auth-card__footer { margin-top: var(--om-space-md); font-size: 13px; color: var(--om-text-muted); text-align: center; }
.form-group--checkbox label { display: flex; align-items: center; gap: var(--om-space-xs); font-weight: normal; font-size: 13px; }

/* ---------- Phase 22: Order timeline ---------- */
.order-timeline { list-style: none; margin: 0; padding: 0; }
.order-timeline__entry {
    padding: var(--om-space-sm) 0;
    border-bottom: 1px solid var(--om-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.order-timeline__entry:last-child { border-bottom: none; }
.order-timeline__date { font-size: 12px; color: var(--om-text-muted); }
.order-timeline__status { font-weight: 600; }
.order-timeline__notes { margin: 0; font-size: 13px; color: var(--om-text-muted); }
