/* ==========================================================================
   TelefoniYT design.css (redesign 2026)

   0  About
      - Loaded as the LAST stylesheet in Views/Shared/_LayoutPageMain.cshtml.
      - Every class is prefixed "tfy-". Old classes and ids that JavaScript
        needs (#quickSearch, #quickSearchForm, #quickSearchResult,
        #searchNewLink, #scrollTop, .offerslider, .dropdown-menu, ...) are
        styled only through a tfy- parent, so nothing outside the new markup
        changes.
      - Theme: <html data-theme="light|dark">, set by the inline script in the
        layout <head>. Without JS the system setting applies (section 1).
      - Pages that are not redesigned yet render inside .tfy-legacy, a light
        panel that keeps their old look in both themes.
      - Break points: 768px  = desktop/mobile banner pools (same as Bootstrap xs)
                      1024px = full nav row vs. hamburger menu
   ========================================================================== */


/* 1  Tokens ---------------------------------------------------------------- */

:root,
[data-theme="light"] {
    --bg: #F3F5F8;
    --surface: #FFFFFF;
    --ink: #121C2B;
    --muted: #566478;
    --line: #D8DFE9;
    --brand: #345080;
    --on-brand: #FFFFFF;
    --price: #345080;
    --soft: #E7ECF3;
    --slot: #DCE4EE;
    --head: #345080;
    --accent: #79CDF2;
    --on-accent: #0F1626;

    --head-ink: #FFFFFF;
    --head-muted: #D5E0EF;
    --head-line: rgba(255, 255, 255, .4);

    --font-head: 'Bricolage Grotesque', 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-logo: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;

    --wrap: 1180px;
    --gutter: 24px;
    --r-sm: 8px;
    --r: 10px;
    --r-md: 12px;
    --r-lg: 14px;
    --r-xl: 16px;
    --r-pill: 999px;
    --touch: 44px;
    --shadow-pop: 0 10px 24px rgba(15, 22, 38, .14);
    --dur: .15s;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0F1626;
    --surface: #172138;
    --ink: #E9EEF6;
    --muted: #9FB0C8;
    --line: #263553;
    --brand: #79CDF2;
    --on-brand: #0F1626;
    --price: #8FD6F5;
    --soft: #1E2A45;
    --slot: #1B2740;
    --head: #1B2C4D;
    --accent: #79CDF2;
    --on-accent: #0F1626;
    --shadow-pop: 0 10px 24px rgba(0, 0, 0, .45);

    color-scheme: dark;
}

/* No JS (no data-theme attribute): follow the system setting. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0F1626;
        --surface: #172138;
        --ink: #E9EEF6;
        --muted: #9FB0C8;
        --line: #263553;
        --brand: #79CDF2;
        --on-brand: #0F1626;
        --price: #8FD6F5;
        --soft: #1E2A45;
        --slot: #1B2740;
        --head: #1B2C4D;
        --accent: #79CDF2;
        --on-accent: #0F1626;
        --shadow-pop: 0 10px 24px rgba(0, 0, 0, .45);

        color-scheme: dark;
    }
}

@media (max-width: 767px) {
    :root {
        --gutter: 16px;
    }
}


/* 2  Base ------------------------------------------------------------------ */

body {
    background: var(--bg);
}

.tfy-hd,
.tfy-ft,
.tfy-pagehead,
.tfy-adstrip,
.tfy-page {
    font-family: var(--font-body);
    color: var(--ink);
    text-align: left;              /* Layout.css centres body text */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tfy-hd *,
.tfy-ft *,
.tfy-pagehead *,
.tfy-adstrip *,
.tfy-page * {
    box-sizing: border-box;
}

.tfy-page h1,
.tfy-page h2,
.tfy-page h3,
.tfy-pagehead h1 {
    font-family: var(--font-head);
    letter-spacing: -.02em;
    color: var(--ink);
}

.tfy-num {
    font-variant-numeric: tabular-nums;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.tfy-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}


/* 3  Layout ---------------------------------------------------------------- */

.tfy-wrap {
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.tfy-main {
    display: block;
    min-height: 40vh;
}

.tfy-main:focus {
    outline: none;                 /* focus target of the skip link only */
}

/* Page title bar (ViewBag.CurrentPageTitle) */
.tfy-pagehead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 32px;
}

.tfy-pagehead-main {
    flex: 1 1 420px;
    min-width: 0;
}

.tfy-pagehead .tfy-pagehead-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
}

.tfy-pagehead-sub {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

.tfy-pagehead-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tfy-pagehead-shop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tfy-pagehead-logo {
    height: 40px;
    width: auto;
    border-radius: var(--r-sm);
    background: #fff;
}

@media (max-width: 767px) {
    .tfy-pagehead {
        padding-top: 22px;
    }

    .tfy-pagehead .tfy-pagehead-title {
        font-size: 28px;
        line-height: 1.12;
    }

    .tfy-pagehead-sub {
        margin-top: 8px;
        font-size: 15px;
    }
}

/* Pages that are not redesigned yet: a light panel, same look in both themes. */
.tfy-legacy {
    max-width: var(--wrap);
    margin: 20px auto 0;
    padding: 12px 0 24px;
    background: #fff;
    color: #333;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color-scheme: light;
    --brand: #345080;              /* focus ring on the white panel, also in the dark theme */
}

.tfy-legacy > .container {
    width: auto;
    max-width: 100%;
}

@media (max-width: 1227px) {
    .tfy-legacy {
        margin-left: var(--gutter);
        margin-right: var(--gutter);
    }
}

@media (max-width: 767px) {
    .tfy-legacy {
        margin: 12px 0 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}

/* Redesigned pages */
.tfy-page {
    display: block;
}


/* 4  Header ---------------------------------------------------------------- */

header.tfy-hd {
    border: 0;                     /* Styles/default.css: header { border-bottom } */
    position: relative;
    z-index: 1000;                 /* menus above page content (sliders, chosen lists), below Bootstrap modals (1040) */
}

.tfy-hd a {
    text-decoration: none;
}

.tfy-hd-bar {
    background: var(--head);
    color: var(--head-ink);
}

.tfy-hd-bar :focus-visible {
    outline-color: var(--accent);  /* --brand would vanish on the brand-blue bar */
}

/* 4.1 Top strip: account */
.tfy-hd-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px 20px;
    padding-top: 4px;
    font-size: 14px;
}

.tfy-hd-top-link,
.tfy-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--head-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.tfy-hd-top-link:hover,
.tfy-hd-top-link:focus,
.tfy-account-toggle:hover {
    color: var(--accent);
}

.tfy-account {
    position: relative;
}

.tfy-account .tfy-icon {
    width: 14px;
    height: 14px;
}

.tfy-account .dropdown-menu {
    left: auto;
    right: 0;
}

/* 4.2 Main row: brand, search, actions */
.tfy-hd-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding-top: 10px;
    padding-bottom: 16px;
}

.tfy-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--head-ink);
    flex: 0 0 auto;
}

.tfy-brand:hover,
.tfy-brand:focus {
    color: var(--head-ink);
}

.tfy-brand-mark {
    width: 44px;
    height: 44px;
}

.tfy-brand-wave {
    stroke: var(--accent);
}

.tfy-brand-word {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tfy-brand-yt {
    color: var(--accent);
}

/* Search (markup and ids are shared with the page scripts: keep them) */
.tfy-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 300px;
    max-width: 520px;
    min-width: 0;
    margin: 0;
    padding: 0 4px 0 14px;
    background: var(--surface);
    color: var(--muted);
    border-radius: var(--r);
}

.tfy-search:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.tfy-search .tfy-icon {
    width: 18px;
    height: 18px;
}

.tfy-search #quickSearch {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    outline: none;
}

.tfy-search #quickSearch::placeholder {
    color: var(--muted);
    opacity: 1;
}

.tfy-search #searchNewLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--r-sm);
    background: var(--brand);
    color: var(--on-brand);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.tfy-search #searchNewLink:hover,
.tfy-search #searchNewLink:focus {
    filter: brightness(1.1);
    color: var(--on-brand);
}

/* Quick search results (Knockout). index.js (and compare.js) write an inline
   "left" computed while the list is still hidden, which pushes it to the right
   on the first key press; the list is pinned under the input instead. */
.tfy-search #quickSearchResult {
    position: absolute;
    top: calc(100% + 6px);
    left: 40px !important;
    right: 0;
    width: auto;                   /* Layout.css: 633px / 90% */
    z-index: 1050;
    max-height: 70vh;
    overflow: auto;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
    color: var(--ink);
}

.tfy-search #quickSearchResult ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background: none;
    border: 0;
}

.tfy-search #quickSearchResult ul > li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.tfy-search #quickSearchResult ul > li + li {
    margin-top: 2px;
}

.tfy-search #quickSearchResult ul > li:hover,
.tfy-search #quickSearchResult ul > li:focus {
    background: var(--soft);
    color: var(--brand);
}

.tfy-search #quickSearchResult img {
    width: 48px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

/* Actions */
.tfy-hd-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.tfy-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch);
    height: var(--touch);
    padding: 0;
    border: 1px solid var(--head-line);
    border-radius: var(--r);
    background: transparent;
    color: var(--head-ink);
    cursor: pointer;
}

.tfy-iconbtn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tfy-theme-toggle .tfy-ico-sun,
[data-theme="dark"] .tfy-theme-toggle .tfy-ico-moon {
    display: none;
}

[data-theme="dark"] .tfy-theme-toggle .tfy-ico-sun {
    display: inline-block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .tfy-theme-toggle .tfy-ico-moon { display: none; }
    :root:not([data-theme]) .tfy-theme-toggle .tfy-ico-sun { display: inline-block; }
}

.tfy-btn-post {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    padding: 0 22px;
    border-radius: var(--r);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.tfy-hd .tfy-btn-post:hover,
.tfy-hd .tfy-btn-post:focus {
    color: var(--on-accent);
    filter: brightness(1.06);
}

.tfy-menu-toggle .tfy-icon {
    width: 22px;
    height: 22px;
}

@media (max-width: 767px) {
    .tfy-hd-main {
        gap: 10px 8px;
        padding-top: 6px;
        padding-bottom: 14px;
    }

    .tfy-brand-mark {
        width: 36px;
        height: 36px;
    }

    .tfy-brand-word {
        font-size: 25px;
    }

    .tfy-hd-actions {
        order: 2;
        gap: 8px;
    }

    .tfy-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .tfy-search #quickSearch {
        font-size: 16px;           /* no zoom on iOS */
        padding: 13px 4px;
    }

    .tfy-search #searchNewLink,
    .tfy-hd-actions .tfy-btn-post {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tfy-hd-main {
        flex-wrap: nowrap;
        gap: 12px 16px;
    }

    .tfy-brand-mark {
        width: 40px;
        height: 40px;
    }

    .tfy-brand-word {
        font-size: 27px;
    }

    .tfy-search {
        flex: 1 1 160px;
    }

    .tfy-search #searchNewLink {
        padding: 0 12px;
    }

    .tfy-hd-actions {
        gap: 8px;
    }

    .tfy-btn-post {
        padding: 0 16px;
    }
}

@media (max-width: 380px) {
    .tfy-brand-word {
        font-size: 22px;
    }
}

/* 4.3 Nav row */
.tfy-navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.tfy-nav {
    padding-top: 4px;
}

.tfy-nav .tfy-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tfy-nav .tfy-nav-list > li {
    position: relative;
    float: none;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

.tfy-nav .tfy-nav-list > li > .tfy-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: var(--touch);
    padding: 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}

.tfy-nav .tfy-nav-list > li > .tfy-nav-link:hover,
.tfy-nav .tfy-nav-list > li.open > .tfy-nav-link {
    color: var(--brand);
    background: none;
}

.tfy-nav .tfy-nav-list > li > .tfy-nav-link.is-active {
    color: var(--brand);
    font-weight: 700;
    border-bottom-color: var(--brand);
}

.tfy-nav-link .tfy-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--dur);
}

.tfy-nav .open > .tfy-nav-link .tfy-icon {
    transform: rotate(180deg);
}

.tfy-nav .tfy-nav-list > li > .tfy-nav-cta {
    margin: 8px 0 4px;
    justify-content: center;
    border-radius: var(--r);
    border-bottom: 0;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
}

/* 4.4 Dropdown panels: nav menus and account menu (Bootstrap 3 dropdown JS) */
.tfy-hd .dropdown-menu {
    position: absolute;
    top: 100%;
    z-index: 1000;
    display: none;
    float: none;
    min-width: 220px;
    margin: 6px 0 0;
    padding: 8px;
    list-style: none;
    text-align: left;
    font-size: 15px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
}

.tfy-hd .open > .dropdown-menu {
    display: block;
}

.tfy-hd .dropdown-menu > li {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

.tfy-hd .dropdown-menu > li > a,
.tfy-menu-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    background: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    white-space: normal;
    text-decoration: none;
}

.tfy-hd .dropdown-menu > li > a:hover,
.tfy-hd .dropdown-menu > li > a:focus,
.tfy-menu-list a:hover,
.tfy-menu-list a:focus {
    background: var(--soft);
    color: var(--brand);
}

.tfy-menu--end {
    left: auto;
    right: 0;
}

.tfy-menu-groups {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 8px 20px;
}

.tfy-menu-group {
    min-width: 0;
    text-align: left;
}

.tfy-menu-title {
    margin: 4px 10px 6px;
    padding: 0;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tfy-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tfy-menu-list > li {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

.tfy-menu-list .tfy-menu-more a {
    color: var(--brand);
    font-weight: 600;
}

/* 4.5 Nav: full row from 1024px, hamburger panel below */
@media (min-width: 1024px) {
    .tfy-only-narrow {
        display: none !important;
    }

    #tfy-menu.collapse {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }
}

@media (max-width: 1023px) {
    .tfy-only-wide {
        display: none !important;
    }

    .tfy-nav {
        padding-top: 0;
    }

    .tfy-nav .tfy-nav-list {
        flex-direction: column;
        gap: 0;
        padding: 8px 0 16px;
    }

    .tfy-nav .tfy-nav-list > li > .tfy-nav-link {
        width: 100%;
        padding: 12px 4px;
        border-bottom: 1px solid var(--line);
    }

    .tfy-nav .tfy-nav-list > li > .tfy-nav-link.is-active {
        border-bottom-color: var(--line);
        box-shadow: inset 3px 0 0 var(--brand);
        padding-left: 12px;
    }

    .tfy-nav .tfy-nav-list > li > .tfy-nav-link .tfy-icon {
        margin-left: auto;
    }

    .tfy-nav .navbar-nav .dropdown-menu,
    .tfy-nav .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 4px 0 8px 8px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .tfy-menu-groups {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 4px;
    }
}

/* Touch screens: larger targets */
@media (pointer: coarse) {
    .tfy-hd-top-link,
    .tfy-account-toggle,
    .tfy-hd .dropdown-menu > li > a,
    .tfy-menu-list a {
        min-height: var(--touch);
    }
}


/* 5  Components ------------------------------------------------------------- */

/* 5.1 Ad slot label ("Reklamë") */
.tfy-ad-label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
}

/* 5.2 Strip with the HomeMiddle2 / HomeMiddle3 desktop banners
   (they were in the left sidebar). Same visibility (desktop only) and the
   same image width as the old sidebar column at each Bootstrap size. */
.tfy-adstrip {
    padding-top: 20px;
}

.tfy-adstrip .tfy-ad-label {
    margin-bottom: 8px;
    border: 1px solid var(--line);
}

.tfy-adstrip-slots {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

.tfy-adstrip-slot {
    width: 172px;                  /* col-sm-3 of 750px, minus padding */
}

.tfy-adstrip-slot .ShowImg {
    margin-bottom: 10px;
}

.tfy-adstrip-slot img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--r-sm);
}

@media (min-width: 992px) {
    .tfy-adstrip-slot {
        width: 227px;              /* col-md-3 of 970px */
    }
}

@media (min-width: 1200px) {
    .tfy-adstrip-slot {
        width: 277px;              /* col-lg-3 of 1170px */
    }
}


/* 6  Pages ----------------------------------------------------------------- */

/* 6.0 Shared building blocks of redesigned pages */

/* Styles/default.css and Bootstrap style bare h2/h3/h4 (padding, border, colour). */
.tfy-page h2,
.tfy-page h3,
.tfy-page h4 {
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1.2;
    text-align: left;
}

.tfy-page a {
    text-decoration: none;
}

.tfy-page a:hover,
.tfy-page a:focus {
    text-decoration: none;
}

.tfy-page img {
    vertical-align: middle;
}

.tfy-sec {
    padding-top: 48px;
}

.tfy-sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 12px;
}

.tfy-page .tfy-sec-title {
    color: var(--ink);
    font-size: 30px;
    font-weight: 700;
}

.tfy-page .tfy-sec-title--sm {
    font-size: 22px;
}

.tfy-sec-title a {
    color: inherit;
}

.tfy-sec-title a:hover,
.tfy-sec-more:hover {
    color: var(--brand);
    text-decoration: underline;
}

.tfy-sec-more {
    color: var(--brand);
    font-size: 15px;
    font-weight: 600;
}

.tfy-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

/* Image frame. Phone and product photos are mostly on white, so the frame
   is white in both themes; empty frames use the soft tone. */
.tfy-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--muted);
}

.tfy-thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tfy-thumb--empty {
    background: var(--soft);
}

.tfy-price {
    color: var(--price);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -.02em;
}

/* List rows (one link per row) */
.tfy-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: var(--ink);
}

.tfy-row + .tfy-row {
    border-top: 1px solid var(--line);
}

a.tfy-row:hover,
a.tfy-row:focus {
    background: var(--soft);
    color: var(--ink);
}

a.tfy-row:focus-visible {
    outline-offset: -3px;
}

.tfy-row-inner {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.tfy-row-thumb {
    width: 48px;
    height: 56px;
}

.tfy-row-thumb--lg {
    width: 48px;
    height: 48px;
}

.tfy-row-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tfy-row-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

a.tfy-row:hover .tfy-row-title {
    color: var(--brand);
}

.tfy-row-meta,
.tfy-row-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.tfy-row-text {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.tfy-row-price {
    flex: 0 0 auto;
    max-width: 40%;
    color: var(--price);
    font-weight: 700;
    text-align: right;
}

/* Cards */
.tfy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.tfy-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: var(--ink);
}

a.tfy-card:hover,
a.tfy-card:focus {
    border-color: var(--brand);
    color: var(--ink);
}

/* Ad slots ("Reklamë"). Banners keep their Razor, links and image URLs;
   images are never cropped (object-fit: contain on the slot colour). */
.tfy-ad {
    position: relative;
}

.tfy-ad .ShowImg {
    margin: 0;
}

.tfy-ad--free {
    text-align: center;
}

.tfy-ad--free > .tfy-ad-label {
    display: table;
    margin: 0 0 8px;
    border: 1px solid var(--line);
}

.tfy-ad--free img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
}

.tfy-ad--free > a + a {
    display: block;
    margin-top: 12px;
}

/* Fixed-height top banner (200 px desktop, 100 px mobile, as before).
   The label sits above the frame so it never covers a paid banner. */
.tfy-ad--top > .tfy-ad-label {
    display: table;
    margin: 0 0 8px;
    border: 1px solid var(--line);
}

.tfy-ad--top .bx-wrapper,
.tfy-ad--top > .tfy-ad-track {
    height: 200px;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--slot);
}

.tfy-ad--top-sm .bx-wrapper,
.tfy-ad--top-sm > .tfy-ad-track {
    height: 100px;
    border-radius: 0;
}

.tfy-ad--top .bx-viewport,
.tfy-ad--top .bx-wrapper .tfy-ad-track,
.tfy-ad--top .tfy-ad-track > a,
.tfy-ad--top .ShowImg {
    height: 100% !important;
}

.tfy-ad--top .tfy-ad-track > a {
    display: block;
}

.tfy-ad--top img,
.tfy-ad--top .img-responsive {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

/* bxSlider frame (jquery.bxslider.css draws a white border, shadow and
   pager below the slider; site.css shifts the viewport by 5px) */
.tfy-page .bx-wrapper {
    margin: 0;
}

.tfy-page .bx-wrapper .bx-viewport {
    left: 0;
    margin-left: 0;                /* site.css: margin-left 5px */
    border: 0;
    background: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.tfy-page .bx-wrapper .bx-pager {
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 0;
    font-family: var(--font-body);
}

.tfy-page .bx-wrapper .bx-pager .bx-pager-item {
    padding: 8px 2px;
}

.tfy-page .bx-wrapper .bx-pager.bx-default-pager a {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 4px;
    background: var(--muted);
    opacity: .55;
    -webkit-transition: width var(--dur), opacity var(--dur);
    transition: width var(--dur), opacity var(--dur);
}

.tfy-page .bx-wrapper .bx-pager.bx-default-pager a:hover,
.tfy-page .bx-wrapper .bx-pager.bx-default-pager a.active {
    width: 24px;
    background: var(--brand);
    opacity: 1;
}

.tfy-ad--top .bx-wrapper .bx-pager {
    left: auto;
    right: 12px;
    bottom: 4px;
    width: auto;
    z-index: 60;
}

.tfy-ad--top .bx-wrapper .bx-pager.bx-default-pager a {
    background: #fff;
    opacity: .8;
    box-shadow: 0 0 0 1px rgba(15, 22, 38, .35);
}

.tfy-ad--top .bx-wrapper .bx-pager.bx-default-pager a.active {
    background: var(--brand);
    opacity: 1;
}

@media (max-width: 767px) {
    .tfy-sec {
        padding-top: 28px;
    }

    .tfy-page .tfy-sec-title {
        font-size: 24px;
    }

    .tfy-page .tfy-sec-title--sm {
        font-size: 22px;
    }

    .tfy-sec-more {
        font-size: 14px;
    }

    .tfy-row {
        padding: 13px 16px;
    }

    .tfy-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tfy-card {
        gap: 12px;
        padding: 16px;
    }
}


/* Stand-alone text links get a 24 px target (WCAG 2.5.8) */
.tfy-sec-more,
.tfy-focus-tag,
.tfy-focus-price,
.tfy-focus-name a,
.tfy-focus-used a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}


/* 6.1 Home (Views/Main/Index.cshtml) */

.tfy-home-top {
    padding-top: 20px;
}

/* Brand chips: the same MainVendorsPartial as the Prodhues menu */
.tfy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 28px;
}

.tfy-chips .tfy-menu-group,
.tfy-chips .tfy-menu-list {
    display: contents;
}

.tfy-chips .tfy-menu-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.tfy-chips .tfy-menu-list > li {
    display: block;
    flex: 0 0 auto;
}

.tfy-chips .tfy-menu-list a,
.tfy-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.tfy-chips .tfy-menu-list a:hover,
.tfy-chips .tfy-menu-list a:focus,
.tfy-chip:hover,
.tfy-chip:focus {
    border-color: var(--brand);
    background: var(--surface);
    color: var(--brand);
}

.tfy-chips .tfy-menu-list .tfy-menu-more a {
    color: var(--brand);
    font-weight: 600;
}

/* Vendor logos: only on the chips, never in the header menu */
.tfy-vlogo {
    display: none;
}

.tfy-chips .tfy-vlogo {
    display: block;
    width: 22px;
    height: 22px;
    margin-left: -6px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

/* Offers carousel (.offerslider, bxSlider, one card per slide) */
.tfy-offer {
    display: block;
    color: var(--ink);
}

.tfy-offer:hover,
.tfy-offer:focus {
    color: var(--ink);
}

.tfy-offer-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 20px 24px;
    overflow: visible;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.tfy-offer:hover .tfy-offer-card,
.tfy-offer:focus .tfy-offer-card {
    border-color: var(--brand);
}

.tfy-offer:focus-visible {
    outline: none;
}

.tfy-offer:focus-visible .tfy-offer-card {
    outline: 3px solid var(--brand);
    outline-offset: -3px;
}

.tfy-offer-photo {
    width: 96px;
    height: 128px;
}

.tfy-offer-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tfy-offer-model {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

.tfy-offer-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

.tfy-offer-prices .tfy-price {
    font-size: 30px;
    line-height: 1.1;
}

.tfy-offer-old {
    color: var(--muted);
    font-size: 15px;
}

.tfy-offer-days {
    color: var(--muted);
    font-size: 14px;
}

.tfy-offer-days strong {
    color: var(--ink);
    font-size: 16px;
}

.tfy-offer-days--today {
    color: var(--ink);
    font-weight: 600;
}

.tfy-offer-logo {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    background: #fff;
}

.tfy-offer-logo img {
    display: block;
    height: 30px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Në fokus (left) and the services / ads column (right) */
.tfy-home-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
    padding-top: 24px;
}

.tfy-home-main {
    flex: 2 1 620px;
    min-width: 0;
}

.tfy-home-side {
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}

.tfy-focus + .tfy-focus {
    border-top: 1px solid var(--line);
}

.tfy-focus-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px 8px;
}

.tfy-focus-photo {
    width: 56px;
    height: 72px;
}

.tfy-focus-info {
    flex: 1 1 auto;
    min-width: 0;
}

.tfy-page .tfy-focus-name {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}

.tfy-focus-name a {
    color: var(--ink);
}

.tfy-focus-name a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.tfy-focus-spec {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.tfy-focus-tag {
    display: inline-block;
    margin-top: 4px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 500;
}

.tfy-focus-tag:hover {
    text-decoration: underline !important;
}

.tfy-focus-prices {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    max-width: 45%;
    text-align: right;
}

.tfy-focus-label {
    color: var(--muted);
    font-size: 13px;
}

.tfy-focus-price {
    font-size: 28px;
    line-height: 1.1;
}

a.tfy-focus-price:hover {
    text-decoration: underline !important;
}

.tfy-focus-used {
    color: var(--muted);
    font-size: 13px;
}

.tfy-focus-used a {
    color: var(--brand);
    font-weight: 600;
}

.tfy-focus-used a:hover {
    text-decoration: underline !important;
}

/* "Të gjitha specifikimet" (all visible attributes, as before) */
.tfy-specs {
    padding: 0 20px 12px 94px;
}

.tfy-specs > summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.tfy-specs > summary::-webkit-details-marker {
    display: none;
}

.tfy-specs > summary .tfy-icon {
    width: 16px;
    height: 16px;
    -webkit-transition: transform var(--dur);
    transition: transform var(--dur);
}

.tfy-specs[open] > summary .tfy-icon {
    transform: rotate(180deg);
}

.tfy-specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px 24px;
    margin: 8px 0 8px;
}

.tfy-specs-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.tfy-specs-list dd {
    margin: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
}

/* Latest services */
.tfy-svc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
}

.tfy-svc img {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
}

.tfy-svc-name {
    color: var(--muted);
}

.tfy-svc-price {
    margin-left: auto;
    color: var(--price);
    font-weight: 700;
    white-space: nowrap;
}

/* Mobil Shop / Dyqanet */
.tfy-shopcard-photo {
    width: 72px;
    height: 96px;
}

.tfy-shopcard-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tfy-shopcard-shop {
    color: var(--muted);
    font-size: 13px;
}

.tfy-shopcard-model {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.tfy-shopcard-line {
    color: var(--muted);
    font-size: 14px;
}

.tfy-shopcard-line strong {
    color: var(--ink);
    font-weight: 700;
}

.tfy-shopcard-line--main strong {
    color: var(--price);
    font-size: 26px;
}

/* Articles */
.tfy-article {
    gap: 20px;
    padding: 16px 20px;
}

.tfy-article-photo {
    flex: 0 0 auto;
    width: 132px;
    height: 88px;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--soft);
}

.tfy-article-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tfy-article-title {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

a.tfy-row:hover .tfy-article-title {
    color: var(--brand);
}

.tfy-article-more {
    margin-top: 4px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
}

/* The desktop strip of the former sidebar banners sits between the
   columns and Mobil Shop on the home page */
.tfy-home .tfy-adstrip {
    padding-top: 40px;
}

@media (max-width: 767px) {
    .tfy-home-top {
        padding-top: 12px;
    }

    .tfy-ad--top-sm > .tfy-ad-label {
        margin-left: 16px;
        font-size: 11px;
    }

    .tfy-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-top: 16px;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .tfy-chips::-webkit-scrollbar {
        display: none;
    }

    .tfy-chips .tfy-menu-list a,
    .tfy-chip {
        min-height: var(--touch);
    }

    .tfy-offer-card {
        flex-wrap: wrap;
        gap: 12px 14px;
        padding: 16px;
    }

    .tfy-offer-photo {
        width: 72px;
        height: 96px;
    }

    .tfy-offer-body {
        flex-basis: 0;
    }

    .tfy-offer-prices .tfy-price {
        font-size: 24px;
    }

    .tfy-offer-logo {
        order: -1;
        margin-left: auto;
        width: 100%;
        padding: 0;
        background: none;
    }

    .tfy-offer-logo img {
        height: 26px;
        padding: 2px 6px;
        border-radius: 6px;
        background: #fff;
    }

    .tfy-home-split {
        gap: 28px;
    }

    .tfy-home-main,
    .tfy-home-side {
        flex-basis: 100%;
    }

    .tfy-focus-row {
        flex-wrap: wrap;
        gap: 10px 12px;
        padding: 14px 14px 6px;
    }

    .tfy-focus-photo {
        width: 44px;
        height: 58px;
    }

    .tfy-focus-info {
        flex-basis: 0;
    }

    .tfy-page .tfy-focus-name {
        font-size: 16px;
        line-height: 1.25;
    }

    .tfy-focus-spec {
        font-size: 13px;
    }

    .tfy-focus-prices {
        flex-basis: 100%;
        align-items: flex-start;
        max-width: none;
        padding-left: 56px;
        text-align: left;
    }

    .tfy-focus-price {
        font-size: 21px;
    }

    .tfy-specs {
        padding: 0 14px 10px;
    }

    .tfy-specs-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 16px;
    }

    .tfy-shopcard-photo {
        width: 44px;
        height: 58px;
    }

    .tfy-shopcard-model {
        font-size: 16px;
    }

    .tfy-shopcard-line--main strong {
        font-size: 22px;
    }

    .tfy-article {
        gap: 12px;
        padding: 14px 16px;
    }

    .tfy-article-photo {
        width: 84px;
        height: 64px;
        border-radius: var(--r-sm);
    }

    .tfy-article-title {
        font-size: 16px;
        line-height: 1.3;
    }
}


/* 6.2 Manufacturers (Views/Prodhuesit/TeGjithe.cshtml) */

.tfy-vendors-top {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding-top: 28px;
}

.tfy-vcard {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: var(--ink);
}

.tfy-vcard:hover,
.tfy-vcard:focus {
    border-color: var(--brand);
    color: var(--brand);
}

/* Logos are pictures on white: a white tile in both themes, never stretched */
.tfy-vcard-logo,
.tfy-vrow-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
}

.tfy-vcard-logo {
    width: 104px;
    height: 52px;
    padding: 4px 8px;
    border-radius: var(--r);
}

.tfy-vcard-logo img,
.tfy-vrow-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tfy-vcard-name {
    min-width: 0;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.tfy-vendors-ad {
    padding-top: 32px;
}

.tfy-vendors-all {
    padding: 12px 16px;
    columns: 230px;
    column-gap: 8px;
}

.tfy-vrow {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: var(--touch);
    padding: 8px 10px;
    border-radius: var(--r);
    color: var(--ink);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.tfy-vrow:hover,
.tfy-vrow:focus {
    background: var(--soft);
    color: var(--brand);
}

.tfy-vrow:focus-visible {
    outline-offset: -3px;
}

.tfy-vrow-logo {
    width: 64px;
    height: 34px;
    padding: 2px 4px;
    border-radius: 7px;
}

.tfy-vrow-name {
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .tfy-vendors-top {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding-top: 18px;
    }

    .tfy-vcard {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .tfy-vcard-logo {
        width: 84px;
        height: 44px;
        border-radius: 9px;
    }

    .tfy-vcard-name {
        font-size: 19px;
    }

    .tfy-vendors-ad {
        padding-top: 22px;
    }

    .tfy-vendors-all {
        padding: 6px 8px;
        columns: 150px;
        column-gap: 4px;
    }

    .tfy-vrow {
        gap: 10px;
        padding: 8px;
    }

    .tfy-vrow-logo {
        width: 48px;
        height: 28px;
        border-radius: 6px;
    }

    .tfy-vrow-name {
        font-size: 15px;
    }
}


/* 6.3 Buttons and form controls (redesigned pages) */

.tfy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.tfy-btn:hover,
.tfy-btn:focus {
    border-color: var(--brand);
    color: var(--brand);
}

.tfy-btn--primary {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--on-brand);
}

.tfy-btn--primary:hover,
.tfy-btn--primary:focus {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--surface);
}

.tfy-btn--sm {
    min-height: var(--touch);
    padding: 0 10px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.tfy-page fieldset.tfy-fieldset {
    min-width: 0;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.tfy-page .tfy-fieldset > legend {
    float: left;                   /* keeps the legend inside the fieldset padding */
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.tfy-fieldset > legend + * {
    clear: left;
}

.tfy-range {
    display: flex;
    gap: 10px;
}

.tfy-page label.tfy-field {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
    font-weight: 400;
}

/* "Deri" holds the longest values ("Më shumë se 64 GB", "12 + Megapixel") */
.tfy-range > .tfy-field:last-child {
    flex-grow: 1.35;
}

.tfy-field-label {
    color: var(--muted);
    font-size: 13px;
}

.tfy-select {
    width: 100%;
    min-height: var(--touch);
    padding: 8px 4px 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.3;
}

.tfy-select:hover {
    border-color: var(--muted);
}

.tfy-select option[disabled] {
    color: var(--muted);
}

.tfy-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

.tfy-page label.tfy-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--touch);
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.tfy-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--brand);
}


/* 6.4 Filtro (Views/Filter/Index.cshtml) */

.tfy-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px;
    padding-top: 24px;
}

.tfy-filter-panel {
    flex: 0 0 340px;
    max-width: 100%;
    padding: 6px 22px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
}

.tfy-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.tfy-filter-summary::-webkit-details-marker {
    display: none;
}

.tfy-filter-panel[open] > .tfy-filter-summary .tfy-icon {
    transform: rotate(180deg);
}

/* From 1024 px the form is always shown, so its bar is hidden. If the form
   was folded on a narrower screen (tablet turned, window widened), the bar
   stays so the form can be opened again. */
@media (min-width: 1024px) {
    .tfy-filter-panel[open] > .tfy-filter-summary {
        display: none;
    }
}

.tfy-filter-panel > .tfy-filter-form > .tfy-fieldset:first-of-type {
    border-top: 0;
}

.tfy-filter-actions {
    display: flex;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.tfy-filter-actions .tfy-btn {
    flex: 1 1 0;
}

.tfy-filter-results {
    flex: 1 1 560px;
    min-width: 0;
}

.tfy-pcards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.tfy-pcard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.tfy-pcard-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    overflow: hidden;
    border-radius: var(--r);
    background: #fff;
}

.tfy-pcard-photo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tfy-pcard-photo--empty {
    background: var(--soft);
    color: var(--muted);
}

.tfy-pcard-photo--empty .tfy-icon {
    width: 44px;
    height: 44px;
}

.tfy-pcard-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.tfy-page .tfy-pcard-name {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}

.tfy-pcard-name a {
    display: inline-flex;
    min-height: 24px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.tfy-pcard-name a:hover {
    color: var(--brand);
    text-decoration: underline !important;
}

.tfy-pcard-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.tfy-pcard-price {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.tfy-pcard-price span {
    color: var(--muted);
}

.tfy-pcard-price strong {
    color: var(--price);
    font-weight: 700;
    text-align: right;
}

/* Karakteristikat (primary) on its own row, the other three below:
   in a 2 x 2 grid the longest label does not fit a 230 px card. */
.tfy-pcard-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.tfy-pcard-actions > .tfy-btn:first-child {
    grid-column: 1 / -1;
}

.tfy-pcard-actions .tfy-btn--sm {
    padding: 0 4px;
}

.tfy-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

/* The panel stays in view while the results scroll, but only on screens
   tall enough to show the whole form. */
@media (min-width: 1024px) and (min-height: 1050px) {
    .tfy-filter-panel {
        position: sticky;
        top: 16px;
    }
}

/* Below 1024 px: the form folds (open by default), results below it */
@media (max-width: 1023px) {
    .tfy-filter {
        gap: 18px;
    }

    .tfy-filter-panel {
        flex: 1 1 100%;
        padding: 0;
        border-radius: var(--r-lg);
    }

    .tfy-filter-summary {
        padding: 0 16px;
    }

    .tfy-filter-form {
        padding: 0 16px 16px;
    }

    .tfy-filter-panel > .tfy-filter-form > .tfy-fieldset:first-of-type {
        border-top: 1px solid var(--line);
    }

    .tfy-filter-results {
        flex-basis: 100%;
    }
}

@media (max-width: 767px) {
    .tfy-filter {
        padding-top: 16px;
    }

    .tfy-pcards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tfy-pcard {
        flex-direction: row;
        padding: 12px;
    }

    .tfy-pcard-photo {
        flex: 0 0 88px;
        height: auto;
        min-height: 150px;
    }

    .tfy-pcard-body {
        gap: 8px;
    }

    .tfy-page .tfy-pcard-name {
        font-size: 16px;
        line-height: 1.25;
    }

    .tfy-pcard-actions {
        gap: 6px;
    }

    .tfy-pcard-actions .tfy-btn--sm {
        font-size: 13px;
    }
}


/* 6.5 Phone detail (Views/Telefoni/Index.cshtml) */

/* The title comes from the controller as HTML:
   <div>Name<br><p style="font-size:x-small">Njihet edhe si: ...</p></div> */
.tfy-pagehead-title br {
    display: none;
}

.tfy-pagehead .tfy-pagehead-title p {
    margin: 8px 0 0;
    padding: 0;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 16px !important;    /* overrides the inline x-small */
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4 !important;
}

/* Top: photo | key specs, actions */
.tfy-phone-top {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 28px;
    padding-top: 24px;
}

.tfy-phone-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.tfy-phone-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    padding: 20px;
    overflow: hidden;
    background: #fff;              /* product photos are on white */
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    cursor: zoom-in;
}

.tfy-phone-photo img,
.tfy-phone-thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tfy-phone-photo--empty {
    background: var(--soft);
    color: var(--muted);
    cursor: default;
}

.tfy-phone-photo--empty .tfy-icon {
    width: 64px;
    height: 64px;
}

.tfy-phone-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(18, 28, 43, .78);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.tfy-phone-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tfy-phone-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    cursor: zoom-in;
}

.tfy-phone-thumb:hover,
.tfy-phone-thumb:focus,
.tfy-phone-photo:hover {
    border-color: var(--brand);
}

.tfy-phone-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 28, 43, .62);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.tfy-phone-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.tfy-keyspecs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tfy-keyspec {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "icon label" "icon value" "icon sub";
    grid-template-rows: auto auto 1fr;
    column-gap: 14px;
    row-gap: 2px;
    min-height: 100px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: var(--ink);
}

.tfy-keyspec:hover,
.tfy-keyspec:focus {
    border-color: var(--brand);
    color: var(--ink);
}

.tfy-keyspec .tfy-keyspec-icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--r);
    background: var(--soft);
    color: var(--brand);
}

.tfy-keyspec-label {
    grid-area: label;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tfy-keyspec-value {
    grid-area: value;
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.tfy-keyspec-sub {
    grid-area: sub;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tfy-phone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tfy-phone-actions .tfy-btn {
    flex: 1 1 120px;
}

.tfy-phone-ad {
    padding-top: 32px;
}

/* Prices: tabs (Bootstrap tab plugin), town filter, tables */
.tfy-prices-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 16px;
}

.tfy-page .tfy-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--soft);
    border-radius: var(--r-md);
}

.tfy-tabs > li {
    float: none;
    margin: 0;
    padding: 0;
}

.tfy-tabs > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    padding: 0 18px;
    border-radius: var(--r);
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.tfy-tabs > li > a:hover,
.tfy-tabs > li > a:focus {
    color: var(--ink);
}

.tfy-tabs > li.active > a {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(15, 22, 38, .14);
}

/* telefoni.js toggles .tabNonActive (site.css: grey box with borders) */
.tfy-tabs .tfy-tab,
.tfy-tabs .tabNonActive {
    padding: 0;
    background: none;
    border: 0;
}

.tfy-page label.tfy-town {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 400;
}

.tfy-town .tfy-select {
    width: auto;
    min-width: 190px;
}

.tfy-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tfy-pcard-table {
    margin-top: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.tfy-jump + .tfy-pcard-table,
.tab-pane > .tfy-pcard-table:first-child {
    margin-top: 0;
}

.tfy-page .tfy-pcard-title {
    padding: 16px 20px 6px;
    font-size: 20px;
    font-weight: 700;
}

.tfy-ptable {
    width: 100%;
    max-width: none;
    margin: 0;
    border-collapse: collapse;
    font-size: 15px;
}

.tfy-ptable th,
.tfy-ptable td {
    padding: 12px 16px;
    border: 0;
    text-align: left;
    vertical-align: middle;
}

.tfy-ptable th:first-child,
.tfy-ptable td:first-child {
    padding-left: 20px;
}

.tfy-ptable thead th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.tfy-ptable tbody td {
    border-top: 1px solid var(--line);
}

.tfy-ptable tbody tr:hover > td {
    background: var(--soft);
}

.tfy-ptable a {
    color: var(--brand);
    font-weight: 600;
}

.tfy-ptable a:hover {
    text-decoration: underline;
}

.tfy-ptable-name a {
    color: var(--ink);
}

.tfy-tprice {
    color: var(--price);
    font-weight: 700;
    white-space: nowrap;
}

.tfy-empty {
    color: var(--muted);
}

.tfy-when {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: var(--r-pill);
    background: var(--soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: 1px;
}

/* SOT green, DJE orange, as before */
.tfy-when--today {
    background: #DDF3E4;
    color: #17663A;
}

.tfy-when--yesterday {
    background: #FCEBD7;
    color: #8A4B08;
}

[data-theme="dark"] .tfy-when--today {
    background: rgba(74, 222, 128, .15);
    color: #86EFAC;
}

[data-theme="dark"] .tfy-when--yesterday {
    background: rgba(251, 146, 60, .16);
    color: #FDBA74;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .tfy-when--today { background: rgba(74, 222, 128, .15); color: #86EFAC; }
    :root:not([data-theme]) .tfy-when--yesterday { background: rgba(251, 146, 60, .16); color: #FDBA74; }
}

.tfy-ptable-report {
    white-space: nowrap;
}

.tfy-page label.tfy-check--sm {
    min-height: 28px;
    gap: 8px;
    font-size: 13px;
}

.tfy-check--sm input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.tfy-ptable--services th:not(:first-child),
.tfy-ptable--services td:not(:first-child) {
    text-align: center;
}

.tfy-select.tfy-select--sm {
    width: auto;
    min-height: 36px;
    padding: 4px 4px 4px 8px;
    font-size: 13px;
}

.tfy-prices-more {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.tfy-prices-note {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* jQuery show() puts back the display a row had when it was hidden. A row
   hidden on a phone (block) and shown after a rotation would break the table. */
@media (min-width: 768px) {
    .tfy-ptable tr.resellerRow[style*="display: block"] {
        display: table-row !important;
    }
}

/* Characteristics */
.tfy-specs-head {
    cursor: pointer;               /* telefoni.js: the whole heading toggles */
}

.tfy-spec-table {
    width: 100%;
    max-width: none;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;           /* a wide banner or value must not widen the table past its card */
    font-size: 15px;
}

.tfy-spec-table th,
.tfy-spec-table td {
    padding: 11px 20px;
    border: 0;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}

.tfy-spec-table tbody > tr:first-child > * {
    border-top: 0;
}

.tfy-spec-table th[scope="row"] {
    width: 38%;
    color: var(--muted);
    font-weight: 500;
}

.tfy-spec-table td {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.tfy-spec-release td {
    font-weight: 600;
}

.tfy-spec-group > th {
    padding-top: 20px;
    padding-bottom: 8px;
    background: var(--soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    scroll-margin-top: 16px;
}

/* site.css gives these rows Roboto at 14 / 12 px */
.tfy-spec-table .tr-attributes,
.tfy-spec-table .tr-sub-attributes {
    font-family: inherit;
    font-size: inherit;
}

.tfy-spec-table .tr-sub-attributes th {
    padding-left: 36px;
}

.tfy-spec-ad > td {
    padding: 20px;
    text-align: center;
}

.tfy-specs-foot {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* "ME SHUME / ME PAK" is written into .KlikoMeShume by telefoni.js. Where the
   browser can tell the state from the rows (:has), the button shows
   "Më shumë" / "Më pak" instead; elsewhere the script's text stays visible. */
.tfy-more-label {
    display: none;
}

@supports selector(:has(*)) {
    .tfy-more .KlikoMeShume {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .tfy-more-label {
        display: inline;
    }

    .tfy-more-label::before {
        content: "Më pak";
    }

    .tfy-phone-specs:has(tr.hidden-attribute-row.hidden) .tfy-more-label::before {
        content: "Më shumë";
    }
}

@media (max-width: 1023px) {
    .tfy-phone-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
    }

    .tfy-phone-photo {
        height: 360px;
    }
}

@media (max-width: 767px) {
    .tfy-phone-top {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 16px;
    }

    .tfy-phone-photo {
        height: 300px;
        padding: 14px;
        border-radius: var(--r-lg);
    }

    .tfy-phone-thumbs {
        gap: 8px;
    }

    .tfy-keyspecs {
        gap: 10px;
    }

    .tfy-keyspec {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "icon" "label" "value" "sub";
        min-height: 0;
        padding: 12px 14px;
    }

    .tfy-keyspec .tfy-keyspec-icon {
        width: 36px;
        height: 36px;
        padding: 8px;
        margin-bottom: 6px;
    }

    .tfy-keyspec-value {
        font-size: 17px;
    }

    .tfy-keyspec-sub {
        font-size: 13px;
    }

    .tfy-phone-actions .tfy-btn {
        flex-basis: 130px;
    }

    .tfy-page .tfy-tabs {
        display: flex;
        width: 100%;
    }

    .tfy-tabs > li {
        flex: 1 1 0;
    }

    .tfy-tabs > li > a {
        padding: 0 8px;
        font-size: 15px;
        text-align: center;
    }

    .tfy-page label.tfy-town {
        width: 100%;
    }

    .tfy-town .tfy-select {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Price tables: each row becomes a block with labelled lines (still a <tr>
       for telefoni.js). Columns marked hidden-xs stay hidden as before. */
    .tfy-ptable thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .tfy-ptable,
    .tfy-ptable tbody {
        display: block;
    }

    .tfy-ptable tbody tr {
        display: block;
        padding: 12px 16px;
        border-top: 1px solid var(--line);
    }

    .tfy-ptable tbody tr.resellerRow[style*="table-row"] {
        display: block !important;
    }

    .tfy-ptable tbody td,
    .tfy-ptable tbody td:first-child {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 3px 0;
        border: 0;
        text-align: right;
    }

    .tfy-ptable tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--muted);
        font-size: 13px;
        text-align: left;
    }

    .tfy-ptable tbody td.tfy-ptable-name {
        display: block;
        padding-bottom: 6px;
        font-size: 16px;
        text-align: left;
    }

    .tfy-ptable tbody td.tfy-ptable-name::before {
        content: none;
    }

    .tfy-ptable tbody tr:hover > td {
        background: none;
    }

    .tfy-ptable--services td:not(:first-child) {
        text-align: right;
    }

    .tfy-spec-table th,
    .tfy-spec-table td {
        padding: 10px 14px;
        font-size: 14px;
    }

    .tfy-spec-table th[scope="row"] {
        width: 45%;
    }

    .tfy-spec-table .tr-sub-attributes th {
        padding-left: 26px;
    }

    .tfy-spec-ad > td {
        padding: 14px;
    }
}


/* 6.6 Compare (Views/Compare/Index.cshtml) */

/* Picker: three numbered slots. compare.js shows slot 2 / 3 by switching
   hidden_compare_section -> visible_compare_section; until then the slot
   stays in place as a dashed placeholder instead of disappearing. */
.tfy-cmp-pick {
    margin-top: 4px;
}

.tfy-cmp-pick-head {
    margin-bottom: 16px;
}

.tfy-cmp-pick-intro {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}

.tfy-cmp-pick-hint {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Knockout's "ifnot" empties the paragraph once two phones are chosen */
.tfy-cmp-pick-hint:empty {
    display: none;
}

.tfy-cmp-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tfy-cmp-slot.visible_compare_section,
.tfy-cmp-slot.hidden_compare_section {
    display: block;
    position: relative;
    width: auto;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-align: left;
}

.tfy-cmp-slot.hidden_compare_section {
    background: transparent;
    border-style: dashed;
}

.tfy-cmp-slot.hidden_compare_section .tfy-cmp-field {
    display: none;
}

.tfy-cmp-slot.hidden_compare_section .tfy-cmp-label {
    opacity: .6;
}

.tfy-cmp-slot.hidden_compare_section::after {
    content: "Zgjidh së pari telefonin para tij";
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.tfy-page label.tfy-cmp-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-weight: 400;
}

.tfy-cmp-num {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 13px;
    font-weight: 700;
}

.tfy-cmp-slot.hidden_compare_section .tfy-cmp-num {
    background: var(--soft);
    color: var(--muted);
}

.tfy-cmp-label .tfy-field-label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.tfy-cmp-field {
    position: relative;
}

.tfy-cmp-input-wrap {
    position: relative;
    display: block;
}

.tfy-cmp-input-wrap > .tfy-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: var(--muted);
    pointer-events: none;
}

.tfy-cmp-input {
    width: 100%;
    min-height: var(--touch);
    padding: 8px 12px 8px 38px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
}

.tfy-cmp-input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.tfy-cmp-input:hover {
    border-color: var(--muted);
}

/* Results list under the field. compare.js may write an inline "left" when
   the header search is used on this page; the list stays under its field. */
.tfy-cmp-results.comparer {
    position: absolute;
    top: calc(100% + 6px);
    left: 0 !important;
    right: 0;
    z-index: 1040;
    width: auto;
    max-height: 340px;
    padding: 6px;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
}

.tfy-cmp-results .ul-compare {
    margin: 0;
    padding: 0;
    background: none;
}

.tfy-cmp-results .ul-compare li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--touch);
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
}

.tfy-cmp-results .ul-compare li:hover,
.tfy-cmp-results .ul-compare li:focus {
    background: var(--soft);
    color: var(--ink);
    outline: none;
}

.tfy-cmp-results .ul-compare li img {
    flex: 0 0 auto;
    width: 36px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

/* Chosen phone. "closable" (set by compare.js) marks the one that can be
   removed: click it to choose again. */
.tfy-cmp-chip.phone_model_selector {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--touch);
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--soft);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: default;
}

.tfy-cmp-chip > div {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tfy-cmp-chip.closable {
    background: var(--soft);
    cursor: pointer;
}

.tfy-cmp-chip.closable::after {
    content: "\00D7";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;                   /* 8 + 26 + 8 + borders = 44px, like the other chips */
    height: 26px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.tfy-cmp-chip.closable:hover {
    border-color: var(--muted);
}

.tfy-cmp-chip.closable:hover::after {
    color: var(--ink);
}

/* The button closes the row: right-aligned under the slots, and from 1024px
   at the end of the slot row, level with the fields (slot padding + border). */
.tfy-cmp-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.tfy-cmp-submit .tfy-btn {
    min-width: 160px;
}

@media (min-width: 1024px) {
    .tfy-cmp-pick {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 16px;
    }

    .tfy-cmp-pick-head {
        grid-column: 1 / -1;
    }

    .tfy-cmp-submit {
        align-self: end;
        margin: 0 0 17px;
    }
}

/* Result: photos row + table share one column grid. The key column is 24%,
   phones share the rest. The names row stays at the top while scrolling. */
.tfy-cmp-box {
    --cols: 1;
    overflow: visible;           /* a clipping box would stop the sticky names */
}

.tfy-cmp-box[data-cols="2"] { --cols: 2; }
.tfy-cmp-box[data-cols="3"] { --cols: 3; }

.tfy-cmp-cards {
    display: grid;
    grid-template-columns: 24% repeat(var(--cols), minmax(0, 1fr));
    padding-top: 20px;
}

.tfy-cmp-card {
    padding: 0 20px;
}

.tfy-cmp-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.tfy-cmp-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tfy-cmp-photo--empty {
    background: var(--soft);
    color: var(--muted);
}

.tfy-cmp-photo--empty .tfy-icon {
    width: 56px;
    height: 56px;
}

.tfy-cmp-table {
    width: 100%;
    max-width: none;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 15px;
}

.tfy-cmp-table th,
.tfy-cmp-table td {
    padding: 11px 20px;
    border: 0;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.tfy-cmp-table .tfy-cmp-corner {
    width: 24%;
}

.tfy-cmp-names > th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 14px;
    padding-bottom: 14px;
    border-top: 0;
    background: var(--surface);
    box-shadow: inset 0 -1px 0 var(--line);
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.tfy-cmp-names a {
    color: var(--ink);
}

.tfy-cmp-names a:hover {
    color: var(--brand);
}

.tfy-cmp-table tbody > tr:first-child > * {
    border-top: 0;
}

.tfy-cmp-table th[scope="row"] {
    color: var(--muted);
    font-weight: 500;
}

.tfy-cmp-table td {
    color: var(--ink);
}

.tfy-cmp-group > th {
    padding-top: 20px;
    padding-bottom: 8px;
    background: var(--soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
}

.tfy-cmp-sub th[scope="row"] {
    padding-left: 36px;
}

.tfy-cmp-price td {
    font-weight: 600;
}

.tfy-cmp-price .tfy-tprice {
    white-space: normal;           /* "1199 - 1299 EUR" wraps in narrow columns */
}

/* Better / worse marks for weight, density, cameras, battery and RAM
   (same flags the controller always set; shown from two phones on). */
.tfy-cmp-v {
    margin-right: 8px;
}

.tfy-cmp-verdict {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    vertical-align: -6px;
    border-radius: 50%;
}

.tfy-cmp-verdict .tfy-icon {
    width: 16px;
    height: 16px;
}

.tfy-cmp-verdict--up {
    background: #DDF3E4;
    color: #17663A;
}

.tfy-cmp-verdict--down {
    background: #FBE3E3;
    color: #A12C2C;
}

.tfy-cmp-verdict--down .tfy-icon {
    transform: rotate(180deg);
}

.tfy-cmp-win {
    font-weight: 600;
}

[data-theme="dark"] .tfy-cmp-verdict--up {
    background: rgba(74, 222, 128, .15);
    color: #86EFAC;
}

[data-theme="dark"] .tfy-cmp-verdict--down {
    background: rgba(248, 113, 113, .15);
    color: #FCA5A5;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .tfy-cmp-verdict--up { background: rgba(74, 222, 128, .15); color: #86EFAC; }
    :root:not([data-theme]) .tfy-cmp-verdict--down { background: rgba(248, 113, 113, .15); color: #FCA5A5; }
}

.tfy-cmp-table .tfy-spec-ad > td {
    padding: 20px;
    text-align: center;
}

.tfy-cmp-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* Tablet: slots get narrower, photos smaller */
@media (max-width: 1023px) {
    .tfy-cmp-slots {
        gap: 12px;
    }

    .tfy-cmp-slot.visible_compare_section,
    .tfy-cmp-slot.hidden_compare_section {
        padding: 14px;
    }

    .tfy-cmp-photo {
        height: 160px;
    }

    .tfy-cmp-card,
    .tfy-cmp-table th,
    .tfy-cmp-table td {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tfy-cmp-sub th[scope="row"] {
        padding-left: 26px;
    }
}

/* Phone: slots stack (a waiting slot is not shown); in the table every
   attribute name gets its own line and the phones sit side by side below it. */
@media (max-width: 767px) {
    .tfy-cmp-slots {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tfy-cmp-slot.hidden_compare_section {
        display: none;
    }

    .tfy-cmp-submit .tfy-btn {
        width: 100%;
    }

    .tfy-cmp-cards {
        grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
        gap: 8px;
        padding: 12px 12px 0;
    }

    .tfy-cmp-cards > .tfy-cmp-corner {
        display: none;
    }

    .tfy-cmp-card {
        padding: 0;
    }

    .tfy-cmp-box[data-cols="1"] .tfy-cmp-card {
        max-width: 220px;
        margin: 0 auto;
        width: 100%;
    }

    .tfy-cmp-photo {
        height: 120px;
        padding: 8px;
    }

    .tfy-cmp-table,
    .tfy-cmp-table thead,
    .tfy-cmp-table tbody {
        display: block;
    }

    .tfy-cmp-table thead {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .tfy-cmp-table tr {
        display: grid;
        grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    }

    .tfy-cmp-table th,
    .tfy-cmp-table td {
        padding: 6px 12px 10px;
        font-size: 14px;
    }

    .tfy-cmp-table td + td {
        border-left: 1px solid var(--line);
    }

    .tfy-cmp-table th[scope="row"],
    .tfy-cmp-group > th,
    .tfy-cmp-table .tfy-spec-ad > td {
        grid-column: 1 / -1;
    }

    .tfy-cmp-table th[scope="row"] {
        padding-top: 10px;
        padding-bottom: 2px;
        font-size: 13px;
    }

    .tfy-cmp-table th[scope="row"] + td,
    .tfy-cmp-table th[scope="row"] ~ td {
        border-top: 0;
    }

    .tfy-cmp-table .tfy-cmp-corner {
        display: none;
    }

    .tfy-cmp-names > th {
        position: static;
        padding: 10px 12px;
        font-size: 14px;
    }

    .tfy-cmp-names > th + th {
        border-left: 1px solid var(--line);
    }

    .tfy-cmp-group > th {
        padding: 14px 12px 6px;
        font-size: 12px;
    }

    .tfy-cmp-sub th[scope="row"] {
        padding-left: 22px;
    }

    .tfy-cmp-sub td {
        padding-left: 22px;
    }

    .tfy-cmp-table td + td {
        padding-left: 12px;
    }

    .tfy-cmp-verdict {
        width: 22px;
        height: 22px;
        vertical-align: -5px;
    }

    .tfy-cmp-verdict .tfy-icon {
        width: 14px;
        height: 14px;
    }

    .tfy-cmp-table .tfy-spec-ad > td {
        padding: 14px;
    }
}


/* 6.7 Shop page: points of sale and map (Views/Shop/Index.cshtml, section TfyBelow)
   Mockups dyqani-*.dc.html. Cards beside the map on desktop (map sticky);
   map first, cards below on narrow screens. Without a map the cards fill the
   row; without points of sale the map is full width. The map is the shop's own
   embed (Reseller.googleMap) in the old .iframe-container (Content/arlo.css). */

.tfy-pos-sec {
    padding-bottom: 56px;
}

.tfy-pos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    align-items: start;
}

.tfy-pos-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.tfy-page .tfy-pos-town {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 18px;
    font-size: 21px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tfy-pos-n {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-brand);
    font-family: var(--font-body);
    font-size: 15px;
    letter-spacing: 0;
}

/* Bootstrap: dl margin-bottom 20px, dt bold */
.tfy-pos-facts {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
    padding: 0 18px 16px;
    font-size: 15px;
    line-height: 1.4;
}

.tfy-pos-facts dt {
    color: var(--muted);
    font-weight: 400;
}

.tfy-pos-facts dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;       /* free text: long links and numbers wrap, as in the old table */
}

.tfy-pos-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -6px;
    padding: 0 18px 16px;
}

.tfy-pos-map .tfy-sec-title {
    margin-bottom: 12px;
}

/* Content/arlo.css: 16:9 by padding, grey, 50px bottom margin. The embed fills the frame. */
.tfy-pos-map .tfy-pos-frame {
    height: 620px;
    margin: 0;
    padding-bottom: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--soft);
}

/* Dark theme: the embedded map is a bright third-party page; dim it a little
   (PROMPT.md asks the same for map tiles in dark mode). */
[data-theme="dark"] .tfy-pos-frame > * {
    filter: brightness(.82);
}

.tfy-pos-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.tfy-pos-note-narrow {
    display: none;
}

@media (min-width: 1024px) {
    .tfy-pos--map {
        display: grid;
        grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .tfy-pos--map .tfy-pos-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .tfy-pos--map .tfy-pos-map {
        position: sticky;
        top: 16px;
    }

    /* Both columns open with a title of the same height, so the map starts level with the first card */
    .tfy-pos--map .tfy-pos-map .tfy-sec-title {
        line-height: 36px;
    }
}

@media (max-width: 1023px) {
    .tfy-pos--map {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .tfy-pos--map .tfy-pos-map {
        order: -1;
    }

    .tfy-pos-map .tfy-pos-frame {
        height: 420px;
    }

    .tfy-pos--map .tfy-pos-note-wide {
        display: none;
    }

    .tfy-pos--map .tfy-pos-note-narrow {
        display: inline;
    }
}

@media (max-width: 767px) {
    .tfy-pos-sec {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .tfy-pos-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .tfy-page .tfy-pos-town {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tfy-pos-facts,
    .tfy-pos-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tfy-pos-map .tfy-pos-frame {
        height: 320px;
    }
}


/* 6.8 All mobile shops / shops / services (Views/Shop/TeGjithe.cshtml)
   Mockups mobishops-*.dc.html. Cards, rows and the banner use the
   manufacturers' blocks (6.2): .tfy-vcard, .tfy-vrow, .tfy-vendors-all. */

.tfy-shops-sec {
    padding-top: 28px;
}

.tfy-shops .tfy-sec-title--sm {
    margin-bottom: 14px;
}

.tfy-vendors-top.tfy-shops-top {
    padding-top: 0;
}

.tfy-shops .tfy-vcard-name {
    font-size: 22px;
}

.tfy-shops-all {
    padding-top: 32px;
    padding-bottom: 56px;
}

.tfy-shops-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 14px;
}

.tfy-shops-head .tfy-sec-title--sm {
    margin-bottom: 0;
}

.tfy-shops-town {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

/* Bootstrap: label bold with 5px bottom margin */
.tfy-page .tfy-shops-town label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.tfy-shops-town .tfy-select {
    min-height: var(--touch);
    padding: 0 12px;
    border-radius: var(--r);
    font-size: 16px;
}

/* Scripts/Shop/tegjithe.js hides the logo and shows the (hidden) name on hover,
   and adds .vendor-link-hover (Content/site.css: blue box, margins). The name
   is always visible now, so both stay shown and the card keeps its look. */
.tfy-shops .vendor-link-shop,
.tfy-shops .vendor-link-shop.vendor-link-hover {
    margin: 0;
}

.tfy-shops .tfy-vrow.vendor-link-shop {
    border: 0;
}

.tfy-shops .tfy-vcard.vendor-link-hover {
    background: var(--surface);
}

.tfy-shops .tfy-vrow.vendor-link-hover {
    background: var(--soft);
}

.tfy-shops .vendor-link-shop > .tfy-vcard-logo,
.tfy-shops .vendor-link-shop > .tfy-vrow-logo {
    display: flex !important;
}

.tfy-shops .vendor-link-shop > .tfy-vcard-name,
.tfy-shops .vendor-link-shop > .tfy-vrow-name {
    display: block !important;
}

@media (max-width: 767px) {
    .tfy-shops-sec {
        padding-top: 20px;
    }

    .tfy-shops .tfy-sec-title--sm {
        margin-bottom: 12px;
        font-size: 20px;
    }

    .tfy-shops .tfy-vcard-name {
        font-size: 18px;
    }

    .tfy-shops-all {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .tfy-shops-head {
        display: block;
        margin-bottom: 12px;
    }

    .tfy-shops-town {
        min-width: 0;
        margin-top: 12px;
    }

    .tfy-shops-town .tfy-select {
        min-height: 48px;
    }
}


/* 6.9 One manufacturer / one smartwatch maker (Views/Prodhuesit/_TfyPhoneBlocks.cshtml),
   search results (Views/Search/Index.cshtml: same toolbar, cards and "Më shumë" / "Më pak" page links)
   No mockup: Filtro's phone cards (6.4) and the shops page's toolbar (6.8).
   Blocks #target … #target5 open with "Më shumë" (jQuery toggle, display block). */

.tfy-mfr {
    padding-bottom: 56px;
}

.tfy-mfr-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 24px;
}

.tfy-mfr-sort {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.tfy-page .tfy-mfr-sort label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.tfy-mfr-sort .tfy-select {
    min-height: var(--touch);
    padding: 0 12px;
    border-radius: var(--r);
    font-size: 16px;
}

.tfy-mfr-sec {
    padding-top: 20px;
}

/* Three per row on desktop, as before: the first three phones fill the row above the banner */
.tfy-mfr .tfy-pcards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.tfy-mfr-ad {
    padding-top: 32px;
}

/* Year titles ("Grupo sipas vitit") span the whole card grid */
.tfy-page .tfy-mfr-year {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 20px;
    font-weight: 700;
}

.tfy-pcard-price a {
    color: var(--price);
    font-weight: 700;
    text-align: right;
}

.tfy-pcard-price a:hover,
.tfy-pcard-price a:focus {
    text-decoration: underline;
}

.tfy-pcard-rate {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 32px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.tfy-pcard-rate:hover,
.tfy-pcard-rate:focus {
    text-decoration: underline;
}

/* "Serviso" as a fourth small button: two by two under Karakteristikat */
.tfy-pcard-actions--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tfy-more {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.tfy-more .tfy-btn {
    min-width: 200px;
}

.tfy-results-none {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
}

@media (max-width: 767px) {
    .tfy-mfr {
        padding-bottom: 32px;
    }

    .tfy-mfr-tools {
        display: block;
        padding-top: 16px;
    }

    .tfy-mfr-sort {
        min-width: 0;
    }

    .tfy-mfr-group {
        margin-top: 4px;
    }

    .tfy-mfr-ad {
        padding-top: 22px;
    }

    .tfy-more .tfy-btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}


/* 6.10 Phone offers (Views/PhoneOffer/Index.cshtml)
   No mockup: the home page's offer cards (6.1) in a list; the desktop pool beside it, the mobile pool above. */

.tfy-offers-page {
    padding-top: 24px;
    padding-bottom: 56px;
}

.tfy-offers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tfy-offers-layout:has(> .tfy-offers-aside) {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.tfy-offers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    gap: 16px;
}

.tfy-offers-list .tfy-offer {
    display: flex;
}

/* In the list the shop logo gets its own row above (as on narrow screens on the home page),
   so model, prices and days have the card's full width */
.tfy-offers-list .tfy-offer-card {
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 20px;
    min-width: 0;
}

.tfy-offers-list .tfy-offer-body {
    flex-basis: 0;
}

.tfy-offers-list .tfy-offer-logo {
    order: -1;
    width: 100%;
    padding: 0;
    background: none;
}

.tfy-offers-list .tfy-offer-logo img {
    padding: 2px 6px;
    border-radius: 6px;
    background: #fff;
}

.tfy-offers-list .tfy-offer-days strong {
    white-space: nowrap;
}

.tfy-offer-photo .tfy-icon {
    width: 32px;
    height: 32px;
}

.tfy-offers-aside {
    position: sticky;
    top: 16px;
}

.tfy-offers-none {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

@media (max-width: 767px) {
    .tfy-offers-page {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .tfy-offers-layout:has(> .tfy-offers-aside) {
        grid-template-columns: minmax(0, 1fr);
    }

    .tfy-offers-ad {
        margin-bottom: 20px;
    }
}


/* 6.11 Phone service (Views/PhoneService/Index.cshtml)
   No mockup. Picker as on the compare page (6.6). Scripts/PhoneService/phoneservice.js builds the services
   (.getservices: title, filter select, #serlist tiles), shows them four at a time with #loadMore / #loadLess,
   and builds the price table (.getserviceshops). Its markup carries inline colours, widths and margins,
   so the rules below override them (!important only where an inline style has to give way). */

.tfy-service {
    display: block;
    padding-top: 24px;
    padding-bottom: 56px;
}

.tfy-service-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.tfy-service-pick .tfy-sec-title {
    margin: 0 0 6px;
}

.tfy-service-intro {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.tfy-service-intro strong {
    color: var(--ink);
}

.tfy-service label.tfy-cmp-input-wrap {
    display: block;
    margin: 0;
    font-weight: 400;
}

/* Hidden until the script shows it for a chosen phone (no flash of the placeholder photo) */
#show-selected-phone.tfy-service-phone {
    display: none;
}

.tfy-service-phone-in {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.tfy-service-photo {
    width: 96px;
    height: 128px;
}

.tfy-service-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tfy-page .tfy-service-name {
    margin: 0 0 4px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.tfy-service-ref {
    color: var(--price);
    font-size: 16px;
    font-weight: 700;
}

/* Services for the chosen phone (built by the script) */
.tfy-service .getservices {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.tfy-service .getservices > [class*="col-sm-"],
.tfy-service .getservices .servicefilter [class*="col-sm-"] {
    float: none;
    width: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
}

.tfy-service .getservices h3 {
    margin: 0 0 6px;
    padding: 0 !important;
    color: var(--ink) !important;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.tfy-service .getservices h3 + div {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.tfy-service .getservices h3 + div strong {
    color: var(--ink);
}

.tfy-service .servicefilter .form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
}

/* Bootstrap clearfix pseudo-elements would be flex items (and add a gap) */
.tfy-service .servicefilter .form-group::before,
.tfy-service .servicefilter .form-group::after {
    display: none;
}

.tfy-service .servicefilter .control-label {
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    text-align: left;
}

.tfy-service .servicefilter select.form-control {
    width: 100%;
    min-width: 240px;
    height: auto;
    min-height: var(--touch);
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background-color: var(--surface);
    color: var(--ink);
    box-shadow: none;
    font-size: 16px;
}

.tfy-service #serlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0 !important;
}

.tfy-service #serlist li.item {
    float: none;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: none;
    transition: border-color var(--dur);
}

.tfy-service #serlist li.item:hover,
.tfy-service #serlist li.item:focus-within {
    border-color: var(--brand);
    box-shadow: none;
}

.tfy-service #serlist li.item > a {
    display: block;
    height: 100%;
    padding: 16px 12px;
    border-radius: var(--r-lg);
    color: var(--ink) !important;
    text-decoration: none;
}

.tfy-service #serlist #seritem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: auto;
}

.tfy-service #serlist #seritem img {
    width: 64px;
    height: 64px;
    min-width: 0 !important;
    max-width: 64px !important;
    padding: 6px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--r-sm);
}

.tfy-service #serlist #seritem > div {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    line-height: 1.3;
}

.tfy-service #serlist #seritem h4 {
    margin: 0;
    color: var(--price) !important;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700 !important;
}

/* "Upss! … nuk shërbime …" (no services for this phone) */
.tfy-service .getservices > .col-sm-12 > div[style],
.tfy-service .serviceprices > .col-sm-12 > div[style],
.tfy-service .getserviceshops > .col-sm-12 > div[style] {
    padding: 14px 16px;
    background: var(--soft);
    border-radius: var(--r);
    color: var(--ink) !important;
}

/* #loadMore / #loadLess: hidden until the script shows them; it also writes an inline margin-right */
.tfy-service #loadMore,
.tfy-service #loadLess {
    display: none;
    margin: 0 !important;
}

/* Price table for one service (built by the script) */
.tfy-service .getserviceshops {
    margin-top: 32px;
}

.tfy-service .getserviceshops h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 !important;
    color: var(--ink) !important;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
}

.tfy-service .getserviceshops h4 img {
    width: 44px;
    height: 44px;
    min-width: 0 !important;
    max-width: 44px !important;
    padding: 4px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--r-sm);
}

.tfy-service .getserviceshops .table {
    width: 100%;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--ink);
}

.tfy-service .getserviceshops .table > thead > tr {
    background: var(--soft) !important;
    color: var(--ink) !important;
}

.tfy-service .getserviceshops .table > thead > tr > th {
    padding: 12px 14px;
    border: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tfy-service .getserviceshops .table > tbody > tr > td {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: transparent;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.tfy-service .getserviceshops .table-hover > tbody > tr:hover > td {
    background: var(--soft);
}

.tfy-service .getserviceshops .table > tbody > tr > td:first-child a {
    color: var(--brand);
    font-weight: 600;
}

.tfy-service .getserviceshops .table > tbody > tr > td:nth-child(2) {
    color: var(--price);
    font-weight: 700;
    white-space: nowrap;
}

/* Servisimet e fundit: two columns, read down then across (as the old two Bootstrap columns) */
.tfy-service-recent {
    margin-top: 16px;
}

.tfy-service-list {
    columns: 2;
    column-gap: 16px;
}

.tfy-service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    break-inside: avoid;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: var(--ink);
}

.tfy-service-card:hover,
.tfy-service-card:focus {
    border-color: var(--brand);
    color: var(--ink);
    text-decoration: none;
}

.tfy-service-card-photo {
    width: 72px;
    height: 96px;
}

.tfy-service-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tfy-service-card-shop {
    color: var(--muted);
    font-size: 13px;
}

.tfy-service-card-model {
    margin-bottom: 4px;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.tfy-service-card-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tfy-service-card-line img {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 2px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
}

.tfy-service-card-line strong {
    margin-left: auto;
    color: var(--price);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .tfy-service {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .tfy-service-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tfy-service-phone-in {
        padding: 16px;
    }

    .tfy-service-photo {
        width: 72px;
        height: 96px;
    }

    .tfy-service .servicefilter select.form-control {
        min-width: 0;
    }

    .tfy-service #serlist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tfy-service .getserviceshops .table > thead > tr > th,
    .tfy-service .getserviceshops .table > tbody > tr > td {
        padding: 10px;
        font-size: 14px;
    }

    .tfy-service-list {
        columns: 1;
    }
}


/* 6.12 Shop page (Views/Shop/Index.cshtml, Stage 12a)
   Header in the layout: logo, name and number of points of sale (mockup dyqani-*.dc.html). Then the shop photos
   (fancybox gallery) with the jump buttons, the latest offers (cards of 6.1 / 6.10), the tab bar (6.5 .tfy-tabs)
   and the phones tab (cards of 6.4, toolbar and "Më shumë" blocks of 6.9). The services and accessories tabs
   keep their old look in a .tfy-legacy panel until Stage 12b. Stage 12b: the services tab is the phone service
   page's picker, phone box and tiles (6.11); shopprofile.js writes slightly different markup, adjusted below. */

.tfy-pagehead-shop {
    justify-content: flex-start;
    gap: 16px;
}

.tfy-pagehead-logo-box {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 64px;
    min-width: 64px;
    max-width: 180px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.tfy-pagehead-logo-box .tfy-pagehead-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 46px;
    border-radius: 0;
    background: none;
    object-fit: contain;
}

.tfy-pagehead-shop-text {
    min-width: 0;
}

.tfy-pagehead-shop .tfy-pagehead-sub {
    margin-top: 6px;
}

.tfy-shop {
    padding-bottom: 56px;
}

.tfy-shop-top {
    padding-top: 24px;
}

.tfy-shop-top--photos {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: start;
}

.tfy-shop-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
}

.tfy-shop-gallery--one {
    grid-template-columns: minmax(0, 1fr);
}

.tfy-shop .phone_gallery {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tfy-shop .phone_gallery li {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.tfy-shop-photo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 375px;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.tfy-shop-photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tfy-shop-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 375px;
    overflow-y: auto;
}

.tfy-shop-thumbs a {
    display: block;
    height: 88px;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.tfy-shop-thumbs img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.tfy-shop-photo a:hover,
.tfy-shop-thumbs a:hover {
    border-color: var(--brand);
}

/* default.css floats every nav at 150 px */
.tfy-shop-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    float: none;
    width: auto;
}

.tfy-shop-jump .tfy-btn {
    min-width: 150px;
}

.tfy-shop-top--photos .tfy-shop-jump {
    flex-direction: column;
}

.tfy-shop-top--photos .tfy-shop-jump .tfy-btn {
    width: 100%;
}

/* Offers of this shop: not links, so no hover frame */
.tfy-shop-offers .tfy-offer:hover .tfy-offer-card {
    border-color: var(--line);
}

.tfy-shop-main {
    padding-top: 36px;
}

/* The scroll anchors for the jump buttons sit in the tabs and must keep a position (jQuery offset) */
.tfy-shop-tabs > li > a[name] {
    display: block;
    min-height: 0;
    height: 0;
    padding: 0;
}

.tfy-shop .tab-content {
    margin-top: 20px;
}

.tfy-page .tfy-shop-tools {
    padding-top: 0;
    margin-bottom: 20px;
}

.tfy-shop .tfy-pcards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.tfy-pcard-warranty {
    margin-top: -2px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.tfy-shop-block {
    padding-top: 16px;
}

/* Services tab (Stage 12b) */
.tfy-shop .tfy-shop-service.tfy-service {
    padding: 0;
}

/* Reference prices: the script writes "<span style='color: #000;'>i ri </span><a>…</a><br />…" */
.tfy-shop-service #new-phone-price span {
    color: var(--muted) !important;
    font-weight: 400;
}

.tfy-shop-service #new-phone-price a {
    color: var(--price);
}

.tfy-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tfy-service-actions .tfy-btn {
    min-width: 96px;
}

/* Tiles: li > div#seritem.item.col-sm-2 (no link); after filtering li > a > div#seritem */
.tfy-shop-service #serlist #seritem.item {
    float: none;
    width: auto;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 16px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: none;
}

.tfy-shop-service #serlist > li > a {
    display: block;
    height: 100%;
    color: var(--ink) !important;
    text-decoration: none;
}

.tfy-shop-service #serlist > li > a:hover #seritem,
.tfy-shop-service #serlist > li > a:focus #seritem {
    border-color: var(--brand);
}

.tfy-shop-service-phones {
    margin-top: 40px;
}

.tfy-shop-service-phones .tfy-sec-title {
    margin-bottom: 16px;
}

.tfy-shop .tfy-shop-legacy {
    max-width: none;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.tfy-shop-banks {
    padding-top: 28px;
}

.tfy-shop-banks-note {
    margin: 0;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .tfy-pagehead-shop {
        gap: 12px;
    }

    .tfy-pagehead-logo-box {
        height: 52px;
        min-width: 52px;
        max-width: 120px;
        padding: 6px;
    }

    .tfy-pagehead-logo-box .tfy-pagehead-logo {
        max-height: 38px;
    }

    .tfy-shop {
        padding-bottom: 32px;
    }

    .tfy-shop-top {
        padding-top: 16px;
    }

    .tfy-shop-top--photos,
    .tfy-shop-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .tfy-shop-photo a {
        height: 240px;
    }

    .tfy-shop-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .tfy-shop-thumbs li {
        flex: 0 0 auto;
    }

    .tfy-shop-thumbs a {
        width: 96px;
        height: 72px;
    }

    .tfy-shop-jump,
    .tfy-shop-top--photos .tfy-shop-jump {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tfy-shop-jump .tfy-btn {
        min-width: 0;
    }

    .tfy-shop-main {
        padding-top: 28px;
    }

    .tfy-shop .tfy-pcards {
        grid-template-columns: minmax(0, 1fr);
    }

    .tfy-shop-banks {
        padding-top: 20px;
    }
}


/* 7  Footer ---------------------------------------------------------------- */

footer.tfy-ft {
    clear: both;
    margin-top: 56px;
    padding: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--ink);
}

.tfy-ft a {
    color: var(--muted);
    font-size: 15px;
    text-decoration: none;
}

.tfy-ft a:hover,
.tfy-ft a:focus {
    color: var(--brand);
}

.tfy-ft p {
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
}

.tfy-ft-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
    padding-top: 40px;
    padding-bottom: 28px;
}

.tfy-ft-col {
    flex: 1 1 170px;
    min-width: 0;
}

.tfy-ft .tfy-ft-title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    text-align: left;
}

.tfy-ft-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.tfy-ft-links > li {
    margin: 0;
    padding: 0;
}

.tfy-ft-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.tfy-ft-social img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.tfy-ft-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid var(--line);
}

.tfy-ft .tfy-ft-logo {
    display: inline-flex;
}

.tfy-ft-logo img {
    width: 48px;
    height: auto;
    border-radius: var(--r);
}

.tfy-ft .tfy-ft-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch);
    height: var(--touch);
    margin-left: auto;
    border-radius: var(--r);
    background: #fff;              /* the arrow PNG is drawn for a white ground */
    border: 1px solid var(--line);
}

.tfy-ft-top img {
    width: 36px;
    height: auto;
}

@media (max-width: 767px) {
    .tfy-ft-cols {
        gap: 24px 16px;
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .tfy-ft-col {
        flex-basis: 150px;
    }

    .tfy-ft-links a {
        min-height: var(--touch);
    }

    .tfy-ft-links {
        gap: 0;
    }
}


/* 8  Legacy bridge ---------------------------------------------------------- */

/* Styles/default.css styles the bare elements of an old layout:
   main { width:750px; margin-left:150px; overflow:auto; ... }, aside { float:right; width:180px } */
main.tfy-main {
    position: static;
    z-index: auto;
    width: auto !important;        /* Compare/compare.js sets main width to 880px */
    margin: 0;
    padding: 0 0 8px;
    overflow: visible;
    text-align: inherit;
}

/* Old Bootstrap navbar rules must not reach the new nav list. */
.tfy-nav .navbar-nav {
    float: none;
    margin: 0;
}

/* Bootstrap 3 dropdown inserts this on touch screens (account menu). */
.tfy-hd .dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 990;
}


/* 9  Utilities ------------------------------------------------------------- */

.tfy-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tfy-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--r);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    box-shadow: var(--shadow-pop);
}

.tfy-skip:focus {
    top: 12px;
}

@media (min-width: 768px) {
    .tfy-only-mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .tfy-only-desktop {
        display: none !important;
    }
}


/* 10 Motion and accessibility --------------------------------------------- */

/* All movement lives here and only runs when the visitor has not asked for
   reduced motion. Everything is short and plays once; nothing waits for
   JavaScript, so content can never stay hidden. Banners never move and are
   visible from the first frame (_PoolMore.cshtml no longer delays them). */

@keyframes tfy-rise {
    from { opacity: 0; transform: translateY(10px); }
}

@keyframes tfy-pop {
    from { opacity: 0; transform: translateY(-6px); }
}

@keyframes tfy-grow {
    from { opacity: 0; transform: scale(.96); }
}

/* First-visit animation (PROMPT.md, mockups startseite-*.dc.html: arc / fl) */
@keyframes tfy-wave {
    0% { opacity: .12; transform: scale(.8); }
    45% { opacity: 1; transform: scale(1.06); }
    100% { opacity: .9; transform: scale(1); }
}

@keyframes tfy-flip {
    0% { opacity: 0; transform: perspective(300px) rotateX(-90deg); }
    60% { opacity: 1; transform: perspective(300px) rotateX(14deg); }
    100% { opacity: 1; transform: perspective(300px) rotateX(0); }
}

@keyframes tfy-signal-again {
    0% { opacity: .2; }
    35% { opacity: 1; }
    65% { opacity: .35; }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {

    /* 10.1 Page start: the first blocks of a redesigned page rise in, one
       after the other. "backwards" = no lasting transform or stacking context.
       Not on the home page: there only the first-visit animation (10.2) moves. */
    .tfy-pagehead-main,
    .tfy-vcard,
    .tfy-vendors-all,
    .tfy-filter-panel,
    .tfy-pcard,
    .tfy-phone-gallery,
    .tfy-keyspec,
    .tfy-phone-actions,
    .tfy-cmp-slot,
    .tfy-cmp-result {
        animation: tfy-rise .45s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .tfy-phone-gallery { animation-delay: .05s; }
    .tfy-keyspec:nth-child(1) { animation-delay: .1s; }
    .tfy-keyspec:nth-child(2) { animation-delay: .14s; }
    .tfy-keyspec:nth-child(3) { animation-delay: .18s; }
    .tfy-keyspec:nth-child(4) { animation-delay: .22s; }
    .tfy-phone-actions { animation-delay: .26s; }
    .tfy-cmp-slot:nth-child(2) { animation-delay: .06s; }
    .tfy-cmp-slot:nth-child(3) { animation-delay: .12s; }
    .tfy-cmp-result { animation-delay: .16s; }

    .tfy-filter-panel { animation-delay: .05s; }

    .tfy-vcard:nth-child(1) { animation-delay: .06s; }
    .tfy-vcard:nth-child(2) { animation-delay: .1s; }
    .tfy-vcard:nth-child(3) { animation-delay: .14s; }
    .tfy-vcard:nth-child(4) { animation-delay: .18s; }
    .tfy-vcard:nth-child(5) { animation-delay: .22s; }
    .tfy-vcard:nth-child(n+6) { animation-delay: .26s; }
    .tfy-vendors-all { animation-delay: .3s; }

    .tfy-pcard { animation-delay: .4s; }
    .tfy-pcard:nth-child(1) { animation-delay: .08s; }
    .tfy-pcard:nth-child(2) { animation-delay: .12s; }
    .tfy-pcard:nth-child(3) { animation-delay: .16s; }
    .tfy-pcard:nth-child(4) { animation-delay: .2s; }
    .tfy-pcard:nth-child(5) { animation-delay: .24s; }
    .tfy-pcard:nth-child(6) { animation-delay: .28s; }
    .tfy-pcard:nth-child(7) { animation-delay: .32s; }
    .tfy-pcard:nth-child(8) { animation-delay: .36s; }

    /* The later pages: offers (/ofertat and a shop's own; not the home page),
       shop page, list of shops, phone service. A block inside a tab or behind
       "Më shumë" rises again each time it is shown. */
    .tfy-offers-main .tfy-offer,
    .tfy-shop-offers .tfy-offer,
    .tfy-shop-gallery,
    .tfy-shop-jump,
    .tfy-pos-card,
    .tfy-shops-head,
    .tfy-service-pick,
    .tfy-service-card {
        animation: tfy-rise .45s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .tfy-shop-jump,
    .tfy-shops-head { animation-delay: .08s; }

    .tfy-offers-list .tfy-offer,
    .tfy-pos-card,
    .tfy-service-card { animation-delay: .3s; }

    .tfy-offers-list .tfy-offer:nth-child(1),
    .tfy-pos-card:nth-child(1),
    .tfy-service-card:nth-child(1) { animation-delay: .1s; }

    .tfy-offers-list .tfy-offer:nth-child(2),
    .tfy-pos-card:nth-child(2),
    .tfy-service-card:nth-child(2) { animation-delay: .14s; }

    .tfy-offers-list .tfy-offer:nth-child(3),
    .tfy-pos-card:nth-child(3),
    .tfy-service-card:nth-child(3) { animation-delay: .18s; }

    .tfy-offers-list .tfy-offer:nth-child(4),
    .tfy-pos-card:nth-child(4),
    .tfy-service-card:nth-child(4) { animation-delay: .22s; }

    .tfy-offers-list .tfy-offer:nth-child(5),
    .tfy-pos-card:nth-child(5),
    .tfy-service-card:nth-child(5) { animation-delay: .26s; }

    /* 10.2 First visit of the home page in a browser session (class tfy-intro on
       <html>, set in the layout head; never with reduced motion). About one
       second: the three logo arcs pulse outward, innermost first, then the
       digits of the "Në fokus" prices flip in row by row (delays set by the
       script in Views/Main/Index.cshtml). Nothing else moves. */
    .tfy-intro .tfy-brand-wave {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: tfy-wave .9s cubic-bezier(.2, .7, .2, 1) both;
    }

    .tfy-intro .tfy-brand-wave--2 { animation-delay: .15s; }
    .tfy-intro .tfy-brand-wave--3 { animation-delay: .3s; }

    .tfy-intro .tfy-fl {
        display: inline-block;
        animation: tfy-flip .55s cubic-bezier(.2, .7, .2, 1) both;
    }

    /* Logo on hover (any page): the arcs light up once more, inner first */
    .tfy-brand:hover .tfy-brand-wave {
        animation: tfy-signal-again .9s ease-out backwards;
    }

    .tfy-brand:hover .tfy-brand-wave--2 { animation-delay: .15s; }
    .tfy-brand:hover .tfy-brand-wave--3 { animation-delay: .3s; }

    /* 10.3 Panels that open: header menus, live search results, specifications */
    .tfy-hd .open > .dropdown-menu,
    .tfy-search #quickSearchResult {
        animation: tfy-pop .16s ease-out;
    }

    .tfy-specs[open] > .tfy-specs-list {
        animation: tfy-rise .2s ease-out;
    }

    /* Model picker (compare, phone service, a shop's services tab): the result
       list drops in and the chosen phone's chip grows in. The scripts only
       switch "display", so each showing plays once. The phone box grows in on
       the shop page only: on /servisimi-i-telefonit its script already slides
       it open. */
    .tfy-cmp-results.comparer {
        animation: tfy-pop .16s ease-out;
    }

    .tfy-cmp-chip.phone_model_selector,
    .tfy-shop-service #show-selected-phone.tfy-service-phone {
        animation: tfy-grow .22s cubic-bezier(.2, .7, .2, 1);
    }

    /* Service tiles: the scripts show them four at a time */
    .tfy-service #serlist > li {
        animation: tfy-rise .3s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .tfy-service #serlist > li:nth-child(4n+2) { animation-delay: .05s; }
    .tfy-service #serlist > li:nth-child(4n+3) { animation-delay: .1s; }
    .tfy-service #serlist > li:nth-child(4n) { animation-delay: .15s; }

    .tfy-filter-summary .tfy-icon {
        transition: transform var(--dur);
    }

    .tfy-skip {
        transition: top var(--dur);
    }

    /* 10.4 Hover and press feedback */
    .tfy-hd-top-link,
    .tfy-account-toggle,
    .tfy-iconbtn,
    .tfy-btn-post,
    .tfy-search #searchNewLink,
    .tfy-nav .tfy-nav-list > li > .tfy-nav-link,
    .tfy-hd .dropdown-menu > li > a,
    .tfy-menu-list a,
    .tfy-chip,
    .tfy-btn,
    .tfy-select,
    .tfy-row,
    .tfy-row-title,
    .tfy-article-title,
    .tfy-card,
    .tfy-vcard,
    .tfy-vrow,
    .tfy-offer-card,
    .tfy-sec-more,
    .tfy-sec-title a,
    .tfy-focus-name a,
    .tfy-pcard-name a,
    .tfy-keyspec,
    .tfy-phone-photo,
    .tfy-phone-thumb,
    .tfy-tabs > li > a,
    .tfy-ptable a,
    .tfy-service-card,
    .tfy-shop-photo a,
    .tfy-shop-thumbs a,
    .tfy-cmp-results .ul-compare li,
    .tfy-shop-service #serlist #seritem.item,
    .tfy-ft a {
        transition: color var(--dur) ease, background-color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) ease, filter var(--dur) ease;
    }

    .tfy-pcard-photo img,
    .tfy-shop-photo img,
    .tfy-shop-thumbs img {
        transition: transform .25s ease;
    }

    .tfy-btn:active,
    .tfy-btn-post:active,
    .tfy-iconbtn:active,
    .tfy-chip:active,
    .tfy-chips .tfy-menu-list a:active,
    .tfy-search #searchNewLink:active {
        transform: scale(.97);
    }

    /* 10.5 Theme switch: colours cross-fade while the layout script holds
       this class on <html> (0.4 s) */
    .tfy-theme-anim,
    .tfy-theme-anim *,
    .tfy-theme-anim *::before,
    .tfy-theme-anim *::after {
        transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease, stroke .3s ease, box-shadow .3s ease !important;
    }
}

/* Cards lift a little under a mouse pointer (not on touch screens) */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    a.tfy-card:hover,
    .tfy-vcard:hover,
    .tfy-keyspec:hover,
    a.tfy-service-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-pop);
    }

    .tfy-pcard-photo:hover img,
    .tfy-shop-photo a:hover img,
    .tfy-shop-thumbs a:hover img {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
