/* ============================================================
   BOUTIQUE — DESIGN SYSTEM
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    /* Brand colors injected by foh.blade.php as CSS custom properties */
    --brand-bg: #1a1a1a;
    --brand-link: #ffffff;
    --brand-hover: #cccccc;

    /* Neutrals */
    --cs-white: #ffffff;
    --cs-gray-50: #f9fafb;
    --cs-gray-100: #f3f4f6;
    --cs-gray-200: #e5e7eb;
    --cs-gray-300: #d1d5db;
    --cs-gray-400: #9ca3af;
    --cs-gray-500: #6b7280;
    --cs-gray-700: #374151;
    --cs-gray-800: #1f2937;
    --cs-gray-900: #111827;

    /* Semantic */
    --cs-success-bg: #ecfdf5;
    --cs-success-fg: #059669;
    --cs-danger: #dc2626;

    /* Typography */
    --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.05);
    --shadow-hover: 0 12px 32px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06);

    /* Transitions */
    --t-fast: 0.15s cubic-bezier(.4,0,.2,1);
    --t-base: 0.25s cubic-bezier(.4,0,.2,1);
    --t-slow: 0.4s cubic-bezier(.4,0,.2,1);

    /* Layout */
    --max-w: 1100px;
    --nav-h: 72px;
}

/* ============================================================
   BASE
   ============================================================ */

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cs-gray-900);
    background: var(--cs-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--t-fast);
}

img { max-width: 100%; display: block; }

/* ============================================================
   LOADING MASK
   ============================================================ */

#mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255,255,255,.85) url("/assets/graphics/wait.gif") center / 72px no-repeat;
}

/* ============================================================
   NAVIGATION — TOP BAR
   ============================================================ */

.top {
    background-color: var(--brand-bg);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.menu-top {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.menu-top a {
    color: var(--brand-link);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .025em;
    transition: background var(--t-fast);
}

.menu-top a:hover {
    background: rgba(255,255,255,.12);
    color: var(--brand-hover);
}

.menu-top-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-logo {
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.nav-logo:hover { background: transparent !important; opacity: .85; }

.lang-btn {
    border: 1px solid rgba(255,255,255,.28) !important;
    border-radius: var(--radius-full) !important;
    padding: 4px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: rgba(255,255,255,.18) !important;
    border-color: rgba(255,255,255,.55) !important;
}

/* ============================================================
   NAVIGATION — SUB BAR
   ============================================================ */

.sub-menu {
    background: var(--cs-white);
    border-bottom: 1px solid var(--cs-gray-200);
    max-width: 100%;
}

.sub-menu-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.cadre {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

.main {
    min-height: 68vh;
    padding: 48px 0 64px;
}

/* ============================================================
   PAGE TITLES
   ============================================================ */

.page-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--cs-gray-900);
    margin: 0 0 8px;
}

/* ============================================================
   CHECKOUT STEP INDICATOR
   ============================================================ */

.checkout-steps {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.checkout-steps::-webkit-scrollbar { display: none; }

.cs-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cs-step__num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--cs-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-gray-400);
    background: var(--cs-white);
    transition: all var(--t-base);
    flex-shrink: 0;
}

.cs-step__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--cs-gray-400);
    white-space: nowrap;
}

.cs-step--done .cs-step__num {
    border-color: var(--cs-gray-800);
    background: var(--cs-gray-800);
    color: white;
}

.cs-step--done .cs-step__num::before { content: '✓'; }
.cs-step--done .cs-step__num > span { display: none; }

.cs-step--done .cs-step__label { color: var(--cs-gray-700); }

a.cs-step--done { text-decoration: none; cursor: pointer; }
a.cs-step--done:hover .cs-step__num { opacity: .7; }
a.cs-step--done:hover .cs-step__label { color: var(--cs-gray-900); }

.cs-step--active .cs-step__num {
    border-color: var(--brand-bg);
    background: var(--brand-bg);
    color: var(--brand-link);
}

.cs-step--active .cs-step__label {
    color: var(--cs-gray-900);
    font-weight: 700;
}

.cs-divider {
    width: 36px;
    height: 2px;
    background: var(--cs-gray-200);
    flex-shrink: 0;
    margin: 0 4px;
    border-radius: 2px;
}

.cs-divider--done { background: var(--cs-gray-700); }

/* ============================================================
   CARDS
   ============================================================ */

div.card {
    background: var(--cs-white);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

div.card-body {
    padding: 0;
    margin: 0;
}

div.card-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--cs-gray-900);
    letter-spacing: -.02em;
    margin-bottom: 24px;
}

div.card-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--cs-gray-900);
    margin: 20px 0 8px;
}

div.card-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cs-gray-200);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

div.modal-body { padding: 16px; }

/* ============================================================
   PRODUCTS GRID (HOME)
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 860px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 520px) {
    .products-grid { grid-template-columns: 1fr; gap: 14px; }
}

.product-card {
    background: var(--cs-white);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-base), transform var(--t-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-card__img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cs-gray-100);
    flex-shrink: 0;
}

.product-card__img {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.product-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-weight: 700;
    font-size: 15px;
    color: var(--cs-gray-900);
    margin: 0 0 14px;
    line-height: 1.35;
}

.product-card__select { margin-top: auto; }

/* Variant select pill within cards */
.product-card .form-select {
    font-size: 13px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--cs-gray-200);
    padding: 8px 12px;
    color: var(--cs-gray-900);
    background-color: var(--cs-gray-50);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color var(--t-fast);
}

.product-card .form-select:focus {
    border-color: var(--brand-bg);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--cs-gray-500);
    font-size: 15px;
}

/* Cart button bar on home */
.store-cart-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--cs-gray-200);
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */

.product-detail-form { }

.product {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .product { grid-template-columns: 1fr; gap: 24px; }
}

.prod_img {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-md);
    border: 1px solid var(--cs-gray-200);
    background-color: var(--cs-gray-100);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .prod_img { max-width: 100%; aspect-ratio: 4/3; }
}

.content {
    padding: 0;
    text-align: left;
}

.content h4 {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cs-gray-200);
    letter-spacing: -.02em;
    color: var(--cs-gray-900);
    line-height: 1.25;
}

.product-description {
    color: var(--cs-gray-700);
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

.product-policy {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--cs-gray-50);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--cs-gray-700);
    line-height: 1.6;
}

.product-policy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--cs-gray-900);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.product-price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px solid var(--cs-gray-200);
}

.product-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--cs-gray-900);
    letter-spacing: -.02em;
}

/* Bundle section */
.bundle-block {
    margin-top: 28px;
    background: var(--cs-gray-50);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.bundle-block__header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--cs-gray-200);
}

.bundle-block__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--cs-gray-700);
    margin: 0;
}

.bundle-block__instructions {
    font-size: 13px;
    color: var(--cs-gray-500);
    margin: 4px 0 0;
}

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

.bundle-table th {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--cs-gray-500);
    background: transparent;
    text-align: left;
    border-bottom: 1px solid var(--cs-gray-200);
}

.bundle-table th:last-child { text-align: right; }

.bundle-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--cs-gray-100);
    vertical-align: middle;
    font-size: 14px;
}

.bundle-table tr:last-child td { border-bottom: none; }

.bundle-table td:last-child { text-align: right; font-weight: 600; }

/* Product list on home (fallback .prod_line) */
.prod_line {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    padding: 20px 0;
    align-items: start;
}

.prod_line + .prod_line { border-top: 1px solid var(--cs-gray-200); }

.prod_thumb {
    width: 96px;
    height: 96px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-sm);
    background-color: var(--cs-gray-100);
    border: 1px solid var(--cs-gray-200);
    flex-shrink: 0;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--cs-gray-800);
    margin-bottom: 6px;
    display: block;
}

.form-control,
.form-select {
    border: 1.5px solid var(--cs-gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--cs-gray-900);
    background: var(--cs-white);
    width: 100%;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-bg);
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
    outline: none;
}

.form-control::placeholder { color: var(--cs-gray-400); }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Date / time pickers — keep jQuery UI */
.ui-datepicker { font-size: 13px; border-radius: var(--radius-sm); }

textarea.form-control { min-height: 100px; resize: vertical; line-height: 1.6; }

.form-check-input:checked {
    background-color: var(--brand-bg);
    border-color: var(--brand-bg);
}

.form-check-input:focus { box-shadow: 0 0 0 3px rgba(0,0,0,.08); }

.form-check-label { font-size: 14px; color: var(--cs-gray-800); }

span.required {
    color: var(--cs-gray-400);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-left: 6px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: var(--radius-sm);
    transition: all var(--t-fast);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--brand-bg); outline-offset: 2px; }

.btn-outline-dark {
    border: 1.5px solid var(--cs-gray-800);
    color: var(--cs-gray-900);
    background: transparent;
    padding: 8px 18px;
    font-size: 14px;
}

.btn-outline-dark:hover {
    background: var(--cs-gray-900);
    color: white;
    border-color: var(--cs-gray-900);
}

.btn-sm {
    font-size: 13px;
    padding: 6px 14px;
}

/* Primary brand button */
.btn-brand {
    background: var(--brand-bg);
    color: var(--brand-link);
    border: none;
    padding: 11px 26px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-fast);
}

.btn-brand:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.btn-brand:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   CART TABLE
   ============================================================ */

.cart-wrap { background: var(--cs-white); border: 1px solid var(--cs-gray-200); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cart-table th {
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cs-gray-500);
    border-bottom: 1px solid var(--cs-gray-200);
    text-align: left;
    background: var(--cs-gray-50);
}

.cart-table th:first-child { width: 100%; }
.cart-table th:last-child { text-align: right; white-space: nowrap; width: 1%; }

.cart-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--cs-gray-100);
    vertical-align: top;
}

.cart-table tr:last-child td { border-bottom: none; }

.cart-table td:last-child { text-align: right; white-space: nowrap; width: 1%; }

.cart-item__name { font-weight: 700; color: var(--cs-gray-900); font-size: 15px; }
.cart-item__athlete { color: var(--cs-danger); font-size: 13px; font-weight: 600; margin-top: 3px; }
.cart-item__variant { color: var(--cs-gray-500); font-size: 13px; margin-top: 3px; }
.cart-item__desc { color: var(--cs-gray-500); font-size: 13px; margin-top: 8px; line-height: 1.55; }

.cart-summary {
    padding: 20px;
    border-top: 1px solid var(--cs-gray-200);
    background: var(--cs-gray-50);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
    color: var(--cs-gray-600, #4b5563);
}

.cart-summary__row--total {
    font-size: 18px;
    font-weight: 800;
    color: var(--cs-gray-900);
    padding-top: 14px;
    margin-top: 6px;
    border-top: 2px solid var(--cs-gray-200);
}

.cart-summary__tax { font-size: 12px; color: var(--cs-gray-400); margin-left: 4px; }

/* ============================================================
   CHECKOUT FORM
   ============================================================ */

.checkout-card {
    background: var(--cs-white);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   PAYMENT PAGE
   ============================================================ */

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .payment-layout { grid-template-columns: 1fr; }
    .order-summary-card { order: -1; }
}

.order-summary-card {
    background: var(--cs-gray-50);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--radius-md);
    padding: 22px;
}

.order-summary-card h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--cs-gray-500);
    margin: 0 0 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 14px;
    color: var(--cs-gray-800);
    border-bottom: 1px solid var(--cs-gray-200);
}

.summary-item:last-of-type { border-bottom: none; }

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--cs-gray-200);
    font-weight: 800;
    font-size: 18px;
    color: var(--cs-gray-900);
}

.payment-card {
    background: var(--cs-white);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.payment-buyer {
    background: var(--cs-gray-50);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    color: var(--cs-gray-700);
    line-height: 1.7;
    margin-bottom: 24px;
}

.payment-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: -.01em;
}

#card-container { margin: 20px 0; min-height: 90px; }

#card-button {
    width: 100%;
    background: var(--brand-bg);
    color: var(--brand-link);
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--t-fast);
    letter-spacing: .01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#card-button:hover:not(:disabled) {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

#card-button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   SOLD / CONFIRMATION
   ============================================================ */

.success-page {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--cs-success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 36px;
    color: var(--cs-success-fg);
    box-shadow: 0 0 0 8px rgba(5,150,105,.08);
}

.success-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    color: var(--cs-gray-900);
}

.success-message {
    font-size: 15px;
    color: var(--cs-gray-600, #4b5563);
    line-height: 1.7;
    margin: 0 0 32px;
}

.success-message strong { color: var(--cs-gray-900); }

/* ============================================================
   ACTION BARS
   ============================================================ */

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.action-bar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */

.flash-message {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

.flash-message .alert,
.flash-errors {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    padding: 14px 18px;
    margin: 16px 0;
}

.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-info    { background: #eff6ff; color: #1e40af; }

/* ============================================================
   UTILITIES
   ============================================================ */

.red { color: var(--cs-danger); }
.grey { color: var(--cs-gray-400); }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: #0c0c0c;
    text-align: center;
    padding: 45px 24px 38px;
    margin-top: 80px;
}

.footer-logo { margin-bottom: 24px; }
.footer-logo img { margin: 0 auto; opacity: .75; transition: opacity var(--t-fast); }
.footer-logo img:hover { opacity: 1; }

.footer-terms {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 20px 0 14px;
}

.footer-terms a {
    color: rgba(255,255,255,.38);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    transition: color var(--t-fast);
}

.footer-terms a:hover { color: rgba(255,255,255,.75); }

.copyright {
    color: rgba(255,255,255,.22);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 640px) {
    :root { --nav-h: 60px; }

    .cadre { padding: 0 16px; }
    .main { padding: 28px 0 48px; }
    .menu-top { padding: 0 16px; }
    .sub-menu-inner { padding: 8px 16px; }
    .flash-message { padding: 0 16px; }

    div.card { padding: 18px; }
    .checkout-card { padding: 20px; }
    .payment-card { padding: 20px; }

    .product { grid-template-columns: 1fr; gap: 20px; }

    .checkout-steps .cs-step__label { display: none; }
    .checkout-steps .cs-step--active .cs-step__label { display: block; }

    .action-bar { flex-direction: column; align-items: stretch; }
    .action-bar-right { justify-content: flex-end; }

    .cart-table th, .cart-table td { padding: 12px 14px; }
}
