/* ============================================ */
/* PRODUCT CARDS - Corporate Premium Design v4  */
/* Kurumsal, şık, taşma yok                     */
/* ============================================ */

/* Grid Layout */
#product-grid,
#featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
    overflow: visible;
}

/* PC: 4 Sütun */
@media (min-width: 1200px) {
    #product-grid,
    #featured-products {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    #product-grid,
    #featured-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Card Container */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px -4px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* style.css override */
    animation: none !important;
    animation-delay: 0s !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px -8px rgba(30, 41, 59, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.18);
}

/* Image Section */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding-top: 0;
    background: linear-gradient(160deg, #f9fafb 0%, #f3f4f6 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.product-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* style.css override */
    transform: none;
    filter: none;
    mix-blend-mode: normal;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Badge */
.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* style.css override */
    animation: none !important;
}

.product-badge i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.6rem;
    flex-shrink: 0;
}

/* Content Section */
.product-info {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
    min-height: 0;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75em;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card:hover .product-title a {
    color: #4f46e5;
}

.product-desc-snippet {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: -0.25rem 0 0 0;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price & Action Row */
.product-meta {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    overflow: hidden;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 120px);
    /* style.css override — gradient text kaldır */
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0f172a !important;
    background-clip: unset !important;
}

.product-price .price-currency {
    font-size: 0.7em;
    font-weight: 600;
    color: #64748b;
    -webkit-text-fill-color: #64748b !important;
    margin-left: 2px;
}

.product-price small {
    font-size: 0.6em;
    font-weight: 600;
    color: #64748b;
    -webkit-text-fill-color: #64748b !important;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.btn-action {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: #f8fafc;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-action i {
    font-size: 0.85rem;
    transition: none;
}

/* Sepete ekle — primary action */
.btn-action.btn-cart {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.btn-action.btn-cart:hover {
    background: #4338ca;
    border-color: #4338ca;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

/* Favori & detay — secondary */
.btn-action:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.product-card:hover .btn-action:not(.btn-cart) {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    box-shadow: none;
    transform: none;
}

.product-card:hover .btn-action.btn-cart {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
    transform: none;
}

.product-card:hover .btn-action i {
    transform: none;
}

/* ======= RESPONSIVE ======= */

/* Tablet */
@media (max-width: 768px) {
    #product-grid,
    #featured-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card {
        border-radius: 12px;
        box-shadow: 0 1px 6px -1px rgba(0, 0, 0, 0.06);
    }

    .product-card:hover {
        transform: translateY(-3px);
    }

    .product-image-container {
        aspect-ratio: 1 / 1;
    }

    .product-image {
        padding: 0.5rem;
    }

    .product-badge {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.5rem;
        padding: 0.25rem 0.55rem;
        border-radius: 5px;
    }

    .product-info {
        padding: 0.7rem 0.75rem 0.8rem;
    }

    .product-title {
        font-size: 0.82rem;
        min-height: 2.4em;
        margin-bottom: 0.35rem;
    }

    .product-meta {
        padding-top: 0.6rem;
        gap: 0.25rem;
    }

    .product-price {
        font-size: 0.95rem;
        max-width: calc(100% - 100px);
    }

    .btn-action {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 8px;
    }

    .btn-action i {
        font-size: 0.75rem;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    #product-grid,
    #featured-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .product-info {
        padding: 0.55rem 0.6rem 0.65rem;
    }

    .product-title {
        font-size: 0.78rem;
        min-height: 2.2em;
    }

    .product-price {
        font-size: 0.88rem;
        max-width: calc(100% - 80px);
    }

    .btn-action {
        width: 28px;
        height: 28px;
        min-width: 28px;
        border-radius: 7px;
    }

    .btn-action i {
        font-size: 0.65rem;
    }
}