:root {
    --ts-red: #d33733;
    --ts-red-dark: #b02a27;
    --ts-ink: #14181f;
    --ts-font-display: "Sora", "Raleway", sans-serif;
    --ts-font-body: "Manrope", "Poppins", sans-serif;
}

body {
    color: #595959;
    font-family: var(--ts-font-body), "Poppins", sans-serif;
    /* Theme waits for window.load + .loaded before allowing scroll — unlock immediately */
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.loaded {
    overflow-y: auto !important;
}

h1, h2, h3, h4, h5, h6,
.section-heading,
.cm-banner h2,
.cm-banner h3 {
    font-family: var(--ts-font-display), "Raleway", sans-serif;
}

/* ================================================================
   MODERN NAV (replaces old blue top bar + bootstrap menu)
   ================================================================ */

.ts-nav {
    position: sticky;
    top: 0;
    z-index: 1040;
    font-family: var(--ts-font-body);
}

.ts-nav__bar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(12, 14, 18, 0.06);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.ts-nav.is-scrolled .ts-nav__bar {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 40px rgba(12, 14, 18, 0.08);
}

.ts-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}

.ts-nav__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none !important;
}

.ts-nav__logo img,
.ts-logo__img {
    max-height: 52px;
    width: auto;
    display: block;
}

.ts-footer__logo {
    display: inline-flex;
    text-decoration: none !important;
}

.ts-footer__logo .ts-logo__img {
    max-height: 72px;
}

.ts-nav__logo-text {
    font-family: var(--ts-font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--ts-ink) !important;
    text-decoration: none !important;
}

.ts-nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ts-nav__link,
.ts-nav__link--btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font-family: var(--ts-font-body);
    font-size: 0.92rem;
    font-weight: 650;
    font-weight: 600;
    color: var(--ts-ink) !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.ts-nav__link:hover,
.ts-nav__link--btn:hover,
.ts-nav__link.is-active {
    background: rgba(211, 55, 51, 0.08);
    color: var(--ts-red) !important;
}

.ts-nav__link i,
.ts-nav__link--btn i {
    font-size: 0.65rem;
    opacity: 0.55;
}

.ts-nav__dropdown {
    position: relative;
}

.ts-nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(12, 14, 18, 0.08);
    box-shadow: 0 22px 50px rgba(12, 14, 18, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

.ts-nav__dropdown--right .ts-nav__menu {
    left: auto;
    right: 0;
}

.ts-nav__dropdown:hover .ts-nav__menu,
.ts-nav__dropdown:focus-within .ts-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ts-nav__menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--ts-ink) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    line-height: 1.35;
}

.ts-nav__menu a:hover,
.ts-nav__menu a.is-active {
    background: var(--ts-red);
    color: #fff !important;
}

.ts-nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ts-nav__text-btn {
    color: var(--ts-ink) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    padding: 8px 10px;
    border-radius: 999px;
    background: transparent;
    border: 0;
}

.ts-nav__text-btn:hover { color: var(--ts-red) !important; }

.ts-nav__icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(12, 14, 18, 0.1);
    background: #fff;
    color: var(--ts-ink) !important;
    display: inline-grid;
    place-items: center;
    text-decoration: none !important;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ts-nav__icon-btn:hover {
    border-color: var(--ts-red);
    color: var(--ts-red) !important;
    background: rgba(211, 55, 51, 0.06);
}

.ts-nav__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ts-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

.ts-nav__badge.is-empty:empty { display: none; }

.ts-nav__cta {
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ts-red);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(211, 55, 51, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ts-nav__cta:hover {
    background: #b02a27;
    color: #fff !important;
    transform: translateY(-1px);
}

.ts-nav__burger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(12, 14, 18, 0.1);
    background: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.ts-nav__burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ts-ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ts-nav.is-open .ts-nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ts-nav.is-open .ts-nav__burger span:nth-child(2) { opacity: 0; }
.ts-nav.is-open .ts-nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ts-nav__drawer {
    background: #0c0e12;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ts-nav__drawer[hidden] { display: none !important; }

.ts-nav__drawer-inner {
    display: flex;
    flex-direction: column;
    padding: 18px 0 28px;
    max-height: calc(100vh - 78px);
    overflow: auto;
}

.ts-nav__drawer-inner a {
    padding: 12px 0;
    color: rgba(255,255,255,0.88) !important;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ts-nav__drawer-inner a:hover { color: #fff !important; }

.ts-nav__drawer-label {
    margin: 16px 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.ts-nav__drawer-sub {
    padding-left: 12px !important;
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.95rem !important;
}

.ts-nav__drawer-phone {
    margin-top: 12px;
    color: #ff6b66 !important;
    border-bottom: 0 !important;
}

.ts-nav__drawer-inner hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 14px 0;
}

/* Kill old header leftovers if any partial still references them */
.cm-header .header-top { display: none !important; }

@media (max-width: 991px) {
    .ts-nav__inner { min-height: 68px; }
}


a {
    color: white;
}

.dropdown-item.active_link,
.dropdown-item:active,
.dropdown-item:focus,
.dropdown-item:hover {
    color: white;
    background-color: #d33733;
}

.cm-header .header .nav-item .active {
    color: #d33733 !important;
}

a:hover {
    color: black;
}

.text-primary {
    color: #d33733 !important;
}

a.text-primary:focus,
a.text-primary:hover {
    color: #d33733 !important;
}

.cm-header .nav-item.active .nav-link {
    color: #d33733 !important;
}

.cm-header .header .block .icon:hover {
    color: #d33733 !important;
}

.btn-primary {
    color: white;
    background-color: #d33733;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    color: white;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22)
}

.btn-primary1 {
    background-color: #d33733;
    color: white;
}

.btn-primary1:hover {
    color: white;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22)
}

.btn-light::after {
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.blog-item .blog-meta-overlap {
    background-color: #d33733;
}

.bg-primary {
    background-color: #d33733 !important;
}

.cm-how-can-help .block {
    border: 1px solid #d33733;
}

.cm-how-can-help .block .icon {
    background-color: #d33733;
}

.cm-services .nav-link:hover,
.cm-services .nav-link.active {
    background-color: #d33733;
    color: white !important;
}

.why-choose-us .block .icon {
    background-color: #d33733;
}

.product-filter-buttons button:hover,
.product-filter-buttons button.active,
.product-filter-buttons-2 button:hover,
.product-filter-buttons-2 button.active {
    background-color: #d33733;
    border-color: #d33733;
}

.owl-dots button.owl-dot.active {
    background-color: #d33733 !important;
}

.social-links li a {
    color: #d33733;
}

.social-links li a:hover {
    background-color: #d33733;
}

.footer-links a:hover {
    color: #d33733;
}

a.scroll-to-top {
    background: #d33733;
}

a.text-dark:hover,
.text-dark a:hover {
    color: #d33733 !important;
}

.widget .widget-heading {
    background-color: #d33733;
    color: white;
    border: 1px solid #dee2e6;
}

.contact-icon {
    font-size: 56px;
    color: #d33733;
}

.modal-lg {
    max-width: 1000px;
}

.modal-header .close {
    margin: 0px;
}

.modal-header {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.modal-header .close:not(:disabled):not(.disabled):hover {
    background-color: #dd3333;
    opacity: 1;
}

.modal-content {
    border-radius: 8px;
    border: 0;
}

.modal-header.modal-bg {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    border: 0;
    border-radius: 8px 8px 0 0;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.modal-header.modal-bg .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

.modal-body {
    padding: 20px;
}

@media(max-width: 575px) {
    .modal-lg {
        max-width: 500px;
    }
    .customize-title {
        display: block;
    }
    .customize-title span {
        display: block;
        margin-top: 5px;
    }
}

.pagination-div {
    margin-top: 40px;
}

.pagination-div .pagination {
    display: block;
    margin-bottom: 0px;
    list-style-type: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.pagination-div .pagination li {
    display: inline-block;
    color: #d33733;
}

.pagination-div .pagination li a {
    font-family: "Futura-Bold", sans-serif;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #ffffff;
    display: inline-block;
    text-align: center;
    height: 30px;
    font-weight: 500;
    letter-spacing: 1px;
}

.pagination-div .pagination li a:hover {
    color: #000;
}

.pagination-div .pagination li a i {
    margin: 0px 5px;
}

.pagination-div .pagination li a.page-number {
    width: 30px;
    border-radius: 100%;
    color: #d33733;
}

.pagination-div .pagination li a.page-number.current {
    background: #d33733;
    border: 1px solid #d33733;
    color: #ffffff;
}

.hover15 {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0px !important;
    overflow: hidden;
}

.hover15::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: block;
    content: "";
    width: 0;
    height: 0;
    background: rgba(244, 229, 172, 0.4);
    border-radius: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.hover15:hover::before {
    -webkit-animation: circle 0.75s;
    animation: circle 0.75s;
}

.hover15 img {
    transition: all 0.3s;
}

.hover15:hover img {
    transform: scale(1.2);
}

@-webkit-keyframes circle {
    0% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

@keyframes circle {
    0% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.carousel_se_02 {
    overflow: hidden;
}

.carousel_se_02 .product-grid3 {
    border: none;
    box-shadow: none;
}

.carousel_se_02 .owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 42%;
    right: -40px;
    padding: 0px 1px !important;
    background: rgb(255, 255, 255);
    display: inline-block;
    transform: translateY(-50%);
    border-radius: 5px;
    font-size: 32px;
    line-height: 32px;
    color: #2bb0ef;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.carousel_se_02 .owl-carousel .owl-nav button.owl-next:hover {
    background: #2bb0ef;
    color: #fff;
}

.carousel_se_02 .owl-carousel .owl-nav button.owl-prev {
    position: absolute;
    top: 42%;
    left: -40px;
    padding: 0px 1px !important;
    background: rgb(255, 255, 255);
    display: inline-block;
    transform: translateY(-50%);
    border-radius: 5px;
    font-size: 32px;
    line-height: 32px;
    color: #2bb0ef;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

.carousel_se_02 .owl-carousel .owl-nav button.owl-prev:hover {
    background: #2bb0ef;
    color: #fff;
}

.carousel_se_02 .owl-arrow .owl-nav {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.8rem;
}

.carousel_se_02 .owl-arrow .owl-nav .owl-prev,
.carousel_se_02 .owl-arrow .owl-nav .owl-next {
    display: inline-block;
    transition: all 0.6s ease-in-out;
    color: #000000;
}

.mobileShow {
    display: none;
}

@media (max-width: 767px) {
    .mobileShow {
        display: block;
    }
    .mobileHide {
        display: none;
    }
}

@media (max-width: 991px) {
    .cm-header .header .navbar-brand img {
        width: 100px;
    }
}

.product-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    margin-bottom: -12px;
}

.onsale {
    background-color: #d33733;
    font-weight: 400;
    line-height: 48px;
    z-index: 5;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    text-align: center;
    text-transform: lowercase;
    color: #FFFFFF;
    border-radius: 50%;
}

.product-out-of-stock {
    position: absolute;
    top: 5px;
    right: 20px;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    margin-bottom: -12px;
    background-color: #d33733;
    border: 1px solid #d33733;
    border-radius: 50px;
}

.outofstock {
    z-index: 5;
    margin-bottom: 12px;
    text-align: center;
    text-transform: lowercase;
    color: white
}

.product-meta table tbody tr td.label {
    width: 160px;
    padding-right: 40px;
}

.product-meta table tbody tr td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.product-category {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
}

.product-meta .label span {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333333;
}

.strike-price {
    text-decoration: line-through;
    color: #aaa;
}

.quickViewModal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 1200px;
}

.quickViewModal .modal-dialog .modal-content {
    padding: 30px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.quickViewModal .modal-dialog .modal-content .close {
    font-size: 30px;
    font-weight: 300;
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
}

.learts-mb-n30 {
    margin-bottom: -30px;
}

.learts-mb-30 {
    margin-bottom: 30px;
}

img {
    max-width: 100%;
}

ul:last-child {
    margin-bottom: 0;
}

.product-title {
    font-size: 40px;
    line-height: 1.1675;
    margin-bottom: 25px;
    white-space: normal;
}

@media only screen and (min-width: 992px) {
    .quickViewModal .modal-dialog .modal-content .product-summery {
        position: absolute;
        right: 15px;
        left: 15px;
        overflow-x: hidden;
        overflow-y: auto;
        height: 100%;
    }
}

@media only screen and (max-width: 479px) {
    .quickViewModal .modal-dialog .modal-content {
        padding: 20px;
    }
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.175;
    display: block;
    margin-bottom: 25px;
    color: #333333;
}

.product-description {
    margin-bottom: 45px;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-bottom: 40px;
    margin-left: -15px;
}

.product-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
    margin-left: 15px;
    margin-top: 8px;
    border-radius: 500px;
    background-color: black;
    color: white;
}

.btn-outline-hover-dark:hover {
    color: #333333;
    border: 1px solid #333333;
    background-color: transparent;
}

.product-meta {
    display: flex;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.minicart-li {
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
}

.minicart-li-a {
    -webkit-box-flex: 1;
    flex: 1 0 75px;
}

.minicart-content {
    position: relative;
    -webkit-box-flex: 1;
    flex: 1 0 calc(100% - 75px);
    padding-left: 15px;
}

.minicart-content-a {
    color: #7E7E7E;
    line-height: inherit;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.quantity-price {
    font-size: 12px;
    display: block;
    margin-top: 10px;
}

.ladda-button {
    padding: 9px 30px;
}

.quan {
    height: 40px;
    width: 40px;
}

.product-image3 {
    text-align: -webkit-center;
}

/* ================================================================
   ACCESSIBILITY WIDGET
   ================================================================ */

/* ── Trigger (floating tab on left side) ── */
#a11y-widget {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: system-ui, -apple-system, sans-serif;
}

.a11y-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #d33733;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.25);
    transition: background 0.2s;
    outline-offset: 2px;
    padding: 0;
}
.a11y-trigger:hover,
.a11y-trigger:focus {
    background: #b02d2a;
    outline: 3px solid #f9a8a6;
}

/* ── Panel ── */
.a11y-panel {
    display: none;
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    width: 270px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    border: 1px solid #e5e7eb;
    font-size: 14px;
    color: #1f2937;
    animation: a11ySlideIn 0.15s ease;
}
.a11y-panel.a11y-panel-open {
    display: block;
}
@keyframes a11ySlideIn {
    from { opacity: 0; transform: translateY(-50%) translateX(-8px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ── Panel Header ── */
.a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 10px;
    background: #d33733;
    color: #fff;
    border-radius: 11px 11px 0 0;
}
.a11y-panel-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
}
.a11y-close {
    background: transparent;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.15s;
}
.a11y-close:hover,
.a11y-close:focus {
    color: #fff;
    outline: 2px solid #fca5a5;
}

/* ── Sections ── */
.a11y-section {
    padding: 12px 14px 8px;
    border-bottom: 1px solid #f3f4f6;
}
.a11y-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 0 0 8px;
}

/* ── Text Size Buttons ── */
.a11y-size-group {
    display: flex;
    gap: 6px;
}
.a11y-size-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 7px 4px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    color: #374151;
}
.a11y-size-btn:hover,
.a11y-size-btn:focus {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #d33733;
    outline: none;
}
.a11y-size-btn.a11y-active {
    background: #d33733;
    border-color: #d33733;
    color: #fff;
}
.a11y-size-letter {
    font-weight: 700;
    line-height: 1;
}
.a11y-size-name {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

/* ── Toggle Buttons ── */
.a11y-toggles {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.a11y-toggle-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.a11y-toggle-btn:hover,
.a11y-toggle-btn:focus {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #d33733;
    outline: none;
}
.a11y-toggle-btn.a11y-active {
    background: #d33733;
    border-color: #d33733;
    color: #fff;
}
.a11y-toggle-btn.a11y-active svg {
    fill: #fff;
}

/* ── TTS stop button ── */
.a11y-tts-stop {
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
    background: #fff1f2 !important;
}
.a11y-tts-stop:hover {
    background: #fca5a5 !important;
    color: #991b1b !important;
}

/* ── Reset Button ── */
.a11y-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 14px;
    background: #fff;
    border: none;
    border-top: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-radius: 0 0 11px 11px;
}
.a11y-reset:hover,
.a11y-reset:focus {
    background: #fef2f2;
    color: #dc2626;
    outline: none;
}

/* ── Colour blind dot ── */
.a11y-cb-dot {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin: 0 auto 2px;
    border: 1.5px solid rgba(0,0,0,0.15);
}

/* ================================================================
   ACCESSIBILITY BEHAVIOUR CLASSES (applied to <html>)
   ================================================================ */

/* ── Font sizes ── */
/* Use zoom so px-based styles (Bootstrap, custom CSS) also scale */
html.a11y-text-sm body { zoom: 0.88; }
html.a11y-text-lg body { zoom: 1.15; }
html.a11y-text-xl body { zoom: 1.30; }

/* ── High contrast ── */
html.a11y-high-contrast body {
    filter: invert(1) hue-rotate(180deg);
}
html.a11y-high-contrast img,
html.a11y-high-contrast video,
html.a11y-high-contrast canvas,
html.a11y-high-contrast iframe,
html.a11y-high-contrast svg image {
    filter: invert(1) hue-rotate(180deg);
}
html.a11y-high-contrast #a11y-widget {
    filter: invert(1) hue-rotate(180deg);
}

/* ── Colour blind modes ── */
html.a11y-cb-rg body   { filter: hue-rotate(90deg) saturate(1.6); }
html.a11y-cb-rg img,
html.a11y-cb-rg video,
html.a11y-cb-rg canvas { filter: hue-rotate(-90deg) saturate(0.625); }
html.a11y-cb-rg #a11y-widget { filter: hue-rotate(-90deg) saturate(0.625); }

html.a11y-cb-by body   { filter: hue-rotate(200deg) saturate(1.6); }
html.a11y-cb-by img,
html.a11y-cb-by video,
html.a11y-cb-by canvas { filter: hue-rotate(-200deg) saturate(0.625); }
html.a11y-cb-by #a11y-widget { filter: hue-rotate(-200deg) saturate(0.625); }

html.a11y-cb-mono body   { filter: grayscale(1) contrast(1.25); }
html.a11y-cb-mono img,
html.a11y-cb-mono video,
html.a11y-cb-mono canvas { filter: grayscale(1); }
html.a11y-cb-mono #a11y-widget { filter: grayscale(1) contrast(0.8); }

/* ── Highlight links ── */
html.a11y-highlight-links a {
    background-color: #fef08a !important;
    color: #b91c1c !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    outline: 1.5px solid #ca8a04 !important;
    border-radius: 3px !important;
    padding: 0 2px !important;
}
html.a11y-highlight-links a:hover,
html.a11y-highlight-links a:focus {
    background-color: #fde047 !important;
}
html.a11y-highlight-links #a11y-widget a {
    background-color: transparent !important;
    outline: none !important;
}

/* ── Focus highlight ── */
html.a11y-focus-highlight *:focus {
    outline: 4px solid #d33733 !important;
    outline-offset: 4px !important;
    border-radius: 4px !important;
    box-shadow: 0 0 0 6px rgba(211,55,51,0.2) !important;
}

/* ── Dyslexia font ── */
html.a11y-dyslexia,
html.a11y-dyslexia body,
html.a11y-dyslexia button,
html.a11y-dyslexia input,
html.a11y-dyslexia textarea,
html.a11y-dyslexia select,
html.a11y-dyslexia a,
html.a11y-dyslexia p,
html.a11y-dyslexia h1, html.a11y-dyslexia h2,
html.a11y-dyslexia h3, html.a11y-dyslexia h4,
html.a11y-dyslexia h5, html.a11y-dyslexia h6,
html.a11y-dyslexia li, html.a11y-dyslexia td,
html.a11y-dyslexia th, html.a11y-dyslexia label,
html.a11y-dyslexia span {
    font-family: 'Lexend', 'Comic Sans MS', 'Trebuchet MS', Arial, sans-serif !important;
    letter-spacing: 0.04em !important;
    word-spacing: 0.1em !important;
}

/* ── Line spacing ── */
html.a11y-line-spacing body,
html.a11y-line-spacing p,
html.a11y-line-spacing li,
html.a11y-line-spacing td,
html.a11y-line-spacing th,
html.a11y-line-spacing label,
html.a11y-line-spacing span,
html.a11y-line-spacing a {
    line-height: 1.9 !important;
}
html.a11y-line-spacing h1, html.a11y-line-spacing h2,
html.a11y-line-spacing h3, html.a11y-line-spacing h4,
html.a11y-line-spacing h5, html.a11y-line-spacing h6 {
    line-height: 1.5 !important;
}

/* ── Reduce motion ── */
html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

/* ── Reading guide ── */
#a11y-reading-guide {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 28px;
    background: rgba(250, 240, 140, 0.35);
    border-top: 2px solid rgba(202, 138, 4, 0.6);
    border-bottom: 2px solid rgba(202, 138, 4, 0.6);
    pointer-events: none;
    z-index: 9998;
    transition: top 0.05s linear;
}

/* ── TTS mode cursor ── */
html.a11y-tts-mode p,
html.a11y-tts-mode h1, html.a11y-tts-mode h2,
html.a11y-tts-mode h3, html.a11y-tts-mode h4,
html.a11y-tts-mode h5, html.a11y-tts-mode h6,
html.a11y-tts-mode li, html.a11y-tts-mode td,
html.a11y-tts-mode th, html.a11y-tts-mode label {
    cursor: pointer !important;
}
html.a11y-tts-mode p:hover,
html.a11y-tts-mode h1:hover, html.a11y-tts-mode h2:hover,
html.a11y-tts-mode h3:hover, html.a11y-tts-mode h4:hover,
html.a11y-tts-mode h5:hover, html.a11y-tts-mode h6:hover,
html.a11y-tts-mode li:hover {
    background: rgba(211,55,51,0.08) !important;
    border-radius: 4px !important;
    outline: 1px dashed #d33733 !important;
}

/* ── Main content focus (skip link target) ── */
#main-content:focus { outline: none; }

/* ── Skip to content link ── */
.a11y-skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #d33733;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 0 0 10px 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: top 0.2s ease;
    white-space: nowrap;
    font-family: system-ui, -apple-system, sans-serif;
}
.a11y-skip-link:focus {
    top: 0;
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px;
    color: #fff !important;
}