:root {
    --color-blue: #0b5ed7;
    --color-blue-dark: #062b5f;
    --color-blue-soft: #eef5ff;
    --color-orange: #ff6b16;
    --color-orange-dark: #df5200;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-surface: #ffffff;
    --color-page: #f4f7fb;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--color-page);
    color: var(--color-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(12px);
}

.header-main {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-blue), #2f8cff);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 22px rgba(11, 94, 215, 0.24);
}

.brand-name {
    display: block;
    color: var(--color-blue);
    font-size: 22px;
    line-height: 1;
}

.brand-subtitle {
    display: block;
    color: var(--color-orange);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-bar,
.shop-search {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 5px;
    border: 1px solid #dbe6f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-bar:focus-within,
.shop-search:focus-within {
    border-color: #8bbcff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.1), 0 12px 26px rgba(15, 23, 42, 0.08);
}

.search-leading-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    color: var(--color-blue);
}

.search-bar input,
.shop-search input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--color-ink);
    font-weight: 700;
}

.search-bar input::placeholder,
.shop-search input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.search-clear,
.search-submit {
    border: 0;
    border-radius: 8px;
    font-weight: 900;
}

.search-clear {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: var(--color-muted);
}

.search-clear:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.search-clear[hidden] {
    display: none;
}

.search-submit {
    min-width: 42px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    background: var(--color-blue);
    color: #fff;
}

.search-submit:hover {
    background: #084fb8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.header-link { color: var(--color-muted); }

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
}

.logout-link:hover {
    background: #fff1f2;
    color: #be123c;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--color-orange);
    background: #fff4ed;
    font-weight: 700;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-blue);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.cart-count.nav-count {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
}

.cart-count[hidden] {
    display: none;
}

.ajax-toast-region {
    position: fixed;
    right: 18px;
    top: 88px;
    z-index: 60;
    display: grid;
    gap: 10px;
    width: min(340px, calc(100vw - 36px));
}

.ajax-toast {
    padding: 13px 15px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
    color: #0f172a;
    font-weight: 700;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.ajax-toast.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.ajax-toast.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.ajax-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

[data-cart-add-form] .is-loading {
    opacity: 0.72;
    cursor: wait;
}

.main-nav {
    display: flex;
    gap: 34px;
    border-top: 1px solid #f1f5f9;
    padding: 14px 0;
    font-size: 14px;
}

.main-nav a {
    color: #334155;
    font-weight: 600;
}

.main-nav a.active { color: var(--color-blue); }

.hero-section {
    background:
        radial-gradient(circle at 82% 20%, rgba(11, 94, 215, 0.12), transparent 28%),
        linear-gradient(180deg, #fff 0%, #f7fbff 100%);
    padding: 54px 0 34px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    align-items: center;
    gap: 54px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1 {
    max-width: 610px;
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.02;
    font-weight: 900;
    color: #081936;
}

.hero-copy p {
    max-width: 540px;
    margin: 18px 0 26px;
    color: var(--color-muted);
    font-size: 18px;
}

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

.product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    margin-top: auto;
}

.product-actions form {
    display: contents;
}

.product-actions .btn {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-inline: 10px;
    white-space: nowrap;
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.05em;
    height: 1.05em;
    display: inline-block;
    vertical-align: -0.16em;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex: 0 0 auto;
}

.btn .icon,
.header-link .icon,
.cart-link .icon,
.main-nav .icon,
.site-footer .icon,
.text-button .icon {
    margin-right: 6px;
}

.search-bar button .icon {
    margin: 0;
}

.btn-primary {
    background: var(--color-blue);
    border-color: var(--color-blue);
}

.btn-outline-primary {
    color: var(--color-blue);
    border-color: #b9d4ff;
}

.btn-orange {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: #fff;
}

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

.hero-visual {
    min-height: 390px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(135deg, #eaf3ff, #ffffff);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-visual img {
    width: min(86%, 440px);
    max-height: 350px;
    object-fit: contain;
}

.hero-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 80%;
}

.hero-placeholder span {
    min-height: 110px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    color: var(--color-blue);
    font-weight: 800;
}

.service-strip { margin-top: -10px; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.service-grid div {
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--color-line);
    font-weight: 700;
    color: #334155;
}

.service-grid .icon,
.filter-box .icon,
.detail-services .icon {
    color: var(--color-orange);
    margin-right: 8px;
}

.ad-carousel-section {
    padding: 36px 0 0;
}

.ad-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.ad-carousel__viewport {
    position: relative;
    min-height: clamp(280px, 38vw, 430px);
}

.ad-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    min-height: clamp(280px, 38vw, 430px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease;
}

.ad-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.ad-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 43, 95, 0.88), rgba(6, 43, 95, 0.42) 48%, rgba(6, 43, 95, 0.08));
}

.ad-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-slide__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: clamp(28px, 5vw, 54px);
    color: #fff;
}

.ad-slide__content .eyebrow {
    color: #fed7aa;
}

.ad-slide__content h2 {
    margin: 0;
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.04;
    font-weight: 900;
}

.ad-slide__content p {
    margin: 14px 0 24px;
    color: #dbeafe;
    font-size: 17px;
}

.ad-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-blue);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    transform: translateY(-50%);
}

.ad-carousel__nav.prev {
    left: 16px;
}

.ad-carousel__nav.next {
    right: 16px;
}

.ad-carousel__nav.next .icon {
    transform: rotate(180deg);
}

.ad-carousel__dots {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.ad-carousel__dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: #94a3b8;
    padding: 0;
}

.ad-carousel__dots button.active {
    width: 24px;
    border-radius: 999px;
    background: var(--color-orange);
}

.page-section,
.shop-layout,
.product-detail-page,
.cart-page,
.checkout-page {
    padding: 46px 0;
}

.order-detail-page {
    padding: 46px 0;
}

.section-heading,
.shop-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2,
.shop-heading h1,
.cart-page h1,
.checkout-page h1 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 900;
}

.section-heading a {
    color: var(--color-blue);
    font-weight: 700;
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.category-card,
.product-card,
.pack-card,
.filter-panel,
.cart-table-wrap,
.order-summary,
.checkout-card,
.success-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.static-card {
    max-width: 860px;
    padding: 34px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.static-card h1 {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 900;
}

.static-card p {
    color: var(--color-muted);
    font-size: 17px;
}

.category-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    min-height: 140px;
}

.category-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--color-blue-soft);
    color: var(--color-blue);
    font-weight: 900;
    font-size: 22px;
}

.category-card small,
.product-body small { color: var(--color-muted); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

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

.product-media {
    height: 210px;
    display: grid;
    place-items: center;
    background: #f8fafc;
}

.product-media img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.product-body {
    display: grid;
    gap: 9px;
    flex: 1;
    padding: 16px;
}

.product-body h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.product-body p {
    margin: 0;
    min-height: 42px;
    color: var(--color-muted);
    font-size: 14px;
}

.product-body strong,
.price-xl {
    color: var(--color-blue);
    font-weight: 900;
}

.product-badge {
    justify-self: start;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f8ec;
    color: #138a36;
    font-size: 12px;
    font-weight: 800;
}

.product-badge.unavailable {
    background: #fff1f2;
    color: #be123c;
}

.pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pack-card {
    padding: 22px;
    display: grid;
    gap: 10px;
}

.pack-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
}

.pack-card p {
    margin: 0;
    color: var(--color-muted);
}

.pack-card.pink { background: #fff4f7; }
.pack-card.blue { background: #eef6ff; }
.pack-card.green { background: #eefaf3; }
.pack-card.dark { background: #f4f5f7; }

.breadcrumb-lite {
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 13px;
}

.shop-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
}

.filter-panel {
    position: sticky;
    top: 112px;
    align-self: start;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    padding: 18px;
    scrollbar-width: thin;
}

.filter-panel h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 900;
}

.filter-panel a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
}

.filter-panel a.active {
    color: var(--color-blue);
    font-weight: 800;
}

.filter-box {
    margin-top: 22px;
    padding: 14px;
    border-radius: 8px;
    background: var(--color-blue-soft);
}

.filter-box h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 900;
}

.filter-box p {
    margin: 8px 0;
    color: #334155;
    font-size: 14px;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: var(--color-muted);
    font-size: 14px;
}

.shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-search { width: min(100%, 620px); }
.pagination-wrap { margin-top: 26px; }

.sf-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.sf-pagination__summary {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.sf-pagination__summary strong {
    color: var(--color-blue);
}

.sf-pagination__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.sf-pagination__page,
.sf-pagination__arrow,
.sf-pagination__dots {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.sf-pagination__page,
.sf-pagination__arrow {
    border: 1px solid #dbe6f5;
    background: #f8fafc;
    color: #334155;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sf-pagination__page:hover,
.sf-pagination__arrow:hover {
    border-color: #b9d4ff;
    background: var(--color-blue-soft);
    color: var(--color-blue);
    transform: translateY(-1px);
}

.sf-pagination__page.current {
    border-color: var(--color-blue);
    background: var(--color-blue);
    color: #fff;
    box-shadow: 0 10px 20px rgba(11, 94, 215, 0.2);
}

.sf-pagination__arrow {
    color: var(--color-blue);
}

.sf-pagination__arrow.next .icon {
    transform: rotate(180deg);
}

.sf-pagination__arrow.disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
}

.sf-pagination__dots {
    min-width: 26px;
    color: var(--color-muted);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 560px) minmax(0, 1fr);
    gap: 32px;
}

.product-gallery,
.product-summary {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.product-gallery {
    min-height: 520px;
    display: grid;
    place-items: center;
    padding: 28px;
}

.product-gallery img {
    width: 92%;
    max-height: 450px;
    object-fit: contain;
}

.image-fallback {
    width: 100%;
    min-height: 360px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--color-blue-soft);
    color: var(--color-blue);
    font-weight: 900;
}

.image-fallback.compact {
    min-height: 150px;
    font-size: 13px;
}

.suggested-section {
    padding-top: 0;
}

.product-summary {
    padding: 32px;
}

.product-summary h1 {
    margin: 14px 0;
    font-size: 36px;
    font-weight: 900;
}

.product-summary p { color: var(--color-muted); }

.price-xl {
    margin: 18px 0;
    font-size: 30px;
}

.detail-add-form {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: end;
    margin: 26px 0;
}

.detail-add-form label {
    grid-column: 1 / -1;
    color: var(--color-muted);
    font-weight: 700;
}

.detail-add-form input {
    height: 48px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 0 12px;
}

.detail-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.detail-services span {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--color-blue);
    font-weight: 800;
}

.cart-grid,
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.cart-table-wrap { overflow-x: auto; }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.cart-table th,
.cart-table td {
    padding: 18px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: middle;
}

.cart-table th {
    color: var(--color-muted);
    font-size: 13px;
    text-transform: uppercase;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.cart-product small {
    display: block;
    color: var(--color-muted);
}

.qty-form {
    display: flex;
    position: relative;
    gap: 8px;
    align-items: center;
}

.qty-form input {
    width: 72px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 8px;
}

.qty-form button {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    font-weight: 800;
}

.js-enabled .qty-form button {
    display: none;
}

.qty-form.is-updating::after {
    content: "Mise a jour...";
    color: var(--color-muted);
    font-size: 12px;
    white-space: nowrap;
}

.qty-form.is-updating input {
    opacity: 0.72;
    cursor: wait;
}

.text-button {
    border: 0;
    background: transparent;
    padding: 0;
    font-weight: 800;
}

.text-button.danger { color: #dc2626; }

.order-summary {
    align-self: start;
    padding: 22px;
}

.order-summary h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 900;
}

.summary-line,
.summary-total,
.checkout-items div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
}

.summary-total {
    border-bottom: 0;
    font-size: 20px;
}

.empty-state {
    padding: 42px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--color-line);
    text-align: center;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--color-line);
}

.checkout-steps span {
    padding: 14px;
    text-align: center;
    color: var(--color-muted);
    font-weight: 800;
}

.checkout-steps .active {
    color: #fff;
    background: var(--color-blue);
}

.checkout-card {
    padding: 24px;
    margin-bottom: 18px;
}

.checkout-card h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 900;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.customer-grid label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 700;
}

.customer-grid .wide { grid-column: 1 / -1; }

.customer-grid input,
.customer-grid select,
.customer-grid textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--color-ink);
    background: #fff;
}

.payment-error-panel {
    border-left-color: #f97316;
}

.payment-options {
    display: grid;
    gap: 12px;
}

.payment-options label {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #f8fafc;
}

.payment-options strong,
.payment-options small { display: block; }

.payment-options small,
.payment-note {
    color: var(--color-muted);
    font-size: 13px;
}

.checkout-items { margin-bottom: 10px; }
.checkout-items span { color: var(--color-muted); }

.payment-note {
    margin-top: 14px;
    text-align: center;
}

.success-panel {
    padding: 24px;
    border-left: 5px solid #22c55e;
}

.success-page {
    padding: 46px 0 64px;
    background:
        radial-gradient(circle at 18% 8%, rgba(34, 197, 94, 0.12), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(255, 107, 22, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--color-page) 100%);
}

.success-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 18px;
}

.success-hero__content,
.success-receipt,
.success-card,
.success-help,
.success-metrics div {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.success-hero__content {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 46px);
    background:
        linear-gradient(135deg, rgba(6, 43, 95, 0.96), rgba(11, 94, 215, 0.9)),
        var(--color-blue-dark);
    color: #fff;
}

.success-hero__content::after {
    content: "";
    position: absolute;
    right: -56px;
    top: -56px;
    width: 180px;
    height: 180px;
    border: 32px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.success-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #22c55e;
    color: #fff;
    box-shadow: 0 16px 30px rgba(34, 197, 94, 0.28);
}

.success-icon .icon {
    width: 28px;
    height: 28px;
}

.success-hero .eyebrow {
    color: #fed7aa;
}

.success-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    font-weight: 900;
}

.success-hero p {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 17px;
}

.success-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.success-actions .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-actions .icon {
    margin: 0;
}

.success-receipt {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 26px;
    background: #fff;
}

.success-receipt > span,
.success-receipt small,
.success-info-list span,
.success-metrics span {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.success-receipt > strong {
    color: var(--color-blue);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1;
    font-weight: 900;
}

.success-receipt div {
    display: grid;
    gap: 5px;
    padding-top: 14px;
    border-top: 1px solid var(--color-line);
}

.success-receipt b,
.success-info-list strong {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.success-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.success-metrics div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 18px;
    background: #fff;
}

.success-metrics .icon {
    grid-row: span 2;
    width: 26px;
    height: 26px;
    color: var(--color-orange);
}

.success-metrics strong {
    color: #081936;
    font-size: 18px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.success-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.success-main,
.success-side {
    display: grid;
    gap: 22px;
}

.success-card {
    padding: 24px;
    background: #fff;
}

.success-card__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.success-card__heading.compact {
    align-items: center;
}

.success-card__heading h2 {
    margin: 0;
    color: #081936;
    font-size: 22px;
    font-weight: 900;
}

.success-card__heading > span,
.success-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-blue-soft);
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.success-card__heading .icon {
    color: var(--color-orange);
}

.success-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.success-step {
    display: grid;
    gap: 10px;
    justify-items: center;
    min-height: 116px;
    padding: 16px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--color-muted);
    text-align: center;
}

.success-step span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dbe3ee;
    color: #fff;
}

.success-step .icon {
    width: 18px;
    height: 18px;
}

.success-step strong {
    font-size: 13px;
}

.success-step.done span {
    background: #22c55e;
}

.success-step.active {
    background: var(--color-blue-soft);
    color: var(--color-blue);
}

.success-step.active span {
    background: var(--color-blue);
}

.success-table-wrap {
    overflow-x: auto;
}

.success-table {
    width: 100%;
    border-collapse: collapse;
}

.success-table th,
.success-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: middle;
}

.success-table th {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.success-table td:not(:first-child),
.success-table th:not(:first-child) {
    text-align: right;
}

.success-table tfoot th,
.success-table tfoot td {
    border-bottom: 0;
    color: var(--color-blue);
    font-size: 18px;
}

.success-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-product img,
.success-product__fallback {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #f8fafc;
}

.success-product img {
    object-fit: contain;
    padding: 6px;
}

.success-product__fallback {
    display: grid;
    place-items: center;
    color: var(--color-blue);
}

.success-info-list {
    display: grid;
    gap: 0;
}

.success-info-list div {
    display: grid;
    gap: 5px;
    padding: 13px 0;
    border-top: 1px solid var(--color-line);
}

.success-info-list div:first-child {
    border-top: 0;
}

.success-help {
    padding: 22px;
    background: #fff4ed;
    color: #7c2d12;
}

.success-help .icon {
    width: 30px;
    height: 30px;
    color: var(--color-orange);
}

.success-help h2 {
    margin: 12px 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.success-help p {
    margin: 0 0 14px;
    color: #9a3412;
}

.success-help a {
    color: var(--color-orange-dark);
    font-weight: 900;
}

.orders-page {
    padding: 46px 0 64px;
    background:
        radial-gradient(circle at 18% 4%, rgba(11, 94, 215, 0.11), transparent 26%),
        radial-gradient(circle at 86% 2%, rgba(255, 107, 22, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--color-page) 100%);
}

.orders-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.94)),
        #fff;
    box-shadow: var(--shadow-soft);
}

.orders-hero h1 {
    margin: 0;
    color: #081936;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.03;
    font-weight: 900;
}

.orders-hero p {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 17px;
}

.orders-hero .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.orders-hero .icon,
.orders-action .icon {
    margin: 0;
}

.orders-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.orders-metrics div,
.orders-list-card,
.orders-empty {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.orders-metrics div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 18px;
}

.orders-metrics .icon {
    grid-row: span 2;
    width: 26px;
    height: 26px;
    color: var(--color-orange);
}

.orders-metrics span,
.orders-table small {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.orders-metrics span {
    text-transform: uppercase;
}

.orders-metrics strong {
    color: #081936;
    font-size: 20px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.orders-list-card {
    padding: 24px;
}

.orders-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.orders-list-heading h2 {
    margin: 0;
    color: #081936;
    font-size: 24px;
    font-weight: 900;
}

.orders-list-heading > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-blue-soft);
    color: var(--color-blue);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.orders-table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: middle;
}

.orders-table th {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.orders-table td {
    color: #0f172a;
}

.orders-table td > strong,
.orders-ref span {
    display: block;
    font-weight: 900;
}

.orders-table small {
    display: block;
    margin-top: 4px;
}

.orders-ref span {
    color: var(--color-blue);
    font-size: 18px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.order-status.active {
    background: var(--color-blue-soft);
    color: var(--color-blue);
}

.order-status.done {
    background: #e8f8ec;
    color: #138a36;
}

.order-status.danger {
    background: #fff1f2;
    color: #be123c;
}

.orders-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.orders-empty {
    display: grid;
    justify-items: center;
    padding: clamp(34px, 6vw, 58px);
    text-align: center;
}

.orders-empty__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--color-blue-soft);
    color: var(--color-blue);
}

.orders-empty__icon .icon {
    width: 34px;
    height: 34px;
}

.orders-empty h2 {
    margin: 0;
    color: #081936;
    font-size: 28px;
    font-weight: 900;
}

.orders-empty p {
    max-width: 420px;
    margin: 10px 0 22px;
    color: var(--color-muted);
}

.order-detail-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.order-detail-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
}

.order-detail-header p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.order-card {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.order-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.order-card-heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.order-card-heading span {
    color: var(--color-blue);
    font-weight: 800;
}

.cart-table-wrap.compact {
    box-shadow: none;
    border: 0;
}

.inline-empty {
    padding: 22px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--color-muted);
    text-align: center;
}

.order-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.order-step {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 14px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--color-muted);
    text-align: center;
}

.order-step span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dbe3ee;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.order-step strong {
    font-size: 13px;
}

.order-step.done span {
    background: #22c55e;
}

.order-step.active {
    background: var(--color-blue-soft);
    color: var(--color-blue);
}

.order-step.active span {
    background: var(--color-blue);
}

.summary-line.stacked {
    display: grid;
    gap: 4px;
}

.summary-line.stacked strong {
    overflow-wrap: anywhere;
}

.timeline { position: relative; }

.timeline-line {
    position: absolute;
    top: 20px;
    left: -50%;
    width: 100%;
    height: 4px;
    background: #ddd;
    z-index: 1;
}

.timeline-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    line-height: 40px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.timeline-circle.done { background: #28a745; }

.timeline-circle.active {
    background: #007bff;
    transform: scale(1.1);
}

.site-footer {
    margin-top: 30px;
    background: var(--color-blue-dark);
    color: #dbeafe;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
    padding: 42px 0;
}

.footer-brand .brand-name { color: #fff; }

.site-footer h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.site-footer a,
.site-footer p {
    display: block;
    margin: 8px 0;
    color: #dbeafe;
    font-size: 14px;
}

.footer-bottom {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #bfdbfe;
    font-size: 13px;
}

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.cookie-consent[hidden],
.cookie-modal[hidden] {
    display: none;
}

.cookie-consent p,
.cookie-option p {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 14px;
}

.cookie-consent__actions,
.cookie-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: end;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.46);
}

.cookie-modal__dialog {
    width: min(100%, 620px);
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.cookie-modal__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cookie-modal__header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
}

.cookie-modal__close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    color: var(--color-muted);
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--color-line);
}

.cookie-option input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--color-blue);
}

.auth-page {
    padding: 54px 0 62px;
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 107, 22, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, var(--color-page) 100%);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    gap: 22px;
    align-items: stretch;
}

.auth-shell--reverse {
    grid-template-columns: minmax(420px, 1.18fr) minmax(280px, 0.82fr);
}

.auth-panel,
.auth-card {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.auth-panel {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: clamp(28px, 4vw, 44px);
    background:
        linear-gradient(145deg, rgba(6, 43, 95, 0.94), rgba(11, 94, 215, 0.9)),
        linear-gradient(135deg, var(--color-blue-dark), var(--color-blue));
    color: #fff;
}

.auth-panel::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -58px;
    width: 180px;
    height: 180px;
    border: 34px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.auth-panel .eyebrow {
    color: #fed7aa;
}

.auth-panel h1,
.auth-panel h2 {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    font-weight: 900;
}

.auth-panel p {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 16px;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.auth-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-weight: 700;
}

.auth-benefits .icon {
    color: #fed7aa;
}

.auth-stat-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.auth-stat-grid div {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-stat-grid strong,
.auth-stat-grid span {
    display: block;
}

.auth-stat-grid strong {
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.auth-stat-grid span {
    margin-top: 8px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
}

.auth-card {
    padding: clamp(24px, 4vw, 38px);
    background: #fff;
}

.auth-card--wide {
    padding: clamp(24px, 3.4vw, 36px);
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff4ed;
    color: var(--color-orange-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-heading h1,
.auth-heading h2 {
    margin: 0;
    color: #081936;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
}

.auth-heading p {
    margin: 9px 0 0;
    color: var(--color-muted);
}

.auth-alert {
    border-radius: 8px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label,
.auth-field label,
.auth-check label {
    color: #334155;
    font-weight: 800;
}

.auth-form .form-control {
    min-height: 48px;
    border-color: var(--color-line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--color-ink);
    background: #fff;
}

.auth-form .form-control:focus {
    border-color: #8bbcff;
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.14);
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field--wide {
    grid-column: 1 / -1;
}

.auth-field ul,
.auth-check ul {
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
}

.auth-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    margin-top: 4px;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #f8fafc;
}

.auth-check .form-check-input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--color-blue);
}

.auth-check ul {
    grid-column: 1 / -1;
}

.auth-submit {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.auth-submit .icon {
    margin: 0;
}

.auth-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    font-weight: 700;
}

.auth-switch a {
    color: var(--color-blue);
    font-weight: 900;
}

.profile-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.profile-actions .btn {
    border-color: rgba(255, 255, 255, 0.46);
    color: #fff;
    font-weight: 900;
}

.profile-actions .btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.price-strike {
    display: block;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: line-through;
}

.price-promo,
.promo-line strong {
    color: var(--color-orange-dark);
}

.promo-form {
    display: grid;
    gap: 7px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
}

.promo-form label {
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.promo-form div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.promo-form input {
    min-height: 42px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 0 11px;
    font-weight: 800;
}

.promo-form button {
    border: 0;
    border-radius: 8px;
    background: var(--color-orange);
    color: #fff;
    padding: 0 12px;
    font-weight: 900;
}

.promo-message {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.promo-message.success {
    background: #ecfdf3;
    color: #15803d;
}

.promo-message.warning {
    background: #fff7ed;
    color: #c2410c;
}

.chat-page {
    padding: 46px 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 107, 22, 0.11), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, var(--color-page) 100%);
}

.chat-shell {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.chat-aside,
.chat-panel {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.chat-aside {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 14px;
    padding: 26px;
}

.chat-aside h1 {
    margin: 0;
    color: #081936;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
}

.chat-aside p {
    margin: 0;
    color: var(--color-muted);
}

.chat-help {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 8px;
    background: var(--color-blue-soft);
}

.chat-help strong {
    color: var(--color-blue);
}

.chat-help span {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.chat-panel {
    overflow: hidden;
}

.chat-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--color-line);
    background: #fff;
}

.chat-panel__head span,
.chat-meta time {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.chat-panel__head h2 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.chat-unread {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--color-orange-dark);
    font-size: 12px;
    font-weight: 900;
}

.chat-thread {
    display: grid;
    gap: 14px;
    min-height: 360px;
    max-height: 640px;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.chat-message {
    display: flex;
}

.chat-message.is-client {
    justify-content: flex-end;
}

.chat-message.is-admin {
    justify-content: flex-start;
}

.chat-bubble {
    width: fit-content;
    min-width: min(220px, 100%);
    max-width: min(620px, 88%);
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
}

.chat-message.is-client .chat-bubble {
    border-color: #bfdbfe;
    background: var(--color-blue);
    color: #fff;
}

.chat-message.is-client .chat-meta time,
.chat-message.is-client .chat-bubble p {
    color: #dbeafe;
}

.chat-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.chat-meta strong {
    font-weight: 900;
}

.chat-bubble p {
    margin: 0;
    color: #334155;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.chat-image {
    display: block;
    width: min(420px, 100%);
    margin-top: 10px;
    overflow: hidden;
    border-radius: 8px;
    background: #e2e8f0;
}

.chat-image img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.chat-empty {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 260px;
    color: var(--color-muted);
    text-align: center;
}

.chat-empty strong {
    color: #0f172a;
    font-size: 20px;
}

.chat-form {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--color-line);
    background: #fff;
}

.chat-form label {
    color: #334155;
    font-weight: 900;
}

.chat-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 13px 14px;
    outline: none;
}

.chat-form textarea:focus {
    border-color: #8bbcff;
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.1);
}

.chat-form__actions,
.chat-file {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chat-form__actions {
    justify-content: space-between;
}

.chat-file {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px dashed #b9d4ff;
    border-radius: 8px;
    background: var(--color-blue-soft);
    color: var(--color-blue);
    cursor: pointer;
}

.chat-file input {
    max-width: 220px;
    color: #334155;
    font-size: 13px;
}

@media (max-width: 991px) {
    .header-main,
    .hero-grid,
    .product-detail-grid,
    .cart-grid,
    .checkout-grid,
    .order-detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-actions,
    .main-nav { flex-wrap: wrap; }

    .header-main {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px 0;
    }

    .brand {
        justify-self: start;
    }

    .search-bar {
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 12px;
        white-space: nowrap;
    }

    .product-grid,
    .pack-grid,
    .category-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-grid {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
    }

    .shop-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        padding: 14px;
    }

    .auth-shell,
    .auth-shell--reverse,
    .chat-shell {
        grid-template-columns: 1fr;
    }

    .chat-aside {
        position: static;
    }

    .success-hero,
    .success-layout {
        grid-template-columns: 1fr;
    }

    .orders-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .success-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-box {
        display: none;
    }
}

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

    .filter-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .filter-box {
        display: block;
    }
}

@media (max-width: 900px) {
    .cart-table-wrap {
        overflow: visible;
    }

    .cart-table,
    .cart-table tbody {
        display: block;
        width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 14px;
        border: 1px solid var(--color-line);
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
    }

    .cart-table td {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
        min-width: 0;
        padding: 14px;
        border-right: 1px solid var(--color-line);
        border-bottom: 0;
    }

    .cart-table td:last-child {
        border-right: 0;
    }

    .cart-table td::before {
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .cart-table td[data-label="Produit"] {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }

    .cart-table td[data-label="Produit"]::before {
        display: none;
    }

    .cart-table td[data-label="Action"] {
        grid-column: 1 / -1;
        border-top: 1px solid var(--color-line);
        border-right: 0;
        padding-block: 12px;
    }

    .cart-table td[data-label="Action"]::before {
        display: none;
    }

    .cart-product {
        align-items: flex-start;
    }

    .cart-product img {
        width: 54px;
        height: 54px;
        flex: 0 0 auto;
    }

    .qty-form {
        justify-content: flex-start;
    }

    .qty-form input {
        width: 92px;
    }

    .text-button.danger {
        justify-self: end;
    }
}

@media (max-width: 575px) {
    .hero-copy h1 { font-size: 34px; }

    .site-header {
        position: static;
    }

    .cart-page h1 {
        font-size: 32px;
    }

    .order-summary {
        padding: 18px;
    }

    .cart-table tr {
        grid-template-columns: 1fr;
    }

    .cart-table td {
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }

    .cart-table td[data-label="Produit"],
    .cart-table td[data-label="Action"] {
        grid-column: auto;
    }

    .cart-table td[data-label="Action"] {
        border-top: 0;
    }

    .cart-table td[data-label="Action"]::before {
        display: block;
    }

    .product-grid,
    .shop-products,
    .pack-grid,
    .category-grid,
    .service-grid,
    .customer-grid,
    .detail-services {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .shop-heading,
    .results-bar {
        align-items: start;
        flex-direction: column;
    }

    .checkout-steps { grid-template-columns: 1fr; }
    .order-detail-header {
        align-items: start;
        flex-direction: column;
    }
    .order-timeline {
        grid-template-columns: 1fr;
    }
    .cookie-consent {
        grid-template-columns: 1fr;
    }
    .cookie-consent__actions,
    .cookie-modal__actions {
        justify-content: stretch;
    }
    .cookie-consent__actions .btn,
    .cookie-modal__actions .btn {
        flex: 1 1 auto;
    }
    .auth-page {
        padding: 28px 0 38px;
    }
    .ad-carousel-section {
        padding-top: 24px;
    }
    .ad-slide::after {
        background: linear-gradient(180deg, rgba(6, 43, 95, 0.2), rgba(6, 43, 95, 0.88));
    }
    .ad-slide__content {
        padding: 76px 20px 54px;
    }
    .ad-carousel__nav {
        top: 16px;
        width: 38px;
        height: 38px;
        transform: none;
    }
    .ad-carousel__nav.prev {
        left: 16px;
    }
    .ad-carousel__nav.next {
        right: 16px;
    }
    .ad-carousel__dots {
        right: 50%;
        bottom: 14px;
        transform: translateX(50%);
    }
    .auth-form-grid,
    .auth-stat-grid {
        grid-template-columns: 1fr;
    }
    .auth-benefits span {
        align-items: flex-start;
    }
    .search-bar,
    .shop-search {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        gap: 5px;
    }
    .search-leading-icon {
        margin-left: 7px;
    }
    .shop-search .search-submit {
        width: 40px;
        min-width: 40px;
        padding: 0;
        font-size: 0;
    }
    .shop-search .search-submit .icon {
        width: 18px;
        height: 18px;
    }
    .success-page {
        padding: 28px 0 40px;
    }
    .success-metrics,
    .success-timeline {
        grid-template-columns: 1fr;
    }
    .success-card,
    .success-receipt,
    .success-help {
        padding: 18px;
    }
    .success-card__heading {
        align-items: start;
        flex-direction: column;
    }
    .success-actions .btn {
        width: 100%;
    }
    .success-table,
    .success-table tbody,
    .success-table tfoot {
        display: block;
        width: 100%;
    }
    .success-table thead {
        display: none;
    }
    .success-table tr {
        display: grid;
        gap: 0;
        margin-bottom: 12px;
        border: 1px solid var(--color-line);
        border-radius: 8px;
        overflow: hidden;
    }
    .success-table td,
    .success-table th,
    .success-table td:not(:first-child),
    .success-table th:not(:first-child) {
        display: grid;
        grid-template-columns: 98px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 13px;
        border-bottom: 1px solid var(--color-line);
        text-align: left;
    }
    .success-table td::before {
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .success-table td[data-label="Produit"] {
        grid-template-columns: 1fr;
    }
    .success-table td[data-label="Produit"]::before {
        display: none;
    }
    .success-table tfoot tr {
        margin-bottom: 0;
    }
    .success-table tfoot th {
        display: none;
    }
    .success-table tfoot td {
        grid-template-columns: 1fr;
        color: var(--color-blue);
        font-size: 18px;
    }
    .success-table tfoot td::before {
        content: "Total commande";
        color: var(--color-muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .sf-pagination {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }
    .sf-pagination__summary {
        text-align: center;
    }
    .sf-pagination__controls {
        justify-content: center;
        gap: 6px;
    }
    .sf-pagination__page,
    .sf-pagination__arrow {
        min-width: 38px;
        height: 38px;
    }
    .orders-page {
        padding: 28px 0 40px;
    }
    .chat-page {
        padding: 28px 0 40px;
    }
    .chat-panel__head,
    .chat-form__actions {
        align-items: start;
        flex-direction: column;
    }
    .chat-panel__head .btn,
    .chat-form__actions .btn,
    .chat-file {
        width: 100%;
    }
    .chat-bubble {
        max-width: 96%;
    }
    .orders-hero,
    .orders-list-heading {
        align-items: start;
        flex-direction: column;
    }
    .orders-hero .btn {
        width: 100%;
    }
    .orders-metrics {
        grid-template-columns: 1fr;
    }
    .orders-list-card {
        padding: 18px;
    }
    .orders-table,
    .orders-table tbody {
        display: block;
        width: 100%;
    }
    .orders-table thead {
        display: none;
    }
    .orders-table tr {
        display: grid;
        margin-bottom: 14px;
        border: 1px solid var(--color-line);
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }
    .orders-table tbody tr:last-child {
        margin-bottom: 0;
    }
    .orders-table th,
    .orders-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 13px;
        border-bottom: 1px solid var(--color-line);
    }
    .orders-table td::before {
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .orders-table td[data-label="Action"] {
        border-bottom: 0;
    }
    .orders-table td[data-label="Action"] .btn {
        width: 100%;
    }
}
