/* ========================================================
   SOUTHDEV HOME DEPOT – Customer Storefront Styles
   Clean White Professional Theme
   ======================================================== */

/* ---------- Customer Font Override ---------- */
/* Plus Jakarta Sans: modern geometric sans-serif for the storefront */
:root {
    --font-customer: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
body:not(.admin-layout) {
    font-family: var(--font-customer);
    letter-spacing: -0.01em;
}
body:not(.admin-layout) h1,
body:not(.admin-layout) h2,
body:not(.admin-layout) h3,
body:not(.admin-layout) h4,
body:not(.admin-layout) h5,
body:not(.admin-layout) h6 {
    font-family: var(--font-customer);
    letter-spacing: -0.02em;
}
body:not(.admin-layout) .brand .logo-text {
    font-family: var(--font-customer);
    letter-spacing: 1.2px;
}
body:not(.admin-layout) .main-menu a {
    font-family: var(--font-customer);
    letter-spacing: .6px;
}
body:not(.admin-layout) .btn {
    font-family: var(--font-customer);
}
body:not(.admin-layout) .auth-link {
    font-family: var(--font-customer);
}
body:not(.admin-layout) .form-control {
    font-family: var(--font-customer);
}

/* ---------- Hero Banner – Tiles Main Product ---------- */
.hero-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
        grid-template-columns: minmax(0, 1fr) 340px;
    background: linear-gradient(135deg, #1B2A4A 0%, #2D4A7A 40%, #F97316 100%);
    min-height: 280px;
}
/* Gap between nav and hero (hero is nested inside .container, not a direct sibling) */
.hero-banner {
    margin-top: 20px;
}
.products-hero {
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
.products-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
        display: grid;
        gap: 0;
    align-items: center;
    color: #fff;
        background: rgba(248,250,252,.72);
        border: 1px solid rgba(148,163,184,.12);
        border-radius: 20px;
        overflow: hidden;
}
.products-hero::before {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
    inset: 0;
        gap: .85rem;
        padding: 1rem 1rem 1rem 1.05rem;
        background: transparent;
        border: 0;
        border-left: 0;
        border-bottom: 1px solid rgba(148,163,184,.12);
        box-shadow: none;
        transition: background .2s ease;
    .products-hero { min-height: 220px; padding: 2rem 1rem; }
    .products-hero h1 { font-size: 1.8rem; }
}
/* Layout for stacked thumbnails + main hero (products page) */
.products-hero { padding: 12px 0; }
        width: 14px;
        height: 14px;
        margin-top: .32rem;
    width: 100%;
        background: #f97316;
        box-shadow: 0 0 0 5px rgba(249,115,22,.16);
.hero-left {
    flex: 0 0 34%;
    display: flex;
        background: rgba(240,253,244,.5);
}
.hero-left .hero-thumb {
        background: #22c55e;
        box-shadow: 0 0 0 5px rgba(34,197,94,.14);
    border-radius: 10px;
    display: block;
        background: rgba(255,255,255,.72);
}
.hero-right {
    flex: 1 1 0;
    min-height: 360px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 36px rgba(2,6,23,.08);
}
        padding: .2rem .48rem;
    .products-hero-inner { gap: 12px; padding: 12px; }
        background: rgba(249,115,22,.12);
    .hero-left .hero-thumb { height: 140px; }
        font-size: .62rem;
}
@media (max-width: 720px) {
    .products-hero-inner { flex-direction: column; padding: 10px; }
    .hero-left { flex-direction: row; gap: 8px; }
    .hero-left .hero-thumb { height: 120px; flex: 1; }
    .hero-right { min-height: 180px; }
}
        font-size: 1.1rem;
/* Small block below hero for extra display image (dashboard) */
.hero-below { width: 100%; padding: 10px 0 22px; }
.hero-below-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hero-below-thumb {
        margin-bottom: .18rem;
        padding-right: 18px;
        font-size: .88rem;
        line-height: 1.45;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    background: #fff;
        max-width: none;
        font-size: .8rem;
        line-height: 1.65;
    margin: 0;
}
@media (max-width: 900px) {
    .hero-below-thumb { max-width: 260px; width: 100%; aspect-ratio: 9/16; height: auto; margin: 0 auto; }
}
.hero-banner-bg {
    position: absolute; inset: 0;
    opacity: .08;
    pointer-events: none;
}
.hero-tile-pattern {
    width: 100%; height: 100%;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
    background-size: 48px 48px;
}
.hero-banner-content {
    position: relative; z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.5rem 3rem;
}

/* Hero image (right column) */
.hero-image { flex: 0 0 44%; display:flex; align-items:center; justify-content:center; }
.hero-image img { width:100%; height:auto; border-radius:12px; box-shadow: 0 18px 40px rgba(2,6,23,.28); border: 1px solid rgba(255,255,255,.04); display:block; }

@media (max-width: 840px) {
    .hero-image { width:100%; max-width:420px; margin: 0 auto; }
    .hero-banner-content { gap:1rem; }
}
.hero-text { flex: 1; max-width: 480px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(249,115,22,.15);
    border: 1px solid rgba(249,115,22,.35);
    color: var(--accent);
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.hero-title {
    font-size: 2.4rem; font-weight: 800;
    color: #fff; line-height: 1.15;
    margin: 0 0 .75rem;
}
.hero-subtitle {
    font-size: .95rem; color: rgba(255,255,255,.82);
    line-height: 1.5; margin: 0 0 1.5rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-actions .btn-lg {
    padding: .7rem 1.5rem; font-size: .9rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
}
.hero-btn-outline {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,.45) !important;
    color: #fff !important;
}
.hero-btn-outline:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: #fff !important;
}

/* Hero Featured Grid (small tile cards) */
.hero-featured-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .75rem; flex-shrink: 0; width: 320px;
}
.hero-tile-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border-radius: 14px; overflow: hidden;
    text-decoration: none; color: #fff;
    transition: transform .25s ease, background .25s ease;
    animation: heroCardIn .5s ease both;
}
.hero-tile-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.2);
}
@keyframes heroCardIn {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-tile-img {
    height: 92px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06);
}
.hero-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; color: rgba(255,255,255,.35);
}
.hero-tile-placeholder i { width: 32px; height: 32px; }
.hero-tile-info {
    padding: .5rem .65rem;
    display: flex; flex-direction: column; gap: 2px;
}
.hero-tile-name {
    font-size: .7rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-tile-price {
    font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.75);
}

/* Hero responsive */
@media (max-width: 840px) {
    .hero-banner-content { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .hero-text { max-width: 100%;}
    .hero-actions { justify-content: center; }
    .hero-featured-grid { width: 100%; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .hero-featured-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .hero-tile-img { height: 72px; }
}

/* ---------- Featured Tiles Strip (Products page) ---------- */
.featured-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #1B2A4A, #F97316);
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    animation: heroCardIn .4s ease both;
}
.featured-strip-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
}
.featured-strip-icon i { width: 22px; height: 22px; }
.featured-strip-text {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.featured-strip-text strong { font-size: .92rem; }
.featured-strip-text span { font-size: .78rem; opacity: .82; }
.featured-strip .btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .featured-strip { flex-wrap: wrap; }
    .featured-strip .btn { width: 100%; justify-content: center; }
}

/* ---------- Storefront Layout ---------- */
/* Create comfortable breathing room below the sticky navbar */
.navbar + .container { padding-top: 20px; }

/* ---------- Shell Layout (Sidebar + Main) ---------- */
.storefront-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 24px;
}

.storefront-sidebar {
    display: none;
}
.storefront-sidebar .sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.storefront-sidebar .sidebar-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 14px;
    letter-spacing: .6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.storefront-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.storefront-sidebar .sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all .2s ease;
}
.storefront-sidebar .sidebar-nav a span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.storefront-sidebar .sidebar-nav a span i,
.storefront-sidebar .sidebar-nav a span svg {
    color: var(--text-muted);
    transition: color .2s ease;
    flex-shrink: 0;
}
.sidebar-count {
    font-size: 11px;
    font-weight: 700;
    background: var(--neutral);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}
.storefront-sidebar .sidebar-nav a:hover {
    background: var(--neutral);
    border-color: var(--border);
    color: var(--charcoal);
}
.storefront-sidebar .sidebar-nav a:hover span i,
.storefront-sidebar .sidebar-nav a:hover span svg {
    color: var(--charcoal);
}
.storefront-sidebar .sidebar-nav a.active {
    background: var(--accent-light);
    border-color: rgba(249,115,22,.18);
    color: var(--accent);
    font-weight: 700;
}
.storefront-sidebar .sidebar-nav a.active span i,
.storefront-sidebar .sidebar-nav a.active span svg {
    color: var(--accent);
}
.storefront-sidebar .sidebar-nav a.active .sidebar-count {
    background: rgba(249,115,22,.10);
    color: var(--accent);
}
.storefront-sidebar .sidebar-footer-link {
    margin-top: 16px;
    padding: 14px 8px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.storefront-sidebar .sidebar-footer-link a { color: var(--text-muted); font-weight: 600; }
.storefront-sidebar .sidebar-footer-link a:hover { color: var(--primary); }

.storefront-main {
    min-width: 0;
}

/* ---------- Toolbar ---------- */
.storefront-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 14px;
}
.storefront-search {
    flex: 1;
    margin: 0;
}
.storefront-search.search-form {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    padding: 6px;
    align-items: center;
    border: 1.5px solid var(--border);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.storefront-search.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,.08);
}
.storefront-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.storefront-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 13px;
}
.storefront-action:hover {
    border-color: rgba(27,42,74,.18);
    color: var(--primary);
}
.storefront-action i { font-size: 18px; }
.action-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Match toolbar control heights */
.storefront-search.search-form .form-control { height: 40px; }
.storefront-search.search-form .btn { height: 40px; padding: 0 18px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    margin: 10px 0 18px;
    background: var(--neutral);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    justify-content: center;
}
.breadcrumb a {
    color: var(--accent);
    font-weight: 700;
}
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb span {
    color: var(--text-secondary);
    font-weight: 700;
}
.breadcrumb i,
.breadcrumb svg {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ---------- Search ---------- */
.search-bar {
    /* reduce default width so search input isn't excessively long */
    max-width: 760px;
    margin: 18px auto 12px;
}

@media (min-width: 1200px) {
    /* allow a slightly larger search on very wide screens without spanning full width */
    .search-bar { max-width: 920px; }
}
.search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px 6px 6px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,.08);
}
.storefront-chips.category-bar { margin-bottom: 8px; }

/* ---------- Section Headings (matches live site style) ---------- */
.section-heading {
    margin: 20px 0 8px;
}

.products-reveal-sync {
    padding-top: 12px;
}

.products-catalog-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 18px 0 16px;
    padding: 1.55rem 1.65rem;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.16), transparent 34%),
        radial-gradient(circle at bottom left, rgba(27,42,74,.08), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.92));
    box-shadow: 0 22px 48px rgba(15,23,42,.08);
}

.products-catalog-header::before {
    content: '';
    position: absolute;
    top: -55px;
    right: 26px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(249,115,22,0));
    pointer-events: none;
}

.products-catalog-header .section-heading {
    position: relative;
    z-index: 1;
    margin: 0;
}

.products-catalog-header .section-title {
    font-size: clamp(2.05rem, 3.8vw, 3.4rem);
    max-width: 760px;
    letter-spacing: -.055em;
}

.products-catalog-header .section-subtitle {
    max-width: 620px;
    margin-top: .55rem;
    color: #52647c;
    font-size: 1rem;
    line-height: 1.75;
}

.products-header-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .55rem;
    min-width: 190px;
}

.products-header-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: .55rem .9rem;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    color: #334155;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 12px 24px rgba(15,23,42,.06);
}

.products-header-meta span:first-child {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(249,115,22,.2);
}

.products-reveal-sync .storefront-chips.category-bar {
    position: sticky;
    top: 0;
    z-index: 7;
    margin: 0 0 22px;
    padding: .75rem;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 22px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 32px rgba(15,23,42,.07);
}

.products-reveal-sync .category-bar a {
    min-height: 44px;
    border-color: rgba(148,163,184,.22);
    background: rgba(255,255,255,.92);
    color: #41546f;
    box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

.products-reveal-sync .category-bar a.active {
    background: linear-gradient(135deg, #f97316, #fb6b16);
    box-shadow: 0 14px 28px rgba(249,115,22,.28);
}

.products-reveal-sync .category-select .form-control {
    min-height: 44px;
    border-radius: 999px !important;
    border-color: rgba(148,163,184,.24) !important;
    background: rgba(248,250,252,.92) !important;
    font-weight: 700;
    color: #41546f;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid rgba(249,115,22,.25);
    background: rgba(249,115,22,.06);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.15;
    margin: 0 0 8px;
}
.accent-text {
    color: var(--accent);
    font-style: italic;
}
.section-subtitle {
    font-size: .95rem;
    color: var(--text-secondary);
    max-width: 500px;
}

@media (max-width: 600px) {
    .section-title { font-size: 1.4rem; }
}

@media (max-width: 900px) {
    .products-catalog-header {
        align-items: stretch;
        flex-direction: column;
        padding: 1.25rem;
        border-radius: 24px;
    }

    .products-header-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
    }

    .products-header-meta span {
        min-height: 34px;
        padding: .45rem .55rem;
        font-size: .68rem;
    }

    .products-reveal-sync .stats-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .65rem;
    }

    .products-reveal-sync .stat-item {
        min-height: 82px;
        padding: .85rem;
    }
}

@media (max-width: 680px) {
    .products-catalog-header .section-title {
        font-size: 1.75rem;
        letter-spacing: -.04em;
    }

    .products-catalog-header .section-subtitle {
        font-size: .92rem;
    }

    .products-header-meta {
        grid-template-columns: 1fr;
    }

    .products-reveal-sync .storefront-chips.category-bar {
        border-radius: 18px;
        padding: .55rem;
    }

    .products-reveal-sync .category-bar a {
        min-height: 38px;
    }

    .products-reveal-sync .product-grid {
        gap: 14px;
    }

    .products-reveal-sync .product-card {
        border-radius: 20px;
    }

    .products-reveal-sync .product-card .product-img-wrap {
        margin: .55rem .55rem 0;
        border-radius: 15px;
    }

    .products-reveal-sync .product-card .product-img-wrap img {
        height: 180px;
    }
}

@media (max-width: 420px) {
    .section-heading { margin: 16px 0 6px; }
    .section-badge {
        padding: 7px 14px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    .section-title {
        font-size: 1.22rem;
        line-height: 1.2;
    }
    .section-subtitle {
        font-size: .9rem;
        line-height: 1.6;
    }

    .products-catalog-header {
        margin-top: 10px;
        padding: 1rem;
    }

    .products-reveal-sync .stats-strip {
        grid-template-columns: 1fr;
    }

    .products-reveal-sync .product-card .product-img-wrap img {
        height: 230px;
    }
}

@media (max-width: 992px) {
    .storefront-shell { grid-template-columns: 1fr; }
    .storefront-toolbar { flex-direction: column; align-items: stretch; }
    .storefront-actions { justify-content: flex-end; }
}
.search-form .input-icon-wrap { flex: 1; }
.search-form .form-control { height: 42px; }
.search-form .btn { height: 42px; padding: 0 18px; }

/* ---------- Hero Banner ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--charcoal) 60%, var(--graphite) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/banners/hero-pattern.png') repeat;
    opacity: .05;
}
.hero h1 {
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    position: relative;
}
.hero h1 span { color: var(--accent); }
.hero p {
    color: rgba(255,255,255,.7);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 28px;
    position: relative;
}
.hero .btn { position: relative; }

/* ---------- Category Bar ---------- */
.category-bar {
    background: transparent;
    padding: 8px 0 14px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-bar a {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: all .2s ease;
    letter-spacing: .2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    scroll-snap-align: start;
    flex-shrink: 0;
}
@media (max-width: 680px) {
    .category-bar { gap: 8px; padding: 6px 0 12px; }
    .category-bar a { padding: 8px 14px; font-size: 12px; }
    .category-select { display: none !important; /* use pills on mobile, they scroll nicely */ }
}
@media (max-width: 420px) {
    .category-bar { gap: 6px; padding: 4px 0 10px; }
    .category-bar a {
        padding: 8px 12px;
        font-size: 11.5px;
    }
}
.category-bar a:hover {
    border-color: rgba(249,115,22,.30);
    color: var(--accent);
    background: rgba(249,115,22,.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249,115,22,.08);
}
.category-bar a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 3px 12px rgba(249,115,22,.22);
}
.category-bar a.active i,
.category-bar a.active svg {
    color: var(--white);
}

/* ---------- Stats Strip ---------- */
.stats-strip {
    display: flex;
    gap: 32px;
    padding: 18px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .8px;
    text-transform: uppercase;
}

.products-reveal-sync .stats-strip {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.products-reveal-sync .stat-item {
    min-height: 94px;
    justify-content: center;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
    box-shadow: 0 16px 32px rgba(15,23,42,.06);
}

.products-reveal-sync .stat-number {
    font-size: clamp(1.45rem, 2vw, 2.05rem);
    letter-spacing: -.04em;
}

.products-reveal-sync .stat-label {
    color: #64748b;
    letter-spacing: .11em;
}
@media (max-width: 600px) {
    .stats-strip { gap: 20px; }
    .stat-number { font-size: 1.2rem; }
}
@media (max-width: 420px) {
    .stats-strip {
        gap: 12px;
        flex-wrap: wrap;
        padding: 14px 0;
    }
    .stat-item {
        min-width: calc(50% - 6px);
    }
}

/* ---------- Product Grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 8px 0 32px;
}

.products-reveal-sync .product-grid {
    gap: 24px;
    padding-top: 4px;
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 840px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 340px) { .product-grid { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.products-reveal-sync .product-card {
    overflow: hidden;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    box-shadow: 0 16px 36px rgba(15,23,42,.07);
    isolation: isolate;
}

.products-reveal-sync .product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(249,115,22,.12), transparent 34%);
    opacity: 0;
    transition: opacity .28s ease;
    pointer-events: none;
    z-index: 1;
}
.product-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
}
.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fc 0%, #eef0f6 100%);
}

.products-reveal-sync .product-card .product-img-wrap {
    margin: .75rem .75rem 0;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,0)),
        #eef2f7;
}

.products-reveal-sync .product-card .product-img-wrap::after {
    content: 'View Details';
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translate(-50%, 12px);
    opacity: 0;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(15,23,42,.78);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    backdrop-filter: blur(10px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    z-index: 3;
}

/* Professional no-image placeholder */
.product-no-image {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, #f8f9fc 0%, #eaecf3 100%);
}
.product-no-image span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    opacity: .6;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.products-reveal-sync .product-badge {
    top: 16px;
    right: 16px;
    border-radius: 999px;
    padding: .45rem .72rem;
    box-shadow: 0 10px 22px rgba(15,23,42,.18);
}
.badge-danger { background: rgba(229,57,53,.92); color: var(--white); }
.badge-warning { background: rgba(245,158,11,.92); color: var(--white); }

/* Category tag overlay on product image (like live site) */
.product-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    z-index: 2;
    letter-spacing: .2px;
    box-shadow: 0 2px 6px rgba(249,115,22,.3);
}

.products-reveal-sync .product-category-tag {
    top: 16px;
    left: 16px;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(249,115,22,.95);
    box-shadow: 0 10px 22px rgba(249,115,22,.26);
    backdrop-filter: blur(10px);
}

.btn-add-cart {
    width: calc(100% - 28px);
    margin: auto 14px 14px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-weight: 700;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .78rem;
    transition: all .2s ease;
}

.products-reveal-sync .btn-add-cart {
    position: relative;
    z-index: 2;
    min-height: 44px;
    margin: 0 18px 18px;
    width: calc(100% - 36px);
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #fb6b16) !important;
    box-shadow: 0 14px 26px rgba(249,115,22,.22);
}
.btn-add-cart svg {
    flex-shrink: 0;
    vertical-align: middle;
}
.btn-add-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249,115,22,.25);
}

.products-reveal-sync .btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(249,115,22,.28);
}
.btn-out-of-stock {
    background: var(--neutral) !important;
    color: var(--text-muted) !important;
    border: 1.5px solid var(--border) !important;
    cursor: not-allowed;
    opacity: .7;
}

/* Out of Stock / Not Available Card Styles */
.product-card--unavailable {
    opacity: .75;
    position: relative;
}
.product-card--unavailable:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.06) !important;
}
.product-card--unavailable .product-img-wrap img {
    filter: grayscale(40%) brightness(.85);
}
.product-unavailable-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    z-index: 2;
    border-radius: inherit;
    letter-spacing: .02em;
}
.product-desc-preview {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 4px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-reveal-sync .product-desc-preview {
    min-height: 2.35rem;
    color: #64748b;
}

/* Product detail not-available badge */
.product-detail-unavailable-badge {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(229,57,53,.15);
    color: var(--danger);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: inherit;
    z-index: 2;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,.10);
    border-color: rgba(249,115,22,.2);
}

.products-reveal-sync .product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249,115,22,.28);
    box-shadow: 0 26px 52px rgba(15,23,42,.13);
}

.products-reveal-sync .product-card:hover::before {
    opacity: 1;
}

.products-reveal-sync .product-card:hover .product-img-wrap::after {
    opacity: 1;
    transform: translate(-50%, 0);
}
.product-card .product-img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--neutral);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    display: block;
}

.products-reveal-sync .product-card .product-img-wrap img {
    height: 236px;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-card .product-info {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.products-reveal-sync .product-card .product-info {
    position: relative;
    z-index: 2;
    padding: 15px 18px 18px;
    border-top: 0;
}

.product-card .product-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}

.products-reveal-sync .product-card .product-category {
    color: #f97316;
    letter-spacing: .1em;
}
.product-card .product-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.products-reveal-sync .product-card .product-name {
    font-size: 1rem;
    font-weight: 850;
    color: #10233d;
    margin-bottom: .45rem;
}

/* Star ratings on product cards */
.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.product-card .product-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}
.product-card .product-stars svg,
.product-card .product-stars i {
    width: 13px;
    height: 13px;
}
.product-card .product-stars .star-filled {
    color: #F59E0B;
    fill: #F59E0B;
    stroke: #F59E0B;
}
.product-card .product-stars .star-empty {
    color: #D1D5DB;
    fill: none;
    stroke: #D1D5DB;
}
.product-card .rating-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -.1px;
}

/* -------- Interactive Star Rating Input (Review Modal) -------- */
.star-rating-input {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.star-rating-input .star-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #D1D5DB;
    transition: color .15s ease, transform .15s ease;
    line-height: 0;
    border-radius: 4px;
    outline: none;
}
.star-rating-input .star-btn svg {
    display: block;
    fill: none;
    stroke: currentColor;
    transition: fill .15s ease, stroke .15s ease;
}
.star-rating-input .star-btn:hover {
    transform: scale(1.15);
}
.star-rating-input .star-btn.active {
    color: #F59E0B;
}
.star-rating-input .star-btn.active svg {
    fill: #F59E0B;
    stroke: #F59E0B;
}
.star-rating-label {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color .2s ease;
    min-width: 90px;
}

.product-card .product-sku {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 8px;
}
.product-card .product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -.2px;
    margin-top: auto;
}

.products-reveal-sync .product-card .product-price {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: .6rem;
    padding: .5rem .75rem;
    border-radius: 999px;
    background: rgba(249,115,22,.1);
    color: #ea580c;
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(249,115,22,.13);
}
.product-card .product-price small {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}
.product-card .product-stock {
    font-size: 12px;
    margin-top: 6px;
}
.product-card .product-stock.in-stock { color: var(--success); }
.product-card .product-stock.low-stock { color: var(--warning); }
.product-card .product-stock.out-of-stock { color: var(--danger); }

.product-card .product-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

/* ---------- Product Detail (Redesigned) ---------- */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 24px 0 40px;
    align-items: start;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.5;
}

.breadcrumb span,
.breadcrumb a {
    overflow-wrap: anywhere;
}

/* Gallery */
.pd-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-md);
}
.pd-gallery__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    background: var(--accent);
    color: #fff;
    z-index: 3;
    letter-spacing: .3px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(249,115,22,.35);
}
.pd-gallery__img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.pd-gallery:hover .pd-gallery__img:not(.pd-gallery__img--oos) {
    transform: scale(1.03);
}
.pd-gallery__img--oos {
    opacity: .35;
    filter: grayscale(30%);
}
.pd-gallery__oos-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(229,57,53,.12);
    color: var(--danger);
    font-weight: 800;
    font-size: 1.15rem;
    z-index: 2;
    gap: 6px;
}
.pd-gallery__oos-overlay i,
.pd-gallery__oos-overlay svg { width: 36px; height: 36px; }

/* Info Panel */
.pd-info {
    padding: 4px 0;
}
.pd-info__header {
    margin-bottom: 10px;
}
.pd-info__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--charcoal);
    line-height: 1.25;
    margin: 0 0 8px;
}
.pd-info__rating-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    text-decoration: none;
    transition: opacity .2s;
}
.pd-info__rating-link:hover { opacity: .8; }
.pd-info__rating-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.pd-info__rating-text--none {
    font-style: italic;
    color: var(--text-muted);
}

/* Stars (shared) */
.pd-stars { display: inline-flex; gap: 1px; font-size: 16px; }
.pd-stars--sm { font-size: 14px; }
.pd-star--filled { color: var(--accent); }
.pd-star--empty  { color: #e0e0e0; }

/* Price Row */
.pd-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0 4px;
}
.pd-price {
    font-size: 34px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -.5px;
    line-height: 1;
}
.pd-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.pd-stock-badge i,
.pd-stock-badge svg { width: 14px; height: 14px; }
.pd-stock-badge--in {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22,163,74,.15);
}
.pd-stock-badge--out {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,.15);
}

/* Divider */
.pd-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* Description */
.pd-description {}
.pd-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.pd-section-label i,
.pd-section-label svg { width: 16px; height: 16px; color: var(--text-muted); }
.pd-description p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Meta Info */
.pd-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--neutral);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 4px;
}
.pd-meta__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.pd-meta__item:last-child { border-bottom: 0; }
.pd-meta__label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-size: 12px;
}
.pd-meta__label i,
.pd-meta__label svg { width: 15px; height: 15px; }
.pd-meta__value {
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    overflow-wrap: anywhere;
}
.pd-meta__value--success { color: var(--success); }
.pd-meta__value--danger  { color: var(--danger); }

/* Actions */
.pd-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pd-btn-cart {
    flex: 1;
    min-width: 180px;
    justify-content: center;
    font-weight: 800;
    gap: 8px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(249,115,22,.2);
    transition: all .25s ease;
}
.pd-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,.3);
}

/* Back Link */
.pd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color .2s;
}
.pd-back-link:hover { color: var(--accent); }
.pd-back-link i,
.pd-back-link svg { width: 16px; height: 16px; }

/* ========== Reviews Section ========== */
.pd-reviews {
    margin-top: 12px;
    padding: 32px 0 40px;
    border-top: 2px solid var(--border);
}
.pd-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.pd-reviews__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0;
}
.pd-reviews__title i,
.pd-reviews__title svg { width: 22px; height: 22px; color: var(--accent); }
.pd-reviews__count {
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

/* Rating Summary */
.pd-reviews__summary {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.pd-reviews__avg {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.pd-reviews__avg-num {
    font-size: 44px;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1;
}
.pd-reviews__avg .pd-stars { font-size: 18px; }
.pd-reviews__avg-sub {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Rating Bars */
.pd-reviews__bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pd-reviews__bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-reviews__bar-label {
    width: 36px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.pd-reviews__bar-track {
    flex: 1;
    height: 8px;
    background: var(--neutral);
    border-radius: 999px;
    overflow: hidden;
}
.pd-reviews__bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width .6s ease;
}
.pd-reviews__bar-count {
    width: 24px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

/* Review Cards */
.pd-reviews__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.pd-review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, border-color .2s;
}
.pd-review-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(249,115,22,.15);
}
.pd-review-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.pd-review-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef2f7, #dde4ed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: var(--charcoal);
    flex-shrink: 0;
    text-transform: uppercase;
}
.pd-review-card__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}
.pd-review-card__date {
    font-size: 12px;
    color: var(--text-muted);
}
.pd-review-card__comment {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Empty Reviews */
.pd-reviews__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}
.pd-reviews__empty i,
.pd-reviews__empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: .4;
}
.pd-reviews__empty p {
    margin: 0;
    font-size: 15px;
}

/* Keep old selectors working for any shared usage */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}
.product-detail .product-gallery {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
}
.product-detail .product-gallery img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}
.product-detail .product-meta { padding: 8px 0; }
.product-detail .product-meta h1 {
    font-size: 28px;
    margin-bottom: 8px;
}
.product-detail .product-meta .price-tag {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin: 16px 0;
}
.product-detail .product-meta .meta-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.product-detail .product-meta .meta-row span:first-child {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-size: 12px;
}
.product-detail .quantity-input {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 20px 0;
}
.product-detail .quantity-input button {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--charcoal);
}
.product-detail .quantity-input button:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.product-detail .quantity-input input {
    width: 60px; height: 40px;
    text-align: center;
    border: 1.5px solid var(--border);
    border-left: 0; border-right: 0;
    font-weight: 700;
    font-size: 15px;
}

/* ---------- Cart ---------- */
.site-header + .container.cart-page {
    margin-top: -16px;
    padding-top: 0;
}

.cart-page {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 2.8rem;
    background:
        radial-gradient(circle at top left, rgba(249,115,22,.12), transparent 28%),
        radial-gradient(circle at top right, rgba(27,42,74,.08), transparent 30%);
}

.cart-hero-panel {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.75rem;
    flex-wrap: wrap;
    overflow: hidden;
    padding: 2rem 2rem 1.7rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 24%),
        linear-gradient(135deg, #15233b 0%, #1f3457 46%, #f97316 140%);
    box-shadow: 0 28px 72px rgba(15,23,42,.18);
}

.cart-hero-panel::before,
.cart-hero-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.cart-hero-panel::before {
    width: 220px;
    height: 220px;
    top: -120px;
    right: -36px;
    background: rgba(255,255,255,.08);
}

.cart-hero-panel::after {
    width: 140px;
    height: 140px;
    bottom: -56px;
    left: 42%;
    background: rgba(249,115,22,.22);
}

.cart-heading-row {
    margin-bottom: 0;
}

.cart-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.cart-page .page-heading {
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: -.04em;
    margin: 0;
}

.cart-page .page-heading-badge {
    padding: 7px 15px;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(8px);
    font-size: .78rem;
    letter-spacing: .04em;
}

.cart-hero-subtitle {
    margin: .72rem 0 0;
    max-width: 620px;
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    line-height: 1.8;
}

.cart-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: .85rem;
    width: min(100%, 560px);
}

.cart-stat-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    padding: 1rem 1.05rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(12px);
    min-width: 0;
}

.cart-stat-card strong {
    display: block;
    margin-bottom: .28rem;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.cart-stat-card span {
    color: rgba(255,255,255,.72);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
    margin-top: 22px;
    padding-bottom: 24px;
}

/* ---------- Page Heading Row ---------- */
.page-heading-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.page-heading-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: .3px;
}

/* ---------- Profile ---------- */

/* Hero banner */
.profile-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
}
.profile-hero-bg {
    height: 140px;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 40%, #1B2A4A 100%);
    position: relative;
}
.profile-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.profile-hero-content {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 28px 20px;
    margin-top: -48px;
    position: relative;
    z-index: 1;
    background: var(--white);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}
.profile-hero-avatar {
    position: relative;
    flex-shrink: 0;
    margin-top: -20px;
}
.profile-hero-avatar .profile-photo--lg {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    border: 4px solid var(--white);
    background: var(--white);
    box-shadow: 0 4px 20px rgba(27,42,74,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.profile-hero-avatar .profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-hero-avatar .profile-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: var(--white);
    font-weight: 900;
    font-size: 32px;
    letter-spacing: .6px;
}
.profile-camera-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    transition: background .2s, transform .2s;
}
.profile-camera-btn:hover {
    background: var(--accent-dark, #EA580C);
    transform: scale(1.08);
}
.profile-camera-btn i,
.profile-camera-btn svg {
    width: 14px;
    height: 14px;
}
.profile-photo-upload-btn {
    display: contents;
}
.profile-hero-info {
    padding: 16px 0 4px;
    min-width: 0;
}
.profile-hero-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0 0 6px;
    line-height: 1.2;
}
.profile-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.profile-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}
.profile-meta-tag i,
.profile-meta-tag svg {
    width: 13px;
    height: 13px;
    opacity: .6;
}
.profile-email-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    letter-spacing: .3px;
    vertical-align: middle;
}
.profile-email-badge--verified {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.profile-email-badge--unverified {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.profile-side-verified {
    font-size: 12.5px;
    font-weight: 600;
    color: #065f46;
}
.profile-side-unverified {
    font-size: 12.5px;
    font-weight: 600;
    color: #991b1b;
}

/* Tab navigation */
.profile-nav-tabs {
    display: flex;
    gap: 4px;
    padding: 14px 0 6px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}
.profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
}
.profile-tab i,
.profile-tab svg {
    width: 15px;
    height: 15px;
}
.profile-tab:hover {
    color: var(--charcoal);
    background: var(--neutral);
}
.profile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

/* Section blocks */
.profile-sections {
    padding-bottom: 40px;
}
.profile-section-block {
    animation: profileFadeIn .3s ease-out;
}
.profile-section-block.fade-in {
    animation: profileFadeIn .3s ease-out;
}
@keyframes profileFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section cards */
.profile-section-card {
    padding: 0 !important;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.profile-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: var(--neutral);
    border-bottom: 1px solid var(--border);
}
/* Profile section headers no longer use icons */
.profile-section-header h3 {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 800;
    color: var(--charcoal);
}
.profile-section-header p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
}
.profile-address-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px !important;
    font-size: 12px !important;
    color: #15803d !important;
    font-weight: 500;
}
.profile-section-card form {
    padding: 22px 24px 24px;
}

/* Input with prefix icon (@ for username) */
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-prefix {
    position: absolute;
    left: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 1;
    pointer-events: none;
}
.form-control--prefixed {
    padding-left: 30px !important;
}

/* Input with action button (email change) */
.input-with-action {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Password toggle */
.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-password-wrap .form-control {
    padding-right: 42px;
}
.password-toggle {
    position: absolute;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.password-toggle:hover {
    color: var(--charcoal);
    background: var(--neutral);
}
.password-toggle i,
.password-toggle svg {
    width: 16px;
    height: 16px;
}

/* Form utilities */
.form-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0 18px;
}
.form-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}
.form-section-label i,
.form-section-label svg {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px 16px;
    }
    .profile-hero-avatar { margin-top: -30px; }
    .profile-hero-meta { justify-content: center; }
    .profile-nav-tabs { gap: 0; }
    .profile-tab { padding: 8px 14px; font-size: 12.5px; }
    .profile-section-card form { padding: 16px; }
    .profile-section-header { padding: 16px; }
}

/* ---------- Profile Refresh — Premium Redesign ---------- */
.profile-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.profile-page .profile-hero {
    border-radius: 28px;
    overflow: visible;
    background: none;
    border: none;
    box-shadow: none;
}

.profile-page .profile-hero-bg {
    height: 200px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 55% 60% at 8% 30%, rgba(99,102,241,.32) 0, transparent 60%),
        radial-gradient(ellipse 50% 45% at 92% 18%, rgba(249,115,22,.38) 0, transparent 55%),
        radial-gradient(ellipse 40% 60% at 55% 100%, rgba(20,184,166,.24) 0, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1c3460 55%, #1b2a4a 100%);
    overflow: hidden;
}

.profile-page .profile-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='white' fill-opacity='0.06'/%3E%3C/svg%3E");
    background-size: 28px 28px;
}

.profile-page .profile-hero-bg::after {
    background:
        radial-gradient(circle 100px at 14% 65%, rgba(249,115,22,.2) 0, transparent 100%),
        radial-gradient(circle 70px at 82% 25%, rgba(255,255,255,.07) 0, transparent 100%);
}

.profile-page .profile-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: end;
    padding: 20px 32px 28px;
    margin-top: -100px;
    background: linear-gradient(180deg, #fff 0%, #fff 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 32px 72px rgba(15,23,42,.10);
    position: relative;
}

.profile-hero-main {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    min-width: 0;
}

.profile-page .profile-hero-avatar {
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
}

.profile-page .profile-hero-avatar::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    background: conic-gradient(from 0deg, #f97316, #fb923c, #fde68a, #f97316);
    animation: avatarSpin 5s linear infinite;
    z-index: 0;
    opacity: .75;
}

.profile-page .profile-hero-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: #fff;
    z-index: 1;
}

@keyframes avatarSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.profile-page .profile-hero-avatar .profile-photo--lg {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    border: 4px solid #fff;
    box-shadow: 0 16px 38px rgba(15,23,42,.18);
}

.profile-page .profile-camera-btn {
    z-index: 3;
    width: 38px;
    height: 38px;
    border-width: 3px;
    box-shadow: 0 8px 20px rgba(249,115,22,.4);
}

.profile-page .profile-camera-btn:hover {
    transform: translateY(-1px) scale(1.06);
}

.profile-page .profile-hero-info {
    padding: 0 0 8px;
}

.profile-hero-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: .3rem .72rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(234,88,12,.06));
    border: 1px solid rgba(249,115,22,.22);
    color: #c2410c;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .8rem;
}

.profile-page .profile-hero-name {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -.05em;
    color: #0f172a;
    margin-bottom: .5rem;
    line-height: 1.1;
}

.profile-page .profile-hero-meta {
    gap: .7rem;
}

.profile-page .profile-meta-tag {
    min-height: 32px;
    padding: .36rem .78rem;
    border-radius: 999px;
    background: rgba(241,245,249,.9);
    border: 1px solid rgba(148,163,184,.16);
    color: #475569;
    font-size: .8rem;
    font-weight: 700;
}

.profile-hero-badges {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.profile-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 34px;
    padding: .42rem .82rem;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(148,163,184,.18);
    color: #64748b;
    font-size: .79rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(15,23,42,.06);
    transition: box-shadow .2s, transform .2s;
}

.profile-hero-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

.profile-hero-badge.is-ready {
    color: #166534;
    background: rgba(240,253,244,.9);
    border-color: rgba(34,197,94,.18);
}

.profile-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 5px rgba(249,115,22,.14);
}

.profile-hero-badge.is-ready .profile-status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,.14);
}

.profile-hero-panels {
    display: grid;
    gap: 1rem;
}

.profile-overview-item,
.profile-side-card {
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
    box-shadow: 0 18px 44px rgba(15,23,42,.07);
}

.profile-overview-item {
    transition: box-shadow .2s, transform .2s;
}

.profile-overview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 56px rgba(15,23,42,.1);
}

/* Circular ring card */
.profile-overview-card {
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.14);
    background: linear-gradient(160deg, #fff 0%, #f9fbff 100%);
    box-shadow: 0 20px 48px rgba(15,23,42,.08);
    padding: 1.1rem;
}

.profile-ring-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.profile-ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.profile-ring-svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.profile-ring-track {
    fill: none;
    stroke: rgba(226,232,240,.9);
    stroke-width: 8;
    stroke-linecap: round;
}

.profile-ring-fill {
    fill: none;
    stroke: url(#profileRingGrad);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.1s cubic-bezier(.16,1,.3,1);
}

.profile-ring-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -.04em;
}

.profile-ring-info {
    min-width: 0;
}

.profile-ring-title {
    margin: .5rem 0 .45rem;
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.profile-ring-desc {
    font-size: .82rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.profile-overview-label,
.profile-side-kicker,
.profile-nav-kicker,
.profile-section-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(15,23,42,.05);
    color: #64748b;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.profile-overview-score {
    margin-top: .85rem;
    color: #10233d;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.profile-progress {
    margin-top: .9rem;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(226,232,240,.92);
    overflow: hidden;
}

.profile-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.profile-overview-card p {
    margin: .9rem 0 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
}

.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.profile-overview-item {
    padding: 1rem;
}

.profile-overview-item strong {
    display: block;
    color: #10233d;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: .3rem;
}

.profile-overview-item span {
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 0;
    align-items: start;
}

.profile-main-column {
    min-width: 0;
}

.profile-nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    margin: 22px 0 1.2rem;
}

.profile-nav-copy h2 {
    margin: .6rem 0 0;
    color: #10233d;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -.03em;
}

.profile-page .profile-nav-tabs {
    gap: .45rem;
    padding: .4rem;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 18px;
    background: rgba(248,250,252,.96);
    box-shadow: 0 12px 32px rgba(15,23,42,.06);
    margin-bottom: 0;
    border-bottom: none;
}

.profile-page .profile-tab {
    min-height: 44px;
    padding: .72rem 1.1rem;
    border: none;
    border-radius: 13px;
    margin-bottom: 0;
    font-size: .86rem;
    font-weight: 800;
    color: #64748b;
    transition: all .22s ease;
}

.profile-page .profile-tab:hover {
    background: rgba(241,245,249,.9);
    color: #0f172a;
}

.profile-page .profile-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #1b2a4a 0%, #2d4a80 100%);
    box-shadow: 0 12px 28px rgba(27,42,74,.22);
}

.profile-sections {
    padding-bottom: 0;
}

.profile-page .profile-section-card {
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,.13);
    box-shadow: 0 20px 52px rgba(15,23,42,.07);
    background: #fff;
    overflow: hidden;
    transition: box-shadow .25s ease;
}

.profile-page .profile-section-card:hover {
    box-shadow: 0 28px 64px rgba(15,23,42,.10);
}

.profile-page .profile-section-header {
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, rgba(249,115,22,.05) 0%, rgba(248,250,252,.92) 100%);
    border-bottom: 1px solid rgba(148,163,184,.1);
    position: relative;
    overflow: hidden;
}



.profile-page .profile-section-header h3 {
    margin: .85rem 0 .3rem;
    font-size: 1.18rem;
    font-weight: 900;
    color: #0f172a;
}

.profile-page .profile-section-header p {
    font-size: .92rem;
    color: #64748b;
}

.profile-page .profile-section-card form {
    padding: 24px;
}

.profile-page .form-group label {
    font-size: .79rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #334155;
    margin-bottom: .6rem;
}

.profile-page .form-control {
    min-height: 50px;
    border-radius: 14px;
    border: 1.5px solid rgba(148,163,184,.2);
    background: #fcfdff;
    box-shadow: inset 0 1px 3px rgba(15,23,42,.03);
    transition: border-color .2s, box-shadow .2s;
}

.profile-page textarea.form-control {
    min-height: 108px;
    resize: vertical;
}

.profile-page .form-control:focus {
    border-color: rgba(249,115,22,.38);
    box-shadow: 0 0 0 4px rgba(249,115,22,.1);
    background: #fff;
}

.profile-page .input-with-action {
    gap: 10px;
}

.profile-page .input-with-action .btn,
.profile-page .form-actions .btn {
    min-height: 50px;
    border-radius: 16px;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    font-weight: 800;
}

.profile-page .password-toggle {
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 800;
}

.profile-side-rail {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    margin-top: 0;
    position: sticky;
    top: 100px;
    align-self: start;
}

.profile-side-card {
    padding: 1.1rem;
    transition: box-shadow .2s, transform .2s;
}

.profile-side-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 56px rgba(15,23,42,.1);
}

.profile-side-card h3 {
    margin: .8rem 0 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.profile-side-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .8rem;
}

.profile-side-list li {
    padding: .85rem .95rem;
    border-radius: 16px;
    background: rgba(248,250,252,.92);
    border: 1px solid rgba(148,163,184,.12);
    transition: background .2s;
}

.profile-side-list li:hover {
    background: rgba(241,245,249,.98);
}

.profile-side-list strong,
.profile-check-item strong {
    display: block;
    color: #10233d;
    font-size: .92rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

.profile-side-list span,
.profile-check-item p {
    color: #64748b;
    font-size: .86rem;
    line-height: 1.65;
}

.profile-side-card--accent {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #fff 0%, #f8fbff 100%);
    border-color: rgba(148,163,184,.14);
    box-shadow: 0 16px 38px rgba(15,23,42,.06);
}



.profile-checklist {
    display: grid;
    gap: .9rem;
    margin-top: 1.05rem;
    align-content: start;
}

.profile-check-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1rem 1rem 1.05rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(148,163,184,.12);
    border-left: 4px solid rgba(249,115,22,.55);
    box-shadow: 0 10px 26px rgba(15,23,42,.04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.profile-check-icon {
    width: 20px;
    height: 20px;
    margin-top: .1rem;
    border-radius: 999px;
    background: rgba(249,115,22,.12);
    border: 1px solid rgba(249,115,22,.22);
    box-shadow: inset 0 0 0 5px rgba(249,115,22,.3);
    flex-shrink: 0;
}

.profile-check-item.is-done {
    border-left-color: rgba(34,197,94,.6);
    background: linear-gradient(180deg, #ffffff 0%, #f6fff9 100%);
}

.profile-check-item.is-done .profile-check-icon {
    background: rgba(34,197,94,.16);
    border-color: rgba(34,197,94,.22);
    box-shadow: inset 0 0 0 5px rgba(34,197,94,.3);
}

.profile-check-item:hover {
    border-color: rgba(148,163,184,.18);
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

.profile-check-item > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title badge"
        "copy copy";
    column-gap: .8rem;
    row-gap: .3rem;
    align-items: start;
}

.profile-check-badge {
    grid-area: badge;
    align-self: start;
    justify-self: end;
    padding: .24rem .52rem;
    border-radius: 999px;
    background: rgba(249,115,22,.1);
    color: #c2410c;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-check-item.is-done .profile-check-badge {
    background: rgba(34,197,94,.12);
    color: #15803d;
}

.profile-side-card--accent .profile-side-kicker {
    background: rgba(241,245,249,.92);
    color: #64748b;
}

.profile-side-card--accent h3 {
    margin-top: .75rem;
    font-size: 1.18rem;
    line-height: 1.4;
}

.profile-check-item strong {
    grid-area: title;
    margin-bottom: .32rem;
    font-size: .92rem;
    line-height: 1.5;
}

.profile-check-item p {
    grid-area: copy;
    margin: 0;
    max-width: 22ch;
    font-size: .82rem;
    line-height: 1.72;
}

@media (max-width: 1100px) {
    .profile-page .profile-hero-content,
    .profile-content-grid {
        grid-template-columns: 1fr;
    }

    .profile-side-rail {
        margin-top: 0;
        position: static;
        grid-template-rows: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-nav-shell {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 768px) {
    .profile-page {
        padding-top: .35rem;
    }

    .profile-page .profile-hero {
        border-radius: 20px;
    }

    .profile-page .profile-hero-bg {
        height: 130px;
        border-radius: 20px;
    }

    .profile-page .profile-hero-content {
        padding: 18px 16px 20px;
        margin-top: -44px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        overflow: visible;
    }

    .profile-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .profile-page .profile-hero-avatar .profile-photo--lg {
        width: 96px;
        height: 96px;
    }

    .profile-page .profile-hero-avatar {
        padding: 8px;
        margin-top: -16px;
    }

    .profile-page .profile-hero-meta,
    .profile-hero-badges,
    .profile-hero-actions {
        justify-content: center;
    }

    .profile-hero-kicker {
        margin-left: auto;
        margin-right: auto;
    }

    .profile-ring-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-overview-grid,
    .profile-side-rail {
        margin-top: 0;
        grid-template-columns: 1fr;
    }

    .profile-nav-shell {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .profile-page .profile-nav-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .profile-page .profile-tab {
        white-space: nowrap;
    }

    .profile-page .profile-section-card,
    .profile-side-card {
        border-radius: 18px;
    }

    .profile-page .profile-section-card form,
    .profile-page .profile-section-header,
    .profile-side-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ---------- Customer Profile: Elevated Premium Polish ---------- */
.profile-page {
    position: relative;
}

.profile-page::before {
    content: '';
    position: absolute;
    inset: -60px -24px auto;
    height: 360px;
    background:
        radial-gradient(circle at 12% 20%, rgba(249,115,22,.12), transparent 26%),
        radial-gradient(circle at 86% 10%, rgba(27,42,74,.12), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.profile-page .profile-hero {
    position: relative;
}

.profile-page .profile-hero::before,
.profile-page .profile-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 2;
}

.profile-page .profile-hero::before {
    top: 42px;
    right: 7%;
    width: 88px;
    height: 88px;
    background: rgba(249,115,22,.18);
    filter: blur(2px);
}

.profile-page .profile-hero::after {
    top: 112px;
    left: 7%;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.14);
    box-shadow: 0 0 0 18px rgba(255,255,255,.05);
}

.profile-page .profile-hero-bg {
    height: 230px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px) 0 0 / 30px 30px,
        radial-gradient(ellipse 48% 58% at 10% 24%, rgba(59,130,246,.34) 0, transparent 58%),
        radial-gradient(ellipse 42% 42% at 90% 14%, rgba(249,115,22,.45) 0, transparent 55%),
        radial-gradient(ellipse 46% 58% at 52% 104%, rgba(20,184,166,.28) 0, transparent 54%),
        linear-gradient(135deg, #0b1224 0%, #142a52 50%, #24172f 100%);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}

.profile-page .profile-hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    margin-top: -112px;
    padding: 26px 32px 30px;
    border: 1px solid rgba(255,255,255,.74);
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.91)),
        radial-gradient(circle at 24% 0%, rgba(249,115,22,.09), transparent 42%);
    backdrop-filter: blur(18px);
}


.profile-page .profile-hero-avatar::before {
    filter: drop-shadow(0 12px 22px rgba(249,115,22,.24));
}

.profile-page .profile-hero-avatar .profile-photo--lg {
    width: 132px;
    height: 132px;
}

.profile-page .profile-hero-name {
    font-size: clamp(2rem, 4vw, 3.05rem);
    letter-spacing: -.065em;
}

.profile-page .profile-meta-tag {
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

.profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.15rem;
}

.profile-hero-action {
    appearance: none;
    min-height: 44px;
    padding: .75rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(255,255,255,.94);
    color: #10233d;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15,23,42,.07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.profile-hero-action.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #f97316, #fb6b16);
    color: #fff;
    box-shadow: 0 14px 28px rgba(249,115,22,.24);
}

.profile-hero-action:hover,
.profile-hero-action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(249,115,22,.28);
    box-shadow: 0 18px 34px rgba(15,23,42,.11);
    outline: none;
}

.profile-hero-action.is-primary:hover,
.profile-hero-action.is-primary:focus-visible {
    box-shadow: 0 18px 36px rgba(249,115,22,.32);
}

.profile-overview-card,
.profile-overview-item,
.profile-delivery-card,
.profile-side-card,
.profile-page .profile-section-card,
.profile-page .profile-nav-tabs {
    border-color: rgba(148,163,184,.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
    box-shadow: 0 22px 50px rgba(15,23,42,.08);
}

.profile-overview-card {
    padding: 1.25rem;
}

.profile-ring-wrap,
.profile-ring-svg {
    width: 108px;
    height: 108px;
}

.profile-overview-grid {
    gap: 1rem;
}

.profile-overview-item {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    padding: 1.05rem;
}

.profile-overview-item::after {
    content: '';
    position: absolute;
    right: -22px;
    top: -22px;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: rgba(249,115,22,.1);
}

.profile-delivery-card {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.05rem;
    border-radius: 22px;
}


.profile-delivery-card span {
    display: block;
    color: #64748b;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}

.profile-delivery-card strong {
    display: block;
    color: #10233d;
    font-size: .98rem;
    line-height: 1.5;
}

.profile-nav-shell {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: .8rem 0;
    background: linear-gradient(180deg, rgba(246,248,252,.98), rgba(246,248,252,.86));
    backdrop-filter: blur(14px);
}

.profile-nav-copy h2 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.profile-page .profile-section-card {
    position: relative;
    border-radius: 28px;
}


.profile-page .profile-section-header {
    padding: 24px 28px 18px;
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.11), transparent 36%),
        linear-gradient(135deg, rgba(255,247,237,.72), rgba(248,250,252,.96));
}

.profile-page .profile-section-card form {
    padding: 28px;
}

.profile-page .form-control {
    min-height: 54px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.profile-page .form-actions .btn,
.profile-page .input-with-action .btn {
    border-radius: 999px;
}

.profile-side-card {
    border-radius: 26px;
    padding: 1.25rem;
}

.profile-side-card--accent {
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.12), transparent 35%),
        linear-gradient(160deg, #fff 0%, #f8fbff 100%);
}

.profile-checklist-simple {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: grid;
    gap: .85rem;
}

.profile-check-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: .8rem;
    padding: .95rem;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 10px 24px rgba(15,23,42,.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.profile-check-row:hover {
    transform: translateY(-2px);
    border-color: rgba(249,115,22,.18);
    box-shadow: 0 16px 32px rgba(15,23,42,.08);
}

.profile-check-dot {
    width: 18px;
    height: 18px;
    margin-top: .12rem;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 5px rgba(249,115,22,.13);
}

.profile-check-row.is-done .profile-check-dot {
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,.14);
}

.profile-check-row.is-done {
    background: linear-gradient(180deg, #ffffff, #f6fff9);
}

.profile-check-copy strong {
    display: block;
    color: #10233d;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: .25rem;
}

.profile-check-copy p {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.65;
}

@media (max-width: 1100px) {
    .profile-nav-shell {
        position: static;
    }
}

@media (max-width: 768px) {
    .profile-page::before {
        height: 260px;
    }

    .profile-page .profile-hero-bg {
        height: 160px;
    }

    .profile-page .profile-hero-content {
        margin-top: -72px;
        padding: 0 16px 18px;
        grid-template-columns: 1fr;
    }

    .profile-page .profile-hero-avatar .profile-photo--lg {
        width: 112px;
        height: 112px;
    }

    .profile-hero-actions {
        justify-content: center;
    }

    .profile-hero-action {
        flex: 1 1 140px;
    }

    .profile-page .profile-section-card form,
    .profile-page .profile-section-header {
        padding: 18px;
    }

    .profile-page .input-with-action {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-page .input-with-action .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-page .profile-hero-name {
        font-size: 1.85rem;
    }

    .profile-page .profile-meta-tag {
        width: 100%;
        justify-content: center;
        overflow-wrap: anywhere;
        white-space: normal;
        text-align: center;
    }

    .profile-overview-grid {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-nav-tabs {
        padding: .35rem;
    }
}

.cart-items-wrap {
    background: var(--white);
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(15,23,42,.08);
    overflow: hidden;
}

.cart-table-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.3rem 1.45rem;
    background:
        linear-gradient(90deg, rgba(249,115,22,.08), rgba(249,115,22,0) 28%),
        linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.94));
    border-bottom: 1px solid rgba(148,163,184,.12);
}

.cart-table-topbar h2 {
    margin: 0 0 .25rem;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--charcoal);
}

.cart-table-topbar p {
    margin: 0;
    color: var(--text-muted);
    font-size: .9rem;
}

.cart-table-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .56rem .95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249,115,22,.16), rgba(249,115,22,.08));
    color: #c2410c;
    border: 1px solid rgba(249,115,22,.18);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-muted);
    font-weight: 800;
    padding: 15px 16px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid rgba(148,163,184,.12);
    text-align: left;
}
.cart-table td {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(148,163,184,.12);
    vertical-align: middle;
}
.cart-table tbody tr {
    transition: background .2s ease, transform .2s ease;
}
.cart-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(249,115,22,.045), rgba(248,250,252,.78));
    transform: translateX(3px);
}
/* Row entrance animation */
.cart-row {
    animation: cartRowSlide .35s ease-out both;
}
@keyframes cartRowSlide {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
}
.cart-thumb {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.14);
    background: linear-gradient(180deg, #fff, #f8fafc);
    flex-shrink: 0;
    display: block;
}
.cart-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8f9fc 0%, #eaecf3 100%);
    color: var(--text-muted);
    opacity: .5;
}
.cart-thumb-placeholder i,
.cart-thumb-placeholder svg {
    width: 28px;
    height: 28px;
}
.cart-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cart-product-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--charcoal);
    line-height: 1.3;
}
.cart-product-unit {
    font-size: .84rem;
    color: var(--text-muted);
}
.cart-price {
    font-weight: 700;
    color: #334155;
    font-size: 1.04rem;
}
.cart-subtotal {
    color: #10233d;
    font-size: 1.14rem;
    letter-spacing: -.02em;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    height: 44px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15,23,42,.05);
}
.qty-btn {
    width: 40px;
    height: 44px;
    border: 0;
    background: rgba(241,245,249,.9);
    color: var(--primary);
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn:hover { background: rgba(249,115,22,.14); color: var(--accent); }
.qty-input {
    width: 64px;
    height: 44px;
    border: 0;
    border-left: 1px solid rgba(148,163,184,.18);
    border-right: 1px solid rgba(148,163,184,.18);
    text-align: center;
    font-weight: 900;
    color: var(--charcoal);
    outline: none;
}
.qty-input:focus { box-shadow: none; }

/* Hide number spinners for a cleaner stepper */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.cart-table td:last-child { width: 56px; }

@media (max-width: 992px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

.cart-summary {
    position: sticky;
    top: 96px;
    max-width: none;
    margin-left: 0;
    background: var(--white);
    border-radius: 28px;
    border: 1px solid rgba(148,163,184,.14);
    box-shadow: 0 28px 70px rgba(15,23,42,.12);
    overflow: hidden;
    padding: 0;
}
.cart-summary > h3,
.cart-summary > .summary-item,
.cart-summary > .summary-row {
    padding-left: 20px;
    padding-right: 20px;
}
.cart-summary > h3 {
    padding-top: 20px;
    padding-bottom: 0;
}
.cart-summary > .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}
.cart-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 14px;
    background: linear-gradient(135deg, #15233b 0%, #1f3457 70%, #29416a 100%);
    border-bottom: 0;
}
.cart-summary-header i,
.cart-summary-header svg {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,.92);
}
.cart-summary-header h3 {
    font-size: 1.08rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
}
.cart-summary-meta {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    padding: 0 20px 16px;
    background: linear-gradient(135deg, #15233b 0%, #1f3457 70%, #29416a 100%);
    border-bottom: 1px solid rgba(148,163,184,.1);
}

.cart-summary-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.88);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cart-summary-body {
    padding: 18px 20px 8px;
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: .96rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.cart-summary .summary-total {
    border-top: 1.5px dashed var(--border);
    margin-top: 10px;
    padding: 20px 20px 8px;
    font-size: 2.1rem;
    font-weight: 900;
    color: #10233d;
}
.cart-summary-actions {
    padding: 14px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-summary-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-height: 54px;
    border-radius: 16px !important;
    font-size: .98rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.cart-summary-note {
    margin: 0 20px;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(249,115,22,.08), rgba(248,250,252,.9));
    border: 1px solid rgba(249,115,22,.12);
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.65;
}
.cart-summary-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px 16px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.cart-summary-secure i,
.cart-summary-secure svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}
.cart-remove-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    transition: all .2s ease;
}
.cart-remove-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.cart-remove-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .cart-hero-panel { padding: 1.55rem 1.35rem 1.35rem; }
}

@media (max-width: 768px) {
    .cart-page .page-heading { font-size: 1.8rem; }
    .cart-hero-subtitle { font-size: .92rem; }
    .cart-items-wrap { overflow: visible; }
    .cart-table-topbar {
        align-items: flex-start;
        border-radius: 24px 24px 0 0;
    }
    .cart-table thead { display: none; }
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td { display: block; width: 100%; }
    .cart-table tr {
        border-bottom: 1px solid rgba(148,163,184,.12);
        padding: 12px 14px 16px;
    }
    .cart-table td {
        border-bottom: 0;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
    .cart-table td::before {
        content: attr(data-label);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .6px;
        font-weight: 900;
        color: var(--text-muted);
        padding-top: 3px;
    }
    .cart-table td[data-label="Product"] { justify-content: flex-start; }
    .cart-table td[data-label="Product"]::before { display: none; }
    .cart-product { min-width: 0; }
    .cart-summary { border-radius: 24px; }
}

/* ---------- Order Cards ---------- */
.orders-page {
    padding-top: .4rem;
    padding-bottom: 2.75rem;
}

.orders-hero-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
}

.orders-heading-row {
    margin-bottom: 0;
}

.orders-hero-copy {
    max-width: 720px;
}

.orders-hero-subtitle {
    margin: .7rem 0 0;
    color: #64748b;
    font-size: .98rem;
    line-height: 1.75;
}

.orders-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: .85rem;
}

.orders-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 18px;
    padding: 1rem 1.05rem;
    min-width: 0;
    box-shadow: 0 16px 34px rgba(15,23,42,.05);
}

.orders-stat-card strong {
    display: block;
    margin-bottom: .28rem;
    color: #10233d;
    font-size: 1.3rem;
    font-weight: 900;
}

.orders-stat-card span {
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding-bottom: 24px;
}

.orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: .25rem 0 1rem;
    padding: .95rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}

.orders-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.orders-filter-label {
    font-size: .84rem;
    font-weight: 800;
    color: var(--charcoal);
}

.orders-filter-input {
    min-width: 190px;
    max-width: 220px;
    padding: .72rem .85rem;
    border-radius: 12px;
}

.orders-toolbar-summary {
    font-size: .84rem;
    font-weight: 700;
    color: #64748b;
}

.order-card--enhanced {
    background: var(--white);
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 22px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: flex;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.order-card--enhanced:hover {
    box-shadow: 0 18px 38px rgba(27,42,74,.09);
    transform: translateY(-2px);
    border-color: rgba(249,115,22,.18);
}
.order-card-status-stripe {
    width: 4px;
    flex-shrink: 0;
    border-radius: 4px 0 0 4px;
}
.order-card-status-stripe--pending { background: var(--warning); }
.order-card-status-stripe--processing { background: var(--info); }
.order-card-status-stripe--shipped { background: #283593; }
.order-card-status-stripe--delivered { background: var(--success); }
.order-card-status-stripe--cancelled { background: var(--danger); }
.order-card-content {
    flex: 1;
    min-width: 0;
    padding: 1.1rem 1.25rem;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.order-card-main { flex: 1; min-width: 0; }
.order-card-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.order-card-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.order-number {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0;
    letter-spacing: -.03em;
}
.order-card-meta {
    display: flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
}
.order-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .79rem;
    color: var(--text-muted);
    font-weight: 700;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(148,163,184,.14);
}
.order-meta-item i,
.order-meta-item svg {
    width: 13px;
    height: 13px;
}
.order-card-amount {
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
}

.order-card-amount-box {
    min-width: 138px;
    padding: .8rem .95rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.order-total-label {
    display: block;
    font-size: .66rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .22rem;
}
.order-total {
    font-size: 1.1rem;
    line-height: 1.1;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: -.04em;
}
.order-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(148,163,184,.14);
    flex-wrap: wrap;
}
.order-card-utility,
.order-card-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.order-card-buttons {
    justify-content: flex-end;
    margin-left: auto;
}

.order-card-actions .inline-form { display: inline-block; margin: 0; }
.order-card-actions .btn { white-space: nowrap; }

.order-card-btn {
    min-width: 118px;
}

.order-card-inline-badge {
    padding: .5rem .8rem;
    border-radius: 999px;
}

.order-card-actions .btn,
.order-card-actions .order-payment-badge,
.order-card-actions .badge {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.orders-empty-state {
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,.18);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 38px rgba(15,23,42,.05);
}

.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.orders-pagination-btn {
    min-width: 108px;
}

.orders-pagination-btn.is-disabled {
    opacity: .48;
    pointer-events: none;
}

.orders-pagination-status {
    font-size: .86rem;
    font-weight: 800;
    color: var(--charcoal);
    padding: .7rem .95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(148,163,184,.16);
}

@media (max-width: 576px) {
    .orders-hero-panel { align-items: stretch; }
    .orders-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .orders-toolbar { padding: .85rem; }
    .orders-filter-form { width: 100%; }
    .orders-filter-label,
    .orders-filter-input,
    .orders-filter-form .btn { width: 100%; }
    .orders-filter-input { max-width: none; }
    .orders-toolbar-summary { width: 100%; }
    .order-card--enhanced { flex-direction: column; }
    .order-card-status-stripe { width: auto; height: 4px; border-radius: 4px 4px 0 0; }
    .order-card-header { flex-direction: column; }
    .order-card-amount { text-align: left; }
    .order-card-amount-box { min-width: 0; width: 100%; }
    .order-card-actions { flex-direction: column; align-items: stretch; }
    .order-card-utility,
    .order-card-buttons { width: 100%; }
    .order-card-buttons { margin-left: 0; justify-content: stretch; }
    .order-card-actions .btn,
    .order-card-actions .inline-form,
    .order-card-actions .inline-form .btn,
    .order-card-buttons .btn,
    .order-card-inline-badge { width: 100%; }
}

/* ---------- Order Details: Items Table ---------- */
.data-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
}
.order-items-table thead {
    background: var(--neutral);
}
.order-items-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.order-items-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 13px;
}
.order-items-table tbody tr:hover { background: rgba(245,246,250,.55); }
.order-items-table tfoot td {
    padding: 14px;
    border-top: 1px solid var(--border);
    border-bottom: 0;
    background: var(--neutral);
}

/* Column alignment */
.order-items-table th:nth-child(2),
.order-items-table td:nth-child(2),
.order-items-table th:nth-child(4),
.order-items-table td:nth-child(4) {
    text-align: right;
}
.order-items-table th:nth-child(3),
.order-items-table td:nth-child(3) {
    text-align: center;
    width: 80px;
}

/* Use compact product cell styles for order details */
.order-items-table .cart-product { min-width: 0; }
.order-items-table .cart-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}
.order-items-table .cart-product span {
    font-weight: 800;
}

/* Order details: cancel button sizing */
.btn-cancel-order {
    width: auto;
    min-width: 220px;
    max-width: 320px;
}
@media (max-width: 576px) {
    .btn-cancel-order { width: 100%; max-width: none; }
}

/* =============================================
   ORDER DETAILS — Enhanced UI
   ============================================= */

/* Hero card */
.od-hero {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px 0;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: fadeSlideUp .4s ease both;
}
.od-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
}
.od-hero-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.od-order-number {
    font-size: 22px;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: -.3px;
}
.od-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}
.od-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.od-hero-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.od-hero-total {
    font-size: 24px;
    font-weight: 900;
    color: var(--charcoal);
}

/* Horizontal timeline */
.od-timeline {
    position: relative;
    height: 80px;
    margin: 0 20px;
}
.od-timeline-track {
    position: absolute;
    top: 16px;
    left: 0; right: 0;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}
.od-timeline-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--success));
    border-radius: 2px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
}
.od-timeline-step {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.od-step-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all .3s ease;
    position: relative;
    z-index: 2;
}
.od-timeline-step.done .od-step-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,.25);
}
.od-timeline-step.active .od-step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(249,115,22,.15), 0 2px 8px rgba(249,115,22,.25);
    animation: pulseRing 2s ease infinite;
}
@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 5px rgba(249,115,22,.15), 0 2px 8px rgba(249,115,22,.25); }
    50%      { box-shadow: 0 0 0 10px rgba(249,115,22,.05), 0 2px 8px rgba(249,115,22,.25); }
}
.od-step-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    white-space: nowrap;
}
.od-timeline-step.done .od-step-label { color: var(--success); font-weight: 800; }
.od-timeline-step.active .od-step-label { color: var(--accent); font-weight: 800; }

/* Cancelled banner */
.od-cancelled-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    margin-top: 4px;
    background: rgba(239,68,68,.06);
    border-top: 1px solid rgba(239,68,68,.12);
    color: var(--danger);
    font-weight: 700;
    font-size: 14px;
}

/* Grid layout for info + shipping */
.od-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Card base */
.od-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: fadeSlideUp .45s ease both;
}
.od-card--info  { animation-delay: .08s; }
.od-card--shipping { animation-delay: .12s; }
.od-card--items { animation-delay: .16s; margin-bottom: 24px; }

.od-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--neutral);
}
.od-card-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0;
}
.od-card-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}
/* Order detail card icons removed */

/* Staff reply bubble on cancel request */
.od-staff-reply-bubble {
    margin-top: .35rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .88rem;
    color: #1e3a5f;
    line-height: 1.55;
    position: relative;
}
.od-staff-reply-bubble::before {
    content: '';
    position: absolute;
    top: -6px; left: 16px;
    width: 12px; height: 12px;
    background: #f0f9ff;
    border-left: 1px solid #bae6fd;
    border-top: 1px solid #bae6fd;
    transform: rotate(45deg);
}
.od-card--cancel-status {
    animation-delay: .2s;
}

.od-card-body {
    padding: 8px 24px;
}

/* Detail rows */
.od-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}
.od-detail-row:last-child { border-bottom: none; }
.od-detail-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}
.od-detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}
.od-detail-value--bold {
    font-size: 16px;
    font-weight: 900;
    color: var(--charcoal);
}

/* Cancel / action section */
.od-card-action {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: rgba(239,68,68,.02);
}
.od-cancel-section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--danger);
    margin: 0 0 12px;
}
.od-cancel-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 12px;
}
.od-cancel-section .form-group { margin-bottom: 12px; }

/* Shipping address */
.od-address-block {
    display: flex;
    gap: 12px;
    padding: 16px 0;
}
.od-address-line {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 4px;
}
.od-address-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Order items list (card-style instead of table) */
.od-items-list {
    padding: 0;
}
.od-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: background .2s;
    animation: fadeSlideUp .35s ease both;
}
.od-item-row:last-child { border-bottom: none; }
.od-item-row:hover { background: var(--neutral); }

.od-item-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}
.od-item-thumb {
    width: 56px; height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.od-item-thumb-placeholder {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: linear-gradient(145deg, #f0f2f5 0%, #e4e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}
.od-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.od-item-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.od-item-unit {
    font-size: 12px;
    color: var(--text-muted);
}
.od-item-subtotal {
    font-size: 15px;
    font-weight: 800;
    color: var(--charcoal);
    white-space: nowrap;
    padding-left: 16px;
}

/* Items footer / totals */
.od-items-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--neutral);
}
.od-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.od-total-row--grand {
    padding-top: 10px;
    margin-top: 6px;
    border-top: 2px solid var(--border);
    font-size: 17px;
    font-weight: 900;
    color: var(--charcoal);
}

/* Back row */
.od-back-row {
    margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .od-grid { grid-template-columns: 1fr; }
    .od-hero { padding: 20px 20px 0; }
    .od-hero-top { flex-direction: column; }
    .od-hero-status { align-items: flex-start; flex-direction: row; gap: 12px; }
    .od-timeline { height: 76px; margin: 0 10px; }
    .od-step-label { font-size: 9px; }
    .od-card-header { padding: 16px 18px; }
    .od-card-body { padding: 8px 18px; }
    .od-item-row { padding: 14px 18px; }
    .od-items-footer { padding: 14px 18px; }
    .od-card-action { padding: 16px 18px; }
    .od-item-name { max-width: 140px; }
}
@media (max-width: 480px) {
    .od-order-number { font-size: 18px; }
    .od-hero-total { font-size: 20px; }
    .od-step-dot { width: 28px; height: 28px; }
    .od-step-dot i, .od-step-dot svg { width: 11px !important; height: 11px !important; }
    .od-timeline { height: 66px; }
}

/* Legacy order-card styles (kept for order-details page compatibility) */
.order-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.order-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(249,115,22,.18);
}
.order-card .order-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--charcoal);
}
.order-card .order-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.order-card .order-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--charcoal);
}

/* Action buttons inside legacy order cards */
.order-card .order-card-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}
.order-card .order-card-actions .inline-form { display: inline-block; margin: 0; }
.order-card .order-card-actions .btn { white-space: nowrap; }

@media (max-width: 576px) {
    .order-card { flex-direction: column; align-items: flex-start; }
    .order-card .order-card-actions { margin-left: 0; width: 100%; gap: 8px; margin-top: 12px; }
    .order-card .order-card-actions .btn,
    .order-card .order-card-actions .inline-form .btn { width: 100%; }
}

/* ---------- Order Timeline ---------- */
.timeline {
    display: flex;
    justify-content: space-between;
    margin: 32px 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0; right: 0;
    height: 3px;
    background: var(--border);
}
.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.timeline-step .step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}
.timeline-step.completed .step-dot {
    background: var(--success);
}
.timeline-step.active .step-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(249,115,22,.22);
}
.timeline-step .step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--text-muted);
}
.timeline-step.completed .step-label,
.timeline-step.active .step-label { color: var(--charcoal); }

/* ---------- Search Bar ---------- */
/* (search styles moved to the top to match actual markup) */

/* ---------- Checkout ---------- */
.checkout-page {
    padding-top: .2rem;
    padding-bottom: 3.5rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Checkout Header & Step Indicator */
.co-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding: .2rem 0 .1rem;
}
.co-title-wrap {
    max-width: 680px;
}
.co-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .48rem .86rem;
    border-radius: 999px;
    background: rgba(249,115,22,.08);
    color: #c2410c;
    border: 1px solid rgba(249,115,22,.16);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .85rem;
}
.co-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 900;
    color: var(--charcoal);
    margin: 0;
    line-height: 1.04;
}
.co-title i, .co-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}
.co-intro {
    margin: .8rem 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}
.co-steps {
    display: flex;
    align-items: center;
    gap: 0;
    padding: .85rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 34px rgba(15,23,42,.05);
}
.co-step {
    display: flex;
    align-items: center;
    gap: 8px;
}
.co-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--light-gray);
    color: var(--text-muted);
    border: 2px solid var(--border);
    transition: all .3s;
}
.co-step-num i, .co-step-num svg {
    width: 14px;
    height: 14px;
}
.co-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.co-step.active .co-step-num {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(249,115,22,.25);
}
.co-step.active .co-step-label { color: var(--charcoal); font-weight: 700; }
.co-step.done .co-step-num {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}
.co-step.done .co-step-label { color: #10b981; }
.co-step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    border-radius: 1px;
}
.co-step-line.done { background: #10b981; }

/* Checkout Cards */
.co-card {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 18px 45px rgba(15,23,42,.06);
    overflow: hidden;
    margin-bottom: 24px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.co-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 55px rgba(15,23,42,.09);
    border-color: rgba(249,115,22,.16);
}
.co-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(255,255,255,.92));
    border-bottom: 1px solid rgba(148,163,184,.14);
}
.co-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(249,115,22,.14), rgba(251,146,60,.2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
    color: #f97316;
}
.co-card-icon svg {
    width: 22px;
    height: 22px;
}
.co-card-icon--blue {
    background: linear-gradient(135deg, rgba(59,130,246,.14), rgba(96,165,250,.2));
    color: #3b82f6;
}
.co-card-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--charcoal);
    margin: 0;
    line-height: 1.2;
}
.co-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}
.co-card-body {
    padding: 22px 24px 24px;
}

/* Location Badge */
.co-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.92));
    border: 1px solid rgba(27,42,74,.08);
    color: var(--primary);
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.co-location-tag i, .co-location-tag svg {
    width: 14px;
    height: 14px;
}

/* Saved Address Pre-fill Bar */
.co-saved-addr-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.co-saved-addr-info {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    color: #166534;
    font-weight: 500;
    min-width: 0;
}
.co-saved-addr-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.co-saved-addr-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 13px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.co-saved-addr-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
}
.co-saved-addr-btn:disabled {
    cursor: default;
    transform: none;
}

/* Empty state variant */
.co-saved-addr-bar--empty {
    background: #fafafa;
    border-color: #e5e7eb;
}
.co-saved-addr-bar--empty .co-saved-addr-info {
    color: #6b7280;
}
.co-saved-addr-btn--outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    text-decoration: none;
}
.co-saved-addr-btn--outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Payment Options */
.co-pay-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.co-pay-opt {
    position: relative;
    cursor: pointer;
    display: block;
}
.co-pay-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.co-pay-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1.5px solid rgba(148,163,184,.18);
    background: linear-gradient(180deg, #fff, #fbfdff);
    transition: all .2s;
}
.co-pay-opt:hover .co-pay-inner {
    border-color: rgba(249,115,22,.3);
    background: linear-gradient(180deg, rgba(255,247,237,.75), rgba(255,255,255,.98));
}
.co-pay-opt.active .co-pay-inner {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(255,247,237,.9), rgba(255,255,255,.98));
    box-shadow: 0 0 0 4px rgba(249,115,22,.08), 0 16px 32px rgba(249,115,22,.08);
}
.co-pay-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    position: relative;
    transition: all .2s;
}
.co-pay-opt.active .co-pay-radio {
    border-color: var(--accent);
}
.co-pay-opt.active .co-pay-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.co-pay-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.04);
    flex-shrink: 0;
}
.co-pay-icon i, .co-pay-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}
.co-pay-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}
.co-pay-icon--blue { background: rgba(59,130,246,.08); }
.co-pay-icon--blue i, .co-pay-icon--blue svg { color: #3b82f6; }
.co-pay-icon--purple { background: rgba(139,92,246,.08); }
.co-pay-icon--purple i, .co-pay-icon--purple svg { color: #8b5cf6; }
.co-pay-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.co-pay-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
}
.co-pay-text small {
    font-size: 12px;
    color: var(--text-muted);
}

/* Card details collected on payment gateway page */

/* Order Summary Sidebar */
.co-summary {
    position: sticky;
    top: 96px;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 22px 54px rgba(15,23,42,.08);
    overflow: hidden;
}
.co-summary-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 22px 16px;
    background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.92));
    border-bottom: 1px solid rgba(148,163,184,.14);
}
.co-summary-head i, .co-summary-head svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}
.co-summary-head h3 {
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--charcoal);
    margin: 0;
    flex: 1;
}
.co-summary-meta {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    padding: 12px 22px 14px;
    background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.92));
    border-bottom: 1px solid rgba(148,163,184,.12);
}

.return-item-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.return-request-card {
    padding: 24px !important;
}

.return-order-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    padding: 1rem;
    margin-bottom: 1.6rem;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.95));
}

.return-summary-row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.return-summary-row span {
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.return-summary-row strong {
    color: var(--charcoal);
    font-size: .92rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.return-item-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 84px;
    padding: .9rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    box-shadow: 0 10px 22px rgba(15,23,42,.04);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}

.form-group label.return-item-option {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.return-item-option:hover {
    border-color: rgba(249,115,22,.45);
    background: rgba(249,115,22,.035);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15,23,42,.07);
}

.return-item-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(249,115,22,.08);
    box-shadow: 0 0 0 3px rgba(249,115,22,.08), 0 14px 30px rgba(249,115,22,.12);
}

.return-item-option input[type="checkbox"] {
    appearance: none;
    display: inline-grid;
    place-content: center;
    width: 20px;
    height: 20px;
    border: 1.8px solid rgba(148,163,184,.75);
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
    transition: all .15s ease;
}

.return-item-option input[type="checkbox"]::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    transform: scale(0);
    background: var(--white);
    transition: transform .12s ease;
}

.return-item-option input[type="checkbox"]:checked {
    border-color: var(--accent);
    background: var(--accent);
}

.return-item-option input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.return-item-thumb {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--neutral);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.return-item-thumb img,
.return-item-placeholder {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: cover;
}

.return-item-info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
    padding-right: .4rem;
}

.return-item-info strong {
    color: var(--charcoal);
    font-size: .92rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.return-item-info small {
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 700;
}

.return-item-status {
    margin-left: auto;
    align-self: center;
    padding: .32rem .62rem;
    border-radius: 999px;
    background: rgba(241,245,249,.9);
    color: var(--text-secondary);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
}

.return-item-option:has(input:checked) .return-item-status {
    background: var(--accent);
    color: #fff;
}

.return-item-option:has(input:checked) .return-item-status::before {
    content: 'Selected';
}

.return-item-option:has(input:checked) .return-item-status {
    font-size: 0;
}

.return-item-option:has(input:checked) .return-item-status::before {
    font-size: .68rem;
}

.return-item-error .return-item-list {
    animation: returnItemPulse 1.2s ease;
}

@keyframes returnItemPulse {
    0%, 100% { box-shadow: none; }
    35% { box-shadow: 0 0 0 4px rgba(220,38,38,.14); }
}

@media (max-width: 860px) {
    .return-item-list,
    .return-order-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .return-request-card {
        padding: 16px !important;
    }

    .return-item-option {
        align-items: flex-start;
        gap: .7rem;
        padding: .8rem;
    }

    .return-item-status {
        display: none;
    }
}
.co-summary-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(241,245,249,.9);
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.co-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}
.co-summary-items {
    padding: 14px 22px;
    max-height: 252px;
    overflow-y: auto;
}
.co-sum-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    font-size: 13px;
}
.co-sum-item + .co-sum-item {
    border-top: 1px solid rgba(0,0,0,.04);
}
.co-sum-qty {
    flex-shrink: 0;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-weight: 800;
    color: #64748b;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid rgba(148,163,184,.16);
}
.co-sum-name {
    flex: 1;
    color: var(--charcoal);
    font-weight: 700;
    line-height: 1.5;
}
.co-sum-price {
    flex-shrink: 0;
    font-weight: 800;
    color: var(--charcoal);
    white-space: nowrap;
}
.co-summary-totals {
    padding: 2px 22px 0;
    border-top: 1px solid rgba(148,163,184,.14);
}
.co-sum-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: .96rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.co-free {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16,185,129,.08);
    padding: 2px 8px;
    border-radius: 10px;
}
.co-sum-grand {
    display: flex;
    justify-content: space-between;
    padding: 18px 0 8px;
    margin-top: 4px;
    border-top: 1.5px dashed var(--border);
    font-size: 2rem;
    font-weight: 900;
    color: var(--charcoal);
}
.co-sum-grand span:last-child {
    font-size: 1.06em;
}
.co-summary-actions {
    padding: 16px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.co-summary-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-height: 54px;
    border-radius: 16px !important;
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.co-summary-note {
    margin: 0 22px 0;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.82));
    border: 1px solid rgba(148,163,184,.14);
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.65;
}
.co-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(148,163,184,.14);
    background: rgba(248,250,252,.78);
}
.co-trust span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.co-trust i, .co-trust svg {
    width: 13px;
    height: 13px;
    color: #10b981;
}

.checkout-page .form-group label {
    font-size: .83rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #334155;
    margin-bottom: .6rem;
}

.checkout-page .form-control {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(203,213,225,.95);
    background: linear-gradient(180deg, #fff, #fdfefe);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.85);
    padding: .9rem 1rem;
}

.checkout-page textarea.form-control {
    min-height: 82px;
    resize: vertical;
}

.checkout-page .form-control:focus {
    border-color: rgba(249,115,22,.5);
    box-shadow: 0 0 0 4px rgba(249,115,22,.08);
}

.checkout-page .form-row {
    gap: 16px;
}

@media (max-width: 600px) {
    .co-header { flex-direction: column; align-items: flex-start; }
    .co-title { font-size: 1.7rem; }
    .co-intro { font-size: .94rem; }
    .co-steps { width: 100%; justify-content: center; }
    .co-step-label { display: none; }
    .co-step-line { width: 28px; }
    .co-card-body { padding: 16px; }
    .co-card-header { padding: 14px 16px; }
    .co-pay-inner { padding: 12px; gap: 10px; }
    .co-summary-meta,
    .co-summary-items,
    .co-summary-totals,
    .co-summary-actions,
    .co-summary-note { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
    .co-summary-meta { background: transparent; border-bottom: 0; padding-top: 12px; padding-bottom: 4px; }
    .co-summary-note { padding: .85rem .95rem; margin-bottom: 0; }
    .co-trust { flex-wrap: wrap; gap: 10px; }
    .co-trust span { font-size: 10px; }
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}
.pagination a, .pagination span {
    min-width: 38px; height: 38px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    background: var(--white);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); background: rgba(249,115,22,.04); }
.pagination .active,
.pagination .btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--white);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    margin-top: 12px;
}
.empty-state .empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: .2;
    color: var(--text-muted);
}
.empty-state h3 { color: var(--charcoal); margin-bottom: 8px; font-size: 20px; font-weight: 800; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; max-width: 400px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* Empty state icons removed */

/* ---------- Product Card Stagger Animation ---------- */
@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-card {
    animation: cardFadeUp .4s ease-out both;
}
.product-card:nth-child(1) { animation-delay: .02s; }
.product-card:nth-child(2) { animation-delay: .06s; }
.product-card:nth-child(3) { animation-delay: .10s; }
.product-card:nth-child(4) { animation-delay: .14s; }
.product-card:nth-child(5) { animation-delay: .18s; }
.product-card:nth-child(6) { animation-delay: .22s; }
.product-card:nth-child(n+7) { animation-delay: .26s; }

/* =============================================
   Return / Refund Status Badges & Banner
   ============================================= */

/* Inline return badge (used in hero + order cards) */
.return-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.return-badge--pending {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FDBA74;
}
.return-badge--approved {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #93C5FD;
}
.return-badge--refunded {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #86EFAC;
}

/* Full-width refund status banner */
.refund-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg, 12px);
    margin-bottom: 24px;
    animation: fadeSlideUp .4s ease both;
    animation-delay: .06s;
}
.refund-banner--pending {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%);
    border: 1px solid #FED7AA;
}
.refund-banner--approved {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
    border: 1px solid #BFDBFE;
}
.refund-banner--completed {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1px solid #BBF7D0;
}
.refund-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.refund-banner--pending .refund-banner-icon {
    background: #FDBA74;
    color: #fff;
}
.refund-banner--approved .refund-banner-icon {
    background: #60A5FA;
    color: #fff;
}
.refund-banner--completed .refund-banner-icon {
    background: #4ADE80;
    color: #fff;
}
.refund-banner-icon i, .refund-banner-icon svg {
    width: 22px;
    height: 22px;
}
.refund-banner-content {
    flex: 1;
    min-width: 0;
}
.refund-banner-content h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--charcoal, #1B2A4A);
}
.refund-banner-content p {
    margin: 0 0 10px;
    font-size: .88rem;
    color: var(--text-secondary, #6B7280);
    line-height: 1.5;
}
.refund-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .82rem;
    color: var(--text-secondary, #6B7280);
}
.refund-banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.refund-banner-notes {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0,0,0,.04);
    border-radius: 8px;
    font-size: .84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.refund-returned-items {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.refund-returned-label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
}
.refund-returned-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.refund-returned-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 5px;
    background: rgba(0,0,0,.06);
    border-radius: 50px;
    font-size: .83rem;
    color: var(--text-primary);
    font-weight: 500;
    max-width: 260px;
}
.refund-returned-chip img,
.refund-returned-chip-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
}
.refund-returned-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.refund-returned-chip-qty {
    font-size: .75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.od-item-returned-badge {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: .02em;
}

.refund-banner-badge {
    flex-shrink: 0;
}

/* Return status note inside order info card */
.od-return-status-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--light, #F8FAFC);
    border-radius: 8px;
    font-size: .88rem;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .refund-banner {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .refund-banner-badge {
        align-self: flex-start;
    }
}

/* Payment badge in order cards */
.order-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--light, #F1F5F9);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--charcoal, #1B2A4A);
    white-space: nowrap;
}
.order-payment-badge i, .order-payment-badge svg {
    color: var(--accent, #F97316);
}
.payment-logo-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
}

/* ========================================================
   MOBILE CUSTOMER UI ENHANCEMENTS
   Comprehensive mobile-first improvements for customer pages
   ======================================================== */

/* --- Mobile: Tighter header & hero --- */
@media (max-width: 680px) {
    .container { padding: 0 14px; }
    
    /* Hero banner compact */
    .hero-banner { min-height: 180px; border-radius: 12px; margin-bottom: 16px; }
    .hero-banner-content { padding: 1.5rem 1.2rem; gap: 1rem; flex-direction: column; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: .85rem; margin-bottom: 1rem; }
    .hero-featured-grid { width: 100%; grid-template-columns: 1fr 1fr; }
    .hero-tile-img { height: 72px; }
    .hero-actions .btn-lg { padding: .55rem 1.1rem; font-size: .82rem; }

    /* Products hero compact */
    .products-hero { min-height: 160px !important; padding: 1rem 0 !important; }
    .products-hero-inner { padding: 8px 12px !important; gap: 8px !important; }
    .hero-left .hero-thumb { height: 100px !important; }
    .hero-right { min-height: 140px !important; }

    /* Section heading compact */
    .section-heading { margin-bottom: 4px; }
    .section-badge { font-size: .68rem; padding: 5px 12px; }
    .section-title { font-size: 1.25rem; }
    .section-subtitle { font-size: .82rem; }

    /* Stats strip compact */
    .stats-strip { gap: 16px; padding: 12px 0; margin-bottom: 6px; }
    .stat-number { font-size: 1rem; }
    .stat-label { font-size: 9px; }
}

/* --- Mobile: Product Cards --- */
@media (max-width: 680px) {
    .product-grid { gap: 10px !important; padding: 4px 0 20px; }
    
    .product-card {
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,.08);
    }
    .product-card .product-img-wrap img,
    .product-no-image {
        height: 160px !important;
    }
    .product-card .product-info {
        padding: 10px 10px 8px !important;
    }
    .product-card .product-category {
        font-size: 9px;
        letter-spacing: .5px;
        margin-bottom: 2px;
    }
    .product-card .product-name {
        font-size: 12.5px;
        line-height: 1.35;
        margin-bottom: 2px;
        -webkit-line-clamp: 2;
    }
    .product-desc-preview {
        font-size: .72rem;
        -webkit-line-clamp: 1;
        margin: 2px 0 4px;
    }
    .product-card .product-price {
        font-size: 15px;
    }
    .product-card .product-rating {
        margin-bottom: 3px;
    }
    .product-card .product-stars svg,
    .product-card .product-stars i {
        width: 11px;
        height: 11px;
    }
    .product-card .rating-text {
        font-size: 10px;
    }
    
    /* Category tag on card */
    .product-category-tag {
        font-size: 9px;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
        border-radius: 5px;
    }
    .product-badge {
        font-size: 9px;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }
    
    /* Add to cart button compact */
    .btn-add-cart {
        width: calc(100% - 16px) !important;
        margin: auto 8px 8px !important;
        padding: 8px 10px !important;
        font-size: .7rem !important;
        border-radius: 8px;
        gap: 4px;
    }
    .btn-add-cart svg {
        width: 13px !important;
        height: 13px !important;
    }
    .btn-out-of-stock {
        font-size: .7rem !important;
        padding: 8px 10px !important;
    }
}

/* --- Mobile: Cart Page --- */
@media (max-width: 680px) {
    .cart-layout { gap: 16px; }
    .cart-items-wrap { border-radius: 12px; }
    .cart-table tr { padding: 12px; }
    .cart-product-name { font-size: 13px; }
    .cart-summary {
        border-radius: 12px;
        position: static;
    }
}

/* --- Mobile: Order Cards --- */
@media (max-width: 680px) {
    .orders-list { gap: 10px; }
    .order-card:not(.order-card--enhanced) {
        border-radius: 12px;
        padding: 14px !important;
    }
    .order-card--enhanced {
        border-radius: 18px;
    }
    .order-card--enhanced .order-card-content {
        padding: 14px 12px;
    }
    .order-card-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start !important;
    }
    .od-card {
        border-radius: 12px !important;
        padding: 14px 12px !important;
    }
}

/* --- Mobile: Profile page --- */
@media (max-width: 680px) {
    .profile-hero { border-radius: 0 !important; margin: 0 -14px; }
    .profile-section-card { border-radius: 12px; }
    .profile-tab { font-size: 12px; padding: 8px 12px; }
}

/* --- Mobile: Checkout page --- */
@media (max-width: 680px) {
    .checkout-grid { gap: 14px !important; }
    .co-card { border-radius: 12px !important; padding: 14px !important; }
    .co-summary { border-radius: 12px !important; }
}

/* --- Mobile: Product Detail page --- */
@media (max-width: 680px) {
    .breadcrumb {
        font-size: 12px;
        margin-top: 10px;
        margin-bottom: 8px;
    }
    .pd-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 12px 0 24px;
    }
    .pd-gallery {
        border-radius: 12px;
    }
    .pd-gallery__badge {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 10px;
    }
    .pd-gallery__img {
        height: 280px !important;
    }
    .pd-info {
        padding: 0;
    }
    .pd-info__title {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }
    .pd-price-row {
        gap: 10px;
        align-items: flex-start;
    }
    .pd-price {
        font-size: 1.5rem !important;
    }
    .pd-stock-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    .pd-meta__item {
        padding: 11px 12px;
    }
    .pd-actions {
        flex-direction: column;
        gap: 8px;
    }
    .qty-stepper {
        width: fit-content;
        max-width: 100%;
        min-width: 152px;
        align-self: flex-start;
    }
    .pd-btn-cart {
        width: 100%;
    }
    .pd-btn-cart {
        min-width: 0;
    }
    .pd-reviews {
        margin-top: 4px;
        padding: 24px 0 32px;
    }
    .pd-reviews__header {
        align-items: flex-start;
        gap: 8px;
    }
    .pd-reviews__summary {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .pd-reviews__avg {
        align-items: flex-start;
    }
    .pd-reviews__list {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 420px) {
    .pd-grid {
        gap: 14px !important;
        padding: 10px 0 22px;
    }
    .pd-gallery__img {
        height: 220px !important;
    }
    .pd-info__title {
        font-size: 1.08rem !important;
    }
    .pd-info__rating-text,
    .pd-description p,
    .pd-review-card__comment,
    .pd-reviews__avg-sub {
        font-size: 12px;
    }
    .pd-stars {
        font-size: 14px;
    }
    .pd-price {
        font-size: 1.35rem !important;
    }
    .pd-meta__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .pd-meta__value {
        text-align: left;
    }
    .pd-btn-cart,
    .qty-btn,
    .qty-input {
        min-height: 44px;
    }
    .qty-stepper {
        min-width: 148px;
    }
    .qty-btn {
        width: 38px;
    }
    .qty-input {
        width: 56px;
        flex: 0 0 56px;
    }
    .pd-review-card {
        padding: 14px;
    }
    .pd-review-card__top {
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* --- Mobile: Login modal --- */
@media (max-width: 680px) {
    .login-modal { width: 95%; max-width: 380px; margin: 12px; }
    .login-modal-split { flex-direction: column; }
    .login-modal-media { display: none; }
    .login-modal-form-panel { padding: 24px 20px; }
}

/* --- Mobile: Footer compact --- */
@media (max-width: 680px) {
    .footer { margin-top: 24px; padding: 24px 0 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-col h4 { font-size: 15px; }
    .footer-col h5 { font-size: 11px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding-top: 12px; }
}

/* --- Mobile: Pagination --- */
@media (max-width: 680px) {
    .pagination { 
        gap: 6px; 
        flex-wrap: wrap; 
        justify-content: center;
        padding: 20px 0;
    }
    .pagination a, .pagination span { 
        width: auto !important;
        min-width: 36px;
        height: 36px; 
        padding: 0 12px !important;
        font-size: 12px; 
        border-radius: 999px;
        flex: none !important;
    }
    .pagination .btn {
        width: auto !important;
        flex: none !important;
    }
    .pagination .btn-outline,
    .pagination .btn-accent {
        width: auto !important;
        min-width: 36px;
    }
}

/* --- Mobile: Toast messages --- */
@media (max-width: 680px) {
    .toast-container { top: 8px; right: 8px; left: 8px; max-width: none; }
    .toast { border-radius: 12px; }
}

/* --- Mobile: Empty state --- */
@media (max-width: 680px) {
    .empty-state { padding: 32px 16px; }
    .empty-state h3 { font-size: 1.1rem; }
    .empty-state p { font-size: .85rem; }
}

/* --- Touch improvements --- */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .main-menu a { min-height: 44px; }
    .btn-add-cart { min-height: 42px; }
    .category-bar a { min-height: 38px; }
    
    /* Remove hover effects that feel sticky on touch */
    .product-card:hover { transform: none; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
    .product-card:active { transform: scale(.98); transition: transform .1s ease; }
    .btn-add-cart:hover { transform: none; }
    .btn-add-cart:active { transform: scale(.97); }
}

/* ================================================
   NOTIFICATIONS PAGE
   ================================================ */
.notif-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.notif-actions-bar .btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all .2s ease;
    animation: notifFadeIn .3s ease forwards;
    opacity: 0;
    position: relative;
}
.notif-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(249,115,22,.08);
    transform: translateY(-1px);
}
.notif-card--unread {
    background: linear-gradient(135deg, rgba(249,115,22,.03), rgba(249,115,22,.06));
    border-color: rgba(249,115,22,.2);
}

.notif-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249,115,22,.08);
    color: var(--accent);
}
.notif-icon i, .notif-icon svg { width: 20px; height: 20px; }
.notif-icon--order_shipped { background: rgba(59,130,246,.08); color: #3b82f6; }
.notif-icon--order_delivered { background: rgba(34,197,94,.08); color: #22c55e; }
.notif-icon--order_cancelled { background: rgba(239,68,68,.08); color: #ef4444; }
.notif-icon--order_processing { background: rgba(249,115,22,.08); color: #f97316; }
.notif-icon--cancel_approved { background: rgba(34,197,94,.08); color: #22c55e; }
.notif-icon--cancel_rejected,
.notif-icon--return_rejected { background: rgba(239,68,68,.08); color: #ef4444; }
.notif-icon--return_approved { background: rgba(59,130,246,.08); color: #3b82f6; }

.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
}
.notif-message {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 6px 0;
    line-height: 1.5;
}
.notif-time {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.notif-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    margin-top: 6px;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

@keyframes notifFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile notifications */
@media (max-width: 680px) {
    .notif-card { padding: 12px 14px; gap: 10px; }
    .notif-icon { width: 36px; height: 36px; border-radius: 10px; }
    .notif-icon i, .notif-icon svg { width: 18px; height: 18px; }
    .notif-title { font-size: 13px; }
    .notif-message { font-size: 12px; }
}

/* ========================================================
   MOBILE RESPONSIVE POLISH — Account, Orders, Checkout
   ======================================================== */

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .co-summary,
    .profile-side-rail {
        position: static;
    }

    .checkout-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .profile-page .profile-hero {
        margin: 0;
        border-radius: 22px !important;
    }

    .profile-page .profile-hero-content {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .profile-page .profile-meta-tag,
    .profile-delivery-card strong,
    .profile-side-list span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .profile-page .form-row,
    .checkout-page .form-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-page .form-col,
    .checkout-page .form-col {
        width: 100%;
        min-width: 0;
    }

    .orders-hero-panel,
    .co-header {
        align-items: stretch;
    }

    .orders-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .checkout-page {
        padding-bottom: 2.25rem;
    }

    .checkout-grid {
        gap: 18px !important;
    }
}

@media (max-width: 680px) {
    .profile-page {
        padding-top: .25rem;
        padding-bottom: 2rem;
    }

    .profile-page::before {
        inset: -40px -14px auto;
        height: 240px;
    }

    .profile-page .profile-hero-bg {
        height: 118px;
        border-radius: 22px;
    }

    .profile-page .profile-hero-content {
        padding: 16px 14px 18px;
        margin-top: -38px;
        border-radius: 0 0 22px 22px;
    }

    .profile-page .profile-hero-main {
        align-items: center;
        gap: 14px;
    }

    .profile-page .profile-hero-avatar .profile-photo--lg {
        width: 88px;
        height: 88px;
    }

    .profile-page .profile-camera-btn {
        width: 34px;
        height: 34px;
        font-size: .82rem;
    }

    .profile-page .profile-hero-name {
        font-size: clamp(1.45rem, 8vw, 2rem);
    }

    .profile-page .profile-hero-meta,
    .profile-page .profile-hero-badges {
        gap: .5rem;
    }

    .profile-page .profile-meta-tag,
    .profile-hero-badge {
        justify-content: center;
        min-height: 30px;
        padding: .34rem .66rem;
        font-size: .74rem;
    }

    .profile-hero-actions {
        width: 100%;
        flex-direction: column;
        gap: .55rem;
    }

    .profile-hero-action {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .profile-ring-row {
        align-items: center;
        gap: .9rem;
    }

    .profile-ring-wrap,
    .profile-ring-svg {
        width: 82px;
        height: 82px;
    }

    .profile-ring-pct {
        font-size: 1.05rem;
    }

    .profile-overview-grid {
        gap: .7rem;
    }

    .profile-nav-shell {
        margin: 18px 0 1rem;
        gap: .75rem;
    }

    .profile-nav-copy h2 {
        font-size: 1.18rem;
        line-height: 1.25;
    }

    .profile-page .profile-nav-tabs {
        display: flex;
        gap: .35rem;
        overflow-x: auto;
        padding: .35rem;
        border-radius: 15px;
        scrollbar-width: none;
    }

    .profile-page .profile-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-page .profile-tab {
        flex: 0 0 auto;
        min-height: 40px;
        padding: .62rem .9rem;
        font-size: .78rem;
    }

    .profile-page .profile-section-header,
    .profile-page .profile-section-card form,
    .profile-side-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .profile-page .profile-section-header {
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .profile-page .profile-section-header h3 {
        font-size: 1.05rem;
    }

    .profile-page .input-with-action {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .profile-page .input-with-action .btn,
    .profile-page .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-check-row {
        padding: .85rem;
        border-radius: 15px;
    }

    .orders-page {
        padding-top: .15rem;
        padding-bottom: 2rem;
    }

    .orders-hero-panel {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .orders-hero-subtitle {
        font-size: .9rem;
        line-height: 1.62;
    }

    .orders-stat-card {
        padding: .85rem;
        border-radius: 15px;
    }

    .orders-stat-card strong {
        font-size: 1.12rem;
    }

    .orders-stat-card span {
        font-size: .7rem;
    }

    .orders-toolbar {
        align-items: stretch;
        padding: .85rem;
        border-radius: 16px;
    }

    .orders-filter-form,
    .orders-toolbar-summary,
    .orders-filter-label,
    .orders-filter-input,
    .orders-filter-form .btn {
        width: 100%;
        max-width: none;
    }

    .orders-filter-form .btn {
        justify-content: center;
    }

    .order-number {
        font-size: .98rem;
        overflow-wrap: anywhere;
    }

    .order-card--enhanced .order-card-content {
        padding: 14px 12px;
    }

    .order-card-amount,
    .order-card-amount-box,
    .order-card-main {
        width: 100%;
    }

    .order-card-buttons,
    .order-card-utility {
        align-items: stretch;
    }

    .orders-pagination {
        gap: 8px;
    }

    .orders-pagination-status,
    .orders-pagination-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .checkout-page {
        padding-top: 0;
    }

    .co-header {
        margin-bottom: 18px;
        gap: 12px;
    }

    .co-kicker {
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
        font-size: .66rem;
        padding: .42rem .68rem;
    }

    .co-title {
        font-size: clamp(1.55rem, 9vw, 2rem);
    }

    .co-intro {
        line-height: 1.58;
    }

    .co-card {
        padding: 0 !important;
        border-radius: 18px !important;
    }

    .co-card-header {
        align-items: flex-start;
        gap: 10px;
    }

    .co-card-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .co-saved-addr-bar {
        align-items: stretch;
        flex-direction: column;
        border-radius: 14px;
    }

    .co-saved-addr-info span {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .co-saved-addr-btn {
        width: 100%;
        justify-content: center;
        min-height: 40px;
    }

    .co-location-tag {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        font-size: .8rem;
    }

    .co-pay-inner {
        align-items: flex-start;
        border-radius: 15px;
    }

    .co-pay-text {
        min-width: 0;
    }

    .co-pay-text strong,
    .co-pay-text small {
        overflow-wrap: anywhere;
    }

    .co-summary {
        position: static;
        border-radius: 18px !important;
    }

    .co-sum-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 10px;
    }

    .co-sum-price {
        grid-column: 2;
        justify-self: start;
    }

    .co-sum-grand {
        font-size: 1.55rem;
    }
}

@media (max-width: 420px) {
    .orders-hero-stats {
        grid-template-columns: 1fr;
    }

    .order-meta-item,
    .order-payment-badge {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .profile-ring-row {
        flex-direction: column;
        text-align: center;
    }

    .profile-overview-grid {
        grid-template-columns: 1fr;
    }

    .co-steps {
        padding: .7rem .75rem;
    }

    .co-step-line {
        width: 22px;
        margin: 0 6px;
    }

    .co-pay-inner {
        gap: 9px;
        padding: 11px;
    }

    .co-pay-icon {
        width: 36px;
        height: 36px;
    }
}
