.shop-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.shop-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 10px;
}

.shop-status-badge.is-published {
    color: #166534;
    background: linear-gradient(135deg, #ecfdf3 0%, #d1fae5 100%);
    border-color: #86efac;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

.shop-status-badge.is-published .shop-status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
    animation: shop-status-pulse 2s ease-in-out infinite;
}

.shop-status-badge.is-unpublished {
    color: #92400e;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.shop-status-badge.is-unpublished .shop-status-dot {
    background: #f97316;
}

@keyframes shop-status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
        transform: scale(1.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-status-badge,
    .shop-status-dot {
        animation: none !important;
        transition: none !important;
    }
}

.address-form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #222);
    margin: 0;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
}

.form-control-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field ul,
.form-field .form-error-message,
.form-field .invalid-feedback {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #c62828;
}

.address-lines {
    display: grid;
    gap: 2px;
    margin-top: 6px;
}

.address-recipient {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    color: var(--text);
}

.address-line {
    font-size: 13px;
    line-height: 1.2;
    color: var(--text-muted, #666);
}

/* =========================================
   ORDERS PAGE
   Style dédié à templates/order/index.html.twig
   Basé sur le thème clair de la page cart
   ========================================= */
.orders-page .orders-content,
.orders-page .orders-full,
.orders-page .orders-list-layout,
.orders-page .orders-items-grid {
    width: 100%;
    max-width: 100%;
}

.orders-page .cart-page {
    display: block;
    width: 100%;
}

.orders-page .cart-items {
    display: grid;
    gap: 18px;
    width: 100%;
}

.orders-page .cart-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff8f1 0%, #ffe9d2 100%);
    border: 1px solid rgba(180, 83, 9, 0.10);
}

.orders-page .cart-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.12), transparent 28%);
    pointer-events: none;
}

.orders-page .cart-hero > * {
    position: relative;
    z-index: 1;
}

.orders-page .cart-hero h1,
.orders-page .cart-hero p,
.orders-page .cart-hero .hero-badge {
    color: #1f2937;
}

.orders-page .cart-hero p {
    max-width: 58ch;
    color: #4b5563;
}

.orders-page .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.orders-page .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.orders-page .section-title h2 {
    margin: 0;
}

.orders-page .muted {
    color: #6b7280;
    font-size: 0.92rem;
}

.orders-page .cart-card {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(122, 94, 58, 0.10);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(43, 30, 14, 0.06);
}

.orders-page .cart-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.orders-page .cart-card-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.orders-page .cart-card-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #fff3e8;
    color: #9a5b1f;
    font-size: 12px;
    font-weight: 700;
}

.orders-page .cart-card-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    color: #1f2937;
    font-weight: 800;
}

.orders-page .cart-card-unit-price {
    margin-top: 1px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

.orders-page .cart-card-line-total {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.orders-page .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.orders-page .badge.status-open {
    background: #fff7ed;
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.15);
}

.orders-page .badge.status-completed {
    background: #ecfdf5;
    color: #047857;
    border-color: rgba(4, 120, 87, 0.15);
}

.orders-page .badge.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.15);
}

.orders-page .order-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding: 8px 2px 18px;
}

.orders-page .order-progress-line {
    position: absolute;
    top: 14px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #eadfd2;
    z-index: 0;
}

.orders-page .order-progress-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.orders-page .order-progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #d8dbe1;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(216, 219, 225, 0.55);
}

.orders-page .order-progress-text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: #7a808a;
    max-width: 120px;
}

.orders-page .order-progress-step.is-done .order-progress-dot {
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.orders-page .order-progress-step.is-current .order-progress-dot {
    background: #b45309;
    box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.16);
}

.orders-page .order-progress-step.is-done .order-progress-text,
.orders-page .order-progress-step.is-current .order-progress-text {
    color: #9a5b1f;
}

.orders-page .order-progress-step.is-cancelled .order-progress-dot {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.orders-page .order-progress-step.is-cancelled .order-progress-text {
    color: #b91c1c;
}

.orders-page .cart-card-bottom {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f3ede6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.orders-page .orders-items-block {
    display: block;
}

.orders-page .qty-box {
    width: 100%;
    display: grid;
    gap: 10px;
}

.orders-page .qty-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff3e8;
    color: #9a5b1f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.orders-page .order-items-list {
    display: grid;
    gap: 8px;
}

.orders-page .order-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%);
    border: 1px solid #efe4d7;
    box-shadow: 0 4px 14px rgba(43, 30, 14, 0.03);
}

.orders-page .order-item-left {
    min-width: 0;
}

.orders-page .order-item-name {
    display: block;
    margin: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.orders-page .order-item-meta {
    margin-top: 3px;
    color: #7b8190;
    font-size: 11px;
    line-height: 1.35;
}

.orders-page .order-item-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #efe6dc;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
}

.orders-page .btn-primary,
.orders-page .btn-secondary,
.orders-page .cart-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.orders-page .btn-primary {
    background: #b45309;
    color: #fff;
    border: 1px solid #b45309;
}

.orders-page .btn-primary:hover {
    background: #92400e;
    transform: translateY(-1px);
}

.orders-page .btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: #1f2937;
    border: 1px solid rgba(31, 41, 55, 0.10);
}

.orders-page .cart-empty-card {
    background: linear-gradient(180deg, #fff, #fff9f4);
    border: 1px dashed #e7d7c7;
    border-radius: 24px;
    padding: 32px 20px;
    text-align: center;
}

.orders-page .cart-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.orders-page .cart-empty-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    text-align: center;
}

@media (max-width: 640px) {
    .orders-page .hero-actions,
    .orders-page .section-title,
    .orders-page .cart-card-top,
    .orders-page .cart-card-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-page .cart-card,
    .orders-page .cart-empty-card {
        border-radius: 20px;
        padding: 16px;
    }

    .orders-page .cart-card-line-total {
        font-size: 17px;
    }

    .orders-page .order-progress {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 4px;
    }

    .orders-page .order-progress-line {
        display: none;
    }

    .orders-page .order-progress-step {
        grid-template-columns: 18px 1fr;
        justify-items: start;
        align-items: center;
        text-align: left;
    }

    .orders-page .order-progress-text {
        max-width: none;
    }

    .orders-page .order-item-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .orders-page .order-item-total {
        justify-content: flex-start;
        width: 100%;
    }

    .orders-page .btn-primary,
    .orders-page .btn-secondary,
    .orders-page .cart-empty-btn {
        width: 100%;
    }
}