/* ============================================
   POWERSPEED - Ecomus Tema Özel CSS
   ============================================ */

/* --- Kategori Swiper: En-Boy Oranı --- */
.tf-sw-collection .collection-image.img-style {
    aspect-ratio: 3 / 4;
}
.tf-sw-collection .collection-image.img-style img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Slider: Ok ve Nokta Navigasyon --- */
.ps-slideshow .wrap-pagination {
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    z-index: 10;
    text-align: center;
}
.ps-sl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}
.ps-sl-prev { left: 20px; }
.ps-sl-next { right: 20px; }

/* --- Slider: Küçük Görsel Ortalama --- */
.ps-slideshow .wrap-slider {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-slideshow .wrap-slider img {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    object-fit: unset !important;
    position: static !important;
    min-width: unset !important;
}
.ps-slider-web .wrap-slider { min-height: 500px; }

/* --- Slider: Mobil Yükseklik Sınırsız --- */
@media (max-width: 767px) {
    .ps-slider-mobil .wrap-slider { height: auto !important; }
    .ps-slider-mobil .wrap-slider img { position: static; width: 100%; height: auto; min-width: unset; }
}

/* --- Slider: Web/Mobil Ayrımı --- */
.ps-slider-mobil { display: none; }
@media (max-width: 767px) {
    .ps-slider-web  { display: none; }
    .ps-slider-mobil { display: block; }
}

/* --- Logo --- */
.logo-header .logo {
    max-height: 52px;
    max-width: 250px;
    width: auto;
}
.footer-logo img {
    max-height: 28px;
    width: auto;
}
.tf-payment img {
    height: 22px;
    width: auto;
}

/* --- Sidebar (Liste/Diğer sayfalar) --- */
.ps-sidebar {
    padding-top: 30px;
}
.ps-sidebar-block {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.ps-sidebar-block .widget-title h5 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
    color: #191919;
}
.ps-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ps-cat-list li a {
    display: block;
    padding: 7px 0;
    font-size: 13px;
    color: #5d5d5d;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}
.ps-cat-list li a:hover {
    color: var(--main);
    padding-left: 6px;
}
.ps-content-area {
    padding-top: 30px;
}

/* --- Ana içerik min-height --- */
.ps-main-content {
    min-height: 400px;
    background: #fff;
}

/* --- Countdown bölümü --- */
.ps-countdown-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%);
}

/* --- Ürün listesi grid sayfası --- */
.ps-urunliste-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
}
.ps-urunliste-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #191919;
}
.ps-urunliste-header .ps-count {
    font-size: 13px;
    color: #888;
}

/* --- Ürün grid --- */
.ps-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 991px) {
    .ps-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ps-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* --- Sayfalama --- */
.ps-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 30px 0;
}
.ps-pagination a,
.ps-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 13px;
    color: #191919;
    transition: all 0.2s;
    text-decoration: none;
}
.ps-pagination a:hover,
.ps-pagination .active {
    background: #191919;
    color: #fff;
    border-color: #191919;
}

/* --- Ürün detay sayfası --- */
.ps-detail-wrap {
    padding: 30px 0;
}

/* --- Duyuru çubuğu metin koruması --- */
.announcement-bar p {
    margin: 0;
    padding: 0;
    color: inherit;
}

/* --- Mobil menü logo --- */
.canvas-logo img {
    max-height: 40px;
    width: auto;
}

/* --- Header alt çizgi düzeltme --- */
.header-bottom .header-search-v2 {
    max-width: 380px;
    width: 100%;
}
.header-search-v2 .tf-search-input {
    flex: 1;
    border: 1px solid #e8e8e8;
    border-radius: 4px 0 0 4px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    height: 38px;
}
.header-search-v2 .btn-search-icon {
    background: #191919;
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.header-search-v2 .btn-search-icon:hover {
    background: #333;
}

/* --- footer col mobil collapse --- */
@media (max-width: 767px) {
    .footer-heading-moblie {
        cursor: pointer;
    }
    .tf-collapse-content {
        display: none;
    }
    .tf-collapse-content.open {
        display: block;
    }
}

/* --- image-select: native fallback (selectpicker yüklenmediğinde) --- */
.image-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 0 17px 0 0;
    font-size: 14px;
    color: var(--main, #191919);
    cursor: pointer;
    outline: none;
}
.tf-cur { display: flex; align-items: center; gap: 8px; }
.bottom-bar-language { display: flex; align-items: center; gap: 8px; padding: 10px 15px; }

/* --- bootstrap-select: Bootstrap 5 üçgen ok düzeltmesi --- */
/* Bootstrap 5'in border-tabanlı üçgenini sıfırla, styles.css'deki icomoon oku kalsın */
.dropdown.bootstrap-select.image-select .dropdown-toggle::after {
    border-top-width: 0 !important;
    border-right-width: 0 !important;
    border-left-width: 0 !important;
    border-bottom-width: 0 !important;
}
/* border ve box-shadow sıfırla */
.dropdown.bootstrap-select.image-select > .btn,
.dropdown.bootstrap-select.image-select > button {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* --- Ekstra yardımcı --- */
.gap-20 { gap: 20px; }
.tf-container-full {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================================================
   PS-SIDEBAR → Ecomus canvas-filter offcanvas
   ================================================================ */

/* Sidebar'ı her zaman gizle, fixed offcanvas'a dönüştür */
.ps-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--white, #fff);
    z-index: 100010;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    flex: none !important;
    box-shadow: none;
}
.ps-sidebar.ps-open {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0,0,0,0.2);
}

/* Backdrop */
.ps-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100009;
    cursor: pointer;
}
.ps-sidebar-backdrop.ps-open { display: block; }

/* İçerik alanı tam genişlik */
.ps-content-area {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ---- Sidebar header (canvas-header stili) ---- */
.ps-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background-color: var(--bg-11, #f5f5f5);
    flex-shrink: 0;
}
.ps-sidebar-header .ps-filter-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--main, #191919);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
}
.ps-sidebar-header .ps-close-btn {
    font-size: 16px;
    cursor: pointer;
    color: var(--main, #191919);
    line-height: 1;
}
.ps-sidebar-header .ps-close-btn:hover { opacity: 0.6; }

/* ---- Sidebar body ---- */
.ps-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}
.ps-sidebar-body::-webkit-scrollbar { width: 5px; }
.ps-sidebar-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* ---- widget-title → facet-title stili ---- */
.ps-sidebar .widget-title {
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line, #ebebeb);
    margin-bottom: 20px;
}
.ps-sidebar .widget-title h5 {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-transform: none;
    margin: 0;
    color: var(--main, #191919);
}

/* ---- ps-sidebar-block → widget-facet stili ---- */
.ps-sidebar .ps-sidebar-block {
    border-bottom: 1px solid var(--line, #ebebeb);
    margin-bottom: 0;
    padding: 20px 0;
}
.ps-sidebar .ps-sidebar-block:last-child { border-bottom: none; }

/* ---- Kategori listesi ---- */
.ps-sidebar .ps-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ps-sidebar .ps-cat-list li { margin-top: 10px; }
.ps-sidebar .ps-cat-list li:first-child { margin-top: 0; }
.ps-sidebar .ps-cat-list li a {
    display: flex;
    color: var(--main, #191919);
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.ps-sidebar .ps-cat-list li a:hover,
.ps-sidebar .ps-cat-list li.active a { color: var(--primary, #e74c3c); }

/* ---- Filter checkboxları (tf-check stili) ---- */
.ps-sidebar #filterContainer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ps-sidebar #filterContainer li { padding: 5px 0; }
.ps-sidebar #filterContainer .filitreBaslik {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--main, #191919);
    padding: 20px 0 15px;
    border-top: 1px solid var(--line, #ebebeb);
    margin-top: 10px;
    display: block;
    list-style: none;
}
.ps-sidebar #filterContainer .filitreBaslik:first-child { border-top: none; padding-top: 5px; }
.ps-sidebar #filterContainer input.filterCheck {
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--line-2, #ccc);
    border-radius: 3px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}
.ps-sidebar #filterContainer input.filterCheck:checked {
    background-color: var(--main, #191919);
    border-color: var(--main, #191919);
}
.ps-sidebar #filterContainer input.filterCheck:checked::before {
    content: '\2713';
    color: #fff;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.ps-sidebar #filterContainer label.filterCheck {
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: var(--main, #191919);
    cursor: pointer;
    display: inline;
}
.ps-sidebar #filterContainer .filter-clear { display: none; }
.ps-sidebar #filterContainer .clear-space.filter-clear { display: none; }

/* ---- Filtrele butonu ShopPHP şablonundaki (gizle) ---- */
.ps-sidebar .widget-title:has(h5:only-child) { /* sadece görsel düzeltme */ }

/* ================================================================ */

/* --- Kategori sayfa başlığı (Ecomus tf-page-title override) --- */
.tf-page-title {
    background-color: #f5f3f0;
    background-image: url('https://themesflat.co/html/ecomus/images/shop/file/page-title-blog.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 69px 0 65px;
}
.tf-page-title .heading {
    font-size: 42px;
    font-weight: 400;
    line-height: 50px;
    color: var(--main, #191919);
}
.tf-page-title .heading a.BreadCrumb {
    color: inherit;
    text-decoration: none;
}
.tf-page-title .heading script { display: none; }
@media only screen and (max-width: 1024px) {
    .tf-page-title .heading { font-size: 32px; line-height: 38px; }
}
@media only screen and (max-width: 767px) {
    .tf-page-title { padding: 52px 0 49px; }
    .tf-page-title .heading { font-size: 22px; line-height: 26px; }
}

/* --- Kategori ürün grid (tf-col-X switcher ile değişir) --- */
.tf-grid-layout.wrapper-shop.tf-col-2 { grid-template-columns: repeat(2, 1fr); }
.tf-grid-layout.wrapper-shop.tf-col-3 { grid-template-columns: repeat(3, 1fr); }
.tf-grid-layout.wrapper-shop.tf-col-4 { grid-template-columns: repeat(4, 1fr); }
.tf-grid-layout.wrapper-shop.tf-col-5 { grid-template-columns: repeat(5, 1fr); }
.tf-grid-layout.wrapper-shop.tf-col-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1400px) {
    .tf-grid-layout.wrapper-shop.tf-col-6 { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
    .tf-grid-layout.wrapper-shop.tf-col-5,
    .tf-grid-layout.wrapper-shop.tf-col-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .tf-grid-layout.wrapper-shop.tf-col-4,
    .tf-grid-layout.wrapper-shop.tf-col-5,
    .tf-grid-layout.wrapper-shop.tf-col-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .tf-grid-layout.wrapper-shop.tf-col-3,
    .tf-grid-layout.wrapper-shop.tf-col-4,
    .tf-grid-layout.wrapper-shop.tf-col-5,
    .tf-grid-layout.wrapper-shop.tf-col-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .tf-grid-layout.wrapper-shop { grid-template-columns: repeat(1, 1fr) !important; }
}

/* --- Ürün başlığı: 2 satır sabit yükseklik (hizalama için) --- */
.card-product-info .title.link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 1.4em);
    line-height: 1.4;
}

/* --- ShopPHP pager Ecomus uyumu --- */
.tf-pagination-wrap center { text-align: center; margin-top: 30px; }
.tf-pagination-wrap ul#twbsPagination { display: inline-flex; gap: 5px; list-style: none; padding: 0; }
.tf-pagination-wrap ul#twbsPagination li a,
.tf-pagination-wrap ul#twbsPagination li span {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid #ebebeb; font-size: 14px; color: var(--main, #191919);
    text-decoration: none; transition: all 0.2s;
}
.tf-pagination-wrap ul#twbsPagination li.active a,
.tf-pagination-wrap ul#twbsPagination li a:hover {
    background: var(--main, #191919); color: #fff; border-color: var(--main, #191919);
}

/* --- Ürün kartı: görsel 2:3 oran (Ecomus 1/1.4 override) --- */
.card-product .card-product-wrapper {
    aspect-ratio: 2/3;
}

/* --- Mobil: favori ikonu her zaman görünür --- */
.card-product .list-product-btn.column-right .box-icon {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* --- Ürün kartı: renk swatch <a> wrapper düzeltme --- */
.list-color-product .list-color-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* --- Renk badge --- */
.ps-renk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 0;
}
.ps-renk-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(#ff6b6b 90deg, #ffd93d 90deg 180deg, #6bcb77 180deg 270deg, #4d96ff 270deg);
}
.ps-renk-txt {
    font-size: 12px;
    color: #555;
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* --- Beden listesi hafif transparan bg --- */
.size-list.style-2 {
    background-color: rgba(255, 255, 255, 0.82) !important;
}
/* --- Fiyat + renk badge satırı --- */
.ps-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ps-renk-placeholder { display: inline-block; width: 1px; height: 22px; }

/* --- Renk popup --- */
.ps-renk-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200000;
}
.ps-renk-popup.open { display: block; }
.ps-renk-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.ps-renk-popup-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}
.ps-renk-popup.open .ps-renk-popup-sheet {
    transform: translateY(0);
}
@media (min-width: 768px) {
    .ps-renk-popup-sheet {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -40%);
        border-radius: 12px;
        width: 560px;
        max-width: 90vw;
        max-height: 70vh;
    }
    .ps-renk-popup.open .ps-renk-popup-sheet {
        transform: translate(-50%, -50%);
    }
}
.ps-renk-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.ps-renk-popup-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}
.ps-renk-popup-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ps-renk-popup-title {
    font-size: 14px;
    font-weight: 600;
    color: #191919;
    line-height: 1.4;
}
.ps-renk-popup-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #191919;
    line-height: 1;
    padding: 0;
    margin-top: 2px;
}
.ps-renk-popup-close:hover { background: #e8e8e8; }
.ps-renk-popup-body {
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (min-width: 480px) {
    .ps-renk-popup-body { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
    .ps-renk-popup-body { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.ps-renk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 6px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.ps-renk-item.active, .ps-renk-item:hover { border-color: #191919; }
.ps-renk-item-img {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ps-renk-item-img img { width: 100%; height: 100%; object-fit: cover; }
.ps-renk-item-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
}
.ps-renk-item-name {
    font-size: 11px;
    color: #444;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}
.ps-renk-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 13px;
}
.ps-renk-item.stok-yok { opacity: 0.45; pointer-events: none; }
.ps-renk-item.stok-yok .ps-renk-item-img { position: relative; }
.ps-renk-item.stok-yok .ps-renk-item-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 6px,
        rgba(0,0,0,0.15) 6px,
        rgba(0,0,0,0.15) 7px
    );
    border-radius: 6px;
}
.ps-renk-item-stok {
    font-size: 10px;
    color: #999;
    font-style: italic;
}

/* =====================================================
   Anasayfa Dinamik Ürün Sekmeleri
   ===================================================== */
.ps-homepage-tabs { padding-top: 40px; padding-bottom: 40px; }

.ps-tab-header { margin-bottom: 24px; }
.ps-tab-title  { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0; }

.ps-tab-nav {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    border-bottom: 2px solid #e8e8e8;
}
.ps-tab-nav-item {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.ps-tab-nav-item:hover  { color: #1a1a1a; }
.ps-tab-nav-item.active { color: #1a1a1a; border-bottom-color: #1a1a1a; font-weight: 600; }

.ps-tab-content-item { display: none; padding-top: 24px; }
.ps-tab-content-item.active { display: block; }

@media (max-width: 575px) {
    .ps-tab-header { flex-direction: column; align-items: flex-start !important; }
    .ps-tab-nav-item { padding: 7px 12px; font-size: 13px; }
}

/* --- Mega Menü --- */
.mega-menu .menu-heading a { color: inherit; text-decoration: none; }
.mega-menu .menu-heading a:hover { color: var(--primary); }
.ps-see-all { color: var(--primary) !important; font-size: 12px; margin-top: 4px; }

/* Flexbox mega menü grid: subcat sütunları esnek, bestsellers sabit */
.ps-mm-grid {
    display: flex;
    gap: 0;
    align-items: flex-start;
    padding: 8px 0;
}
.ps-mm-cat {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 5px;
}
.ps-mm-cat:first-child { padding-left: 0; }
.ps-mm-cat:last-of-type { padding-right: 0; }
.ps-mm-cat .mega-menu-item { padding: 0; }
.ps-mm-cat .menu-heading { font-size: 14px; margin-bottom: 6px; white-space: nowrap; }
.ps-mm-cat .menu-list li { line-height: 1.2; }
.ps-mm-cat .menu-list .menu-link-text { font-size: 14px; padding: 1px 0; display: block; }
.ps-mm-bs {
    flex: 0 0 440px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}
.ps-mm-bs .menu-heading { font-size: 14px; margin-bottom: 8px; }
.ps-mm-bs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ps-mm-bs-item .card-product { border: none; background: none; }
.ps-mm-bs-item .card-product-wrapper { border-radius: 6px; overflow: hidden; }
.ps-mm-bs-item .card-product-info { padding: 6px 0 0; }
.ps-mm-bs-item .card-product-info .title { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ps-mm-bs-item .card-product-info .price { font-size: 13px; }

/* --- Renk badge link --- */
.ps-renk-link {
    text-decoration: none;
    display: inline-block;
}
.ps-renk-link:hover .ps-renk-badge {
    opacity: 0.7;
}

/* --- Ürün kartı fiyat --- */
.card-product .card-product-info .price ins {
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600;
}
.card-product .card-product-info .price del {
    text-decoration: line-through !important;
    font-size: 12px !important;
    color: rgba(0, 0, 0, 0.3) !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
    display: inline-block;
}
.ps-mm-bs-item .on-sale-item { font-size: 10px; padding: 1px 5px; }
@media (max-width: 1199px) {
    .ps-mm-bs { flex: 0 0 240px; }
}

/* --- Flaş İndirimler: Kart --- */
.flat-flash-sale .card-product.style-8 .list-product-btn.absolute-2 {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    opacity: 1 !important;
    z-index: 5;
}
.on-sale-item {
    background-color: #e8000d !important;
}
.ps-sale-badge {
    background-color: #e8000d !important;
    border-radius: 4px !important;
}
.ps-flash-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}
.ps-flash-renk-link {
    text-decoration: none;
    flex-shrink: 0;
    margin-left: auto;
}
.ps-flash-renk-link:hover .ps-renk-badge {
    opacity: 0.75;
}
.ps-flash-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}
.ps-flash-btn:hover {
    background: #fff !important;
    color: #111 !important;
    border-color: #111 !important;
}
.ps-flash-btn i {
    font-size: 15px;
    line-height: 1;
}

/* --- Flaş İndirimler: Geri Sayım Timer --- */
.tf-flash-sale .ps-flash-timer {
    position: absolute;
    right: 15px;
    top: -20px;
    z-index: 1;
    background: var(--white);
    padding: 4px 12px 4px 10px;
}
@media (max-width: 767px) {
    .tf-flash-sale .ps-flash-timer { display: none; }
}

/* --- Marka logoları --- */
.wrap-brand-v2 .brand-item-v2 {
    padding: 10px 20px;
}
.wrap-brand-v2 .brand-item-v2 img {
    height: 40px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease;
}
.wrap-brand-v2 .brand-item-v2:hover img {
    filter: grayscale(0%) opacity(1);
}

/* ===== Ürün Detay Sayfası ===== */

/* İndirim rozeti rengi — diğer alanlarla aynı kırmızı */
.tf-product-info-price .badges-on-sale {
    background-color: #e8000d !important;
}

/* Stok durumu toggle */
.ps-stok-var .tf-product-notify-stock { display: none; }
.ps-stok-yok .tf-product-info-buy-button { display: none; }
.ps-stok-yok .tf-product-info-quantity { display: none; }

/* Marka etiketi */
.ps-marka-label {
    font-size: 12px;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.ps-stok-kodu {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
}
.ps-stok-kodu span { font-weight: 600; color: #888; }

/* Hemen Al butonu */
.ps-btn-hemen-al {
    border-color: #111 !important;
    color: #111 !important;
    background: transparent !important;
}
.ps-btn-hemen-al:hover {
    background: #111 !important;
    color: #fff !important;
}

/* Ürün açıklama tab içeriği */
.ps-urun-detay-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}
.ps-urun-detay-content img {
    max-width: 100%;
    height: auto;
}
.ps-urun-detay-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
.ps-urun-detay-content table td,
.ps-urun-detay-content table th {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
}

/* Renk swatch picker (style-image) */
.ps-renk-detay-picker .variant-picker-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ps-renk-detay-picker a.style-image {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(134,134,134,.12);
    border-radius: 3px;
    padding: 5px;
    width: 80px;
    height: unset;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}
.ps-renk-detay-picker a.style-image:hover,
.ps-renk-detay-picker a.style-image.active {
    border-color: var(--main);
    box-shadow: 0 0.4rem 0.4rem rgba(0,0,0,.1);
}
.ps-renk-detay-picker a.style-image .image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 2px;
}
.ps-renk-detay-picker a.style-image .tooltip {
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Beden picker (style-text — radio/label, ecomus uyumlu) */
.ps-beden-picker-wrap input[type="radio"] { display: none; }
.ps-beden-picker-wrap .variant-picker-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ps-beden-picker-wrap label.size-btn.sold-out {
    opacity: .45;
    text-decoration: line-through;
    pointer-events: none;
}

/* Telefonla sipariş kartını gizle */
#tel-birakin, .spwp-phone { display: none !important; }

/* Beden Rehberi modal — genel */
.ps-beden-modal-body { padding: 20px 24px 24px; }

/* Tablo solda, diyagram sağda (yan yana) */
.ps-beden-tab-layout {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.ps-beden-tab-tables { flex-shrink: 0; }

/* Ölçüm diyagramı — tablonun sağında */
.ps-beden-diagram {
    flex: 0 0 180px;
    width: 180px;
    padding: 14px 16px;
    padding-top: 28px;
    background: #f6f9ff;
    border: 1px solid #d5e3ff;
    border-radius: 10px;
}
.ps-foot-svg {
    width: 100%;
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.ps-measure-guide { margin-top: 14px; }
.ps-measure-guide-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--on-surface, #222);
}
.ps-measure-guide-steps {
    padding-left: 18px;
    margin: 0;
    font-size: 12.5px;
    color: var(--text-2, #555);
    line-height: 1.65;
}
.ps-measure-guide-steps li { margin-bottom: 3px; }
.ps-measure-guide-note {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--text-3, #888);
    font-style: italic;
}
@media (max-width: 580px) {
    .ps-beden-tab-layout { flex-direction: column; }
    .ps-beden-tab-tables { width: 100%; }
    .ps-beden-diagram { min-width: unset; width: 100%; }
}

/* Beden Rehberi modal sekmeleri */
.ps-beden-tabs { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.ps-beden-tabs .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    padding: 8px 14px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
}
.ps-beden-tabs .nav-link.active {
    color: var(--main);
    border-bottom-color: var(--main);
    background: none;
}

/* Beden tablosu */
.ps-beden-table { width: 540px; max-width: 100%; }
.ps-beden-table thead th {
    background: #f3f4f6;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ps-beden-table tbody tr:hover td { background: #f9fafb; }

/* Varyant Seçici (ShopPHP urunSecim) */
.urunSecimTitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #111;
}
.urunSecimTable {
    margin-bottom: 16px;
}
ul.urunSecim {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
ul.urunSecim li.varCheck {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    user-select: none;
    white-space: nowrap;
}
ul.urunSecim li.varCheck:hover {
    border-color: #111;
}
ul.urunSecim li.varCheck.secilenVarCheck,
ul.urunSecim li.varCheck.checked {
    border-color: #111;
    background: #111;
    color: #fff;
}
ul.urunSecim li.varCheck.disabled {
    opacity: 0.38;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

/* Extra özellik rozetleri satırı */
.tf-product-info-extra-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0;
}


/* Stok bildirimi formu */
.tf-product-notify-stock form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ebebeb;
}
.tf-product-notify-stock-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}
.tf-product-notify-stock p {
    font-size: 13px;
    color: #666;
    margin: 0;
}
.tf-product-notify-stock input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.tf-product-notify-stock input[type="email"]:focus {
    border-color: #111;
}

/* Mobil galeri: thumbs dikey + ana görsel */
.ps-gallery-mobile .thumbs-slider {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.ps-gallery-mobile .tf-product-media-thumbs {
    width: 66px;
    flex-shrink: 0;
    max-height: 480px;
}
.ps-gallery-mobile .tf-product-media-main {
    flex: 1;
    min-width: 0;
    position: relative;
}
.ps-gallery-mobile .tf-product-media-thumbs .swiper-slide .item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.ps-gallery-mobile .tf-product-media-thumbs .swiper-slide-thumb-active .item img {
    border-color: #111;
}
.ps-gallery-mobile .tf-product-media-main .swiper-slide .item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
}
