        button.is-loading,
        input[type="submit"].is-loading {
            opacity: 0.9;
            pointer-events: none;
            position: relative;
        }

        button.is-loading {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            vertical-align: middle;
        }

        .btn-loader-spinner {
            width: 14px;
            height: 14px;
            border-radius: 999px;
            border: 2px solid currentColor;
            border-right-color: transparent;
            display: inline-block;
            margin: 0;
            animation: button-spin .7s linear infinite;
        }

        input[type="submit"].is-loading-input {
            color: transparent !important;
            background-image: conic-gradient(from 0deg, rgba(255,255,255,.2), #fff, rgba(255,255,255,.2));
            background-repeat: no-repeat;
            background-position: center;
            background-size: 14px 14px;
            animation: button-spin .7s linear infinite;
        }

        @keyframes button-spin {
            to { transform: rotate(360deg); }
        }

        .global-toast-wrap {
            z-index: 1085;
        }

        .global-status-toast {
            background: #dcfce7;
            border: 1px solid #86efac !important;
            color: #14532d;
            box-shadow: 0 8px 26px rgba(22, 101, 52, .16);
            min-width: 280px;
        }

        .global-status-toast .toast-body {
            font-weight: 600;
        }

        .global-status-toast .btn-close {
            filter: none;
            opacity: .65;
        }

        .global-status-toast .btn-close:hover {
            opacity: 1;
        }

        .global-status-cart-btn {
            border: 1px solid #16a34a;
            color: #14532d;
            background: #f0fdf4;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            text-decoration: none;
            padding: 6px 10px;
            line-height: 1;
            white-space: nowrap;
        }

        .global-status-cart-btn:hover {
            background: #dcfce7;
            color: #14532d;
        }

        .header-account-toggle {
            border: 0;
            background: transparent;
            padding: 0;
            line-height: 1;
        }

        .header-account-toggle.dropdown-toggle::after {
            display: none;
        }

        .header-account-toggle img {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 1px solid #d8dce2;
            object-fit: cover;
            box-shadow: 0 4px 10px rgba(15, 23, 42, .10);
        }

        .header-account-menu {
            min-width: 300px;
            border: 1px solid #d6dae1;
            border-radius: 14px;
            overflow: hidden;
            padding: 0;
            margin-top: 0;
            box-shadow: 0 18px 34px rgba(15, 23, 42, .14);
            right: 0;
        }

        .header-account-menu::before {
            content: '';
            position: absolute;
            top: -7px;
            right: 18px;
            width: 12px;
            height: 12px;
            background: #fff;
            border-top: 1px solid #d6dae1;
            border-left: 1px solid #d6dae1;
            transform: rotate(45deg);
        }

        .header-account-head {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            background: #f8fafc;
        }

        .header-account-head img {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            border: 1px solid #d8dce2;
            object-fit: cover;
            flex-shrink: 0;
        }

        .header-account-title {
            margin: 0;
            color: #111827;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.1;
        }

        .header-account-sub {
            margin: 4px 0 0;
            color: #4b5563;
            font-size: 13px;
            font-weight: 600;
        }

        .header-account-menu .dropdown-item {
            padding: 11px 14px;
            font-size: 15px;
            font-weight: 600;
            color: #101827;
            border-top: 1px solid #d8dde3;
        }

        .header-account-link {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-account-link-icon {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            color: #334155;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .header-account-item-highlight .header-account-link-icon {
            background: #fef2f2;
            border-color: #fecaca;
            color: #991b1b;
        }

        .header-account-menu .dropdown-item:hover {
            background: #f8fafc;
            color: #0f172a;
        }

        .header-account-menu .header-account-item-highlight {
            color: #93000a;
            font-weight: 700;
        }

        .header-account-menu .header-account-logout {
            color: #111827;
            font-weight: 700;
            width: 100%;
            border: 0;
            border-top: 1px solid #d8dde3;
            background: #fff;
            text-align: left;
            padding: 11px 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-account-menu .header-account-logout:hover {
            background: #f8fafc;
        }

        .header-cart-badge {
            background: #b50d0d;
        }

        .header-cart-trigger {
            border: 0;
            background: transparent;
            padding: 0;
            position: relative;
            line-height: 1;
        }

        .header-cart-drawer {
            width: min(410px, 94vw) !important;
            border-left: 1px solid #dce1e8;
            background: #fff;
        }

        .header-cart-drawer .offcanvas-header {
            border-bottom: 1px solid #e5e7eb;
            padding: 14px 16px;
        }

        .header-cart-drawer .offcanvas-title {
            color: #111827;
            font-size: 18px;
            font-weight: 700;
            line-height: 1.2;
        }

        .header-cart-drawer .offcanvas-body {
            padding: 14px 16px 16px;
        }

        .header-cart-empty {
            border: 1px dashed #d7dde6;
            border-radius: 12px;
            padding: 18px 14px;
            text-align: center;
            background: #f8fafc;
            margin-top: 6px;
        }

        .header-cart-empty-title {
            margin: 0 0 6px;
            color: #111827;
            font-size: 16px;
            font-weight: 700;
        }

        .header-cart-empty-sub {
            margin: 0 0 12px;
            color: #6b7280;
            font-size: 13px;
            line-height: 1.4;
        }

        .header-cart-items {
            display: flex;
            flex-direction: column;
            gap: 10px;
            overflow: auto;
            max-height: calc(100vh - 300px);
            padding-right: 2px;
        }

        .header-cart-item {
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 8px;
            display: grid;
            grid-template-columns: 64px minmax(0, 1fr);
            align-items: start;
            gap: 8px;
            background: #fff;
        }

        .header-cart-thumb-link {
            display: block;
        }

        .header-cart-thumb {
            width: 64px;
            height: 64px;
            border-radius: 9px;
            object-fit: cover;
            background: #f3f4f6;
        }

        .header-cart-item-main {
            min-width: 0;
        }

        .header-cart-item-name {
            display: block;
            text-decoration: none;
            color: #0f172a;
            font-size: 13px;
            line-height: 1.35;
            font-weight: 700;
            margin: 0 0 4px;
        }

        .header-cart-item-meta {
            margin: 0;
            color: #6b7280;
            font-size: 12px;
            line-height: 1.25;
        }

        .header-cart-item-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 6px;
        }

        .header-cart-qty-form {
            display: inline-flex;
            align-items: center;
            border: 1px solid #d5dbe4;
            border-radius: 999px;
            overflow: hidden;
            background: #fff;
            height: 24px;
        }

        .header-cart-qty-btn {
            width: 22px;
            height: 22px;
            border: 0;
            background: #f3f5f9;
            color: #0f172a;
            font-size: 14px;
            line-height: 1;
            font-weight: 700;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .header-cart-qty-value {
            min-width: 20px;
            text-align: center;
            color: #1f2937;
            font-size: 11px;
            line-height: 1;
            font-weight: 700;
            padding: 0 4px;
        }

        .header-cart-item-price {
            margin: 5px 0 0;
            color: #111827;
            font-size: 13px;
            line-height: 1.2;
            font-weight: 700;
        }

        .header-cart-remove-btn {
            border: 1px solid #d1d5db;
            background: #fff;
            color: #b91c1c;
            border-radius: 999px;
            padding: 4px 8px;
            font-size: 10px;
            line-height: 1;
            font-weight: 700;
        }

        .header-cart-footer {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #e5e7eb;
        }

        .header-cart-total-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
            color: #111827;
            font-size: 14px;
            font-weight: 600;
        }

        .header-cart-btn-primary,
        .header-cart-btn-secondary {
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            border-radius: 10px;
            padding: 11px 12px;
            font-size: 13px;
            line-height: 1;
            font-weight: 700;
        }

        .header-cart-btn-primary {
            border: 1px solid #111827;
            background: #111827;
            color: #fff;
        }

        .header-cart-btn-secondary {
            margin-top: 8px;
            border: 1px solid #d1d5db;
            background: #fff;
            color: #111827;
        }
