/* ════════════════════════════════════════════════════════════════════
   NOSK8 — Commerce wrap (panier, checkout)
   Wrap léger autour des shortcodes WC, styling minimal pour cohérence DA.
   ════════════════════════════════════════════════════════════════════ */

.n8-commerce__hero { min-height: 26svh; min-height: 26vh; max-height: 260px; }

.n8-commerce__content {
    padding: 22px 0 60px;
    background: var(--n8a-paper);
}
@media (min-width: 760px) {
    .n8-commerce__content { padding: 44px 0 80px; }
}
.n8-commerce__wc {
    font-family: 'Inter', sans-serif;
    color: var(--n8a-navy);
    font-size: 15px;
    line-height: 1.55;
}

/* Restyle minimal des éléments WC pour matcher la DA NOSK8 */
.n8-commerce__wc table.shop_table,
.n8-commerce__wc .woocommerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    border: 1.5px solid var(--n8a-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--n8a-paper);
}
.n8-commerce__wc th,
.n8-commerce__wc td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--n8a-line);
    text-align: left;
    vertical-align: middle;
}
.n8-commerce__wc th {
    background: var(--n8a-cream);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--n8a-ink);
    text-transform: uppercase;
}
.n8-commerce__wc tr:last-child td { border-bottom: none; }
.n8-commerce__wc .product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--n8a-line);
}
.n8-commerce__wc .product-name a {
    color: var(--n8a-ink);
    font-weight: 600;
    text-decoration: none;
}
.n8-commerce__wc .product-name a:hover { color: var(--n8a-navy); }

/* Boutons NOSK8 (panier, checkout, retour) */
.n8-commerce__wc .button,
.n8-commerce__wc .wc-block-components-button,
.n8-commerce__wc input[type="submit"],
.n8-commerce__wc button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--n8a-ink) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: 'Bebas Neue', Impact, sans-serif !important;
    font-size: 15px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.n8-commerce__wc .button:hover,
.n8-commerce__wc .wc-block-components-button:hover,
.n8-commerce__wc input[type="submit"]:hover,
.n8-commerce__wc button[type="submit"]:hover {
    background: var(--n8a-navy) !important;
    transform: translateY(-2px);
}
.n8-commerce__wc .button.alt,
.n8-commerce__wc .checkout-button {
    background: var(--n8a-navy) !important;
}
.n8-commerce__wc .button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Form inputs */
.n8-commerce__wc input[type="text"],
.n8-commerce__wc input[type="email"],
.n8-commerce__wc input[type="tel"],
.n8-commerce__wc input[type="password"],
.n8-commerce__wc input[type="number"],
.n8-commerce__wc select,
.n8-commerce__wc textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--n8a-line);
    border-radius: 8px;
    background: var(--n8a-paper);
    color: var(--n8a-ink);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.n8-commerce__wc input:focus,
.n8-commerce__wc select:focus,
.n8-commerce__wc textarea:focus {
    outline: none;
    border-color: var(--n8a-navy);
    box-shadow: 0 0 0 3px rgba(26,39,68,0.10);
}
.n8-commerce__wc label {
    display: inline-block;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--n8a-navy);
}

/* Totaux & coupon */
.n8-commerce__wc .cart-collaterals,
.n8-commerce__wc .cart_totals {
    margin: 24px 0;
    padding: 24px;
    border: 1.5px solid var(--n8a-line);
    border-radius: 12px;
    background: var(--n8a-cream);
}
.n8-commerce__wc .cart_totals h2,
.n8-commerce__wc .woocommerce-billing-fields h3,
.n8-commerce__wc h3#order_review_heading {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: var(--n8a-ink);
    margin: 0 0 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.n8-commerce__wc .order-total .woocommerce-Price-amount {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 22px;
    color: var(--n8a-ink);
}

/* Messages WC */
.n8-commerce__wc .woocommerce-message,
.n8-commerce__wc .woocommerce-info {
    padding: 14px 18px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
    margin-bottom: 18px;
    font-size: 14px;
}
.n8-commerce__wc .woocommerce-error {
    padding: 14px 18px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
    margin-bottom: 18px;
    font-size: 14px;
}

/* Coupon */
.n8-commerce__wc .coupon {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}
.n8-commerce__wc .coupon input[type="text"] { max-width: 220px; }

/* Vide */
.n8-commerce__wc .cart-empty,
.n8-commerce__wc .woocommerce-info {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
}

/* ── Chantier conversion (David 2026-07-22) : sur MOBILE, panier et checkout
   vont à l'essentiel — le hero photo consommait ~35% du premier écran AVANT
   le formulaire. Bande titre compacte, photo masquée : l'acheteur voit ses
   champs immédiatement (doctrine : parcours le plus court, friction = ennemi). */
@media (max-width: 700px) {
    .n8-commerce .n8-about__hero { min-height: 0; padding: 18px 0 14px; }
    .n8-commerce .n8-about__hero-media { display: none; }
    .n8-commerce .n8-about__hero-inner h1 { font-size: 26px; }
    .n8-commerce .n8-about__hero-inner p:not(.n8-about__eyebrow) { display: none; }
}
