/* ===================================================================
   Sunix Yeni Tema — components.css
   Header, Footer, Hero, Cards, Pagination, Gallery, Breadcrumb, Forms
   Dark/Light mode aware — tüm renkler var() ile
   =================================================================== */

/* ============ HEADER ============ */
.th-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background var(--dur) ease, backdrop-filter var(--dur) ease, border-color var(--dur) ease;
}
body[data-header="floating"] .th-header {
    background: var(--c-header-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--c-header-border);
}
body[data-header="floating"] .th-header.scrolled {
    background: var(--c-header-glass-scrolled);
}
body[data-header="sticky"] .th-header {
    background: var(--c-header-bg);
    border-bottom: 1px solid var(--c-header-border);
}
body[data-header="sticky"] .th-header.scrolled {
    background: var(--c-header-bg-scrolled);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.4);
}
html[data-theme="light"] body[data-header="sticky"] .th-header.scrolled {
    box-shadow: 0 8px 30px -12px rgba(13, 30, 58, 0.12);
}

.th-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad-desktop);
    height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    color: var(--c-nav-text);
}
.th-logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.th-logo img { height: 36px; width: auto; max-width: none; }

/* ---- Logo mod toggle ----
   Header: data-theme'e göre (dark=beyaz logo, light=renkli logo)
   Footer: her zaman beyaz logo (footer zemini her iki modda da navy-deep) */
.th-logo__img { display: inline-block; }
.th-header .th-logo__img--light { display: none; }
html[data-theme="light"] .th-header .th-logo__img--dark { display: none; }
html[data-theme="light"] .th-header .th-logo__img--light { display: inline-block; }
.th-footer .th-logo__img--light { display: none; }

.th-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 2px;
}
.th-nav > a,
.th-mega-wrap > a {
    position: relative;
    padding: 22px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--c-nav-text-soft);
    transition: color var(--dur-fast);
}
.th-nav > a:hover,
.th-mega-wrap > a:hover { color: var(--c-nav-text); }
.th-nav > a::after,
.th-mega-wrap > a::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--c-red);
    transition: width var(--dur) ease;
}
.th-nav > a:hover::after,
.th-nav > a.active::after,
.th-mega-wrap:hover > a::after,
.th-mega-wrap > a.active::after { width: calc(100% - 32px); }
.th-nav > a.active,
.th-mega-wrap > a.active { color: var(--c-nav-text); font-weight: 600; }

.th-mega-wrap { position: relative; }
.th-mega-wrap > a.th-has-mega {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.th-mega-arrow { font-size: 9px; opacity: 0.6; transition: transform var(--dur-fast); }
.th-mega-wrap:hover .th-mega-arrow { transform: rotate(180deg); }

/* ============ MEGA DRAWER (Ürünler menüsü) ============ */
.th-megadrawer {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: #0a0a10;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    overflow: hidden;
    transition: opacity var(--dur) ease, transform var(--dur) ease, visibility 0s linear var(--dur);
}
html[data-theme="light"] .th-megadrawer {
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(13, 30, 58, 0.12);
}
.th-megadrawer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--dur) ease, transform var(--dur) ease, visibility 0s;
}

/* ============ DRIFTING COLOR BLOBS — 3 asenkron blob ============ */
.th-megadrawer__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    /* 3. blob — merkez, geniş navy halo */
    background: radial-gradient(ellipse 420px 340px at 60% 55%, rgba(25, 20, 55, 0.45), transparent 65%);
    animation: th-drift3 19s ease-in-out infinite;
}
.th-megadrawer__bg::before,
.th-megadrawer__bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
}
/* 1. blob — navy, sol üst */
.th-megadrawer__bg::before {
    top: 15%; left: 8%;
    width: 320px; height: 320px;
    background: rgba(22, 18, 50, 0.8);
    animation: th-drift1 13s ease-in-out infinite;
}
/* 2. blob — kırmızı, sağ alt */
.th-megadrawer__bg::after {
    bottom: 10%; right: 8%;
    width: 360px; height: 360px;
    background: rgba(227, 6, 19, 0.35);
    animation: th-drift2 17s ease-in-out infinite;
}

html[data-theme="light"] .th-megadrawer__bg {
    background: radial-gradient(ellipse 420px 340px at 60% 55%, rgba(26, 58, 125, 0.08), transparent 65%);
}
html[data-theme="light"] .th-megadrawer__bg::before { background: rgba(26, 58, 125, 0.18); }
html[data-theme="light"] .th-megadrawer__bg::after  { background: rgba(227, 6, 19, 0.08); }

@keyframes th-drift1 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(80px, 50px); }
}
@keyframes th-drift2 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-70px, -50px); }
}
@keyframes th-drift3 {
    0%, 100% { background-position: 60% 55%; }
    50%      { background-position: 40% 45%; }
}

@media (prefers-reduced-motion: reduce) {
    .th-megadrawer__bg,
    .th-megadrawer__bg::before,
    .th-megadrawer__bg::after { animation: none !important; }
}

.th-megadrawer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 30px var(--container-pad-desktop) 36px;
    max-height: calc(100vh - var(--header-height) - 20px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--c-line-strong) transparent;
    position: relative;
    z-index: 3;
}
.th-megadrawer__inner::-webkit-scrollbar { width: 6px; }
.th-megadrawer__inner::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 3px; }
.th-megadrawer__inner::-webkit-scrollbar-track { background: transparent; }

.th-megadrawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding: 0 4px;
    gap: 20px;
    flex-wrap: wrap;
}
.th-megadrawer__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.015em;
}
.th-megadrawer__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    transition: color var(--dur-fast), gap var(--dur-fast);
}
.th-megadrawer__all:hover { color: var(--c-red); gap: 12px; }
.th-megadrawer__all i { font-size: 10px; transition: transform var(--dur-fast); }
.th-megadrawer__all:hover i { transform: translateX(3px); }

/* ============ "Yeni Ürünler" kategori pill varyantı ============ */
/* Minimal: kategori pill'leriyle tam aynı görünüm + kartın altında akan kırmızı ince çizgi */
.th-megadrawer__item--new {
    position: relative;
    overflow: hidden;
}
.th-megadrawer__item--new::before {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--c-red) 50%, transparent);
    animation: th-new-slide 2.8s linear infinite;
    pointer-events: none;
}
@keyframes th-new-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* Icon circle: kategori resim circle'ıyla aynı zemin, bolt kırmızı */
.th-megadrawer__item--new .th-megadrawer__item-img--icon {
    background: #181722;
    color: #ffffff;
    font-size: 22px;
}
html[data-theme="light"] .th-megadrawer__item--new .th-megadrawer__item-img--icon {
    background: #ffffff;
    color: var(--c-red);
}

.th-megadrawer__item--new .th-megadrawer__item-title {
    color: #ffffff;
    font-weight: 700;
}
html[data-theme="light"] .th-megadrawer__item--new .th-megadrawer__item-title {
    color: var(--c-red);
}

/* Mobile: Yeni Ürünler sub-link */
.th-mobile-sub > a.th-mobile-sub-new {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-red);
    font-weight: 700;
    border-bottom: 1px dashed var(--c-line);
    margin-bottom: 6px;
    padding-bottom: 10px;
}
.th-mobile-sub > a.th-mobile-sub-new i {
    font-size: 12px;
    animation: th-feature-flash-mb 2s ease-in-out infinite;
}
@keyframes th-feature-flash-mb {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(1.2); }
}

.th-megadrawer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ============ ROUNDED RECTANGLE ITEM (deneme V2 ile birebir) ============ */
.th-megadrawer__item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 22px 10px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: var(--c-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--dur) var(--easing);
}
.th-megadrawer__item:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(3px);
}

/* Açık tema için belirgin kart */
html[data-theme="light"] .th-megadrawer__item {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(13, 30, 58, 0.14);
}
html[data-theme="light"] .th-megadrawer__item:hover {
    background: #ffffff;
    border-color: rgba(13, 30, 58, 0.22);
}

.th-megadrawer__item-img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13, 30, 58, 0.06);
    box-shadow: 0 10px 24px -8px rgba(13, 30, 58, 0.18);
    transition: all var(--dur) var(--easing);
}
html[data-theme="dark"] .th-megadrawer__item-img {
    background: #181722;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}
.th-megadrawer__item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.3);
    transition: transform var(--dur) var(--easing);
}
.th-megadrawer__item:hover .th-megadrawer__item-img img {
    transform: scale(1.4);
}

.th-megadrawer__item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive: 1280px altında 2 sütun */
@media (max-width: 1280px) {
    .th-megadrawer__grid { grid-template-columns: repeat(2, 1fr); }
}

.th-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}
.th-icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-nav-text);
    transition: background var(--dur-fast), color var(--dur-fast);
}
.th-icon-btn:hover { background: var(--c-icon-btn-hover-bg); }

/* ---- Theme toggle ---- */
.th-theme-toggle { position: relative; overflow: hidden; }
.th-theme-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    transition: opacity .3s ease, transform .3s var(--easing);
}
.th-theme-icon--moon { opacity: 1; }
.th-theme-icon--sun {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
}
html[data-theme="light"] .th-theme-icon--moon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
}
html[data-theme="light"] .th-theme-icon--sun {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0) scale(1);
}

.th-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--c-red);
    color: var(--c-on-brand);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
    box-shadow: 0 8px 24px -10px var(--c-red-glow);
}
.th-pill:hover {
    background: var(--c-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px var(--c-red-glow);
}

.th-mobile-toggle { display: none; }

/* ============ SEARCH OVERLAY ============ */
.th-search-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 120px var(--container-pad-desktop) 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) ease, visibility 0s linear var(--dur);
}
.th-search-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur) ease, visibility 0s;
}
.th-search-overlay__close {
    position: absolute;
    top: 24px; right: 24px;
    width: 48px; height: 48px;
    background: var(--c-search-close-bg);
    color: var(--c-text);
    border-radius: 50%;
    font-size: 16px;
    transition: background var(--dur-fast), transform var(--dur-fast);
}
.th-search-overlay__close:hover {
    background: var(--c-search-close-hover);
    transform: rotate(90deg);
}
.th-search-form {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}
.th-search-form__label {
    color: var(--c-search-label);
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
}
.th-search-form input {
    width: 100%;
    height: 68px;
    padding: 0 64px 0 0;
    border: none;
    border-bottom: 2px solid var(--c-search-input-border);
    background: transparent;
    font-size: 28px;
    font-weight: 500;
    color: var(--c-text);
    outline: none;
    transition: border-color var(--dur-fast);
}
.th-search-form input:focus { border-bottom-color: var(--c-red); }
.th-search-form input::placeholder { color: var(--c-search-placeholder); }
.th-search-form > button {
    position: absolute;
    right: 0;
    bottom: 12px;
    width: 52px; height: 52px;
    background: var(--c-red);
    color: var(--c-on-brand);
    border-radius: 50%;
    transition: background var(--dur-fast), transform var(--dur-fast);
}
.th-search-form > button:hover {
    background: var(--c-red-dark);
    transform: translateY(-2px);
}

/* ============ MOBILE DRAWER ============ */
.th-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: var(--c-drawer-backdrop);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) ease, visibility 0s linear var(--dur);
}
.th-mobile-backdrop.open {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--dur) ease;
}
.th-mobile-drawer {
    position: fixed;
    top: 0; right: -340px;
    bottom: 0;
    width: 320px;
    max-width: 88vw;
    background: var(--c-drawer-bg);
    color: var(--c-text);
    z-index: 999;
    transition: right var(--dur) var(--easing);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.th-mobile-drawer.open { right: 0; }
.th-mobile-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--c-drawer-border);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.th-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}
.th-mobile-nav > a {
    padding: 16px 22px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--c-drawer-hover-bg);
    transition: background var(--dur-fast);
    color: var(--c-text);
}
.th-mobile-nav > a:hover { background: var(--c-drawer-hover-bg); }
.th-mobile-accordion { border-bottom: 1px solid var(--c-drawer-hover-bg); }
.th-mobile-accordion summary {
    padding: 16px 22px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    color: var(--c-text);
}
.th-mobile-accordion summary::-webkit-details-marker { display: none; }
.th-mobile-accordion summary i { transition: transform var(--dur-fast); font-size: 12px; opacity: 0.6; }
.th-mobile-accordion[open] summary i { transform: rotate(180deg); }
.th-mobile-sub {
    background: var(--c-drawer-sub-bg);
    padding: 6px 0;
}
.th-mobile-sub a {
    display: block;
    padding: 12px 22px 12px 34px;
    font-size: 14px;
    font-weight: 400;
    color: var(--c-text-soft);
    transition: color var(--dur-fast);
}
.th-mobile-sub a:hover { color: var(--c-red); }
.th-mobile-pill {
    margin: 18px 22px;
    padding: 12px 20px;
    background: var(--c-red);
    color: var(--c-on-brand);
    border-radius: var(--radius-pill);
    text-align: center;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============ FOOTER ============ */
.th-footer {
    background: var(--c-footer-bg);
    color: var(--c-footer-text);
    padding: 80px 0 0;
    margin-top: 0;
    position: relative;
}
.th-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.5), transparent);
}
.th-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad-desktop);
}
.th-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--c-footer-border);
}
.th-footer__col--brand .th-footer__logo { display: inline-block; margin-bottom: 20px; }
.th-footer__tagline {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--c-footer-text-soft);
    max-width: 320px;
    margin-bottom: 24px;
}
.th-footer__social { display: flex; gap: 10px; }
.th-footer__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--c-footer-social-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-footer-title);
    font-size: 14px;
    transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.th-footer__social a:hover {
    background: var(--c-red);
    color: var(--c-on-brand);
    transform: translateY(-2px);
}

.th-footer__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-footer-title);
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}
.th-footer__list li {
    margin-bottom: 12px;
    font-size: 14px;
}
.th-footer__list a {
    color: var(--c-footer-link);
    transition: color var(--dur-fast);
}
.th-footer__list a:hover { color: var(--c-red); }
.th-footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--c-footer-text);
}
.th-footer__list--contact i {
    color: var(--c-red);
    font-size: 13px;
    margin-top: 4px;
    flex-shrink: 0;
}
.th-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--c-red);
    color: var(--c-on-brand);
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 16px;
    transition: background var(--dur-fast), transform var(--dur-fast);
}
.th-footer__cta:hover { background: var(--c-red-dark); transform: translateY(-1px); }
.th-footer__cta i { transition: transform var(--dur-fast); }
.th-footer__cta:hover i { transform: translateX(4px); }

.th-footer__bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--c-footer-bottom-text);
    flex-wrap: wrap;
    gap: 16px;
}
.th-footer__legal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.th-footer__legal a {
    color: var(--c-footer-link);
    transition: color var(--dur-fast);
}
.th-footer__legal a:hover { color: var(--c-red); }
.th-footer__legal .dot { opacity: 0.4; }

/* ============ PRODUCT CARD ============ */
.th-product-card {
    display: block;
    background: var(--c-product-card-bg);
    border: 1px solid var(--c-product-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease, background var(--dur) ease;
    box-shadow: var(--shadow-card);
    position: relative;
    color: var(--c-text);
}
.th-product-card:hover {
    transform: translateY(-6px);
    background: var(--c-product-card-hover-bg);
    box-shadow: var(--shadow-hover), var(--shadow-ambient);
    border-color: var(--c-line-glow, var(--c-line-strong));
}
.th-product-card__media {
    aspect-ratio: 1 / 1;
    background: var(--c-surface-media);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.th-product-card__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-media-glow);
    pointer-events: none;
    z-index: 0;
}
.th-product-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-media-shadow);
    pointer-events: none;
    z-index: 1;
}
.th-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform var(--dur-slow) var(--easing);
}
.th-product-card:hover .th-product-card__media img { transform: scale(1.04); }
.th-product-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 5px 12px;
    background: var(--c-red);
    color: var(--c-on-brand);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    z-index: 2;
}
.th-product-card__body {
    padding: 18px 20px 20px;
    background: var(--c-card-body-bg);
    border-top: 1px solid var(--c-card-body-border);
    transition: background var(--dur) ease;
}
.th-product-card:hover .th-product-card__body {
    background: var(--c-card-body-hover-bg);
}
.th-product-card__cat {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 8px;
}
.th-product-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.th-product-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--c-line-strong);
}
.th-product-card__more {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-text-soft);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color var(--dur-fast);
}
.th-product-card:hover .th-product-card__more { color: var(--c-red); }
.th-product-card__arrow {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--c-arrow-btn-bg);
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.th-product-card:hover .th-product-card__arrow {
    background: var(--c-red);
    color: var(--c-on-brand);
    transform: translateX(4px);
}

/* ============ PRODUCT GRID ============ */
.th-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============ CATEGORY CARD ============ */
.th-category-card {
    display: flex;
    flex-direction: column;
    padding: 32px 24px 28px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease, background var(--dur) ease;
    min-height: 180px;
    justify-content: space-between;
    color: var(--c-text);
}
.th-category-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.06), transparent 70%);
    transition: transform var(--dur-slow) ease;
}
.th-category-card:hover {
    transform: translateY(-6px);
    background: var(--c-surface-2);
    box-shadow: var(--shadow-hover), var(--shadow-ambient);
    border-color: var(--c-line-glow, var(--c-line-strong));
}
.th-category-card:hover::before { transform: scale(1.5); }
.th-category-card__icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: var(--g-icon-gradient);
    color: var(--c-on-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
html[data-theme="light"] .th-category-card__icon {
    color: var(--c-navy);
}
.th-category-card__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.25;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.th-category-card__count {
    font-size: 12.5px;
    color: var(--c-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}
.th-category-card__arrow {
    position: absolute;
    bottom: 20px; right: 20px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--c-arrow-btn-bg);
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.th-category-card:hover .th-category-card__arrow {
    background: var(--c-red);
    color: var(--c-on-brand);
    transform: translateX(4px);
}

/* ============ BREADCRUMB ============ */
.th-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 18px;
}
.th-breadcrumb a {
    color: var(--c-muted);
    transition: color var(--dur-fast);
}
.th-breadcrumb a:hover { color: var(--c-red); }
.th-breadcrumb .sep { opacity: 0.4; font-size: 10px; }
.th-breadcrumb .current { color: var(--c-text); font-weight: 600; }

/* ============ PAGE HERO BAND (alt sayfalar) ============ */
.th-page-hero {
    background: var(--g-dark-hero);
    color: var(--c-hero-text);
    padding: calc(var(--header-height) + 60px) 0 70px;
    position: relative;
    overflow: hidden;
}
.th-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--c-page-hero-dots) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at 70% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, black 0%, transparent 70%);
    pointer-events: none;
}
.th-page-hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad-desktop);
    position: relative;
    z-index: 2;
}
.th-page-hero .th-breadcrumb {
    color: var(--c-page-hero-bc-soft);
    margin-bottom: 20px;
}
.th-page-hero .th-breadcrumb a { color: var(--c-page-hero-bc-link); }
.th-page-hero .th-breadcrumb a:hover { color: var(--c-hero-text); }
.th-page-hero .th-breadcrumb .current { color: var(--c-hero-text); }
.th-page-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--c-hero-text);
    margin-bottom: 16px;
    text-wrap: balance;
}
.th-page-hero__desc {
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-page-hero-text-soft);
    max-width: 640px;
}

/* ============ PAGINATION ============ */
.th-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.th-pagination a,
.th-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    background: var(--c-surface);
    transition: all var(--dur-fast);
}
.th-pagination a:hover {
    border-color: var(--c-line-strong);
    background: var(--c-surface-2);
    color: var(--c-text);
}
.th-pagination .current {
    background: var(--c-red);
    border-color: var(--c-red);
    color: var(--c-on-brand);
}
.th-pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============ EMPTY STATE ============ */
.th-empty {
    padding: 80px 20px;
    text-align: center;
    color: var(--c-muted);
}
.th-empty i {
    font-size: 48px;
    color: var(--c-line);
    margin-bottom: 20px;
}
.th-empty h3 {
    font-size: 20px;
    color: var(--c-text);
    margin-bottom: 10px;
}

/* ============ FORM ============ */
.th-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 580px;
}
.th-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.th-form__group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}
.th-form__group input,
.th-form__group textarea,
.th-form__group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--c-form-input-border);
    border-radius: 10px;
    font-size: 14.5px;
    background: var(--c-form-input-bg);
    color: var(--c-text);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.th-form__group input::placeholder,
.th-form__group textarea::placeholder { color: var(--c-muted); }
.th-form__group select option { background: var(--c-bg); color: var(--c-text); }
.th-form__group input:focus,
.th-form__group textarea:focus,
.th-form__group select:focus {
    border-color: var(--c-red);
    background: var(--c-surface-2);
    outline: none;
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.12);
}
.th-form__group textarea { min-height: 130px; resize: vertical; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .th-nav { display: none; }
    .th-megadrawer { display: none !important; }
    .th-mobile-toggle { display: inline-flex; }
    .th-header__inner { grid-template-columns: auto 1fr; gap: 16px; }
    .th-logo { justify-self: start; }
    .th-actions { justify-self: end; gap: 6px; }
    .th-product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .th-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .th-footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .th-header__inner { padding: 0 16px; }
    .th-pill { display: none; }
    .th-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .th-product-card__body { padding: 14px 16px 16px; }
    .th-product-card__name { font-size: 14px; min-height: 0; }
    .th-product-card__price { font-size: 15px; }
    .th-page-hero { padding: calc(var(--header-height) + 40px) 0 50px; }
    .th-search-overlay { padding: 90px 20px 0; }
    .th-search-form input { font-size: 20px; height: 56px; }
    .th-section__head { flex-direction: column; align-items: flex-start; }
    .th-form__row { grid-template-columns: 1fr; }
    .th-footer { padding-top: 60px; }
    .th-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
    .th-footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    :root { --header-height: 60px; }
    .th-header__inner { padding: 0 12px; gap: 10px; }
    .th-logo img { height: 30px; }
    .th-icon-btn { width: 36px; height: 36px; font-size: 14px; }
    .th-pill { padding: 8px 12px; font-size: 13px; }
    .th-product-grid { gap: 12px; }
    .th-product-card__media { aspect-ratio: 1 / 1; }
}
