﻿/* ✅ Ürün grid - tüm sayfalarda geçerli */
.products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
    width: 100%;
}

.product-img {
    height: 180px !important;
    object-fit: cover;
}

.product-card .card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #ddd;
}

    .product-card .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }

.product-price {
    color: #d9534f;
    font-weight: bold;
    font-size: 16px;
}

@media (max-width: 900px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .products-container {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* ============================================================
   VALİDASYON MESAJLARI: sarı arka plan, siyah yazı
   ============================================================ */
.field-validation-error,
.validation-summary-errors,
.input-validation-error + .field-validation-error {
    display: inline-block;
    background-color: #ffc107;
    color: #000 !important;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 4px;
    font-size: 0.85rem;
}

    .validation-summary-errors ul {
        margin-bottom: 0;
        padding-left: 18px;
    }

    .validation-summary-errors li {
        color: #000;
    }

/* Input kenarlığı hatalıysa da sarıyla vurgula */
.input-validation-error {
    border-color: #ffc107 !important;
}

/* ============================================================
   BAŞARI MESAJLARI (örn. "Ürün sepete eklendi!")
   Arka plan: altın sarısı, Yazı: siyah
   ============================================================ */
.alert-success {
    background-color: #d4af37 !important;
    border-color: #b8912c !important;
    color: #000 !important;
}

    .alert-success .btn-close {
        /* Kapatma (X) ikonunu siyaha çevir */
        filter: none;
        opacity: 0.7;
    }

        .alert-success .btn-close:hover {
            opacity: 1;
        }

    .alert-success i {
        color: #000 !important;
    }

/* ✅ Sayfa varsayılan zoom: %90 — kullanıcı isterse kendi tarayıcı zoom'unu ayrıca uygulayabilir */
html {
    zoom: 85%;
}

/* ============================================================
   ÜRÜN GÖRSELİ FİLİGRANI (site.js tarafından her karta eklenir)
   ============================================================ */
.gm-wm-wrap {
    position: relative !important;
    overflow: hidden !important;
    clip-path: inset(0);
}

.gm-wm-line {
    position: absolute;
    white-space: nowrap;
    pointer-events: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(212, 175, 55, 0.6);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    z-index: 3;
}
