/*
  TwinCats homepage + chips chrome — Mowkly-grade clarity, TwinCats identity.
  Depends on --tc-* tokens from zarafa-redesign.css.
*/

html {
    scroll-padding-top: calc(var(--tc-header-h, 104px) + 8px);
}

/* ===== Announcement marquee — teal band ===== */
.tc-top-marquee {
    background: var(--tc-teal) !important;
    color: #fff !important;
}
.tc-top-marquee .tc-marquee-item,
.tc-top-marquee .tc-marquee-item i {
    color: #fff !important;
}

@media (max-width: 767.98px) {
    /* Marquee scrolls away on mobile so fixed chrome stays ~104px */
    .site-header .tc-top-marquee {
        display: none !important;
    }
    .tc-mobile-marquee {
        display: block;
        background: var(--tc-teal);
        color: #fff;
        padding: 0.45rem 0;
        overflow: hidden;
        font-size: 0.78rem;
    }
    .tc-mobile-marquee .tc-marquee-scroll {
        display: flex;
        width: max-content;
        animation: tc-marquee-scroll 28s linear infinite;
    }
    .tc-mobile-marquee .tc-marquee-item {
        white-space: nowrap;
        padding-inline: 1.25rem;
        color: #fff;
    }
}
@media (min-width: 768px) {
    .tc-mobile-marquee { display: none !important; }
}

@keyframes tc-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}
html[dir="rtl"] .tc-mobile-marquee .tc-marquee-scroll {
    animation-name: tc-marquee-scroll-rtl;
}
@keyframes tc-marquee-scroll-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== TwinCats brand category nav (clean white bar) ===== */
.site-header:has(.tc-chipbar--categories) {
    overflow: visible;
}
.tc-chipbar--categories {
    --tc-nav-ink: #2a2a2a;
    --tc-nav-muted: #5b6470;
    --tc-nav-lime: #8cc63f;
    --tc-nav-purple: #5b2a86;
    --tc-nav-line: rgba(17, 24, 39, 0.08);
    --tc-nav-hover: rgba(140, 198, 63, 0.12);
    --tc-nav-active: rgba(91, 42, 134, 0.08);
    background: #ffffff;
    border-block-end: 1px solid var(--tc-nav-line);
    min-height: 48px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1060;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 14px rgba(15, 23, 42, 0.04);
}
@media (min-width: 992px) {
    .tc-chipbar--categories { min-height: 50px; }
}

.tc-catnav {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0.15rem 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tc-catnav::-webkit-scrollbar { display: none; }

.tc-catnav__item {
    position: relative;
    flex: 0 0 auto;
}

.tc-catnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.35rem 0.75rem;
    color: var(--tc-nav-ink) !important;
    font: 600 0.9rem/1.2 'Cairo', sans-serif;
    text-decoration: none !important;
    white-space: nowrap;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.tc-catnav__link:hover {
    background: var(--tc-nav-hover);
    color: var(--tc-nav-ink) !important;
}
.tc-catnav__item.is-active > .tc-catnav__link,
.tc-catnav__item.is-open > .tc-catnav__link,
.tc-catnav__link.active {
    background: var(--tc-nav-active);
    color: var(--tc-nav-purple) !important;
}
.tc-catnav__link:focus-visible {
    outline: 2px solid var(--tc-nav-lime);
    outline-offset: 2px;
}
.tc-catnav__caret {
    font-size: 0.7rem;
    opacity: 0.55;
    color: inherit;
}
.tc-chip__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--chip-dot, var(--tc-nav-lime));
    flex: 0 0 auto;
    box-shadow: 0 0 0 1.5px rgba(17, 24, 39, 0.06);
}
.tc-chip__icon {
    font-size: 0.95rem;
    color: var(--tc-nav-muted);
    line-height: 1;
}
.tc-catnav__link:hover .tc-chip__icon,
.tc-catnav__item.is-open > .tc-catnav__link .tc-chip__icon,
.tc-catnav__link.active .tc-chip__icon {
    color: var(--tc-nav-purple);
}
.tc-chip__icon--vip { color: var(--tc-nav-lime) !important; }

/* Level-1 dropdown — fixed so horizontal scroll does not clip it */
.tc-catnav__menu {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 15rem;
    margin: 0;
    padding: 0.45rem 0;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);
    border: 1px solid var(--tc-nav-line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
    z-index: 2000;
    overflow: visible;
}
.tc-catnav__item.is-open > .tc-catnav__menu,
.tc-catnav__item:focus-within > .tc-catnav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.tc-catnav__menu-item {
    position: relative;
}

.tc-catnav__menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.58rem 1rem;
    color: #2d2a26 !important;
    font: 600 0.88rem/1.35 'Cairo', sans-serif;
    text-decoration: none !important;
    text-align: start;
    white-space: nowrap;
}
.tc-catnav__menu-link:hover,
.tc-catnav__menu-item:hover > .tc-catnav__menu-link,
.tc-catnav__menu-item.is-open > .tc-catnav__menu-link {
    background: #f7faf2;
    color: #3d6b12 !important;
}
.tc-catnav__fly {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-inline-start: auto;
}

/* Level-2: absolute beside parent row (aligned to the side, not floating) */
.tc-catnav__submenu {
    position: absolute;
    top: 0;
    /* RTL default: open to the physical left of the parent panel */
    right: calc(100% + 4px);
    left: auto;
    min-width: 12.75rem;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--tc-nav-line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2001;
}
html[dir="ltr"] .tc-catnav__submenu {
    left: calc(100% + 4px);
    right: auto;
}
.tc-catnav__menu-item.is-open > .tc-catnav__submenu,
.tc-catnav__menu-item:focus-within > .tc-catnav__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .tc-chipbar--categories {
        min-height: 46px;
    }
    .tc-catnav {
        gap: 0.15rem;
        padding-inline: 0.15rem 0.5rem;
        scroll-padding-inline: 0.5rem;
    }
    .tc-catnav__link {
        font-size: 0.82rem;
        padding: 0.35rem 0.65rem;
        min-height: 40px;
        border-radius: 999px;
        border: 1px solid transparent;
    }
    .tc-catnav__item.is-open > .tc-catnav__link,
    .tc-catnav__link.active {
        border-color: rgba(91, 42, 134, 0.18);
        background: rgba(91, 42, 134, 0.08);
    }
    .tc-catnav__caret {
        font-size: 0.65rem;
    }

    /* Professional mobile filter sheet */
    .tc-catnav__menu {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: min(68vh, 34rem);
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 18px;
        padding: 0.55rem;
        border: 1px solid rgba(17, 24, 39, 0.08);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        -webkit-overflow-scrolling: touch;
    }
    .tc-catnav__menu::before {
        content: attr(data-sheet-title);
        grid-column: 1 / -1;
        display: block;
        padding: 0.35rem 0.55rem 0.55rem;
        margin-bottom: 0.15rem;
        border-bottom: 1px solid rgba(17, 24, 39, 0.08);
        font: 700 0.92rem/1.3 'Cairo', sans-serif;
        color: #5b2a86;
    }
    .tc-catnav__menu-item {
        min-width: 0;
    }
    .tc-catnav__menu-item--has-kids {
        grid-column: 1 / -1;
    }
    .tc-catnav__menu-link {
        min-height: 48px;
        padding: 0.7rem 0.75rem;
        border-radius: 12px;
        background: #f6f7f9;
        border: 1px solid transparent;
        white-space: normal;
        font-size: 0.84rem;
        font-weight: 600;
        line-height: 1.3;
        color: #2a2a2a !important;
        align-items: center;
    }
    .tc-catnav__menu-link:hover,
    .tc-catnav__menu-item:hover > .tc-catnav__menu-link,
    .tc-catnav__menu-item.is-open > .tc-catnav__menu-link {
        background: #eef6e0;
        border-color: rgba(140, 198, 63, 0.35);
        color: #3d6b12 !important;
    }
    .tc-catnav__fly {
        flex: 0 0 auto;
    }

    .tc-catnav__submenu {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: 0;
        border-radius: 12px;
        margin-top: 0.35rem;
        padding: 0.3rem;
        background: #f3f9e8;
        display: none;
        z-index: auto;
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    .tc-catnav__menu-item.is-open > .tc-catnav__submenu,
    .tc-catnav__menu-item:focus-within > .tc-catnav__submenu {
        display: grid;
    }
    .tc-catnav__submenu .tc-catnav__menu-link {
        padding: 0.6rem 0.7rem;
        min-height: 42px;
        font-size: 0.8rem;
        font-weight: 500;
        background: #fff;
    }

    .tc-catnav-backdrop {
        position: fixed;
        inset: 0;
        /* Below portaled sheet; both live on <body> */
        z-index: 2200;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(15, 23, 42, 0.32);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s;
        -webkit-tap-highlight-color: transparent;
    }
    .tc-catnav-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.tc-catnav-sheet-open {
        overflow: hidden;
    }
    /* Portaled sheet on body — always above backdrop, tappable */
    .tc-catnav__menu.is-sheet {
        position: fixed !important;
        z-index: 2210 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        display: grid !important;
    }
    .tc-catnav__menu.is-sheet .tc-catnav__menu-link {
        pointer-events: auto !important;
        position: relative;
        z-index: 1;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(140, 198, 63, 0.25);
    }
}

/* Hide legacy mega-menu if still present */
.mega-menu-nav,
body:has(.tc-chipbar--categories) .mega-menu-nav {
    display: none !important;
}

/* ===== Section head chrome ===== */
.tc-section {
    padding-block: clamp(2rem, 5.5vw, 3.5rem);
}
.tc-section--warm { background: var(--tc-surface-warm); }
.tc-section--soft { background: var(--tc-surface-soft); }
.tc-section--teal { background: var(--tc-teal-soft); }
.tc-section--bg { background: var(--tc-bg); }

.tc-sechead {
    margin-block-end: clamp(0.85rem, 2vw, 1.25rem);
}
.tc-sechead__kicker {
    display: block;
    font: 700 clamp(0.7rem, 0.66rem + 0.2vw, 0.78rem)/1.2 'Cairo', sans-serif;
    color: var(--tc-teal);
    letter-spacing: 0.02em;
    margin-block-end: 0.35rem;
}
.tc-sechead__row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.tc-sechead__title {
    font: 700 clamp(1.15rem, 1rem + 1.1vw, 1.6rem)/1.3 'Cairo', sans-serif;
    color: var(--tc-ink);
    letter-spacing: -0.01em;
    margin: 0;
    white-space: nowrap;
}
.tc-sechead__rule {
    flex: 1 1 auto;
    height: 1px;
    background: var(--tc-line);
    min-width: 1.5rem;
}
.tc-sechead__all {
    font: 600 clamp(0.8rem, 0.76rem + 0.2vw, 0.875rem)/1 'Cairo', sans-serif;
    color: var(--tc-primary-dark);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    text-decoration: none;
}
.tc-sechead__all:hover {
    color: var(--tc-cta);
}

/* Kill legacy purple section underlines on homepage */
.home-page .section-title::after,
.monthly-packages-section .section-title::after,
.reviews-section .section-title::after {
    display: none !important;
    content: none !important;
}

/* ===== Product slider card shelf ===== */
.tc-card__shelf {
    min-height: 3.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    border-block-start: 1px solid var(--tc-border);
    padding-block-start: 0.5rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}
.tc-card__price {
    font: 900 1.05rem/1 'Cairo', sans-serif;
    color: var(--tc-price-sale);
}
.tc-card__was {
    font: 400 0.8rem/1 'Cairo', sans-serif;
    color: var(--tc-muted);
    text-decoration: line-through;
}
.tc-card__save {
    margin-inline-start: auto;
    font: 700 0.7rem/1 'Cairo', sans-serif;
    color: var(--tc-teal);
    border: 1px solid var(--tc-teal-line);
    border-radius: 6px;
    padding: 0.2rem 0.4rem;
}
.tc-card__cart {
    width: 100%;
    margin-top: 0.5rem;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    min-height: 40px;
}
.tc-card__badge-low {
    background: #f59e0b !important;
    color: #fff !important;
}
.tc-card__badge-oos {
    background: #4b5563 !important;
    color: #fff !important;
}

/* ===== Petrol seam (commerce → care) ===== */
.tc-seam {
    background: var(--tc-teal);
    padding-block: clamp(2.5rem, 7vw, 4rem);
    color: #fff;
    clip-path: polygon(0 2.5rem, 50% 0, 100% 2.5rem, 100% 100%, 0 100%);
    margin-block-start: -2.5rem;
    text-align: center;
}
@supports not (clip-path: polygon(0 0)) {
    .tc-seam {
        clip-path: none;
        margin-block-start: 0;
    }
}
.tc-seam__title {
    font: 700 clamp(1.2rem, 1rem + 1.4vw, 1.75rem)/1.35 'Cairo', sans-serif;
    margin: 0 0 0.75rem;
    color: #fff;
}
.tc-seam__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    background: var(--tc-cta);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}
.tc-seam__cta:hover {
    background: var(--tc-cta-hover);
    color: #fff !important;
}

/* ===== Packages band — warm, no purple ===== */
.tc-packages-band {
    background: var(--tc-surface-warm) !important;
}
.tc-packages-band .card {
    border-radius: 14px !important;
}
.tc-packages-band .tc-pkg-price {
    background: var(--tc-primary-soft);
    color: var(--tc-primary-dark);
    font-weight: 900;
}
.tc-packages-band .btn-primary {
    background: var(--tc-cta) !important;
}

/* ===== Knowledge teasers — professional homepage grid ===== */
.tc-section--knowledge {
    background: linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%);
}
.tc-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-block-start: 1rem;
}
@media (max-width: 991.98px) {
    .tc-knowledge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}
@media (max-width: 767.98px) {
    .tc-knowledge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
    /* 3rd card spans full width for a balanced mobile layout */
    .tc-knowledge-card:nth-child(3) {
        grid-column: 1 / -1;
    }
}
.tc-knowledge-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1rem;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tc-knowledge-card:hover {
    border-color: rgba(140, 198, 63, 0.55);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
    color: inherit;
}
.tc-knowledge-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: rgba(140, 198, 63, 0.14);
    color: #3d6b12;
    font: 700 0.72rem/1 'Cairo', sans-serif;
    letter-spacing: 0.02em;
}
.tc-knowledge-card__title {
    font-size: clamp(0.88rem, 0.82rem + 0.35vw, 1.02rem);
    font-weight: 700;
    color: var(--tc-ink, #24150c);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tc-knowledge-card__summary {
    margin: 0;
    font-size: 0.82rem;
    color: var(--tc-muted, #6f6257);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}
@media (max-width: 767.98px) {
    .tc-knowledge-card {
        padding: 0.85rem 0.8rem 0.75rem;
        border-radius: 14px;
        gap: 0.35rem;
    }
    .tc-knowledge-card__title {
        font-size: 0.86rem;
        -webkit-line-clamp: 3;
    }
    .tc-knowledge-card__summary {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }
    .tc-knowledge-card:nth-child(3) .tc-knowledge-card__title {
        -webkit-line-clamp: 2;
    }
}
.tc-knowledge-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-block-start: 0.25rem;
    font: 600 0.8rem/1 'Cairo', sans-serif;
    color: #5b2a86;
}
.tc-knowledge-card:hover .tc-knowledge-card__more {
    color: #3d6b12;
}

.tc-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.tc-search-tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--tc-line);
    background: var(--tc-surface);
    color: var(--tc-ink);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.tc-search-tag:hover {
    border-color: var(--tc-primary);
    color: var(--tc-primary-dark);
}

.tc-trust-strip {
    background: var(--tc-surface);
    border-block: 1px solid var(--tc-line);
    padding-block: 0.85rem;
}
.tc-trust-strip__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.45rem;
    justify-content: center;
    align-items: center;
}
.tc-payment-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: 34px;
    min-width: 0;
    padding: 0 0.55rem;
    background: #fff;
    border: 1px solid rgba(51, 65, 85, 0.1);
    border-radius: 8px;
    unicode-bidi: isolate;
    box-shadow: none;
}
.tc-payment-mark--cod {
    color: var(--tc-muted);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    padding-inline: 0.65rem;
}
.tc-payment-mark--cod i {
    color: var(--tc-teal);
    font-size: 0.95rem;
}
.tc-payment-logo {
    display: block;
    width: auto !important;
    max-width: none;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}
.tc-payment-logo--mada { height: 16px; }
.tc-payment-logo--visa { height: 14px; }
.tc-payment-logo--mastercard { height: 20px; }
.tc-payment-logo--tap { height: 22px; width: auto !important; }
.tc-payment-logo--tabby { height: 20px; }
.tc-payment-logo--tamara { height: 18px; }

/* Legacy grouped cards (if any cached markup) — keep compact */
.tc-payment-mark--cards {
    gap: 0.55rem;
    padding-inline: 0.65rem;
}
.tc-payment-mark--cards .tc-payment-logo {
    height: 15px;
}
.tc-payment-mark--cards .tc-payment-logo--mastercard {
    height: 18px;
}

@media (max-width: 767.98px) {
    .tc-trust-strip {
        padding-block: 0.7rem;
    }
    .tc-trust-strip .container {
        padding-inline: 10px;
        max-width: 100%;
    }
    .tc-trust-strip__row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.38rem;
        max-width: 380px;
        margin-inline: auto;
    }
    .tc-payment-mark {
        height: 36px;
        padding: 0 0.5rem;
        border-radius: 8px;
        border-color: rgba(51, 65, 85, 0.1);
    }
    .tc-payment-mark--cod {
        width: auto;
        max-width: none;
        height: 36px;
        font-size: 0.7rem;
        justify-content: center;
        order: 0;
        flex: 0 0 auto;
        padding-inline: 0.6rem;
    }
    .tc-payment-mark--cod i {
        font-size: 0.95rem;
    }
    .tc-payment-logo { height: 18px; }
    .tc-payment-logo--mada { height: 16px; }
    .tc-payment-logo--visa { height: 14px; }
    .tc-payment-logo--mastercard { height: 20px; }
    .tc-payment-logo--tap { height: 22px; }
    .tc-payment-logo--tabby { height: 20px; }
    .tc-payment-logo--tamara { height: 17px; }
}

.tc-footer-legal {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}
.tc-footer-legal strong {
    color: #fff;
    font-weight: 700;
}

/* RTL slider nav — next is further left */
.tc-slider-nav {
    display: flex;
    gap: 0.5rem;
}
.tc-slider-nav button {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--tc-line);
    background: var(--tc-surface);
    color: var(--tc-ink);
}
@media (hover: none) {
    .tc-slider-nav { display: none !important; }
}

/* ===== Homepage browse sliders (one row, no page overflow) ===== */
.shop-by-pet--slider,
.shop-by-need--slider,
.home-care-highlights--compact {
    overflow-x: clip;
    max-width: 100%;
}
.shop-by-pet-scroll,
.shop-by-need-scroll,
.home-care-highlights-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.2rem 0 0.5rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.shop-by-pet-scroll::-webkit-scrollbar,
.shop-by-need-scroll::-webkit-scrollbar,
.home-care-highlights-scroll::-webkit-scrollbar {
    display: none;
}
.shop-by-pet--slider .pet-category-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 88px;
    text-align: center;
}
.shop-by-pet--slider .pet-circle {
    margin-inline: auto;
}
.shop-by-need-scroll .shop-by-need-card {
    flex: 0 0 min(28vw, 120px);
    scroll-snap-align: start;
}
.home-care-highlights--compact {
    padding-top: 0.65rem !important;
    padding-bottom: 0.8rem !important;
}
.home-care-highlights--compact .home-care-highlights-title {
    font-size: clamp(1rem, 3.6vw, 1.2rem);
    margin-bottom: 0.35rem;
}
.home-care-highlights--compact .home-care-highlights-sub,
.home-care-highlights--compact .home-section-kicker {
    display: none;
}
.home-care-highlights-scroll .home-care-card {
    flex: 0 0 min(68vw, 200px);
    scroll-snap-align: start;
    min-width: 0;
}
.home-care-highlights--compact .home-care-card-media {
    max-height: 72px !important;
    aspect-ratio: 16 / 9;
}
.home-care-highlights--compact .home-care-card-body {
    padding: 0.4rem 0.5rem 0.45rem !important;
    min-height: 0 !important;
}
.home-care-highlights--compact .home-care-card-caption {
    font-size: 0.72rem !important;
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .home-care-highlights--compact .home-section-kicker {
        display: inline-flex;
    }
    .shop-by-pet--slider .pet-category-link {
        min-width: 108px;
    }
    .shop-by-need-scroll .shop-by-need-card {
        flex-basis: 130px;
    }
    .home-care-highlights-scroll .home-care-card {
        flex-basis: 210px;
    }
    .home-care-highlights--compact .home-care-card-media {
        max-height: 88px !important;
    }
}

/* Desktop: centered one-row, even gaps, no clustered RTL start-edge */
@media (min-width: 992px) {
    .shop-by-pet--slider,
    .shop-by-need--slider,
    .home-care-highlights--compact {
        overflow: visible;
    }
    .shop-by-pet--slider {
        padding: 2.1rem 0 1.5rem !important;
    }
    .shop-by-need--slider {
        padding: 1.4rem 0 1.9rem !important;
    }
    .shop-by-pet-head,
    .shop-by-need-head,
    .home-care-highlights--compact .home-care-highlights-head {
        text-align: center;
        margin-bottom: 1.15rem;
    }
    .home-care-highlights--compact .home-section-kicker {
        display: inline-flex;
        margin-inline: auto;
    }
    .home-care-highlights--compact .home-care-highlights-sub {
        display: block;
        max-width: 44ch;
        margin: 0.35rem auto 0;
        text-align: center;
    }
    .shop-by-pet-scroll {
        justify-content: center;
        align-items: flex-start;
        overflow: visible;
        gap: 1.5rem 2.1rem;
        padding: 0.35rem 0 0.6rem;
        scroll-snap-type: none;
        max-width: 920px;
        margin-inline: auto;
    }
    .shop-by-pet--slider .pet-category-link {
        flex: 0 0 128px;
        min-width: 128px;
    }
    .shop-by-need-scroll {
        display: grid;
        grid-template-columns: repeat(8, minmax(0, 104px));
        justify-content: center;
        align-items: stretch;
        overflow: visible;
        gap: 0.95rem 1.05rem;
        padding: 0.25rem 0 0.4rem;
        scroll-snap-type: none;
        max-width: 980px;
        margin-inline: auto;
    }
    .shop-by-need-scroll .shop-by-need-card {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 14px 8px 16px;
        box-sizing: border-box;
    }
    .home-care-highlights--compact {
        padding-top: 1.35rem !important;
        padding-bottom: 1.5rem !important;
    }
    .home-care-highlights-scroll {
        justify-content: center;
        overflow: visible;
        gap: 1rem 1.15rem;
        padding: 0.25rem 0 0.4rem;
        scroll-snap-type: none;
        max-width: 980px;
        margin-inline: auto;
    }
    .home-care-highlights-scroll .home-care-card {
        flex: 1 1 200px;
        max-width: 230px;
    }
    .home-care-highlights--compact .home-care-card-media {
        max-height: 96px !important;
    }
    .pet-services-scroll {
        justify-content: center;
        overflow: visible;
        gap: 1rem 1.15rem;
        max-width: 1080px;
        margin-inline: auto;
        scroll-snap-type: none;
    }
    .pet-services-scroll .pet-service-card {
        flex: 0 0 158px;
    }
}

/* ===== Homepage FAQ ===== */
.home-faq {
    padding-top: 0.7rem !important;
    padding-bottom: 1.05rem !important;
}
.home-faq-head {
    text-align: center;
    margin-bottom: 0.7rem;
}
.home-faq-title {
    font-size: clamp(1.02rem, 3.2vw, 1.28rem);
    font-weight: 800;
    color: var(--tc-ink, #24150c);
    margin: 0.15rem 0 0.28rem;
}
.home-faq-sub {
    margin: 0 auto;
    max-width: 46ch;
    color: var(--tc-muted, #6b6258);
    font-size: 0.8rem;
    line-height: 1.5;
}
.home-faq-accordion {
    max-width: 1080px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: transparent;
    --bs-accordion-btn-icon-width: 0.85rem;
}
.home-faq-item {
    border: 1px solid rgba(36, 21, 12, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    margin: 0;
}
.home-faq-item .accordion-button {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--tc-ink, #24150c);
    background: #fff;
    box-shadow: none !important;
    gap: 0.5rem;
    padding: 0.62rem 0.75rem;
    text-align: start;
    align-items: center;
}
.home-faq-item .accordion-button::after {
    width: 0.85rem;
    height: 0.85rem;
    margin-inline-start: auto;
    background-size: 0.85rem;
    flex-shrink: 0;
}
.home-faq-item .accordion-button > span:last-of-type {
    flex: 1 1 auto;
    min-width: 0;
}
.home-faq-item .accordion-button:not(.collapsed) {
    color: var(--tc-primary, #d85f1f);
    background: #fff8f1;
}
.home-faq-item .accordion-body {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #4a433c;
    padding: 0 0.75rem 0.62rem 0.75rem;
    padding-inline-start: 2.55rem;
}
.home-faq-index {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--tc-primary, #d85f1f);
    background: rgba(216, 95, 31, 0.1);
}
@media (max-width: 991.98px) {
    .home-faq {
        padding-top: 0.55rem !important;
        padding-bottom: 0.9rem !important;
    }
    .home-faq-head {
        margin-bottom: 0.55rem;
    }
    .home-faq-sub {
        font-size: 0.74rem;
        max-width: 34ch;
    }
    .home-faq-accordion {
        gap: 0.32rem;
    }
    .home-faq-item {
        border-radius: 10px !important;
    }
    .home-faq-item .accordion-button {
        font-size: 0.8rem;
        padding: 0.58rem 0.7rem;
        min-height: 44px;
    }
    .home-faq-item .accordion-body {
        font-size: 0.76rem;
        padding-bottom: 0.55rem;
        padding-inline-start: 2.4rem;
    }
}
@media (min-width: 992px) {
    .home-faq {
        padding-top: 0.85rem !important;
        padding-bottom: 1.2rem !important;
    }
    .home-faq-accordion {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.7rem;
        align-items: start;
    }
    .home-faq-item .accordion-button {
        font-size: 0.86rem;
        padding: 0.68rem 0.85rem;
    }
    .home-faq-item .accordion-body {
        font-size: 0.82rem;
        padding-inline-start: 2.7rem;
    }
}

/* ===== Header location chip — beside logo, toward center; follows RTL/LTR ===== */
.tc-header-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    min-width: 0;
    flex: 0 1 auto;
    max-width: calc(100% - 7.75rem);
}
.tc-header-brand .navbar-brand.site-logo {
    flex: 0 0 auto;
}
.tc-header-location {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    max-width: 8.25rem;
    padding-block: 0.26rem;
    padding-inline: 0.48rem 0.62rem;
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.14);
    border: 1px solid rgba(140, 198, 63, 0.28);
    color: #1f2937;
    font-weight: 700;
    font-size: 0.74rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.tc-header-location i {
    color: #6fad2e;
    font-size: 0.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.tc-header-location__label {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.tc-header-location:hover,
.tc-header-location:focus-visible {
    background: rgba(140, 198, 63, 0.22);
    border-color: rgba(140, 198, 63, 0.45);
    color: #111827;
    text-decoration: none;
}
.tc-header-location:focus-visible {
    outline: 2px solid rgba(140, 198, 63, 0.7);
    outline-offset: 2px;
}
html[dir="ltr"] .tc-header-location {
    max-width: 9.6rem;
}
@media (max-width: 375px) {
    .tc-header-brand {
        gap: 0.32rem;
        max-width: calc(100% - 7.25rem);
    }
    .tc-header-location {
        max-width: 6.35rem;
        font-size: 0.68rem;
        padding-block: 0.2rem;
        padding-inline: 0.38rem 0.48rem;
    }
    html[dir="ltr"] .tc-header-location {
        max-width: 7.1rem;
    }
}
@media (min-width: 992px) {
    .tc-header-brand {
        max-width: none;
        gap: 0.65rem;
    }
    .tc-header-location {
        max-width: 11rem;
        font-size: 0.8rem;
        padding-block: 0.32rem;
        padding-inline: 0.55rem 0.72rem;
    }
    html[dir="ltr"] .tc-header-location {
        max-width: 12.25rem;
    }
    .tc-header-location i {
        font-size: 0.88rem;
    }
}
