.products-section {
    padding: 120px 0;
    background-color: #1e1e1e;
    position: relative;
}

.products-header {
    margin-bottom: 60px;
    text-align: center;
}

.products-header .sub-title {
    color: #fff;
    opacity: 0.6;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 500;
}

.products-header h2 {
    font-size: 45px;
    font-weight: 300;
    color: #fff;
}

.products-header h2 span {
    font-weight: 700;
}

.product-card {
    background: #262626;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    group: product-card;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.1);
    background: #1ba69c;
}

.product-img {
    width: 100%;
    padding-bottom: 100%; /* 1:1 kare oran */
    overflow: hidden;
    position: relative;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 30px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.product-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-desc {
    font-size: 15px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #161616;
    transition: all 0.3s ease;
    transform: scale(0);
}

.product-card:hover .btn-product {
    transform: scale(1);
}

.btn-product:hover {
    background: #161616;
    color: #fff;
}

.product-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.product-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.product-link:hover {
    color: #ddd;
}

.product-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .products-header h2 {
        font-size: 32px;
    }
    .product-img {
        height: 220px;
    }
}

/* Kategori Filtreleri */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1ba69c;
    border-color: #1ba69c;
    color: #fff;
}

/* Sayfalama */
.pagination-wrapper {
    margin-top: 50px;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-item .page-link:hover,
.page-item.active .page-link {
    background: #1ba69c;
    border-color: #1ba69c;
}

.pagination-wrapper .text-muted {
    color: #888 !important;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 576px) {
    .category-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .page-item .page-link {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
}

/* Sidebar Kategoriler */
.sidebar-categories {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #262626;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #1ba69c;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list > li {
    margin-bottom: 8px;
}

.category-list > li:last-child {
    margin-bottom: 0;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-radius: 10px;
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    flex: 1;
}

.category-item:hover {
    background: rgba(27, 166, 156, 0.1);
    color: #fff;
    border-color: rgba(27, 166, 156, 0.3);
}

.category-item.active {
    background: #1ba69c;
    color: #fff;
    border-color: #1ba69c;
}

.cat-name {
    font-size: 14px;
    font-weight: 500;
}

.cat-count {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 30px;
    text-align: center;
}

.category-item.active .cat-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Ana Kategori + Alt Kategori Yapısı */
.category-parent {
    margin-bottom: 8px;
}

.category-parent:last-child {
    margin-bottom: 0;
}

.parent-item {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
}

.cat-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(27, 166, 156, 0.3);
    color: #fff;
}

.toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.category-parent.open .toggle-btn i {
    transform: rotate(180deg);
}

.category-parent.open .toggle-btn {
    background: rgba(27, 166, 156, 0.4);
    color: #fff;
}

.category-item.active .toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.category-item.active .toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Alt Kategori Listesi */
.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding-left: 15px;
    border-left: 2px solid rgba(27, 166, 156, 0.3);
    margin-left: 15px;
    margin-top: 0;
}

.subcategory-list.show {
    max-height: 500px;
    padding-top: 10px;
    padding-bottom: 5px;
}

.subcategory-list li {
    margin-bottom: 6px;
}

.subcategory-list li:last-child {
    margin-bottom: 0;
}

.subcategory-list .sub-item {
    padding: 10px 12px;
    font-size: 13px;
    background: transparent;
    border-radius: 8px;
}

.subcategory-list .sub-item .cat-name {
    font-size: 13px;
    font-weight: 400;
}

.subcategory-list .sub-item:hover {
    background: rgba(27, 166, 156, 0.1);
    padding-left: 18px;
}

.subcategory-list .sub-item.active {
    background: rgba(27, 166, 156, 0.2);
    color: #1ba69c;
    border-color: rgba(27, 166, 156, 0.4);
}

.subcategory-list .sub-item.active .cat-count {
    background: #1ba69c;
    color: #fff;
}

/* Responsive Sidebar */
@media (max-width: 991px) {
    .sidebar-categories {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
    
    .subcategory-list {
        margin-left: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 576px) {
    .sidebar-widget {
        padding: 20px;
    }
    
    .category-item {
        padding: 10px 12px;
    }
    
    .category-accordion .toggle-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* Kategori Kartları */
.category-card {
    background: #262626;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(27, 166, 156, 0.3);
}

/* Görselli Kategori Kartı */
.category-card.with-image {
    background: #262626;
}

.category-card.with-image .category-card-link {
    display: block;
    text-decoration: none;
    height: 100%;
    padding: 0;
}

.category-img {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 kare oran */
    overflow: hidden;
}

.category-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(180deg, rgba(27, 166, 156, 0.1) 0%, rgba(27, 166, 156, 0.3) 100%);
}

.category-card.with-image .category-card-content {
    padding: 25px;
}

.category-card-link {
    display: block;
    text-decoration: none;
    padding: 35px 30px;
    height: 100%;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(27, 166, 156, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    border: 1px solid rgba(27, 166, 156, 0.2);
}

.category-icon i {
    font-size: 32px;
    color: #1ba69c;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: #1ba69c;
    border-color: #1ba69c;
    transform: scale(1.1);
}

.category-card:hover .category-icon i {
    color: #fff;
}

.category-card-content {
    display: flex;
    flex-direction: column;
}

.category-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.category-card:hover .category-card-title {
    color: #1ba69c;
}

.category-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.alt-kat-badge,
.urun-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.alt-kat-badge i,
.urun-badge i {
    font-size: 11px;
    color: #1ba69c;
}

.category-card:hover .alt-kat-badge,
.category-card:hover .urun-badge {
    background: rgba(27, 166, 156, 0.15);
    color: #fff;
}

.category-card-btn {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.category-card-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-btn {
    color: #1ba69c;
}

.category-card:hover .category-card-btn i {
    transform: translateX(5px);
}

/* Alt Kategori Kartları */
.sub-category-card .category-img {
    height: 180px;
}

.sub-category-card .category-card-title {
    font-size: 20px;
}

/* Responsive Kategori Kartları */
@media (max-width: 991px) {
    .category-card-link {
        padding: 30px 25px;
    }
    
    .category-img {
        height: 200px;
    }
    
    .category-card.with-image .category-card-content {
        padding: 20px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
    }
    
    .category-icon i {
        font-size: 28px;
    }
    
    .category-card-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .category-card-link {
        padding: 25px 20px;
    }
    
    .category-img {
        height: 180px;
    }
    
    .category-card.with-image .category-card-content {
        padding: 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
    
    .category-icon i {
        font-size: 24px;
    }
    
    .category-card-title {
        font-size: 18px;
    }
    
    .category-card-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .alt-kat-badge,
    .urun-badge {
        width: fit-content;
    }
}
