/* Mağaza Container */
.magaza-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

.magaza-container::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('../images/logo/yeni-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Filtreler */
.magaza-filters {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li {
    margin-bottom: 10px;
}

.category-filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.category-filter-list input[type="checkbox"] {
    margin-right: 10px;
}

/* Fiyat Aralığı */
.price-range {
    padding: 10px 0;
}

.price-range input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: #ddd;
    border-radius: 2px;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ff4757;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.price-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ff4757;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.price-range input[type="range"]::-webkit-slider-runnable-track {
    background: #ff4757;
    height: 2px;
    border-radius: 2px;
}

.price-range input[type="range"]::-moz-range-track {
    background: #ff4757;
    height: 2px;
    border-radius: 2px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.price-inputs input[type="number"] {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.price-inputs input[type="number"]:focus {
    border-color: #ff4757;
}

.price-inputs span {
    color: #ff4757;
    font-weight: 500;
}

/* Sıralama */
#product-sorting {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

/* Ürünler Grid */
.magaza-products {
    width: 100%;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #ff4757;
    border-radius: 3px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
}

/* Ürün Kartı */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 15px;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image .secondary-image {
    opacity: 0;
}

.product-card:hover .primary-image {
    opacity: 0;
}

.product-card:hover .secondary-image {
    opacity: 1;
}

.product-title {
    padding: 15px 15px 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    height: auto;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price-container {
    padding: 0 15px 15px;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.min-quantity {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    padding: 4px 8px;
    background: #ff4757;
    border-radius: 5px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Varyasyon Göstergesi */
.product-variations {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    z-index: 5;
}

.product-variations i {
    font-size: 11px;
}

.bulk-discount {
    background: #000;
    padding: 12px 15px;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.bulk-discount i {
    color: #ff4757;
}

/* Sayfalama */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    width: 100%;
}

.pagination .page-numbers,
.pagination .woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #eee;
}

.pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

.pagination .page-numbers:hover:not(.current),
.woocommerce-pagination .page-numbers:hover:not(.current) {
    background: #f8f8f8;
    border-color: #ff4757;
    color: #ff4757;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.woocommerce-pagination .prev,
.woocommerce-pagination .next {
    font-size: 16px;
}

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    border: none;
    pointer-events: none;
}

/* WooCommerce Pagination Override */
.woocommerce-pagination {
    width: 100%;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none !important;
}

.woocommerce-pagination ul li {
    margin: 0;
    padding: 0;
    border: none !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #eee !important;
}

.woocommerce-pagination ul li span.current {
    background: #ff4757;
    color: #fff;
    border-color: #ff4757 !important;
}

.woocommerce-pagination ul li a:hover {
    background: #f8f8f8;
    border-color: #ff4757 !important;
    color: #ff4757;
}

/* Loading State */
.products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .magaza-container {
        grid-template-columns: 220px 1fr;
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .magaza-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .magaza-filters {
        display: none; /* Mobilde filtreleri gizle */
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0;
    }

    .product-card {
        margin: 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .whatsapp-support {
        margin: 20px 15px;
        padding: 30px 15px;
    }
    
    .whatsapp-support h3 {
        font-size: 20px;
    }
    
    .whatsapp-button-container {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button i {
        font-size: 28px;
    }
}

/* WhatsApp Destek Butonu */
.whatsapp-support {
    background: #fff;
    color: #333;
    padding: 40px 20px;
    border-radius: 20px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.whatsapp-support .whatsapp-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.whatsapp-support h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.whatsapp-support p {
    margin-bottom: 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* WhatsApp Butonu */
.whatsapp-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-button i {
    font-size: 32px;
} 

.whatsapp-contact {
    padding: 4rem 0;
    margin-top: 40px;
}

.whatsapp-card {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.whatsapp-icon {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 1.5rem;
}

.whatsapp-content h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.whatsapp-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

@media (max-width: 768px) {
    .whatsapp-contact {
        padding: 2rem 1rem;
    }

    .whatsapp-card {
        padding: 2rem 1.5rem;
    }

    .whatsapp-content h2 {
        font-size: 1.5rem;
    }

    .whatsapp-content p {
        font-size: 1rem;
    }

    .whatsapp-btn {
        width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Ürün Kartı Butonları - Görsel Üzerinde */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.product-image {
    position: relative;
}

.product-card-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn {
    background: #fff;
    color: #ff4757;
}

.add-to-cart-btn:hover {
    background: #ff4757;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.add-to-cart-btn.added {
    background: #00b894;
    color: #fff;
}

.add-to-cart-btn i {
    font-size: 16px;
}

.favorite-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #666;
}

.favorite-btn:hover {
    background: #fff;
    color: #ff4757;
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #ff4757;
    color: #fff;
}

.favorite-btn.active i {
    font-weight: 900;
}

.favorite-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.favorite-btn:hover i {
    transform: scale(1.1);
}

/* Mobil - Butonlar Her Zaman Görünsün */
@media (max-width: 768px) {
    .product-card-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .product-action-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .add-to-cart-btn i,
    .favorite-btn i {
        font-size: 14px;
    }
}