/* =============================================================
   Troia.uz — dizayn tizimi
   Navy + oltin brend tizimi · Marcellus + Manrope
   Handoff: design_handoff_troia_redesign (2026)
   ============================================================= */

:root {
    /* Ranglar */
    --t-navy: #0B1524;
    --t-navy-darker: #060D18;
    --t-navy-input: #101F35;
    --t-navy-input-border: #24344E;
    --t-navy-divider: #1C2C44;
    --t-gold: #D4A937;
    --t-gold-hover: #C09327;
    --t-gold-dark: #8A6A14;
    --t-gold-darker: #6E5510;
    --t-gold-tint: #F6EFDC;
    --t-bg: #F5F6F8;
    --t-canvas: #EDEEF1;
    --t-card: #ffffff;
    --t-img-well: #FBFBFC;
    --t-border: #E4E7EC;
    --t-border-card: #E7EAF0;
    --t-border-inner: #F0F2F5;
    --t-heading: #0B1524;
    --t-body: #16202E;
    --t-secondary: #3A4657;
    --t-muted: #8A93A2;
    --t-on-navy-muted: #8E99AB;
    --t-on-navy-light: #B9C2CF;
    --t-on-navy-sub: #9FAABC;
    --t-strike: #B4BAC4;
    --t-red: #B0392E;
    --t-green: #2E7D46;
    --t-green-tint: #E7F3EA;
    --t-link: #A87F1E;

    /* Shakl */
    --t-radius-card: 14px;
    --t-radius-lg: 16px;
    --t-radius-btn: 10px;
    --t-radius-input: 10px;
    --t-radius-pill: 99px;
    --t-shadow-hover: 0 8px 24px rgba(11, 21, 36, .1);

    /* Shriftlar */
    --t-font-heading: 'Marcellus', serif;
    --t-font-body: 'Manrope', system-ui, sans-serif;

    /* Bo'shliqlar */
    --t-page-pad: 40px;
}

/* ------------------------------------------------------------
   Reset / baza
   ------------------------------------------------------------ */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--t-bg);
    font-family: var(--t-font-body);
    font-size: 14px;
    color: var(--t-body);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a {
    color: var(--t-link);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--t-gold); }

button {
    font-family: var(--t-font-body);
    cursor: pointer;
}

input, select, textarea {
    font-family: var(--t-font-body);
}

/* ------------------------------------------------------------
   Umumiy elementlar
   ------------------------------------------------------------ */

/* Sahifa konteyneri: dizayn artboardi 1360px, markazlashtirilgan.
   Fon ranglari (topbar, header, nav, footer) to'liq kenglikda qoladi,
   kontent esa shu konteyner ichiga o'raladi. */
.t-container {
    max-width: 1360px;
    margin-inline: auto;
    padding-inline: var(--t-page-pad);
}

.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--t-radius-btn);
    font-family: var(--t-font-body);
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.t-btn--gold {
    background: var(--t-gold);
    color: var(--t-navy);
    padding: 13px 28px;
    font-size: 14.5px;
}
.t-btn--gold:hover { background: var(--t-gold-hover); color: var(--t-navy); }

.t-btn--ghost {
    background: transparent;
    color: #E8ECF2;
    border: 1px solid #3A4E6E;
    padding: 13px 28px;
    font-size: 14.5px;
    font-weight: 600;
}
.t-btn--ghost:hover { border-color: var(--t-gold); color: var(--t-gold); }

.t-btn--navy {
    background: var(--t-navy);
    color: #fff;
    padding: 12px 24px;
    font-size: 13.5px;
    font-weight: 700;
}
.t-btn--navy:hover { background: #152A47; color: #fff; }

.t-btn--block { display: flex; width: 100%; }

.t-card {
    background: var(--t-card);
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-card);
}

.t-section-title {
    font-family: var(--t-font-heading);
    font-weight: 400;
    font-size: 26px;
    color: var(--t-heading);
    margin: 0;
}

.t-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.t-section-head__link {
    font-size: 13.5px;
    font-weight: 700;
}

.t-badge {
    display: inline-block;
    border-radius: var(--t-radius-pill);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 5px 12px;
    text-transform: uppercase;
}
.t-badge--gold { background: var(--t-gold-tint); color: var(--t-gold-dark); }
.t-badge--green { background: var(--t-green-tint); color: var(--t-green); }
.t-badge--red { background: var(--t-red); color: #fff; }

/* ------------------------------------------------------------
   Topbar
   ------------------------------------------------------------ */
.t-topbar {
    background: var(--t-navy-darker);
    color: var(--t-on-navy-muted);
    font-size: 12.5px;
}

.t-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.t-topbar__right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.t-topbar__free {
    color: var(--t-gold);
    font-weight: 600;
}

.t-topbar a { color: var(--t-on-navy-muted); }
.t-topbar a:hover { color: var(--t-gold); }

/* ------------------------------------------------------------
   Sarlavha (header)
   ------------------------------------------------------------ */
.t-header {
    background: var(--t-navy);
}

.t-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.t-header--compact .t-header__inner {
    padding-top: 14px;
    padding-bottom: 14px;
}

.t-header__logo img { height: 46px; display: block; }
.t-header--compact .t-header__logo img { height: 40px; }

/* Dizaynda qidiruv butun headerni emas, o'rta qismni egallaydi (~620px) */
.t-search {
    flex: 1;
    max-width: 620px;
    margin-inline: auto;
    display: flex;
    border-radius: var(--t-radius-btn);
    overflow: hidden;
    border: 1px solid var(--t-navy-input-border);
}

.t-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: var(--t-navy-input);
    color: #E8ECF2;
    padding: 12px 18px;
    font-size: 14px;
}
.t-search__input::placeholder { color: var(--t-on-navy-sub); }

.t-search__btn {
    background: var(--t-gold);
    color: var(--t-navy);
    border: none;
    padding: 0 26px;
    font-weight: 700;
    font-size: 14px;
    transition: background .15s ease;
}
.t-search__btn:hover { background: var(--t-gold-hover); }

.t-header__actions {
    display: flex;
    gap: 26px;
    align-items: center;
    flex: none;
}

/* Ikonka + yozuvli tik tugma (Profil / Kirish) — dizayndagi header actionlari */
.t-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--t-on-navy-light);
    font-size: 11.5px;
    white-space: nowrap;
}
.t-action:hover { color: var(--t-gold); }
.t-action svg { stroke: currentColor; }

/* Header o'ng tarafi: aloqa bloki (savat funksiyasi yo'q,
   buyurtma faqat tezkor forma orqali — shuning uchun kontakt ko'rsatiladi) */
.t-header__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--t-on-navy-light);
}
.t-header__contact:hover { color: var(--t-gold); }
.t-header__contact svg { stroke: currentColor; flex: none; }

.t-header__contact-phone {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.t-header__contact:hover .t-header__contact-phone { color: var(--t-gold); }

.t-header__contact-note {
    display: block;
    font-size: 11px;
    color: var(--t-on-navy-muted);
    margin-top: 2px;
    white-space: nowrap;
}

.t-header__note {
    color: var(--t-on-navy-muted);
    font-size: 13px;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Kategoriya navigatsiyasi
   ------------------------------------------------------------ */
.t-nav {
    background: #fff;
    border-bottom: 1px solid var(--t-border);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t-secondary);
}

/* Desktopda overflow ochiq qoladi (dropdown kesilmasligi uchun);
   tor ekranlarda gorizontal skroll yoqiladi, dropdown esa JS orqali
   to'g'ridan-to'g'ri katalogga yo'naltiriladi. */
.t-nav__inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

@media (max-width: 991px) {
    .t-nav__inner {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .t-nav__inner::-webkit-scrollbar { display: none; }
}

.t-nav__all-wrap { position: relative; flex: none; }

.t-nav__all {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--t-gold-tint);
    color: var(--t-gold-dark);
    padding: 11px 18px;
    margin: 8px 0;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--t-font-body);
}
.t-nav__all:hover { color: var(--t-gold-darker); }

/* "Barcha kategoriyalar" dropdowni */
.t-nav__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(11, 21, 36, .14);
    padding: 8px;
    z-index: 60;
}

.t-nav__all-wrap--open .t-nav__dropdown { display: block; }

.t-nav__dropdown a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--t-secondary);
    font-size: 13.5px;
    font-weight: 600;
}
.t-nav__dropdown a:hover { background: var(--t-gold-tint); color: var(--t-gold-dark); }
.t-nav__dropdown a span:last-child { color: var(--t-muted); font-weight: 600; font-size: 12.5px; }

.t-nav__link {
    padding: 16px 0;
    color: var(--t-secondary);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    flex: none;
}
.t-nav__link:hover { color: var(--t-heading); }

.t-nav__link--active {
    border-bottom-color: var(--t-gold);
    color: var(--t-heading);
}

.t-nav__link--sale { color: var(--t-red); }
.t-nav__link--sale:hover { color: var(--t-red); }

/* ------------------------------------------------------------
   Sahifa qobig'i
   ------------------------------------------------------------ */
.t-page {
    max-width: 1360px;
    margin-inline: auto;
    padding: 20px var(--t-page-pad) 36px;
}

.t-breadcrumb {
    font-size: 12.5px;
    color: var(--t-muted);
    margin-bottom: 16px;
}
.t-breadcrumb a { color: var(--t-muted); }
.t-breadcrumb a:hover { color: var(--t-gold); }
.t-breadcrumb__current { color: var(--t-secondary); font-weight: 600; }

/* ------------------------------------------------------------
   Hero (bosh sahifa)
   ------------------------------------------------------------ */
.t-hero {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
    padding: 24px 0 0;
}

.t-hero__main {
    background: linear-gradient(115deg, #0B1524 0%, #152A47 70%, #1B3557 100%);
    border-radius: var(--t-radius-lg);
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.t-hero__circle {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
}
.t-hero__circle--1 { right: -60px; top: -60px; border: 1px solid rgba(212, 169, 55, .25); }
.t-hero__circle--2 { right: -20px; top: -20px; border: 1px solid rgba(212, 169, 55, .15); }

.t-hero__overline {
    color: var(--t-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.t-hero__title {
    font-family: var(--t-font-heading);
    font-weight: 400;
    font-size: 44px;
    line-height: 1.15;
    color: #fff;
    max-width: 520px;
    margin: 0;
}

.t-hero__sub {
    color: var(--t-on-navy-sub);
    font-size: 15px;
    max-width: 440px;
    line-height: 1.55;
}

.t-hero__actions {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.t-hero__promos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.t-promo-card {
    flex: 1;
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: border-color .15s ease;
}
.t-promo-card:hover { border-color: var(--t-gold); }

.t-promo-card__img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex: none;
}

.t-promo-card__overline {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.t-promo-card__overline--sale { color: var(--t-red); }
.t-promo-card__overline--new { color: var(--t-gold-dark); }

.t-promo-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--t-body);
    line-height: 1.35;
    margin-top: 4px;
}

/* ------------------------------------------------------------
   Ishonch qatori
   ------------------------------------------------------------ */
.t-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px 0;
}

.t-trust__item {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-card);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.t-trust__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--t-gold-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.t-trust__title { font-weight: 700; font-size: 14px; color: var(--t-body); }
.t-trust__sub { font-size: 12.5px; color: var(--t-muted); margin-top: 2px; }

/* ------------------------------------------------------------
   Kategoriyalar to'ri
   ------------------------------------------------------------ */
.t-cats-section { padding: 16px 0 8px; }

.t-cats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.t-cat-card {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-card);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color .15s ease;
}
.t-cat-card:hover { border-color: var(--t-gold); }

.t-cat-card__well {
    width: 72px;
    height: 72px;
    background: var(--t-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.t-cat-card__well img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.t-cat-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--t-body);
    text-align: center;
}

/* ------------------------------------------------------------
   Mahsulot kartasi
   ------------------------------------------------------------ */
.t-products-section { padding: 24px 0 36px; }

.t-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.t-products-grid--3 { grid-template-columns: repeat(3, 1fr); }

.t-product-card {
    background: #fff;
    border: 1px solid var(--t-border-card);
    border-radius: var(--t-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .2s ease;
}
.t-product-card:hover { box-shadow: var(--t-shadow-hover); }

.t-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--t-navy);
    color: var(--t-gold);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--t-radius-pill);
    letter-spacing: .04em;
    z-index: 1;
    text-transform: uppercase;
}

/* Rasm o'rni qat'iy 1:1 — portret rasm kartani cho'zmasligi uchun
   overflow yashiriladi va rasm well ichiga to'liq sig'diriladi.
   mix-blend-mode ishlatilmaydi (qora fonli rasmlar xira ko'rinardi). */
.t-product-card__img-well {
    aspect-ratio: 1 / 1;
    background: var(--t-img-well);
    overflow: hidden;
    min-height: 0;
    display: block;
    padding: 16px;
    box-sizing: border-box;
}

.t-product-card__img-well img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.t-product-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    border-top: 1px solid var(--t-border-inner);
}

.t-product-card__cat { font-size: 12px; color: var(--t-muted); }

/* Nom har doim 2 qator joy egallaydi — qatordagi kartalar tekis turadi */
.t-product-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--t-body);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 1.4em);
}
.t-product-card__name a { color: var(--t-body); }
.t-product-card__name a:hover { color: var(--t-gold-dark); }

.t-product-card__price {
    font-size: 17px;
    font-weight: 800;
    color: var(--t-heading);
    margin-top: auto;
    padding-top: 4px;
}

.t-product-card__btn {
    margin-top: 6px;
    background: var(--t-gold);
    color: var(--t-navy);
    border: none;
    border-radius: 9px;
    padding: 10px 0;
    font-weight: 800;
    font-size: 13.5px;
    display: block;
    text-align: center;
    transition: background .15s ease;
}
.t-product-card__btn:hover { background: var(--t-gold-hover); color: var(--t-navy); }

.t-load-more {
    text-align: center;
    padding: 16px 0;
    color: var(--t-muted);
    font-size: 13.5px;
    display: none;
}

.t-load-more--end { display: block; }

/* "Yana yuklash" tugmasi */
.t-load-more-wrap {
    text-align: center;
    padding-top: 24px;
}

.t-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-btn);
    padding: 12px 32px;
    font-family: var(--t-font-body);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--t-heading);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.t-load-more-btn:hover { border-color: var(--t-gold); color: var(--t-gold-dark); }
.t-load-more-btn[disabled] { opacity: .6; cursor: default; }

/* Skeleton kartalar — infinite scroll yuklanish holati */
.t-skel-card {
    background: #fff;
    border: 1px solid var(--t-border-card);
    border-radius: var(--t-radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.t-skel-card__img { aspect-ratio: 1 / 1; }

.t-skel-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--t-border-inner);
}

.t-skel {
    background: linear-gradient(90deg, #EEF0F3 25%, #F7F8FA 45%, #EEF0F3 65%);
    background-size: 200% 100%;
    animation: t-shimmer 1.2s ease-in-out infinite;
    border-radius: 6px;
}

.t-skel--line { height: 13px; }
.t-skel--line-short { height: 13px; width: 55%; }
.t-skel--price { height: 17px; width: 45%; }
.t-skel--btn { height: 38px; border-radius: 9px; margin-top: 4px; }

@keyframes t-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Rasm hali yuklanayotgan karta: well yaltirab (shimmer) turadi,
   rasm tayyor bo'lgach yumshoq fade bilan paydo bo'ladi */
.t-img-loading {
    background: linear-gradient(90deg, #EEF0F3 25%, #F7F8FA 45%, #EEF0F3 65%);
    background-size: 200% 100%;
    animation: t-shimmer 1.2s ease-in-out infinite;
}

.t-img-fade {
    opacity: 0;
    transition: opacity .35s ease;
}

.t-img-fade--in { opacity: 1; }

/* ------------------------------------------------------------
   Katalog (qidiruv sahifasi)
   ------------------------------------------------------------ */
.t-catalog-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.t-catalog-title {
    font-family: var(--t-font-heading);
    font-weight: 400;
    font-size: 30px;
    color: var(--t-heading);
    margin: 0;
}

.t-catalog-count { font-size: 13px; color: var(--t-muted); }

.t-catalog {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 24px;
    align-items: start;
}

.t-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.t-filter-card {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-card);
    padding: 18px 20px;
}

.t-filter-card__title {
    font-weight: 800;
    font-size: 14px;
    color: var(--t-heading);
    margin-bottom: 12px;
}

.t-filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: var(--t-secondary);
}

.t-filter-list__item {
    display: flex;
    justify-content: space-between;
    color: var(--t-secondary);
}
.t-filter-list__item:hover { color: var(--t-heading); }
.t-filter-list__item span:last-child { color: var(--t-muted); }

.t-filter-list__item--active {
    color: var(--t-gold-dark);
    font-weight: 700;
}
.t-filter-list__item--active span:last-child { color: var(--t-gold-dark); }

.t-price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.t-price-inputs input {
    width: 50%;
    min-width: 0;
    border: 1px solid var(--t-border);
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    color: var(--t-body);
    outline: none;
}
.t-price-inputs input:focus { border-color: var(--t-gold); }

/* Ikki dastali narx slideri: ustma-ust qo'yilgan ikkita native range input.
   Trek #EDEFF3, tanlangan oraliq oltin, dastalar 14px oq + 2px oltin hoshiya. */
.t-range {
    position: relative;
    height: 14px;
    margin: 4px 1px 2px;
}

.t-range__track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background: #EDEFF3;
    border-radius: 99px;
}

.t-range__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--t-gold);
    border-radius: 99px;
}

.t-range input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 14px;
    margin: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.t-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--t-gold);
    box-sizing: border-box;
    cursor: pointer;
}

.t-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--t-gold);
    box-sizing: content-box;
    cursor: pointer;
}

.t-range input[type="range"]::-moz-range-track { background: none; }

.t-check {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}

.t-check input { display: none; }

.t-check__box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #C9CFD8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 11px;
    font-weight: 800;
    flex: none;
    transition: background .12s ease, border-color .12s ease;
}

.t-check input:checked + .t-check__box {
    background: var(--t-gold);
    border-color: var(--t-gold);
    color: var(--t-navy);
}

.t-sort {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.t-sort__chips { display: flex; gap: 8px; flex-wrap: wrap; }

.t-sort__chip {
    color: var(--t-secondary);
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    white-space: nowrap;
}
.t-sort__chip:hover { color: var(--t-heading); background: var(--t-bg); }

.t-sort__chip--active {
    background: var(--t-navy);
    color: #fff;
}
.t-sort__chip--active:hover { background: var(--t-navy); color: #fff; }

.t-sort__count { font-size: 12.5px; color: var(--t-muted); white-space: nowrap; }

.t-catalog__main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Sahifalash */
.t-pagination { margin-top: 6px; }

.t-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.t-pagination li a,
.t-pagination li span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--t-border);
    color: var(--t-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
}

.t-pagination li a:hover { border-color: var(--t-gold); color: var(--t-heading); }

.t-pagination li.active a,
.t-pagination li.active span {
    background: var(--t-navy);
    border-color: var(--t-navy);
    color: #fff;
    font-weight: 700;
}

.t-pagination li.disabled a,
.t-pagination li.disabled span {
    opacity: .45;
    pointer-events: none;
}

.t-empty {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-card);
    padding: 48px 24px;
    text-align: center;
    color: var(--t-muted);
    font-size: 14px;
}

/* ------------------------------------------------------------
   Mahsulot sahifasi
   ------------------------------------------------------------ */
.t-product {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}

.t-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t-gallery__main {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    aspect-ratio: 1;
    max-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-sizing: border-box;
}

.t-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.t-gallery__thumbs { display: flex; gap: 12px; flex-wrap: wrap; }

.t-thumb {
    width: 84px;
    height: 84px;
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    transition: border-color .15s ease;
}
.t-thumb:hover { border-color: var(--t-gold); }
.t-thumb--active { border: 2px solid var(--t-gold); }

.t-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.t-pinfo {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Galereya o'ng ustundan uzun bo'lsa, ma'lumot bloki ergashib turadi */
@media (min-width: 992px) {
    .t-pinfo { position: sticky; top: 20px; }
}

.t-pinfo__badges { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }

.t-pinfo__title {
    font-family: var(--t-font-heading);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: var(--t-heading);
    margin: 0;
}

.t-pinfo__meta { font-size: 13px; color: var(--t-muted); margin-top: 8px; }

.t-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.t-price-row__current {
    font-size: 34px;
    font-weight: 800;
    color: var(--t-heading);
}

.t-price-row__old {
    font-size: 17px;
    color: var(--t-strike);
    text-decoration: line-through;
}

.t-price-row__discount {
    background: var(--t-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--t-radius-pill);
}

/* Tezkor buyurtma kartasi */
.t-order-card {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t-order-card__title {
    font-weight: 800;
    font-size: 15px;
    color: var(--t-heading);
}

.t-field { display: flex; flex-direction: column; gap: 6px; }

.t-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--t-secondary);
}

.t-input {
    width: 100%;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-input);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--t-body);
    outline: none;
    background: #fff;
    transition: border-color .15s ease;
}
.t-input:focus { border-color: var(--t-gold); }
.t-input::placeholder { color: var(--t-muted); }

textarea.t-input { resize: none; }

.t-field .help-block,
.t-field__error {
    font-size: 12px;
    color: var(--t-red);
    margin: 0;
    min-height: 0;
}
.t-field .help-block:empty { display: none; }
.t-field.has-error .t-input { border-color: var(--t-red); }
.t-field.has-success .t-input { border-color: var(--t-border); }

.t-order-card__row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.t-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-input);
    overflow: hidden;
    flex: none;
    background: #fff;
}

.t-qty__btn {
    width: 42px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--t-secondary);
    background: none;
    border: none;
    transition: background .12s ease;
}
.t-qty__btn:hover { background: var(--t-bg); }

.t-qty__value {
    width: 36px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--t-heading);
}

.t-order-card__submit {
    flex: 1;
    width: 100%;
    background: var(--t-gold);
    color: var(--t-navy);
    border: none;
    border-radius: var(--t-radius-input);
    padding: 13px 0;
    font-weight: 800;
    font-size: 15px;
    transition: background .15s ease;
}
.t-order-card__submit:hover { background: var(--t-gold-hover); }
.t-order-card__submit[disabled] { opacity: .6; cursor: default; }

.t-order-card__note {
    font-size: 12.5px;
    color: var(--t-muted);
    text-align: center;
}

/* Kichik ma'lumot kartalari */
.t-infocards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.t-infocard {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.t-infocard svg { flex: none; }

.t-infocard__text {
    font-size: 12.5px;
    color: var(--t-secondary);
    line-height: 1.4;
}

/* Tavsif tablari */
.t-tabs-card {
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    margin-top: 28px;
    overflow: hidden;
}

.t-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--t-border);
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
    overflow-x: auto;
    scrollbar-width: none;
}
.t-tabs::-webkit-scrollbar { display: none; }

.t-tab {
    padding: 16px 0;
    color: var(--t-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .15s ease;
}
.t-tab:hover { color: var(--t-heading); }

.t-tab--active {
    border-bottom-color: var(--t-gold);
    color: var(--t-heading);
}

.t-tab-pane {
    padding: 22px 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--t-secondary);
    max-width: 820px;
    display: none;
}
.t-tab-pane--active { display: block; }
.t-tab-pane img { max-width: 100%; height: auto; }

/* O'xshash mahsulotlar */
.t-similar { margin-top: 28px; }
.t-similar .t-section-title { font-size: 24px; margin-bottom: 16px; display: block; }

/* ------------------------------------------------------------
   Muvaffaqiyat paneli
   ------------------------------------------------------------ */
.t-success {
    max-width: 560px;
    margin: 32px auto;
    background: #fff;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius-lg);
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.t-success__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--t-green-tint);
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-success__title {
    font-family: var(--t-font-heading);
    font-weight: 400;
    font-size: 26px;
    color: var(--t-heading);
    margin: 0;
}

.t-success__desc {
    font-size: 14px;
    color: var(--t-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Xatolik sahifasi */
.t-error {
    max-width: 560px;
    margin: 48px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.t-error__code {
    font-family: var(--t-font-heading);
    font-size: 84px;
    color: var(--t-gold);
    line-height: 1;
}

.t-error__title {
    font-family: var(--t-font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--t-heading);
    margin: 0;
}

.t-error__desc { font-size: 14px; color: var(--t-muted); margin: 0; }

/* Ishonch banneri (navy) */
.t-trust-banner {
    background: var(--t-navy);
    border-radius: var(--t-radius-lg);
    padding: 20px 24px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.t-trust-banner__text {
    font-size: 13px;
    color: var(--t-on-navy-light);
    line-height: 1.5;
}
.t-trust-banner__text b { color: #fff; }

/* Oltin eslatma banneri */
.t-notice {
    background: var(--t-gold-tint);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.t-notice svg { flex: none; }

.t-notice__text {
    font-size: 13px;
    color: var(--t-gold-darker);
    line-height: 1.5;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.t-footer {
    background: var(--t-navy);
}

.t-footer__inner { padding-top: 40px; }

.t-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.t-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
}

.t-footer__col--brand { gap: 14px; }

.t-footer__logo { height: 40px; width: fit-content; }

.t-footer__blurb {
    color: var(--t-on-navy-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 280px;
}

.t-footer__title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
}

.t-footer__link { color: var(--t-on-navy-muted); }
.t-footer__link:hover { color: var(--t-gold); }

.t-footer__social { color: var(--t-gold); font-weight: 600; }

.t-footer__bottom {
    border-top: 1px solid var(--t-navy-divider);
    padding: 18px 0;
    color: #5E6B7E;
    font-size: 12.5px;
}

/* ------------------------------------------------------------
   Mobil pastki navigatsiya
   ------------------------------------------------------------ */
.t-bottomnav {
    display: none;
    background: #fff;
    border-top: 1px solid var(--t-border);
    justify-content: space-around;
    padding: 10px 0 max(14px, env(safe-area-inset-bottom));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
}

.t-bottomnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--t-muted);
}
.t-bottomnav__item svg { stroke: currentColor; }

.t-bottomnav__item--active { color: var(--t-heading); font-weight: 700; }
.t-bottomnav__item--active svg { stroke: var(--t-gold); }

/* Mobil yopishqoq CTA (mahsulot sahifasi) */
.t-sticky-cta {
    display: none;
    background: #fff;
    border-top: 1px solid var(--t-border);
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
    gap: 12px;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 41;
}

.t-sticky-cta .t-qty__btn { width: 38px; height: 44px; font-size: 17px; }
.t-sticky-cta .t-qty__value { width: 28px; font-size: 14px; }

.t-sticky-cta__btn {
    flex: 1;
    background: var(--t-gold);
    color: var(--t-navy);
    border: none;
    border-radius: var(--t-radius-input);
    padding: 13px 0;
    font-weight: 800;
    font-size: 14.5px;
}
.t-sticky-cta__btn:hover { background: var(--t-gold-hover); }

/* ------------------------------------------------------------
   Mobil moslashuv (≤ 991px planshet, ≤ 767px telefon)
   ------------------------------------------------------------ */
@media (max-width: 1199px) {
    .t-products-grid { grid-template-columns: repeat(3, 1fr); }
    .t-cats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    :root { --t-page-pad: 20px; }

    .t-topbar { display: none; }

    .t-header__inner {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .t-header__logo img { height: 32px; }
    .t-header--compact .t-header__logo img { height: 32px; }

    .t-header__actions { order: 2; gap: 16px; margin-left: auto; }

    /* Mobil header: faqat ikonkalar, matnsiz */
    .t-header__contact-phone,
    .t-header__contact-note,
    .t-action span { display: none; }

    .t-search { order: 3; flex-basis: 100%; max-width: none; }
    .t-search__input { padding: 11px 14px; }
    .t-search__btn { padding: 0 16px; }

    .t-hero { grid-template-columns: 1fr; }

    .t-hero__main { padding: 26px 22px; border-radius: var(--t-radius-card); }
    .t-hero__title { font-size: 26px; }
    .t-hero__sub { font-size: 14px; }

    .t-hero__promos { flex-direction: row; gap: 12px; }
    .t-promo-card { padding: 14px 16px; gap: 12px; }
    .t-promo-card__img { width: 56px; height: 56px; }
    .t-promo-card__title { font-size: 13px; }

    .t-trust { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .t-products-grid,
    .t-products-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .t-catalog { grid-template-columns: 1fr; }
    .t-sidebar { order: 2; }

    .t-product { grid-template-columns: 1fr; gap: 18px; }

    .t-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    :root { --t-page-pad: 14px; }

    body { padding-bottom: 72px; }

    .t-page { padding-top: 14px; padding-bottom: 24px; }

    .t-nav__inner { gap: 20px; }
    .t-nav__all { padding: 9px 14px; font-size: 12.5px; }
    .t-nav__link { padding: 13px 0; font-size: 12.5px; }

    .t-hero__overline { font-size: 11px; letter-spacing: .14em; font-weight: 800; }
    .t-hero__title { font-size: 22px; max-width: 260px; }
    .t-hero__sub { display: none; }
    .t-hero__actions .t-btn--gold { padding: 10px 20px; font-size: 13px; border-radius: 9px; }
    .t-hero__actions .t-btn--ghost { display: none; }
    .t-hero__circle { width: 160px; height: 160px; }
    .t-hero__circle--1 { right: -40px; top: -40px; }
    .t-hero__circle--2 { display: none; }

    .t-hero__promos { display: none; }

    .t-trust { display: flex; justify-content: space-between; background: #fff; border: 1px solid var(--t-border); border-radius: 12px; padding: 12px 16px; }
    .t-trust__item { background: none; border: none; padding: 0; flex-direction: column; gap: 5px; text-align: center; }
    .t-trust__icon { width: auto; height: auto; background: none; border-radius: 0; }
    .t-trust__title { font-size: 11px; }
    .t-trust__sub { display: none; }
    .t-trust__item--desktop { display: none; }

    .t-section-title { font-size: 20px; }
    .t-section-head__link { font-size: 12.5px; }

    .t-cats {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    .t-cats::-webkit-scrollbar { display: none; }

    .t-cat-card {
        flex: none;
        width: 74px;
        background: none;
        border: none;
        padding: 0;
        gap: 7px;
    }
    .t-cat-card__well {
        width: 60px;
        height: 60px;
        background: #fff;
        border: 1px solid var(--t-border);
    }
    .t-cat-card__well img { width: 42px; height: 42px; }
    .t-cat-card__name { font-size: 10.5px; color: var(--t-secondary); line-height: 1.2; }

    .t-product-card { border-radius: 12px; }
    .t-product-card__badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 8px; }
    .t-product-card__img-well { padding: 10px; }
    .t-product-card__body { padding: 10px 12px 12px; gap: 4px; }
    .t-product-card__cat { display: none; }
    .t-product-card__name { font-size: 12.5px; line-height: 1.35; }
    .t-product-card__price { font-size: 14.5px; }
    .t-product-card__btn { margin-top: 4px; border-radius: 8px; padding: 9px 0; font-size: 12px; }

    .t-catalog-title { font-size: 22px; }

    .t-sort { flex-wrap: wrap; }
    .t-sort__count { display: none; }

    .t-gallery__main { border-radius: 0; border-left: none; border-right: none; border-top: none; padding: 28px; }
    .t-gallery { gap: 10px; margin: -14px calc(-1 * var(--t-page-pad)) 0; }
    .t-gallery__thumbs { justify-content: center; padding: 0 14px 4px; }
    .t-thumb { width: 64px; height: 64px; }

    .t-pinfo__title { font-size: 22px; }
    .t-price-row__current { font-size: 26px; }
    .t-price-row__old { font-size: 14px; }

    .t-order-card { border-radius: var(--t-radius-card); padding: 16px; gap: 11px; }
    .t-order-card__title { font-size: 14px; }
    .t-order-card .t-input { padding: 11px 14px; font-size: 13.5px; border-radius: 9px; }
    .t-order-card__row--desktop { display: none; }

    .t-infocards { grid-template-columns: 1fr; }

    .t-tabs-card { margin-top: 18px; }
    .t-tab-pane { font-size: 13px; padding: 16px; }

    .t-similar { margin-top: 18px; }
    .t-similar .t-section-title { font-size: 20px; }

    .t-footer { padding-top: 28px; }
    .t-footer__grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 22px; }

    .t-bottomnav { display: flex; }

    .t-sticky-cta--visible { display: flex; }
    body.has-sticky-cta { padding-bottom: 76px; }
    body.has-sticky-cta .t-bottomnav { display: none; }

    .t-success { margin: 16px auto; padding: 28px 18px; }
    .t-success__title { font-size: 20px; }
}
