html, body {
    font-family: 'Inter', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ===== Home — Keyframe Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.18; }
}

@keyframes connectorDot {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ===== Home — Reveal class for scroll animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Home — Hero ===== */
.home-hero {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 120px 24px 108px;
    background: linear-gradient(135deg, #ffffff 0%, #faf8f5 25%, #fdf3e8 50%, #faf6f1 75%, #ffffff 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    overflow: hidden;
    isolation: isolate;
}

/* Subtle radial glow behind content */
.home-hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    width: 700px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(212, 116, 10, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Floating decorative elements */
.home-hero-floating {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.home-hero-float-1 {
    width: 320px;
    height: 320px;
    top: -60px;
    right: -80px;
    background: rgba(212, 116, 10, 0.06);
    animation: float 8s ease-in-out infinite, pulseGlow 6s ease-in-out infinite;
}

.home-hero-float-2 {
    width: 200px;
    height: 200px;
    bottom: 40px;
    left: -40px;
    border-radius: 28%;
    background: rgba(212, 116, 10, 0.05);
    animation: float 10s ease-in-out infinite 2s, pulseGlow 8s ease-in-out infinite 1s;
}

.home-hero-float-3 {
    width: 140px;
    height: 140px;
    top: 40%;
    right: 15%;
    border-radius: 30%;
    background: rgba(212, 116, 10, 0.04);
    animation: float 7s ease-in-out infinite 4s, pulseGlow 5s ease-in-out infinite 2s;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 640px;
}

.home-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(212, 116, 10, 0.15);
    animation: fadeInUp 0.8s ease both;
}

.home-hero-heading {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1.05;
    margin: 0 0 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a3520 40%, #D4740A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease both 0.15s;
}

.home-hero-body {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.75;
    color: #6b7280;
    margin: 0 0 40px;
    max-width: 480px;
    animation: fadeInUp 0.8s ease both 0.3s;
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #D4740A;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 116, 10, 0.35);
    animation: fadeInUp 0.8s ease both 0.45s;
}

.home-hero-cta:hover {
    background: #e07d10;
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(212, 116, 10, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.home-hero-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(212, 116, 10, 0.3);
}

.home-hero-note {
    display: block;
    margin-top: 18px;
    font-size: 0.8rem;
    color: #9ca3af;
    animation: fadeInUp 0.8s ease both 0.6s;
}

/* ===== Home — Features strip ===== */
.home-features {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafafa;
    padding: 28px 24px;
}

.home-features-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 880px;
    margin: 0 auto;
}

.home-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.home-feature:hover {
    color: #374151;
}

.home-feature-icon-dot {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(212, 116, 10, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.home-feature:hover .home-feature-icon-dot {
    background: rgba(212, 116, 10, 0.15);
}

.home-feature .mud-icon-root {
    color: #D4740A !important;
    opacity: 0.85;
}

.home-feature-stagger-1 { animation: fadeInUp 0.6s ease both 0.1s; }
.home-feature-stagger-2 { animation: fadeInUp 0.6s ease both 0.2s; }
.home-feature-stagger-3 { animation: fadeInUp 0.6s ease both 0.3s; }
.home-feature-stagger-4 { animation: fadeInUp 0.6s ease both 0.4s; }

/* ===== Home — Steps ===== */
.home-steps {
    padding: 108px 24px;
    background: #ffffff;
}

.home-steps-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.home-steps-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #D4740A;
    margin-bottom: 14px;
    opacity: 0.9;
}

.home-steps-heading {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #1a1a1a;
    margin: 0 0 64px;
}

.home-steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.home-step {
    position: relative;
    text-align: center;
    padding: 44px 32px 40px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background: #fafafa;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    flex: 1;
    max-width: 280px;
}

.home-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(212, 116, 10, 0.12), 0 0 0 1px rgba(212, 116, 10, 0.15);
    border-color: rgba(212, 116, 10, 0.25);
    background: #ffffff;
}

.home-step-num {
    position: absolute;
    top: 18px;
    left: 22px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.home-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(212, 116, 10, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.home-step:hover .home-step-icon {
    background: rgba(212, 116, 10, 0.15);
    transform: scale(1.08);
}

.home-step-title {
    font-size: 1.1rem;
    font-weight: 650;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}

.home-step-desc {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

/* Connector between step cards */
.home-step-connector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    align-self: center;
}

.home-step-connector span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(212, 116, 10, 0.35);
}

.home-step-connector span:nth-child(1) { animation: connectorDot 2.5s ease-in-out infinite 0s; }
.home-step-connector span:nth-child(2) { animation: connectorDot 2.5s ease-in-out infinite 0.15s; }
.home-step-connector span:nth-child(3) { animation: connectorDot 2.5s ease-in-out infinite 0.3s; }
.home-step-connector span:nth-child(4) { animation: connectorDot 2.5s ease-in-out infinite 0.45s; }
.home-step-connector span:nth-child(5) { animation: connectorDot 2.5s ease-in-out infinite 0.6s; }

.home-step-stagger-1 { animation: fadeInUp 0.7s ease both 0.1s; }
.home-step-stagger-2 { animation: fadeInUp 0.7s ease both 0.3s; }
.home-step-stagger-3 { animation: fadeInUp 0.7s ease both 0.5s; }

/* ===== Home — Bottom CTA ===== */
.home-bottom-cta {
    padding: 100px 24px 112px;
    background: linear-gradient(180deg, #ffffff 0%, #fdf3e8 50%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-bottom-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(212, 116, 10, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.home-bottom-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

.home-bottom-cta-heading {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.home-bottom-cta-body {
    font-size: 1.05rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 36px;
}

.home-bottom-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #D4740A;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 116, 10, 0.35);
}

.home-bottom-cta-btn:hover {
    background: #e07d10;
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(212, 116, 10, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.home-bottom-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(212, 116, 10, 0.3);
}

/* ===== Home — Responsive ===== */
@media (max-width: 768px) {
    .home-steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .home-step {
        max-width: 360px;
        width: 100%;
    }

    .home-step-connector {
        transform: rotate(90deg);
        padding: 4px 0;
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding: 88px 20px 72px;
    }

    .home-hero-heading {
        font-size: 2.6rem;
        letter-spacing: -1.2px;
    }

    .home-hero-body {
        font-size: 1rem;
    }

    .home-features-inner {
        gap: 20px;
    }

    .home-feature {
        font-size: 0.8rem;
    }

    .home-steps {
        padding: 72px 20px;
    }

    .home-steps-heading {
        font-size: 1.7rem;
        margin-bottom: 44px;
    }

    .home-bottom-cta {
        padding: 72px 20px 80px;
    }

    .home-bottom-cta-heading {
        font-size: 1.6rem;
    }
}

/* ===== Refined App Bar ===== */
.appbar-refined {
    border-bottom: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92) !important;
    padding: 0 8px !important;
}

/* Brand lockup: logo + name as clickable unit */
.brand-lockup {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
    margin-right: 8px;
    user-select: none;
    flex-shrink: 0;
}

.brand-lockup:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.brand-lockup img {
    border-radius: 6px;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 700 !important;
    letter-spacing: -0.4px !important;
    font-size: 1.1rem !important;
    color: #1a1a1a !important;
    white-space: nowrap;
    line-height: 1.2 !important;
}

/* Hamburger button refinement */
.hamburger-btn {
    color: #424242 !important;
    border-radius: 10px !important;
}

.hamburger-btn:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

/* Nav links container */
.nav-links-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
}

/* Nav bar buttons */
.nav-btn {
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.01em !important;
    border-radius: 8px !important;
    margin: 0 1px !important;
    padding: 6px 14px !important;
    min-width: auto !important;
    color: #555 !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
    position: relative;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #1a1a1a !important;
}

.nav-btn:active {
    background-color: rgba(0, 0, 0, 0.07) !important;
}

/* Cart icon button in app bar */
.cart-icon-btn {
    color: #555 !important;
    border-radius: 10px !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

.cart-icon-btn:hover {
    color: #1a1a1a !important;
    background-color: rgba(0, 0, 0, 0.04) !important;
}

.cart-badge-wrap .mud-badge {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
}

/* ===== Refined Mobile Drawer ===== */
.drawer-refined {
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08) !important;
    border-right: none !important;
}

.drawer-refined .mud-drawer-content {
    background: #ffffff !important;
}

.drawer-header-refined {
    padding: 20px 20px 16px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    align-items: center !important;
}

.drawer-header-refined img {
    border-radius: 6px;
    flex-shrink: 0;
}

.drawer-brand-name {
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
    color: #1a1a1a !important;
    font-size: 1.05rem !important;
}

.drawer-nav-menu {
    padding: 12px 8px !important;
}

.drawer-nav-link {
    border-radius: 10px !important;
    margin-bottom: 2px !important;
    padding: 10px 16px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.01em !important;
    color: #424242 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.drawer-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: #1a1a1a !important;
}

.drawer-nav-link.active {
    background-color: rgba(212, 116, 10, 0.08) !important;
    color: #D4740A !important;
}

.drawer-nav-link.active .mud-nav-link-icon {
    color: #D4740A !important;
}

.drawer-nav-link .mud-nav-link-icon {
    color: #9e9e9e !important;
    margin-right: 12px !important;
    font-size: 1.25rem !important;
    transition: color 0.15s ease !important;
}

.drawer-nav-link:hover .mud-nav-link-icon {
    color: #616161 !important;
}

/* ===== Main Content Area ===== */
.main-content-refined {
    padding-top: 64px;
    min-height: 100vh;
    background: #fafafa;
}

/* ===== Design Studio — Page Layout ===== */
.design-studio-page {
    padding: 48px 0 80px;
    min-height: 70vh;
}

.design-studio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.design-studio-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.design-studio-title {
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    color: #1a1a1a !important;
}

.design-studio-subtitle {
    color: #888 !important;
    font-weight: 400 !important;
}

.design-studio-new-btn {
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    letter-spacing: 0 !important;
    box-shadow: 0 1px 3px rgba(212, 116, 10, 0.2) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.design-studio-new-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(212, 116, 10, 0.25) !important;
}

/* ===== Design Studio — Upload Panel ===== */
.design-upload-panel {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.design-upload-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid #f0f0f0;
}

.design-upload-panel-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.design-upload-panel-title {
    font-weight: 650 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.2px !important;
}

.design-upload-panel-body {
    padding: 32px 28px;
}

/* ===== Design Studio — Upload Dropzone ===== */
.design-upload-dropzone {
    border: 2px dashed #d0d0d0;
    border-radius: 14px;
    padding: 60px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    background: #fafafa;
    position: relative;
}

.design-upload-dropzone:hover {
    border-color: #D4740A;
    background-color: #fffbf7;
    box-shadow: 0 0 0 4px rgba(212, 116, 10, 0.05);
}

.design-upload-dropzone.drag-over {
    border-color: #D4740A;
    background-color: #fff6ed;
    box-shadow: 0 0 0 6px rgba(212, 116, 10, 0.1);
}

.design-upload-dropzone.drag-over .design-upload-icon-wrap {
    transform: scale(1.08);
}

.design-upload-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.design-upload-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(212, 116, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-bottom: 8px;
}

.design-upload-dropzone:hover .design-upload-icon-wrap {
    background: rgba(212, 116, 10, 0.1);
}

.design-upload-headline {
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-top: 8px !important;
    letter-spacing: -0.2px !important;
}

.design-upload-subtext {
    color: #999 !important;
    margin-top: 4px !important;
    margin-bottom: 12px !important;
}

.design-upload-formats {
    color: #b0b0b0 !important;
    margin-bottom: 20px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.2px !important;
}

.design-upload-browse-btn {
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 8px 28px !important;
    letter-spacing: 0 !important;
}

/* ===== Design Studio — Preview Card ===== */
.design-preview-card {
    background: #f8f8f8;
    border-radius: 14px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    max-height: 340px;
    transition: border-color 0.2s ease;
}

.design-preview-card:hover {
    border-color: #d8d8d8;
}

.design-preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}

.design-preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.design-action-btn {
    text-transform: none !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    letter-spacing: 0 !important;
}

/* ===== Design Studio — File Info ===== */
.design-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 28px;
}

.design-file-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(212, 116, 10, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.design-file-info-text {
    min-width: 0;
    flex: 1;
}

.design-file-info-name {
    font-weight: 600 !important;
    color: #1a1a1a !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.design-file-info-meta {
    color: #999 !important;
}

/* ===== Design Studio — Form Fields ===== */
.design-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0;
}

.design-form-field {
    margin-bottom: 4px !important;
}

.design-form-field .mud-input-outlined-border {
    border-radius: 10px !important;
}

.design-form-field-last {
    margin-bottom: 28px !important;
}

.design-form-hint {
    font-size: 0.78rem;
    color: #aaa;
    margin: 2px 0 20px;
    line-height: 1.5;
}

/* ===== Design Studio — Confirm Actions ===== */
.design-confirm-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.design-confirm-btn {
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    flex: 1;
    letter-spacing: 0 !important;
    box-shadow: 0 1px 3px rgba(212, 116, 10, 0.2) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.design-confirm-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(212, 116, 10, 0.25) !important;
}

.design-cancel-btn {
    text-transform: none !important;
    font-weight: 500 !important;
    color: #999 !important;
    letter-spacing: 0 !important;
}

.design-cancel-btn:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

/* ===== Design Studio — Uploading Indicator ===== */
.design-uploading-indicator {
    text-align: center;
    margin-top: 20px;
}

.design-uploading-text {
    color: #999 !important;
    margin-top: 8px !important;
}

/* ===== Design Studio — Empty State ===== */
.design-empty-state {
    text-align: center;
    padding: 80px 24px;
    max-width: 400px;
    margin: 0 auto;
}

.design-empty-icon-wrap {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: #f5f5f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.design-empty-title {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 8px !important;
}

.design-empty-subtitle {
    color: #999 !important;
    margin-bottom: 32px !important;
    line-height: 1.6 !important;
}

.design-empty-cta {
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 10px 32px !important;
    letter-spacing: 0 !important;
}

/* ===== Design Studio — Design Cards Grid ===== */
.design-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .design-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .design-grid {
        grid-template-columns: 1fr;
    }

    .design-studio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.design-card {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.design-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    border-color: #ddd;
}

.design-card-image-wrap {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    overflow: hidden;
}

.design-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 16px;
}

.design-card-body {
    padding: 18px 20px 8px;
    flex: 1;
}

.design-card-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.design-card-name {
    font-weight: 650 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.design-status-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.design-status-ready {
    background: rgba(76, 175, 80, 0.08);
    color: #388e3c;
}

.design-status-draft {
    background: #f5f5f5;
    color: #999;
}

.design-card-description {
    color: #777 !important;
    margin-top: 2px !important;
    line-height: 1.5 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.design-card-meta {
    color: #aaa !important;
    margin-top: 6px !important;
}

.design-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
}

.design-card-action-btn {
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    letter-spacing: 0 !important;
    font-size: 0.8125rem !important;
    box-shadow: none !important;
}

.design-card-action-btn:hover {
    box-shadow: 0 2px 8px rgba(212, 116, 10, 0.2) !important;
}

.design-card-delete-btn {
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease !important;
}

.design-card:hover .design-card-delete-btn {
    opacity: 1;
}

.design-card-delete-btn:hover {
    color: #e53935 !important;
}

/* Legacy upload zone (keep for backward compat) */
.upload-zone {
    border: 3px dashed #bdbdbd;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.upload-zone:hover {
    border-color: #D4740A;
    background-color: #FFF3E0;
}

/* Shirt preview overlay */
.shirt-preview-container {
    position: relative;
    overflow: hidden;
    height: 230px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}

.shirt-preview-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-overlay {
    position: absolute;
    height: auto;
    opacity: 0.88;
    pointer-events: none;
    object-fit: contain;
    border-radius: 4px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    transition: top 0.35s ease, left 0.35s ease, width 0.35s ease,
                max-height 0.35s ease, transform 0.35s ease;
}

/* Overlay guide lines on hover */
.shirt-preview-container:hover .design-overlay-guide {
    opacity: 1;
}

.design-overlay-guide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.design-overlay-guide::before,
.design-overlay-guide::after {
    content: '';
    position: absolute;
    background-color: rgba(212, 116, 10, 0.15);
}

.design-overlay-guide::before {
    /* Vertical center line */
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.design-overlay-guide::after {
    /* Horizontal center line */
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
}

/* Back view indicator chip */
.overlay-back-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 2;
    letter-spacing: 0.03em;
}

/* Color swatch */
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #e0e0e0;
    margin-right: 4px;
}

/* ===== Shirt Picker — Page header ===== */
.shirt-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shirt-picker-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shirt-picker-design-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shirt-picker-title {
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    color: #1a1a1a !important;
}

.shirt-picker-subtitle {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin-top: 2px !important;
}

/* ===== Shirt Picker — Catalog section ===== */
.catalog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-section-title {
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
    color: #1a1a1a !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-section-title .catalog-icon {
    color: #D4740A;
    font-size: 1.3rem;
}

/* ===== Shirt Picker — Catalog cards ===== */
.catalog-product-card {
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease !important;
    background: #ffffff !important;
}

.catalog-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(212, 116, 10, 0.25) !important;
}

.catalog-card-body {
    padding: 16px 18px 14px;
}

.catalog-card-name {
    font-weight: 600 !important;
    color: #1a1a1a !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

.catalog-card-category {
    font-size: 0.72rem !important;
    color: #9ca3af !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

.catalog-card-price {
    font-weight: 700 !important;
    color: #D4740A !important;
    font-size: 1rem !important;
    white-space: nowrap;
}

.catalog-card-desc {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
    margin-top: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-colors {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.catalog-card-color-chip {
    font-size: 0.68rem !important;
    height: 22px !important;
    border-radius: 6px !important;
    border-color: #e5e7eb !important;
    color: #6b7280 !important;
}

.catalog-card-image-area {
    height: 210px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.catalog-card-image-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
    z-index: 3;
}

/* ===== Shirt Picker — Line item rows ===== */
.line-item-row {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 14px 18px !important;
}

.line-item-row:last-child {
    border-bottom: none !important;
}

.line-item-row:hover {
    background-color: #f9fafb;
}

.line-item-content {
    display: flex;
    gap: 14px;
}

.line-item-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.line-item-details {
    flex: 1;
    min-width: 0;
}

.line-item-name {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #1a1a1a !important;
    line-height: 1.3 !important;
}

.line-item-meta {
    font-size: 0.75rem !important;
    color: #9ca3af !important;
    margin-top: 2px !important;
    letter-spacing: 0.2px;
}

.line-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.line-item-qty-control {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 1px;
}

.line-item-qty-value {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    min-width: 24px !important;
    text-align: center !important;
    color: #1a1a1a !important;
}

.line-item-subtotal {
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    color: #1a1a1a !important;
}

.line-item-remove-btn {
    opacity: 0.35;
    transition: opacity 0.2s ease !important;
}

.line-item-row:hover .line-item-remove-btn {
    opacity: 1;
}

/* ===== Shirt Picker — Sidebar panel ===== */
.shirt-sidebar-panel {
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    position: sticky;
    top: 80px;
    background: #ffffff !important;
}

.shirt-sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shirt-sidebar-title {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #1a1a1a !important;
    letter-spacing: -0.2px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shirt-sidebar-title-icon {
    font-size: 1.1rem !important;
    color: #9ca3af !important;
}

.shirt-sidebar-count {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    background: rgba(212, 116, 10, 0.1) !important;
    color: #D4740A !important;
    border-radius: 20px !important;
    padding: 2px 10px !important;
    line-height: 1.4;
}

.shirt-sidebar-empty {
    padding: 48px 24px;
    text-align: center;
}

.shirt-sidebar-empty-icon {
    font-size: 2.5rem !important;
    color: #d1d5db !important;
    margin-bottom: 12px;
}

.shirt-sidebar-list {
    max-height: 440px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.shirt-sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.shirt-sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}

.shirt-sidebar-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

/* ===== Shirt Picker — Checkout footer ===== */
.shirt-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f3f4f6;
    background: linear-gradient(to bottom, #fafbfc, #f5f6f8);
    border-radius: 0 0 16px 16px;
}

.shirt-sidebar-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.shirt-sidebar-subtotal-label {
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}

.shirt-sidebar-subtotal-value {
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    color: #D4740A !important;
    letter-spacing: -0.5px !important;
}

.shirt-sidebar-cart-btn {
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 12px !important;
    height: 48px !important;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 8px rgba(212, 116, 10, 0.2) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.shirt-sidebar-cart-btn:hover {
    box-shadow: 0 4px 16px rgba(212, 116, 10, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* ===== Shirt Picker — Configurator panel ===== */
.shirt-configurator-panel {
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: #ffffff !important;
}

.shirt-configurator-preview {
    border-radius: 16px 0 0 16px;
    background: #f8f9fa;
}

.shirt-configurator-options {
    padding: 32px 28px;
}

.shirt-configurator-name {
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
    color: #1a1a1a !important;
}

.shirt-configurator-desc {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

.shirt-configurator-price {
    font-weight: 800 !important;
    color: #D4740A !important;
    letter-spacing: -0.3px !important;
}

.shirt-configurator-divider {
    border-color: #f3f4f6 !important;
    margin: 20px 0 !important;
}

.shirt-configurator-label {
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #374151 !important;
    margin-bottom: 10px !important;
}

.shirt-configurator-selected-chip {
    font-size: 0.68rem !important;
    height: 20px !important;
    background: rgba(212, 116, 10, 0.1) !important;
    color: #D4740A !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

.shirt-configurator-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shirt-configurator-qty-value {
    font-weight: 700 !important;
    min-width: 40px !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    color: #1a1a1a !important;
}

.shirt-configurator-line-total {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}

.shirt-configurator-line-total strong {
    color: #1a1a1a;
    font-weight: 700;
}

.shirt-configurator-add-btn {
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 12px !important;
    height: 52px !important;
    font-size: 1rem !important;
    box-shadow: 0 2px 8px rgba(212, 116, 10, 0.2) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    margin-top: 8px;
}

.shirt-configurator-add-btn:hover {
    box-shadow: 0 6px 20px rgba(212, 116, 10, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Toggle group refinements within configurator */
.shirt-configurator-options .mud-toggle-group {
    gap: 6px;
    flex-wrap: wrap;
}

/* ===== Shirt Color Tint Overlay ===== */
/* Applied ONLY when a product lacks a dedicated per-color image.
   Sits between the shirt-preview-bg and the design-overlay so
   the tint affects the shirt image but not the design on top. */
.shirt-color-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* Ensure the design overlay sits above the tint layer */
.shirt-preview-container .design-overlay {
    z-index: 2;
}
.shirt-preview-container .design-overlay-guide {
    z-index: 2;
}

/* ===== Catalog Card Button (non-interactive styled div) ===== */
/* Replaces MudButton to avoid click propagation issues with the card's @onclick */
.catalog-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: rgba(212, 116, 10, 0.06);
    color: #D4740A;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.catalog-product-card:hover .catalog-card-btn {
    background-color: #D4740A;
    color: #ffffff;
}

/* ===== Shirt Picker — Back button ===== */
.shirt-picker-back-btn {
    text-transform: none !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    color: #6b7280 !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    transition: color 0.2s ease !important;
}

.shirt-picker-back-btn:hover {
    color: #1a1a1a !important;
    background-color: rgba(0, 0, 0, 0.04) !important;
}

/* ===== Shirt Picker — Responsive ===== */
@media (max-width: 960px) {
    .shirt-configurator-preview {
        border-radius: 16px 16px 0 0;
    }

    .shirt-configurator-options {
        padding: 24px 20px;
    }

    .shirt-sidebar-panel {
        position: static !important;
    }
}

/* ========================================================================
   Cart Page
   ======================================================================== */

.cart-page {
    background: #fafafa;
    min-height: 80vh;
}

/* --- Cart Header --- */
.cart-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 32px;
}

/* --- Empty Cart State --- */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 24px 96px;
}

.cart-empty-icon-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(212, 116, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Order Confirmed State --- */
.cart-confirmed {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 24px 96px;
}

.cart-confirmed-icon-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-confirmed-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 420px;
    margin-top: 24px;
    padding: 14px 20px;
    background: #f5f5f5;
    border-radius: 10px;
    text-align: left;
}

.cart-continue-btn {
    border-radius: 10px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    padding: 10px 32px !important;
}

/* --- Design Group (card that wraps a design + its shirts) --- */
.cart-design-group {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.cart-design-group:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.cart-design-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-design-thumb-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.cart-design-thumb {
    border-radius: 10px;
    object-fit: cover;
}

.cart-design-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cart-design-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cart-meta-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #f0f0f0;
    color: #757575;
}

.cart-meta-tag--ready {
    background: rgba(46, 125, 50, 0.08);
    color: #2e7d32;
}

/* --- Item list --- */
.cart-items-list {
    padding: 8px 24px 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.cart-item-image-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.cart-item-image {
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* --- Quantity stepper --- */
.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 36px;
}

.cart-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #616161;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 0;
}

.cart-qty-btn:hover {
    background: #f5f5f5;
    color: #D4740A;
}

.cart-qty-btn:active {
    background: #eeeeee;
}

.cart-qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 100%;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a1a;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    user-select: none;
}

/* --- Remove button --- */
.cart-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #bdbdbd;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 0;
}

.cart-remove-btn:hover {
    background: #fce4ec;
    color: #e53935;
}

/* --- Order Summary sidebar --- */
.cart-summary {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 28px 24px 24px;
    position: sticky;
    top: 80px;
}

.cart-summary-lines {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary-label {
    font-size: 0.9rem;
    color: #757575;
}

.cart-summary-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #424242;
}

.cart-summary-value--free {
    color: #2e7d32;
    font-weight: 600;
}

.cart-summary-divider {
    height: 1px;
    background: #eeeeee;
    margin: 20px 0;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary-total-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a1a;
}

.cart-summary-total-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #D4740A;
    letter-spacing: -0.3px;
}

/* --- Checkout CTA --- */
.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 24px;
    border: none;
    border-radius: 12px;
    background: #D4740A;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(212, 116, 10, 0.2);
}

.cart-checkout-btn:hover {
    background: #c06609;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(212, 116, 10, 0.3);
}

.cart-checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 116, 10, 0.15);
}

.cart-summary-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: #bdbdbd;
    letter-spacing: 0.02em;
}

/* --- Cart responsive adjustments --- */
@media (max-width: 960px) {
    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 8px;
        margin-top: 4px;
        border-top: 1px solid #f5f5f5;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .cart-header {
        flex-direction: column;
        gap: 4px;
    }

    .cart-design-header {
        padding: 16px;
    }

    .cart-items-list {
        padding: 8px 16px 12px;
    }

    .cart-item-image-wrap {
        width: 56px;
        height: 56px;
    }

    .cart-item-image {
        width: 56px !important;
        height: 56px !important;
    }

    .cart-summary {
        padding: 24px 20px 20px;
    }
}

/* ========================================================================
   Orders Page
   ======================================================================== */

.order-page {
    background: #fafafa;
    min-height: 100vh;
}

/* --- Page Header --- */
.order-page-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 48px 0 40px;
}

.order-page-header-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.order-count-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 116, 10, 0.06);
    border: 1px solid rgba(212, 116, 10, 0.12);
    border-radius: 24px;
    padding: 6px 16px;
    flex-shrink: 0;
}

.order-count-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #D4740A;
}

.order-count-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9e9e9e;
}

/* --- Page Body --- */
.order-page-body {
    padding-top: 32px !important;
    padding-bottom: 80px !important;
}

/* --- Demo Banner --- */
.order-demo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffaf5;
    border: 1px solid rgba(212, 116, 10, 0.12);
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 28px;
}

/* --- Empty State --- */
.order-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 24px 100px;
}

.order-empty-icon-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(212, 116, 10, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-empty-cta {
    margin-top: 32px !important;
    border-radius: 10px !important;
    padding: 10px 32px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: 0 4px 16px rgba(212, 116, 10, 0.2) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.order-empty-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(212, 116, 10, 0.3) !important;
}

/* --- Card List --- */
.order-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- Order Card --- */
.order-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.order-card--expanded {
    border-color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* --- Card Header --- */
.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    gap: 16px;
    transition: background-color 0.15s ease;
}

.order-card-header:hover {
    background-color: #fcfcfc;
}

.order-card-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.order-card-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* --- Status Icon --- */
.order-status-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.order-card-header:hover .order-status-icon-wrap {
    transform: scale(1.05);
}

.order-status-icon--pending {
    background: #f5f5f5;
    color: #9e9e9e;
}

.order-status-icon--processing,
.order-status-icon--printing {
    background: #fff3e0;
    color: #e68900;
}

.order-status-icon--shipped {
    background: #e3f2fd;
    color: #1976d2;
}

.order-status-icon--delivered,
.order-status-icon--completed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* --- Header Text --- */
.order-card-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.order-card-number {
    font-size: 0.9375rem;
    font-weight: 650;
    color: #212121;
    letter-spacing: -0.01em;
}

.order-card-date {
    font-size: 0.8125rem;
    color: #9e9e9e;
    font-weight: 400;
}

/* --- Status Chip --- */
.order-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.order-status-chip--pending {
    background: #f5f5f5;
    color: #757575;
}

.order-status-chip--processing,
.order-status-chip--printing {
    background: #fff8e1;
    color: #e68900;
}

.order-status-chip--shipped {
    background: #e8f0fe;
    color: #1565c0;
}

.order-status-chip--delivered,
.order-status-chip--completed {
    background: #e6f4ea;
    color: #1b7a2b;
}

/* --- Total Price --- */
.order-card-total {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #212121;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* --- Chevron --- */
.order-card-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: transform 0.25s ease, background-color 0.15s ease;
}

.order-card-header:hover .order-card-chevron {
    background: #eeeeee;
}

.order-card-chevron--open {
    transform: rotate(180deg);
}

/* --- Card Body --- */
.order-card-body {
    padding: 0 28px 28px;
}

/* --- Divider --- */
.order-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 24px 0;
}

/* --- Section Label --- */
.order-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 650;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

/* --- Items Count Badge --- */
.order-items-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #616161;
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
}

/* --- Progress Tracker --- */
.order-progress-section {
    padding: 24px 0 0;
}

.order-progress-tracker {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
}

.order-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 72px;
}

.order-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #bdbdbd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.order-progress-step--active .order-progress-dot {
    background: rgba(212, 116, 10, 0.08);
    color: #D4740A;
}

.order-progress-step--current .order-progress-dot {
    background: #D4740A;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(212, 116, 10, 0.12);
}

.order-progress-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #bdbdbd;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.order-progress-step--active .order-progress-label {
    color: #757575;
}

.order-progress-step--current .order-progress-label {
    color: #D4740A;
    font-weight: 700;
}

.order-progress-connector {
    flex: 1;
    height: 2px;
    min-width: 20px;
    max-width: 48px;
    background: #eeeeee;
    margin-top: 17px;
    border-radius: 1px;
    transition: background-color 0.3s ease;
}

.order-progress-connector--active {
    background: rgba(212, 116, 10, 0.3);
}

/* --- Design Group --- */
.order-design-group {
    margin-bottom: 20px;
}

.order-design-group:last-child {
    margin-bottom: 0;
}

.order-design-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 10px;
}

.order-design-thumb {
    border-radius: 8px !important;
    object-fit: cover;
    flex-shrink: 0;
}

.order-design-name {
    font-size: 0.875rem;
    font-weight: 650;
    color: #212121;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-design-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9e9e9e;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Shirt List --- */
.order-shirt-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-shirt-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.order-shirt-row:hover {
    background: #fafafa;
}

.order-shirt-thumb {
    border-radius: 8px !important;
    object-fit: cover;
    flex-shrink: 0;
}

.order-shirt-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.order-shirt-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #212121;
}

.order-shirt-meta {
    font-size: 0.8125rem;
    color: #9e9e9e;
}

.order-shirt-qty {
    font-size: 0.8125rem;
    color: #bdbdbd;
    font-weight: 500;
}

.order-shirt-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #424242;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Order Summary --- */
.order-summary-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px 24px;
}

.order-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.order-summary-row--total {
    border-top: 1px solid #eeeeee;
    margin-top: 8px;
    padding-top: 14px;
}

.order-summary-label {
    font-size: 0.8125rem;
    color: #9e9e9e;
    font-weight: 500;
}

.order-summary-row--total .order-summary-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #616161;
}

.order-summary-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #424242;
}

.order-summary-value--free {
    color: #2e7d32;
}

.order-summary-value--total {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #D4740A;
    letter-spacing: -0.01em;
}

/* --- Orders Responsive --- */
@media (max-width: 600px) {
    .order-page-header {
        padding: 32px 0 28px;
    }

    .order-page-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }

    .order-card-header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .order-card-body {
        padding: 0 18px 18px;
    }

    .order-progress-tracker {
        gap: 0;
    }

    .order-progress-step {
        min-width: 56px;
    }

    .order-progress-connector {
        min-width: 12px;
    }

    .order-shirt-row {
        padding: 10px 8px;
        gap: 12px;
    }

    .order-summary-section {
        padding: 16px 18px;
    }
}
