/* PANEL */
.home-panel {
    display: flex;
    flex-wrap: wrap;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    gap: 20px;
    position: relative;
}

/* KATEGORİLER */
.home-categories {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* KATEGORİ KUTUSU */
.home-cat {
    padding: 8px 12px;
    background: #f4f4f4;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}

.home-cat:hover {
    background: #ddd;
}

.home-cat.active {
    background: #1eb89a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ÜRÜNLER */
#home-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

/* ÜRÜN KUTUSU */
#home-products .product {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px;
    transition: all 0.3s;
}

#home-products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ÜRÜN BAŞLIKLARI - Woodmart uyumlu */
#home-products .product .wd-entities-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 8px 0 5px 0 !important;
    text-align: left !important;
    color: #222 !important;
    word-break: break-word !important;
}

/* FİYAT */
#home-products .product .price {
    font-size: 15px !important;
    color: #ff3f3f !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
}

/* SEPETE EKLE BUTONU */
#home-products .product .button {
    background-color: #ff3f3f !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-weight: 600 !important;
    transition: background 0.3s !important;
}

#home-products .product .button:hover {
    background-color: #e63939 !important;
}

/* ÜRÜN RESMİ */
#home-products .product img {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 250px;
}

/* DAHA FAZLA BUTONU */
#load-more {
    clear: both;
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background:#333;
    color:#fff;
    border-radius:8px;
    cursor:pointer;
}

/* TABLET */
@media(max-width:768px){
    .home-panel {
        flex-direction: column;
        padding: 10px;
    }
    .home-categories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        justify-content: center;
        background: #f8f8f8;
        border-radius: 8px;
    }
    .home-cat {
        flex: 0 1 calc(45% - 8px);
        text-align: center;
        padding: 8px 0;
    }
    #home-products {
        grid-template-columns: repeat(2,1fr);
        gap: 15px;
    }
    #home-products .product img {
        max-height: 240px;
    }
    #home-products .product .wd-entities-title {
        font-size: 15px !important;
        text-align: center !important;
    }
}

/* MOBİL */
@media(max-width:480px){
    .home-cat {
        flex: 0 1 calc(48% - 6px);
        font-size: 14px;
        padding: 6px 0;
    }
    #home-products {
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
    }
    #home-products .product img {
        max-height: 220px;
    }
    #home-products .product .wd-entities-title {
        font-size: 14px !important;
        text-align: center !important;
    }
}
