/* ==========================================================================
   BAYRAM CNC - HIGH-END TECHNICAL CATALOG ARCHITECTURE (collection.css)
   Philosophy: Detailed Specs, Clear SKU, Engineering Precision, Tight Grids
   ========================================================================== */

.collection-main {
    padding: 160px 0 100px 0;
    min-height: 100vh;
    background-color: #FDFCFB;
}

/* --- Header & Search Architecture --- */
.collection-header { text-align: center; margin-bottom: 50px; }
.collection-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; color: #111; margin-bottom: 15px; letter-spacing: -0.02em; }
.collection-desc { font-family: var(--font-body); font-size: 1.05rem; color: #666; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.search-wrapper { 
    max-width: 500px; 
    margin: 0 auto 40px auto; 
    position: relative; 
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    transition: border-color 0.4s ease;
}

.search-wrapper:focus-within {
    border-bottom-color: #111;
}

.search-wrapper::before {
    content: '⚲'; /* Zarif arama ikonu */
    font-size: 1.4rem;
    color: #A3968C;
    margin-right: 10px;
    transform: rotate(-45deg);
}

.search-input { 
    width: 100%; 
    background: transparent; 
    border: none; 
    padding: 15px 0; 
    font-family: var(--font-body); 
    font-size: 1rem; 
    color: #111; 
    outline: none; 
}
.search-input::placeholder { color: #888; font-weight: 300; }

/* --- Filter Navigation --- */
.filter-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; margin-bottom: 40px; }
.filter-btn { background: none; border: none; padding: 0 0 8px 0; font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: #888; cursor: pointer; position: relative; transition: color 0.3s ease; }
.filter-btn:hover, .filter-btn.active { color: #111; font-weight: 500; }
.filter-btn::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background-color: #111; transition: width 0.3s ease; }
.filter-btn.active::after { width: 100%; }

/* --- Catalog Utility Bar --- */
.catalog-utility-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 15px 5px;
    margin-bottom: 40px;
}
.result-count { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #888; }
.catalog-layout-icon { font-size: 1.2rem; color: #A3968C; cursor: pointer; }

/* --- Product Grid --- */
.product-grid {
    display: grid;
    /* Kartların minimum genişliği 260px'e düşürüldü, ekrana daha çok kart sığar */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px 25px;
}

/* --- DETAILED TECHNICAL PRODUCT CARD --- */
.catalog-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.catalog-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transform: translateY(-5px); /* Kart üzerine gelince usulca havaya kalkar */
}

.item-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-visual {
    width: 100%;
    aspect-ratio: 3 / 4; /* Daha asil, portre dikey oran */
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
}

.item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-item:hover .item-visual img {
    transform: scale(1.05); /* Yavaş ve lüks zoom efekti */
}

/* Şık Siyah Hover Overlay (Üzerine gelince belirir) */
.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(17, 17, 17, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.catalog-item:hover .item-overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 3px;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 20px;
    backdrop-filter: blur(4px); /* Buzlu cam efekti */
}

/* Kart Teknik Metin Alanı */
.item-details {
    padding: 20px; /* Küçültülmüş, daha kibar iç boşluklar */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-sku {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #111;
    font-weight: 500;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 2px;
}

.item-cat {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #A3968C;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.25rem; /* Derli toplu, profesyonel font boyutu */
    font-weight: 400;
    color: #111;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Teknik Bilgi Tablosu (Satır satır düzen) */
.item-specs {
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
}

.spec-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 0.85rem;
    color: #333;
    font-weight: 400;
    text-align: right;
}

/* --- Animations --- */
.dyn-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Arama Bulunamadı Ekranı */
.no-results { text-align: center; padding: 60px 0; }
.no-results.hidden { display: none; }
.no-results p { font-family: var(--font-heading); font-size: 1.5rem; color: #666; margin-bottom: 20px; }
.reset-btn { padding: 10px 25px; background: transparent; border: 1px solid #111; color: #111; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; cursor: pointer; transition: all 0.3s ease; }
.reset-btn:hover { background: #111; color: #fff; }