/* Modern Ana Sayfa Tasarımı */

.home-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 60px;
    width: 100%;
}

/* Header Bölümü */
.home-header {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Filtre Butonları */
.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.filter-btn:not(.active) {
    background: #f5f5f5;
    color: #666;
}

.filter-btn:not(.active):hover {
    background: #e0e0e0;
    color: #333;
}

/* Arama */
.search-container {
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f5f7fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

/* Az ürün olduğunda grid'i sola hizala */
.products-grid > .product-card:only-child,
.products-grid > .product-card:first-child:nth-last-child(2),
.products-grid > .product-card:first-child:nth-last-child(2) ~ .product-card {
    max-width: 100%;
}

/* Ürün Kartı */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer; /* Tıklanabilir göster */
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* Tıklanabilir olduğunu göster */
.product-card:active {
    transform: translateY(-2px);
}

/* Ürün Görseli */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Kampanya Badge */
.campaign-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Favori Butonu */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.favorited {
    color: #e74c3c;
}

.favorite-btn:not(.favorited) {
    color: #999;
}

/* Ürün Bilgileri */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    line-height: 1.4;
}

/* Fiyat */
.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.discount-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 20px;
}

.current-price {
    color: #667eea;
    font-weight: 700;
    font-size: 20px;
}

.campaign-text {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
}

/* Miktar Seçici */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.quantity-input {
    width: 70px;
    height: 36px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Butonlar */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-add-cart {
    width: 100%; /* Tam genişlik - İncele butonu kaldırıldı */
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* Stok Yok */
.out-of-stock {
    color: #e74c3c;
    font-weight: 600;
    text-align: center;
    padding: 10px;
}

/* Giriş Gerekli */
.login-required {
    color: #e74c3c;
    font-size: 13px;
    text-align: center;
}

/* Bildirim */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
    display: none;
}

.notification.show {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* WhatsApp Butonu */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.whatsapp-btn img {
    width: 100%;
    height: 100%;
}

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.empty-state h3 {
    font-size: 24px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.empty-state p {
    color: #95a5a6;
}

/* Responsive */
@media (max-width: 1600px) {
    .home-container {
        padding: 20px 50px;
    }
}

@media (max-width: 1400px) {
    .home-container {
        padding: 20px 40px;
    }
}

@media (max-width: 1200px) {
    .home-container {
        padding: 20px 30px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .home-container {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 28px;
    }

    .info-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .home-container {
        padding: 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image-wrapper {
        height: 200px;
    }

    .product-info {
        padding: 15px;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .home-container {
        padding: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image-wrapper {
        height: 250px;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }
}
/* Yuk
arı Dön Butonu */
.scroll-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-3px);
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Kategori Dropdown - Modern ve Minimal */
.category-dropdown-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.category-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-dropdown-btn:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.category-dropdown-btn.active {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.dropdown-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.dropdown-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
}

.dropdown-count {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    padding: 4px 12px;
    background: #f0f3ff;
    border-radius: 20px;
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    color: #6c757d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.category-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-search {
    position: relative;
    padding: 12px;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #adb5bd;
}

.dropdown-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: #f8f9ff;
}

.dropdown-items {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
}

.dropdown-items::-webkit-scrollbar {
    width: 6px;
}

.dropdown-items::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.dropdown-items::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.dropdown-items::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.item-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item.active .item-name {
    color: white;
}

.item-count {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
}

.dropdown-item.active .item-count {
    color: rgba(255, 255, 255, 0.85);
}

.item-check {
    width: 20px;
    height: 20px;
    color: white;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .category-dropdown-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
    }
    
    .category-dropdown-btn {
        padding: 12px 16px;
    }
    
    .dropdown-icon {
        font-size: 24px;
    }
    
    .dropdown-text {
        font-size: 15px;
    }
    
    .dropdown-count {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .category-dropdown-menu {
        max-height: 350px;
    }
    
    .dropdown-item {
        padding: 10px;
    }
    
    .item-icon {
        font-size: 22px;
    }
    
    .item-name {
        font-size: 13px;
    }
    
    .item-count {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .dropdown-text {
        font-size: 14px;
    }
    
    .dropdown-count {
        display: none;
    }
    
    .category-dropdown-menu {
        max-height: 300px;
    }
}

