/* ==========================================================================
   My Account — Horizon dashboard style matching mockup
   ========================================================================== */

:root {
    --hz-dashboard-blue: var(--hz-primary, #1b5b75);
    --hz-dashboard-blue-dark: color-mix(in srgb, var(--hz-primary, #1b5b75) 82%, #000 18%);
    --hz-dashboard-blue-hover: color-mix(in srgb, var(--hz-primary, #1b5b75) 90%, #000 10%);
    --hz-dashboard-blue-light: color-mix(in srgb, var(--hz-primary, #1b5b75) 12%, #ffffff 88%);
    --hz-dashboard-bg: #f4f7f6;
    --hz-dashboard-card: #ffffff;
    --hz-dashboard-text: #2d3748;
    --hz-dashboard-muted: #718096;
    --hz-dashboard-border: #e2e8f0;
    --hz-dashboard-radius: 10px;
}

.hz-myaccount-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 0 40px;
}

.hz-myaccount-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: flex-start;
    margin: 0;
}

/* ---- Sidebar ---- */

.hz-myaccount-sidebar {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hz-myaccount-sidebar>* {
    width: 100%;
}

.hz-account-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--hz-dashboard-blue), var(--hz-dashboard-blue-dark));
    color: var(--hz-primary-foreground, #fff);
    border-radius: var(--hz-dashboard-radius);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--hz-dashboard-blue) 22%, transparent);
}

.hz-account-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--hz-primary-foreground, #fff);
    font-weight: 700;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.hz-account-profile-info {
    min-width: 0;
}

.hz-account-profile-info h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hz-primary-foreground, #fff);
}

.hz-account-profile-info p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    word-break: break-word;
}

.woocommerce-MyAccount-navigation {
    background: var(--hz-dashboard-card);
    border: 1px solid var(--hz-dashboard-border);
    border-radius: var(--hz-dashboard-radius);
    padding: 16px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--hz-dashboard-blue) 8%, transparent);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-MyAccount-navigation li,
.woocommerce-MyAccount-navigation li+li {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--hz-dashboard-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
    background-color: var(--hz-dashboard-blue-light);
    color: var(--hz-dashboard-blue);
}

.woocommerce-MyAccount-navigation li.is-active a {
    background-color: var(--hz-dashboard-blue);
    color: var(--hz-primary-foreground, #fff);
    font-weight: 600;
}

.woocommerce-MyAccount-navigation li:last-child a {
    color: #e53e3e;
    border-top: 1px solid var(--hz-dashboard-border);
    margin-top: 18px !important;
    padding-top: 16px;
}

.woocommerce-MyAccount-navigation li:last-child a:hover {
    background-color: #fff5f5;
    color: #d93025;
}

/* ---- Content area ---- */

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    background: var(--hz-dashboard-card);
    border: 1px solid var(--hz-dashboard-border);
    border-radius: var(--hz-dashboard-radius);
    padding: 24px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--hz-dashboard-blue) 8%, transparent);
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: var(--hz-dashboard-text);
    margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--hz-dashboard-blue);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content button.button,
.woocommerce-account .woocommerce-MyAccount-content input.button,
.woocommerce-account .woocommerce-MyAccount-content .button {
    background-color: var(--hz-dashboard-blue);
    color: var(--hz-primary-foreground, #fff);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content button.button:hover,
.woocommerce-account .woocommerce-MyAccount-content input.button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover {
    background-color: var(--hz-dashboard-blue-hover);
    color: var(--hz-primary-foreground, #fff);
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
    background: var(--hz-dashboard-blue-light);
    color: var(--hz-dashboard-blue);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details__title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title {
    color: var(--hz-dashboard-blue);
}

.woocommerce-account .woocommerce-MyAccount-content mark.order-status {
    background: var(--hz-dashboard-blue-light);
    color: var(--hz-dashboard-blue);
    border-radius: 20px;
    padding: 4px 12px;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
    border: 1px solid var(--hz-dashboard-border);
    border-radius: 8px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row input.input-text,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row select,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row textarea {
    border: 1px solid var(--hz-dashboard-border);
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--hz-dashboard-text);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row input.input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row select:focus,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-row textarea:focus {
    border-color: var(--hz-dashboard-blue);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px var(--hz-dashboard-blue-light);
}

/* ---- Form and card polish like mockup ---- */

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-account .woocommerce-MyAccount-content .addresses .u-column,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-orders,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    background: transparent;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
    border-radius: 8px;
}

/* ---- Dashboard welcome intro ---- */

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
    margin: 0;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, var(--hz-dashboard-blue-light), #ffffff);
    border: 1px solid var(--hz-dashboard-border);
    border-bottom: none;
    border-radius: var(--hz-dashboard-radius) var(--hz-dashboard-radius) 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--hz-dashboard-text);
    line-height: 1.5;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type strong {
    color: var(--hz-dashboard-blue);
    font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type a {
    color: var(--hz-dashboard-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type a:hover {
    color: #e53e3e;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type + p {
    margin: 0 0 24px;
    padding: 0 24px 20px;
    background: linear-gradient(135deg, var(--hz-dashboard-blue-light), #ffffff);
    border: 1px solid var(--hz-dashboard-border);
    border-top: none;
    border-radius: 0 0 var(--hz-dashboard-radius) var(--hz-dashboard-radius);
    font-size: 0.9rem;
    color: var(--hz-dashboard-muted);
    line-height: 1.6;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type + p a {
    color: var(--hz-dashboard-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--hz-dashboard-blue) 35%, transparent);
    transition: border-color 180ms ease;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type + p a:hover {
    border-color: var(--hz-dashboard-blue);
}

@media (max-width: 575.98px) {
    .woocommerce-account .woocommerce-MyAccount-content > p:first-of-type,
    .woocommerce-account .woocommerce-MyAccount-content > p:first-of-type + p {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 991.98px) {
    .hz-myaccount-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hz-myaccount-sidebar {
        width: 100%;
    }
}

/* ==========================================
   WooCommerce shared storefront polish
   ========================================== */

body.woocommerce-account .woocommerce,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-account .woocommerce-login,
body.woocommerce-account .woocommerce-register,
body.woocommerce-account .woocommerce-lost-password {
    max-width: 1180px;
    margin: 0 auto;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .select2-container .select2-selection,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce button[name="apply_coupon"],
.woocommerce input[name="update_cart"] {
    border-radius: 0.75rem;
    transition: all 180ms ease;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .select2-container .select2-selection {
    border: 1px solid var(--hz-border, #d7e0e4);
    background: #fff;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    color: var(--hz-foreground, #1f2a2e);
    box-shadow: none;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row .select2-container .select2-selection:focus {
    border-color: var(--hz-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hz-primary) 18%, transparent);
    outline: none;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce #respond input#submit,
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce button[name="apply_coupon"],
.woocommerce input[name="update_cart"] {
    background: var(--hz-primary);
    color: var(--hz-primary-foreground, #fff);
    border: none;
    font-weight: 700;
    padding: 0.82rem 1.4rem;
    line-height: 1.2;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--hz-primary) 18%, transparent);
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce button[name="apply_coupon"]:hover,
.woocommerce input[name="update_cart"]:hover {
    background: color-mix(in srgb, var(--hz-primary) 88%, black);
    color: var(--hz-primary-foreground, #fff);
}

.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce form.woocommerce-ResetPassword,
.woocommerce form.checkout_coupon,
.woocommerce form.checkout {
    background: var(--hz-card, #fff);
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 1rem;
    padding: clamp(1.2rem, 2vw, 2rem);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce form.woocommerce-ResetPassword {
    max-width: 560px;
    margin: 2rem auto;
}

.woocommerce .woocommerce-form-login .form-row,
.woocommerce .woocommerce-form-register .form-row,
.woocommerce .woocommerce-ResetPassword .form-row {
    margin-bottom: 1rem;
}

.woocommerce-form-login .woocommerce-LostPassword,
.woocommerce-form-login .lost_password {
    margin-top: 0.75rem;
}

.woocommerce-form-login::before,
.woocommerce-form-register::before {
    content: '';
    display: block;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hz-primary) 12%, transparent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231b5b75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.woocommerce-account .woocommerce-form-login .form-row label,
.woocommerce-account .woocommerce-form-register .form-row label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--hz-foreground, #1f2a2e);
    margin-bottom: 0.35rem;
    display: block;
}

.woocommerce-form-login #username,
.woocommerce-form-login #password,
.woocommerce-form-register #reg_username,
.woocommerce-form-register #reg_email,
.woocommerce-form-register #reg_password {
    background-repeat: no-repeat;
    background-position: 0.9rem center;
    background-size: 1.1rem;
    padding-left: 2.75rem !important;
}

.woocommerce-form-login #username,
.woocommerce-form-register #reg_username {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2366787f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.woocommerce-form-login #password,
.woocommerce-form-register #reg_password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2366787f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.woocommerce-form-register #reg_email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2366787f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.woocommerce .woocommerce-form-login__submit,
.woocommerce .woocommerce-form-register__submit,
.woocommerce button[name="login"],
.woocommerce button[name="register"] {
    width: auto;
    min-width: 170px;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout .checkout,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-page .cart_totals {
    background: var(--hz-card, #fff);
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.woocommerce-cart table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.woocommerce-cart table.shop_table thead th {
    background: color-mix(in srgb, var(--hz-primary) 8%, #fff);
    color: var(--hz-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woocommerce-cart table.shop_table td,
.woocommerce-cart table.shop_table th {
    padding: 1rem 0.9rem;
    border-bottom: 1px solid var(--hz-border, #d7e0e4);
}

.woocommerce-cart .product-name a,
.woocommerce-cart .product-subtotal,
.woocommerce-cart .cart-subtotal,
.woocommerce-cart .order-total {
    color: var(--hz-foreground, #1f2a2e);
}

.woocommerce-cart .cart_totals {
    padding: 1.25rem;
}

.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 1.2rem;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.25rem;
    border-radius: 0.8rem;
    font-size: 1rem;
}

.woocommerce-checkout .checkout {
    padding: clamp(1.2rem, 2vw, 2rem);
}

.woocommerce-checkout .checkout h3,
.woocommerce-checkout .checkout .col-12 h3,
.woocommerce-checkout .checkout .form-row label,
.woocommerce-checkout .checkout .shop_table .product-name,
.woocommerce-checkout .checkout .shop_table .product-total,
.woocommerce-cart .cart-collaterals h2,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: var(--hz-foreground, #1f2a2e);
}

.woocommerce table.shop_table td {
    color: var(--hz-foreground, #1f2a2e);
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    border-left: 4px solid var(--hz-primary);
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--hz-primary) 8%, #fff);
    color: var(--hz-foreground, #1f2a2e);
}

.woocommerce-cart .coupon {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.woocommerce-cart .coupon .input-text {
    min-width: 180px;
}

.woocommerce .quantity .qty {
    min-width: 60px;
    min-height: 40px;
    border-radius: 0.6rem;
    border: 1px solid var(--hz-border, #d7e0e4);
    padding: 0.5rem 0.7rem;
}

.woocommerce nav.woocommerce-pagination ul {
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 0.5rem;
    overflow: hidden;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 2.5rem;
    min-height: 2.5rem;
    line-height: 2.5rem;
    padding: 0 0.7rem;
    color: var(--hz-foreground, #1f2a2e);
}

.woocommerce nav.woocommerce-pagination ul li .current {
    background: var(--hz-primary);
    color: var(--hz-primary-foreground, #fff);
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content {
    padding: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .hz-myaccount-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hz-myaccount-sidebar {
        width: 100%;
    }

    .woocommerce-cart table.shop_table,
    .woocommerce-cart .cart_totals,
    .woocommerce-checkout .checkout,
    .woocommerce-account .woocommerce-MyAccount-content {
        overflow-x: hidden;
    }
}

/* ==========================================
   Cart & checkout — deeper polish
   ========================================== */

.woocommerce-cart .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, #e53e3e 10%, transparent);
    color: #e53e3e !important;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.woocommerce-cart .product-remove a.remove:hover {
    background: #e53e3e;
    color: #fff !important;
}

.woocommerce-cart .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--hz-border, #d7e0e4);
}

.woocommerce-cart .product-name {
    font-weight: 600;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hz-foreground, #1f2a2e);
    margin-top: 0;
}

.woocommerce-cart .cart_totals table.shop_table th {
    font-weight: 500;
    color: var(--hz-muted, #66787f);
}

.woocommerce-cart .cart_totals table.shop_table .order-total th,
.woocommerce-cart .cart_totals table.shop_table .order-total td {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hz-primary);
    border-bottom: none;
    border-top: 1px solid var(--hz-border, #d7e0e4);
}

.woocommerce-checkout .checkout .col2-set .col-1,
.woocommerce-checkout .checkout .col2-set .col-2 {
    padding: 0 0.5rem;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hz-foreground, #1f2a2e);
}

.woocommerce-checkout table.shop_table {
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 0.75rem;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-checkout table.shop_table thead th {
    background: color-mix(in srgb, var(--hz-primary) 8%, #fff);
    color: var(--hz-primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woocommerce-checkout .payment_methods {
    border-top: 1px solid var(--hz-border, #d7e0e4);
    padding-top: 1rem;
    margin-top: 1rem;
}

.woocommerce-checkout .payment_methods li {
    border-radius: 0.75rem;
    border: 1px solid var(--hz-border, #d7e0e4);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.woocommerce-checkout .payment_methods li.payment_method_bacs input,
.woocommerce-checkout .payment_methods li input[type="radio"] {
    accent-color: var(--hz-primary);
}

.woocommerce-checkout #place_order {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .woocommerce-cart .product-thumbnail img {
        width: 56px;
        height: 56px;
    }
}

/* ==========================================
   My Account — edit address
   ========================================== */

.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--hz-dashboard-border);
}

.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.25rem;
}

.woocommerce-address-fields__field-wrapper .form-row {
    grid-column: span 2;
    margin-bottom: 1rem;
}

.woocommerce-address-fields__field-wrapper .form-row-first,
.woocommerce-address-fields__field-wrapper .form-row-last {
    grid-column: span 1;
    width: 100%;
    float: none;
}

.woocommerce-address-fields__field-wrapper .form-row label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--hz-dashboard-text);
    margin-bottom: 0.35rem;
    display: block;
}

.woocommerce-address-fields__field-wrapper .form-row label .required {
    color: #e53e3e;
    text-decoration: none;
}

.woocommerce-address-fields__field-wrapper .select2-container {
    width: 100% !important;
}

.woocommerce-address-fields__field-wrapper .select2-container .select2-selection {
    min-height: 46px;
    display: flex;
    align-items: center;
}

.woocommerce-EditAddress p:last-child {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
    width: 100%;
    margin: 0;
    padding: 1.25rem;
    border: 1px solid var(--hz-dashboard-border);
    border-radius: var(--hz-dashboard-radius);
    background: #f8fafc;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--hz-dashboard-blue-light);
    color: var(--hz-dashboard-blue);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 180ms ease, color 180ms ease;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
    background: var(--hz-dashboard-blue);
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
    font-style: normal;
    color: var(--hz-dashboard-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses.col2-set.addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .woocommerce-address-fields__field-wrapper .form-row-first,
    .woocommerce-address-fields__field-wrapper .form-row-last {
        grid-column: span 1;
    }
}

@media (max-width: 575.98px) {
    .hz-myaccount-wrapper {
        padding-top: 16px;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 18px 16px;
    }

    .woocommerce-MyAccount-navigation {
        padding: 12px;
    }

    .woocommerce form.woocommerce-form-login,
    .woocommerce form.woocommerce-form-register,
    .woocommerce form.woocommerce-ResetPassword,
    .woocommerce form.checkout {
        padding: 1rem;
    }

    .woocommerce-cart .coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-cart .coupon .button,
    .woocommerce-cart .coupon .input-text {
        width: 100%;
    }
}

/* ==========================================================================
   Cart & Checkout — WooCommerce Blocks (page /panier, /commander)
   Redesign: centered in .hz-container width, card-based layout
   ========================================================================== */

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
    --wc-blue: var(--hz-primary, #1b5b75);
}

/* Center pages on the same width as the rest of the site (.hz-container),
   overriding the wider "alignwide" block width. */
.wp-block-woocommerce-cart.alignwide,
.wp-block-woocommerce-checkout.alignwide {
    width: min(100% - 2rem, 1180px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

.wc-block-cart,
.wc-block-checkout {
    font-size: 0.95rem;
    color: var(--hz-foreground, #1f2a2e);
    max-width: 100%;
}

.wc-block-cart .wp-block-columns {
    max-width: 100%;
    gap: 1.75rem !important;
}

.wc-block-cart__main,
.wc-block-cart__sidebar,
.wp-block-woocommerce-checkout-fields-block,
.wp-block-woocommerce-checkout-totals-block {
    min-width: 0;
}

.wc-block-cart-items {
    width: 100%;
    max-width: 100%;
}

.wc-block-components-product-name {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

/* ---- Page heading ---- */

.wc-block-cart > h1:first-child,
.wc-block-checkout > h1:first-child,
.wp-block-woocommerce-cart .wp-block-post-title,
.wp-block-woocommerce-checkout .wp-block-post-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--hz-foreground, #1f2a2e);
    margin-bottom: 1.5rem;
}

/* ---- Main column (cart items / checkout fields) ---- */

.wc-block-cart__main,
.wp-block-woocommerce-checkout-fields-block {
    background: var(--hz-card, #fff);
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 1.25rem;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

/* ---- Totals / order summary sidebar ---- */

.wc-block-cart__sidebar,
.wp-block-woocommerce-checkout-totals-block {
    background: var(--hz-card, #fff);
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: sticky;
    top: 1.5rem;
}

.wc-block-cart__sidebar::before,
.wp-block-woocommerce-checkout-totals-block::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--hz-primary), color-mix(in srgb, var(--hz-primary) 40%, #fff));
}

.wc-block-cart__sidebar .wc-block-components-panel,
.wp-block-woocommerce-checkout-totals-block .wc-block-components-panel {
    padding: 1.5rem;
}

.wc-block-cart__totals-title,
.wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hz-foreground, #1f2a2e);
}

/* ---- Cart / checkout line items as cards, not a bare table ---- */

.wc-block-cart-items__header {
    display: none;
}

.wc-block-cart-items__row,
.wc-block-mini-cart-items .wc-block-cart-items__row {
    border: 1px solid var(--hz-border, #d7e0e4);
    background: color-mix(in srgb, var(--hz-primary) 2%, #fff);
    padding: 1rem;
    margin-bottom: 0.85rem;
    border-radius: 0.9rem;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wc-block-cart-items__row:hover {
    border-color: color-mix(in srgb, var(--hz-primary) 35%, var(--hz-border, #d7e0e4));
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.wc-block-cart-items__row:last-child {
    margin-bottom: 0;
}

.wc-block-components-product-image img,
.wc-block-cart-item__image img {
    border-radius: 0.75rem;
    border: 2px solid color-mix(in srgb, var(--hz-primary) 12%, var(--hz-border, #d7e0e4));
}

.wc-block-components-product-name {
    color: var(--hz-foreground, #1f2a2e);
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease;
}

.wc-block-components-product-name:hover {
    color: var(--hz-primary);
}

.wc-block-cart-item__remove-link,
.wc-block-cart-item__save-for-later-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e53e3e;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    transition: background 180ms ease;
}

.wc-block-cart-item__remove-link:hover {
    background: color-mix(in srgb, #e53e3e 10%, transparent);
}

.wc-block-components-quantity-selector {
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.wc-block-components-quantity-selector__button {
    color: var(--hz-muted, #66787f);
}

.wc-block-components-quantity-selector__button:hover {
    background: color-mix(in srgb, var(--hz-primary) 8%, transparent);
    color: var(--hz-primary);
}

.wc-block-components-quantity-selector__input {
    color: var(--hz-foreground, #1f2a2e);
    font-weight: 700;
}

.wc-block-components-totals-item__value,
.wc-block-mini-cart__amount {
    color: var(--hz-foreground, #1f2a2e);
    font-weight: 600;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    color: var(--hz-primary);
    font-size: 1.2rem;
    font-weight: 800;
}

.wc-block-components-totals-item__label {
    color: var(--hz-muted, #66787f);
}

.wc-block-components-totals-coupon-link,
.wc-block-components-panel__button {
    color: var(--hz-primary);
    font-weight: 600;
}

.wc-block-components-totals-coupon__input .wc-block-components-text-input {
    border-radius: 0.6rem;
}

.wc-block-components-totals-coupon__button,
.wc-block-components-button,
.wc-block-cart__submit-button {
    border-radius: 999px !important;
    font-weight: 700 !important;
}

.wc-block-components-button.contained,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    background-color: var(--hz-primary) !important;
    border-color: var(--hz-primary) !important;
    color: var(--hz-primary-foreground, #fff) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--hz-primary) 22%, transparent);
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}

.wc-block-components-button.contained:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background-color: color-mix(in srgb, var(--hz-primary) 88%, black) !important;
    border-color: color-mix(in srgb, var(--hz-primary) 88%, black) !important;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--hz-primary) 32%, transparent);
    transform: translateY(-1px);
}

.wc-block-cart__submit-container {
    padding-top: 1.25rem;
}

.wc-block-components-radio-control__input:checked {
    accent-color: var(--hz-primary);
}

.wc-block-components-radio-control-accordion-option {
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.6rem;
    transition: border-color 180ms ease;
}

.wc-block-components-radio-control-accordion-option:has(input:checked) {
    border-color: var(--hz-primary);
    background: color-mix(in srgb, var(--hz-primary) 4%, #fff);
}

.wc-block-components-panel {
    border-radius: 0.9rem;
}

.wc-block-components-notice-banner {
    border-radius: 0.9rem;
}

.wc-block-cart__empty-cart__title {
    color: var(--hz-foreground, #1f2a2e);
}

/* ---- Checkout-only refinements ---- */

.wp-block-woocommerce-checkout-fields-block .wc-block-components-checkout-step {
    border-bottom: 1px solid var(--hz-border, #d7e0e4);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.wp-block-woocommerce-checkout-fields-block .wc-block-components-checkout-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.wc-block-components-checkout-step__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hz-foreground, #1f2a2e);
}

.wc-block-components-checkout-step__heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wc-block-components-checkout-step__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hz-primary) 12%, #fff);
    color: var(--hz-primary);
    font-weight: 800;
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {

    .wc-block-cart__main,
    .wp-block-woocommerce-checkout-fields-block,
    .wc-block-cart__sidebar,
    .wp-block-woocommerce-checkout-totals-block {
        padding: 1.1rem;
    }

    .wc-block-cart__sidebar,
    .wp-block-woocommerce-checkout-totals-block {
        position: static;
    }
}

/* ==========================================================================
   Mini-Cart — "Modal Panier" drawer (opens from the header cart icon)
   Real markup: .wc-block-components-drawer (panel) > .wp-block-woocommerce-mini-cart-contents
   > h2.wc-block-mini-cart__title + .wc-block-mini-cart__items (table.wc-block-mini-cart__products-table)
   + .wc-block-mini-cart__footer
   ========================================================================== */

.wc-block-components-drawer__screen-overlay {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(2px);
}

.wc-block-components-drawer {
    --drawer-width: min(420px, 100vw);
    box-shadow: -16px 0 40px rgba(15, 23, 42, 0.2);
}

.wp-block-woocommerce-mini-cart-contents {
    background: var(--hz-card, #fff) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wc-block-components-drawer .wc-block-components-drawer__close {
    top: 1.1rem;
    right: 1.1rem;
    color: var(--hz-muted, #66787f) !important;
    border-radius: 999px;
    transition: background 180ms ease, color 180ms ease;
}

.wc-block-components-drawer .wc-block-components-drawer__close:hover {
    background: color-mix(in srgb, var(--hz-primary) 10%, transparent) !important;
    color: var(--hz-primary) !important;
}

/* ---- Title band ---- */

h2.wc-block-mini-cart__title {
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 1.35rem 3rem 1.35rem 1.5rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hz-primary) 10%, #fff), #fff);
    border-bottom: 1px solid var(--hz-border, #d7e0e4);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hz-foreground, #1f2a2e);
    mask-image: none;
}

h2.wc-block-mini-cart__title .wc-block-mini-cart__items-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--hz-primary);
    background: color-mix(in srgb, var(--hz-primary) 12%, #fff);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
}

/* ---- Scrollable item list: kill the horizontal scrollbar ---- */

.wc-block-mini-cart__items {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 1.25rem 0;
    background: color-mix(in srgb, var(--hz-primary) 2%, #fff);
}

.wc-block-mini-cart__products-table,
table.wc-block-mini-cart__products-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.wc-block-mini-cart__items .wc-block-cart-items__row {
    display: block;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--hz-border, #d7e0e4);
    border-radius: 0.9rem;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.wc-block-mini-cart__items .wc-block-cart-items__row td {
    display: block;
    max-width: 100%;
}

.wc-block-mini-cart__items .wc-block-cart-item__image img {
    border-radius: 0.7rem;
    border: 2px solid color-mix(in srgb, var(--hz-primary) 12%, var(--hz-border, #d7e0e4));
}

.wc-block-mini-cart__items .wc-block-components-product-name {
    color: var(--hz-foreground, #1f2a2e);
    font-weight: 700;
    white-space: normal;
    overflow-wrap: break-word;
}

/* ---- Footer ---- */

.wc-block-mini-cart__footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--hz-border, #d7e0e4);
    background: color-mix(in srgb, var(--hz-primary) 3%, #fff);
    padding: 1.25rem 1.5rem;
}

.wc-block-mini-cart__footer-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem !important;
}

.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label {
    font-weight: 700;
    color: var(--hz-foreground, #1f2a2e);
}

.wc-block-mini-cart__footer-subtotal .wc-block-mini-cart__amount,
.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value {
    color: var(--hz-primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.wc-block-mini-cart__footer-actions {
    gap: 0.6rem !important;
}

.wc-block-mini-cart__footer-actions .wc-block-components-button {
    width: 100%;
    justify-content: center;
    border-radius: 999px !important;
    font-weight: 700 !important;
}

.wp-block-woocommerce-mini-cart-cart-button-block .wc-block-components-button {
    background: #fff !important;
    color: var(--hz-primary) !important;
    border: 2px solid var(--hz-primary) !important;
}

.wp-block-woocommerce-mini-cart-cart-button-block .wc-block-components-button:hover {
    background: color-mix(in srgb, var(--hz-primary) 8%, #fff) !important;
}

.wp-block-woocommerce-mini-cart-checkout-button-block .wc-block-components-button {
    background: var(--hz-primary) !important;
    color: var(--hz-primary-foreground, #fff) !important;
    border: 2px solid var(--hz-primary) !important;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--hz-primary) 22%, transparent);
}

.wp-block-woocommerce-mini-cart-checkout-button-block .wc-block-components-button:hover {
    background: color-mix(in srgb, var(--hz-primary) 88%, black) !important;
    border-color: color-mix(in srgb, var(--hz-primary) 88%, black) !important;
}

/* ---- Empty state ---- */

.wc-block-mini-cart__empty-cart-wrapper {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.wc-block-mini-cart__empty-cart-wrapper .wc-block-mini-cart__empty-cart-title {
    color: var(--hz-foreground, #1f2a2e);
    font-weight: 700;
    font-size: 1.1rem;
}

.wc-block-mini-cart__shopping-button a {
    border-radius: 999px !important;
    border-color: var(--hz-primary) !important;
    color: var(--hz-primary) !important;
}

.wc-block-mini-cart__shopping-button a:hover {
    background-color: var(--hz-primary) !important;
    border-color: var(--hz-primary) !important;
}

