/* ============================================================
   product-dedicated.php — Sayfa Özgü Stiller
   Tekil Ürün Satın Alma Sayfası
   ============================================================ */

.store-single-page {
    background: #1e1e1e;
    min-height: 85vh;
}

/* Sayfa Başlığı ve Breadcrumb */
.page-header {
    margin-bottom: 25px;
}

.page-header h2 {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* Glassmorphism Kartlar */
.glass-card {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* --- Ürün Görsel Showcase Kartı --- */
.product-media-card {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.product-media-showcase {
    position: relative;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.12) 0%, rgba(20, 20, 20, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    padding: 24px;
}

.product-media-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.product-showcase-img {
    max-width: 90%;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.product-media-card:hover .product-showcase-img {
    transform: scale(1.06) translateY(-4px);
    filter: drop-shadow(0 15px 30px rgba(102, 126, 234, 0.35));
}

.product-discount-badge {
    top: 12px;
    left: 12px;
    z-index: 5;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    display: inline-flex;
    align-items: center;
}

.product-media-card .btn-favorite {
    top: 12px;
    right: 12px;
    z-index: 5;
}

/* Favori Butonu */
.btn-favorite {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-favorite:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    transform: scale(1.08);
}

.btn-favorite.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Gradient Metin */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Buton Stili */
.btn-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Özellik Rozetleri */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.feature-badge.badge-type {
    background: rgba(102, 126, 234, 0.12);
    color: #8fa3f5;
    border: 1px solid rgba(102, 126, 234, 0.25);
}

.feature-badge.badge-stock-ok {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.feature-badge.badge-stock-out {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Adet Seçici */
.quantity-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
}

.quantity-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quantity-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.item-quantity {
    width: 50px;
    height: 38px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
}

/* İlgili Ürünler Kartı */
.related-card {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Yorum Yap Form Alanı */
.comment-form-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.comment-textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-size: 0.9rem !important;
    transition: all 0.25s ease !important;
}

.comment-textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
    outline: none !important;
}

/* ============================================================
   Yıldız Puanlama ve Yorumlar Tasarımı
   ============================================================ */

.stars-picker {
    user-select: none;
}

.stars-picker .star-item {
    font-size: 1.45rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, text-shadow 0.2s ease;
}

.stars-picker .star-item.active,
.stars-picker .star-item.hovered {
    color: #fbbf24 !important;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.stars-picker .star-item:hover {
    transform: scale(1.25);
}

.rating-label {
    letter-spacing: 0.3px;
}

/* Yorum Listesi ve Kartları */
.comments-list {
    min-height: 80px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.comment-item:hover {
    border-color: rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 0.035);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.comment-username {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.comment-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.comment-rating-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.88rem;
}

.comment-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1.6;
}
