/* ══════════════════════════════════════════════════════════════
   ÖZDEMIR NATURAL — products.css
   Ürünler sayfasına özel stiller
══════════════════════════════════════════════════════════════ */

/* ── ÜRÜNLER BAŞLIĞI ── */
#productsHeading {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 28px 50px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8e8e8;
    transition: opacity 0.2s ease;
}

.products-page {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 50px 60px;
    min-height: 70vh;
    align-items: start;
}

/* ── FİLTRE KENAR ÇUBUĞU ── */
.filter-sidebar {
    background: #ededed;
    border-radius: 14px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 130px;
}

.filter-group-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 4px;
}

.filter-divider { height: 1px; background: #d4d4d4; margin: 2px 0; }

.filter-option {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}
.filter-option:hover .filter-label { color: #111; }

.filter-checkbox { position: absolute; opacity: 0; pointer-events: none; }

.filter-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #888;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.filter-check::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #21dd3a;
    transform: scale(0);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-checkbox:checked + .filter-check { border-color: #21dd3a; transform: scale(1.08); }
.filter-checkbox:checked + .filter-check::after { transform: scale(1); }

.filter-label { font-size: 14px; font-weight: 500; color: #333; transition: color 0.2s; }

.filter-clear-btn {
    padding: 9px 12px;
    background: #fff;
    border: 1.5px solid #bbb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    transition: background 0.15s, border-color 0.15s;
    font-family: Arial, sans-serif;
}
.filter-clear-btn:hover { background: #f0f0f0; border-color: #999; }

/* Alt filtreler (açılır panel) */
.sub-filter-wrapper {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-left: 22px;
    border-left: 2px solid #d0d0d0;
    margin-left: 11px;
    margin-top: 4px;
}
.sub-filter-wrapper.open { display: flex; }

.sub-filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 2px 0;
}
.sub-filter-option:hover .filter-label { color: #111; }

.sub-filter-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #aaa;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.sub-filter-check::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #21dd3a;
    transform: scale(0);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sub-filter-checkbox:checked + .sub-filter-check { border-color: #21dd3a; transform: scale(1.08); }
.sub-filter-checkbox:checked + .sub-filter-check::after { transform: scale(1); }
.sub-filter-checkbox { position: absolute; opacity: 0; pointer-events: none; }


/* ── ÜRÜNLER IZGARASI ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.products-grid .product-card {
    min-width: 0;
    padding: 0;
    border: 1.5px solid #a8d5a2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}
.products-grid .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.products-grid .product-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #fafafa;
    padding: 18px;
    box-sizing: border-box;
}

.products-grid .product-card .product-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    flex: 1;
}

.products-grid .product-card .product-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.products-grid .product-card .product-price { font-size: 16px; font-weight: 700; color: #21dd3a; }
.products-grid .product-card .product-price::after { content: " ₺"; }
.products-grid .product-card .product-discounted-price { text-decoration: line-through; color: #aaa; font-size: 13px; }
.products-grid .product-card .product-detail { font-size: 13px; color: #666; line-height: 1.4; }

.products-grid .product-card.is-hidden { display: none; }

.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #888;
    background: #fafafa;
    border: 1.5px dashed #ddd;
    border-radius: 14px;
    display: none;
}
.products-empty.visible { display: block; }


/* ── FİLTRE LABEL SARMALAYICI (alternatif HTML yapısı) ── */
label.filter-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s;
}
label.filter-label:hover { color: #111; }

.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; }
.products-grid-wrapper { min-width: 0; }

/* ── ÜRÜN KARTI BİLGİ (alternatif sınıf isimleri) ── */
.product-card-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    flex: 1;
}
.product-card-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.product-card-price { font-size: 16px; font-weight: 700; color: #21dd3a; }
.product-card-detail { font-size: 13px; color: #666; line-height: 1.4; }


/* ── MOBİL ── */
@media (max-width: 860px) {
    .products-page { grid-template-columns: 1fr; padding: 20px 18px 40px; }
    .filter-sidebar { position: static; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .products-grid { grid-template-columns: 1fr; }
}
