/* Ana Sayfa ÃƒÅ“rÃƒÂ¼n KartlarÃ„Â± - Ãƒâ€“zel Stiller */
/* Sadece ana sayfadaki ÃƒÂ¼rÃƒÂ¼n kartlarÃ„Â± iÃƒÂ§in geÃƒÂ§erli */

.home-product-card {
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.home-product-card .product-layout {
    height: 100%;
}

.home-product-card .product-thumb {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-product-card .caption {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Stok Bilgisi */
.home-product-stock {
    margin: 5px auto;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    max-width: 90%;
    text-align: center;
}

.home-product-stock.in-stock {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.home-product-stock.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.home-product-stock i {
    margin-right: 5px;
}

/* Minimum SipariÃ…Å¸ Bilgisi */
.home-product-minimum {
    margin: 5px auto;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: inline-block;
    max-width: 90%;
    text-align: center;
}

.home-product-minimum i {
    margin-right: 5px;
}

/* Miktar SeÃƒÂ§ici Konteyner */
.home-quantity-section {
    margin: 8px 0 0 0;
    padding: 8px 5px 5px 5px;
    display: block !important;
    width: 100%;
}

/* Miktar Input Grubu */
.home-quantity-input-group {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 8px;
    display: flex !important;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: visible;
    background: #fff;
}

.home-quantity-input-group .qty-btn {
    flex: 0 0 35px;
    height: 38px;
    border: none;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-quantity-input-group .qty-btn:hover {
    background: #e2e6ea;
    color: #000;
}

.home-quantity-input-group .qty-btn:active {
    background: #dae0e5;
    transform: scale(0.95);
}

.home-quantity-input-group .qty-input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 0 3px;
    height: 38px;
    outline: none;
}

/* Sepete Ekle Butonu */
.home-add-to-cart-btn {
    width: 100% !important;
    padding: 10px 12px;
    background: #d0490c!important;
    color: #fff !important;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    min-height: 38px;
    visibility: visible !important;
    opacity: 1 !important;
}

.home-add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.home-add-to-cart-btn:active {
    transform: translateY(0);
}

.home-add-to-cart-btn.btn-loading {
    background: #6c757d;
    cursor: not-allowed;
}

.home-add-to-cart-btn.btn-success-state {
    background: #20c997;
}

.home-add-to-cart-btn i {
    font-size: 14px;
}

/* Loading Spinner */
.home-add-to-cart-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ÃƒÅ“rÃƒÂ¼n KartÃ„Â± Genel DÃƒÂ¼zen */
.home-product-card .product-thumb {
    padding: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.home-product-card .caption {
    padding: 8px 5px;
}

.home-product-card .caption h4 {
    font-size: 13px;
    line-height: 1.3;
    margin: 8px 0 5px 0;
    min-height: 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-product-card .caption h4 a {
    color: #333;
    text-decoration: none;
}

.home-product-card .caption h4 a:hover {
    color: #007bff;
}

/* Fiyat Stillleri */
.home-product-card .price {
    margin: 5px 0;
    font-weight: 700;
}

.home-product-card .price-new {
    color: #28a745;
    font-size: 15px;
}

.home-product-card .price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
    margin-right: 3px;
}

/* Desktop Stil (992px ve ÃƒÂ¼zeri) */
@media (min-width: 992px) {
    .home-product-card {
        margin-bottom: 15px;
    }
    
    .home-quantity-input-group {
        max-width: 100%;
        width: 90%;
    }
    
    .home-quantity-input-group .qty-btn {
        flex: 0 0 38px;
        height: 40px;
        font-size: 15px;
    }
    
    .home-quantity-input-group .qty-input {
        height: 40px;
        font-size: 14px;
        width: 100%;
    }
    
    .home-add-to-cart-btn {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .home-product-card .caption h4 {
        font-size: 13px;
        min-height: 35px;
    }
    
    .home-product-stock,
    .home-product-minimum {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Tablet Stil (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .home-product-card {
        margin-bottom: 15px;
    }
    
    .home-product-stock,
    .home-product-minimum {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .home-add-to-cart-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
    
    .home-quantity-input-group {
        width: 95%;
    }
}

/* Mobil Stil (767px ve altÃ„Â±) */
@media (max-width: 767px) {
    .home-product-card {
        margin-bottom: 10px;
    }
    
    .home-product-card .product-thumb {
        padding: 6px;
    }
    
    .home-product-stock,
    .home-product-minimum {
        font-size: 10px;
        padding: 3px 6px;
        margin: 3px auto;
    }
    
    .home-quantity-section {
        margin: 6px 0 0 0;
        padding: 5px 3px 3px 3px;
    }
    
    .home-quantity-input-group {
        max-width: 100%;
        width: 100%;
        margin-bottom: 6px;
    }
    
    .home-quantity-input-group .qty-btn {
        flex: 0 0 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .home-quantity-input-group .qty-input {
        height: 28px;
        font-size: 12px;
    }
    
    .home-add-to-cart-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .home-product-card .caption {
        padding: 5px 3px;
    }
    
    .home-product-card .caption h4 {
        font-size: 12px;
        min-height: 32px;
        margin: 5px 0 3px 0;
    }
    
    .home-product-card .price {
        margin: 5px 0;
    }
    
    .home-product-card .price-new {
        font-size: 14px;
    }
    
    .home-product-card .price-old {
        font-size: 11px;
    }
}

/* Ãƒâ€¡ok KÃƒÂ¼ÃƒÂ§ÃƒÂ¼k Mobil (480px ve altÃ„Â±) */
@media (max-width: 480px) {
    .home-product-card .caption h4 {
        font-size: 11px;
        min-height: 28px;
    }
    
    .home-quantity-input-group {
        max-width: 100%;
        width: 100%;
    }
    
    .home-add-to-cart-btn {
        padding: 6px 6px;
        font-size: 10px;
        gap: 3px;
    }
    
    .home-product-stock,
    .home-product-minimum {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .home-quantity-input-group .qty-btn {
        flex: 0 0 26px;
        height: 26px;
        font-size: 10px;
    }
    
    .home-quantity-input-group .qty-input {
        height: 26px;
        font-size: 11px;
        width: 100%;
    }
}

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

button:focus,
input:focus {
    outline: none;
}

/* Accessibility */
.home-add-to-cart-btn:focus,
.home-quantity-input-group .qty-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Stil */
@media print {
    .home-quantity-section,
    .home-add-to-cart-btn {
        display: none !important;
    }
}