/* =====================================================
   PRODUCT CARD COMPONENT STYLES
   Ortak Ürün Kartı CSS'leri - Product Pages & Detail Pages
   ===================================================== */

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Modern Product Card */
.product-card-modern {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: rgba(var(--product-load), 0.7);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-modern:hover .product-image {
    transform: scale(1.08);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card-modern:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* View Detail Button */
.view-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.view-detail-btn i {
    transition: transform 0.3s ease;
}

.product-card-modern:hover .view-detail-btn {
    color: var(--secondary-color);
}

.product-card-modern:hover .view-detail-btn i {
    transform: translateX(5px);
}

/* No Products Found */
.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-products-icon {
    width: 80px;
    height: 80px;
    background: var(--hover-flag);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.no-products-icon i {
    font-size: 32px;
    color: var(--text-secondary);
}

.no-products-found h4 {
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 18px;
}

.no-products-found p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* =====================================================
   RESPONSIVE STYLES - PRODUCT CARDS
   ===================================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 14px;
    }

    .product-title {
        font-size: 16px;
        min-height: 36px;
    }

    .current-price {
        font-size: 15px;
    }

    .view-detail-btn {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-modern {
        border-radius: 10px;
    }

    .product-info {
        padding: 12px;
    }

    .product-brand {
        font-size: 10px;
    }

    .product-title {
        font-size: 12px;
        min-height: 34px;
        -webkit-line-clamp: 2;
    }

    .product-subtitle {
        display: none;
    }

    .product-price-wrapper {
        margin-bottom: 10px;
    }

    .original-price {
        font-size: 11px;
    }

    .current-price {
        font-size: 14px;
    }

    .view-detail-btn {
        font-size: 11px;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .product-actions {
        top: 8px;
        right: 8px;
    }

    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .product-grid {
        gap: 8px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 11px;
        min-height: 30px;
    }

    .current-price {
        font-size: 13px;
    }

    .view-detail-btn {
        font-size: 10px;
    }
}
