/* ==========================================================================
   Brand-Category (/mmt/*) Sayfası UI Tasarımı
   app-shell.css tasarım değişkenleriyle uyumludur.
   ========================================================================== */

.yd-category-hero {
    position: relative;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3f9f5 100%);
    border: 1px solid rgba(23, 107, 58, 0.14);
    border-radius: var(--yd-radius, 0.85rem);
    box-shadow: var(--yd-shadow, 0 0.75rem 2rem rgba(25, 57, 39, 0.09));
    overflow: hidden;
}

.yd-category-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--yd-brand, #176b3a), #2ea05f);
}

.yd-category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--yd-muted, #607067);
    margin-bottom: 0.6rem;
}

.yd-category-breadcrumb a {
    color: var(--yd-brand, #176b3a);
    text-decoration: none;
    font-weight: 500;
}

.yd-category-breadcrumb a:hover {
    text-decoration: underline;
}

.yd-category-hero-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--yd-text, #17221c);
    letter-spacing: -0.015em;
    margin-bottom: 0.4rem;
}

.yd-category-hero-desc {
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--yd-muted, #607067);
    margin-bottom: 0;
    max-width: 72ch;
}

.yd-category-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--yd-brand-dark, #0f4d2a);
    background-color: rgba(23, 107, 58, 0.1);
    border: 1px solid rgba(23, 107, 58, 0.18);
    border-radius: 999px;
    white-space: nowrap;
}

/* ==========================================================================
   Ürün Kartları
   ========================================================================== */

.product-list-section {
    padding-bottom: 2rem;
}

.yd-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--yd-surface, #ffffff);
    border: 1px solid rgba(23, 107, 58, 0.12);
    border-radius: var(--yd-radius, 0.85rem);
    box-shadow: 0 4px 14px rgba(23, 34, 28, 0.05);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.yd-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(23, 57, 39, 0.12);
    border-color: rgba(23, 107, 58, 0.35);
}

/* Görsel Alanı */
.yd-product-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 1rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(23, 107, 58, 0.08);
    overflow: hidden;
}

.yd-product-media-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.yd-product-card .card-img-top {
    width: 100%;
    height: 100%;
    max-height: 188px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.28s ease;
}

.yd-product-card:hover .card-img-top {
    transform: scale(1.04);
}

.yd-product-card .card-img-top.is-placeholder {
    opacity: 0.9;
    border-radius: 0.5rem;
}

/* Görsel Üstü Rozetler */
.yd-media-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.4rem;
    pointer-events: none;
    z-index: 2;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.25);
    white-space: nowrap;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
    border: 1px solid transparent;
}

.stock-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.stock-badge.stock-in {
    background-color: #e8f7ee;
    color: #146c38;
    border-color: rgba(20, 108, 56, 0.2);
}

.stock-badge.stock-out {
    background-color: #fdecec;
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.2);
}

.stock-badge.stock-preorder {
    background-color: #e6f4fa;
    color: #0b5d7a;
    border-color: rgba(11, 93, 122, 0.2);
}

/* Kart Gövdesi */
.yd-product-card .card-body {
    padding: 1.15rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.yd-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.yd-meta-chip {
    display: inline-block;
    padding: 0.16rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--yd-brand-dark, #0f4d2a);
    background-color: rgba(23, 107, 58, 0.08);
    border-radius: 0.4rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yd-meta-sub {
    font-size: 0.75rem;
    color: var(--yd-muted, #607067);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yd-product-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--yd-text, #17221c);
    margin-bottom: 0.45rem;
    min-height: 2.76em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yd-product-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.yd-product-title-link:hover {
    color: var(--yd-brand, #176b3a);
}

.yd-product-card .category-brand-info {
    font-size: 0.78rem;
    color: var(--yd-muted, #607067);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yd-product-card .description-snippet {
    font-size: 0.82rem;
    color: #526058;
    line-height: 1.45;
    margin-bottom: 1rem;
    min-height: 2.38rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fiyat ve Alt Bölüm */
.yd-product-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(23, 107, 58, 0.14);
}

.price-section {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.old-price {
    font-size: 0.85rem;
    font-weight: 500;
    color: #93a199;
    text-decoration: line-through;
}

.current-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--yd-text, #17221c);
    letter-spacing: -0.02em;
}

.current-price.has-discount {
    color: #c82333;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--yd-muted, #607067);
    margin-bottom: 0.9rem;
}

.shipping-info svg {
    width: 15px;
    height: 15px;
    color: var(--yd-brand, #176b3a);
    flex-shrink: 0;
}

.btn-detail {
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 0.6rem;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(23, 107, 58, 0.22);
}

.btn-detail svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Yükleme ve Boş Durum */
.loading-spinner-container {
    padding: 2.5rem 1rem;
    color: var(--yd-muted, #607067);
}

.yd-empty-state {
    background: var(--yd-surface, #ffffff);
    border: 1px solid rgba(23, 107, 58, 0.12);
    border-radius: var(--yd-radius, 0.85rem);
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--yd-muted, #607067);
}

.yd-empty-state svg {
    width: 42px;
    height: 42px;
    color: var(--yd-brand, #176b3a);
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 767.98px) {
    .yd-category-hero {
        padding: 1.15rem 1.2rem;
    }

    .yd-category-hero-title {
        font-size: 1.28rem;
    }

    .yd-product-media {
        height: 195px;
    }

    .yd-product-card .card-img-top {
        max-height: 165px;
    }

    .current-price {
        font-size: 1.22rem;
    }
}

/* ==========================================================================
   Filtreleme Paneli, Toolbar ve Aktif Filtre Rozetleri
   ========================================================================== */

.yd-filter-panel {
    background: var(--yd-surface, #ffffff);
    border: 1px solid rgba(23, 107, 58, 0.12);
    border-radius: var(--yd-radius, 0.85rem);
    box-shadow: 0 4px 14px rgba(23, 34, 28, 0.05);
    overflow: hidden;
}

@media (min-width: 992px) {
    #filterColumn {
        position: sticky;
        top: 1.25rem;
    }
}

.yd-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.15rem;
    background: #f8fbf9;
    border-bottom: 1px solid rgba(23, 107, 58, 0.1);
}

.yd-filter-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--yd-text, #17221c);
}

.yd-filter-panel-title svg {
    width: 16px;
    height: 16px;
    color: var(--yd-brand, #176b3a);
}

.yd-clear-filters-btn {
    border: none;
    background: transparent;
    padding: 0.2rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #c82333;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.yd-clear-filters-btn:hover {
    background-color: rgba(200, 35, 51, 0.08);
}

.yd-filter-group {
    border-bottom: 1px solid rgba(23, 107, 58, 0.09);
}

.yd-filter-group:last-child {
    border-bottom: none;
}

.yd-filter-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    background: transparent;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--yd-text, #17221c);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.yd-filter-group-toggle:hover {
    background-color: rgba(23, 107, 58, 0.04);
}

.yd-filter-group-toggle .yd-chevron {
    width: 16px;
    height: 16px;
    color: var(--yd-muted, #607067);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.yd-filter-group.is-collapsed .yd-chevron {
    transform: rotate(-90deg);
}

.yd-filter-group-body {
    padding: 0.15rem 1.15rem 0.9rem;
    max-height: 230px;
    overflow-y: auto;
}

.yd-filter-group.is-collapsed .yd-filter-group-body {
    display: none;
}

.yd-filter-group-body::-webkit-scrollbar {
    width: 5px;
}

.yd-filter-group-body::-webkit-scrollbar-track {
    background: transparent;
}

.yd-filter-group-body::-webkit-scrollbar-thumb {
    background: rgba(23, 107, 58, 0.22);
    border-radius: 999px;
}

.yd-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.34rem 0.45rem;
    margin: 0 -0.45rem;
    border-radius: 0.45rem;
    cursor: pointer;
    transition: background-color 0.14s ease;
}

.yd-filter-option:hover {
    background-color: rgba(23, 107, 58, 0.06);
}

.yd-filter-option-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.yd-filter-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--yd-brand, #176b3a);
    cursor: pointer;
    flex-shrink: 0;
}

.yd-filter-option-label {
    font-size: 0.84rem;
    color: #36453c;
    line-height: 1.3;
    word-break: break-word;
}

.yd-filter-option input[type="checkbox"]:checked + .yd-filter-option-label {
    font-weight: 600;
    color: var(--yd-brand-dark, #0f4d2a);
}

.yd-filter-option-count {
    font-size: 0.74rem;
    color: var(--yd-muted, #607067);
    background: rgba(23, 107, 58, 0.07);
    padding: 0.1rem 0.42rem;
    border-radius: 999px;
    flex-shrink: 0;
}

/* Liste Üstü Toolbar */
.yd-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding: 0.7rem 1rem;
    background: var(--yd-surface, #ffffff);
    border: 1px solid rgba(23, 107, 58, 0.12);
    border-radius: var(--yd-radius, 0.85rem);
    box-shadow: 0 2px 8px rgba(23, 34, 28, 0.04);
}

.yd-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    border-radius: 0.55rem;
}

.yd-mobile-filter-btn svg {
    width: 15px;
    height: 15px;
}

.yd-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.yd-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.26rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--yd-brand-dark, #0f4d2a);
    background: rgba(23, 107, 58, 0.1);
    border: 1px solid rgba(23, 107, 58, 0.22);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.yd-filter-chip:hover {
    background: rgba(23, 107, 58, 0.18);
}

.yd-filter-chip .yd-chip-remove {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.75;
}

.yd-sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.yd-sort-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--yd-muted, #607067);
    margin: 0;
    white-space: nowrap;
}

.yd-sort-select {
    width: auto;
    min-width: 150px;
    border-color: rgba(23, 107, 58, 0.2);
    border-radius: 0.55rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--yd-text, #17221c);
}

.yd-sort-select:focus {
    border-color: var(--yd-brand, #176b3a);
    box-shadow: 0 0 0 0.2rem rgba(23, 107, 58, 0.15);
}

@media (max-width: 991.98px) {
    .yd-filter-offcanvas .yd-filter-panel {
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
}

/* ==========================================================================
   Ortak Ürün Kartı Aksiyon Satırı (Detay + WhatsApp Soru + Paylaş)
   ========================================================================== */
.yd-card-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
}

.yd-card-rating .stars {
    color: #f59e0b;
    letter-spacing: 0.02em;
}

.yd-card-actions {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
}

.yd-card-actions .btn-detail {
    flex: 1 1 auto;
    width: auto;
    margin-top: 0;
}

.yd-icon-action-btn {
    width: 40px;
    min-width: 40px;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.yd-wa-btn {
    background: #e8f8ee;
    color: #169c46;
    border-color: rgba(22, 156, 70, 0.24);
}

.yd-wa-btn:hover {
    background: #1ea853;
    border-color: #1ea853;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(22, 156, 70, 0.25);
}

.yd-share-btn {
    background: #f4f7f5;
    color: var(--yd-brand-dark, #0f4d2a);
    border-color: rgba(23, 107, 58, 0.18);
}

.yd-share-btn:hover,
.yd-share-btn.is-copied {
    background: var(--yd-brand, #176b3a);
    border-color: var(--yd-brand, #176b3a);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   Shimmer Skeleton Yükleme Kartları & Son İncelediğiniz Ürünler
   ========================================================================== */
@keyframes ydShimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.yd-skeleton-box {
    background: linear-gradient(90deg, #eef3f0 25%, #f7faf8 50%, #eef3f0 75%);
    background-size: 800px 100%;
    animation: ydShimmer 1.35s ease-in-out infinite;
    border-radius: 0.45rem;
}

.yd-skeleton-card {
    background: #ffffff;
    border: 1px solid rgba(23, 107, 58, 0.1);
    border-radius: var(--yd-radius, 0.85rem);
    overflow: hidden;
    height: 100%;
}

.yd-recent-section {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(23, 107, 58, 0.12);
}

.yd-recent-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--yd-text, #17221c);
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
