/* ========================================================================
   Ürün detay sayfası - Profesyonel tema
   ======================================================================== */

.pdp-main { background: #f1f5f9; min-height: 60vh; padding-bottom: 3rem; }

/* Hero / Üst şerit */
.pdp-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
    color: #fff;
    padding: 2.25rem 0 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.pdp-hero .breadcrumb { background: none; padding: 0; margin: 0 0 1rem 0; }
.pdp-hero .breadcrumb-item a { color: rgba(255,255,255,0.9); text-decoration: none; }
.pdp-hero .breadcrumb-item a:hover { color: #fff; }
.pdp-hero .breadcrumb-item.active { color: #fff; font-weight: 600; }
.pdp-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }
.pdp-hero-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.pdp-hero-seller-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255,255,255,0.2);
}
.pdp-hero-seller-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.pdp-hero-seller-name { font-weight: 600; font-size: 1.05rem; }
.pdp-hero-seller-link {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.pdp-hero-seller-link:hover { color: #fff; background: rgba(255,255,255,0.15); border-color: #fff; }

/* Container */
.pdp-container { position: relative; }

/* Kart genel */
.pdp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Ana ürün kartı */
.pdp-product-card { padding: 0; }
.pdp-product-gallery { position: relative; }
.pdp-product-image-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #e2e8f0;
}
.pdp-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdp-product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
}
.pdp-product-image-placeholder .fa { font-size: 3.5rem; margin-bottom: 8px; }
.pdp-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}
.pdp-badge-promo { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; }

.pdp-product-info { padding: 1.75rem 2rem; }
.pdp-product-category {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}
.pdp-sep { margin: 0 4px; }
.pdp-product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.pdp-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
}
.pdp-meta-item {
    font-size: 0.9rem;
    color: #64748b;
}
.pdp-meta-item i { margin-right: 4px; color: #2d7a3e; }
.pdp-btn-favorite {
    background: none;
    border: 1px solid #f87171;
    color: #f87171;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.pdp-btn-favorite:hover { background: #fef2f2; color: #dc2626; }
.pdp-btn-favorite i { margin-right: 4px; }

.pdp-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.pdp-rating-score { font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.pdp-rating-stars { font-size: 1rem; color: #eab308; }
.pdp-rating-stars .fa-star-o { color: #cbd5e1; }
.pdp-rating-count { font-size: 0.85rem; color: #64748b; margin-left: 4px; }

.pdp-product-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.pdp-price-block { margin-bottom: 1.5rem; }
.pdp-label { display: block; font-size: 0.8rem; font-weight: 600; color: #475569; margin-bottom: 6px; }
.pdp-portion-select {
    max-width: 280px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    margin-bottom: 10px;
}
.pdp-price {
    font-size: 2rem;
    font-weight: 800;
    color: #15803d;
    letter-spacing: -0.02em;
}
.pdp-price small { font-size: 1.25rem; font-weight: 600; }

.pdp-variants-block { margin-bottom: 1.25rem; max-width: 320px; }
.pdp-variants-block .pdp-label { margin-bottom: 6px; }
.pdp-variant-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.pdp-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}
.pdp-qty-group { width: 90px; }
.pdp-qty-input {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
}
.pdp-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2d7a3e 0%, #1e5631 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(45, 122, 62, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pdp-btn-cart:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45, 122, 62, 0.4); }

/* Bölüm başlıkları */
.pdp-section { padding: 1.75rem 2rem; }
.pdp-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdp-section-title i { color: #2d7a3e; }
.pdp-section-title .pdp-count { font-weight: 500; color: #64748b; }
.pdp-section-body { color: #475569; line-height: 1.7; }

/* Değerlendirme formu - profesyonel görünüm */
.pdp-review-form-section {
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.pdp-review-form-section .pdp-section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.pdp-review-form .text-danger { color: #dc2626 !important; }
.pdp-review-form {
    max-width: 100%;
}
.pdp-review-form .form-group {
    margin-bottom: 1.35rem;
}
.pdp-review-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.5rem;
}
.pdp-review-form .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pdp-review-form .form-control:focus {
    border-color: #2d7a3e;
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.12);
    outline: none;
}
.pdp-review-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}
.pdp-review-form select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.25rem;
}
.pdp-review-form .row .form-group { margin-bottom: 1.35rem; }

/* Yıldız puanı */
.pdp-review-form .pdp-rating-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pdp-rating-stars-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 6px;
}
.pdp-rating-stars-input input { display: none; }
.pdp-rating-stars-input label {
    cursor: pointer;
    font-size: 1.75rem;
    color: #e2e8f0;
    margin: 0;
    transition: color 0.15s, transform 0.1s;
}
.pdp-rating-stars-input label:hover,
.pdp-rating-stars-input label:hover ~ label { color: #eab308; transform: scale(1.08); }
.pdp-rating-stars-input input:checked ~ label { color: #eab308; }

/* Dosya yükleme alanı */
.pdp-review-file-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.pdp-review-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.pdp-review-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.25rem;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pdp-review-file-label:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #334155;
}
.pdp-review-file-label i { font-size: 1.1rem; color: #2d7a3e; }
.pdp-review-file-hint {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Gönder butonu */
.pdp-review-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #2d7a3e 0%, #1e5631 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pdp-review-submit:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 122, 62, 0.35);
}

/* Değerlendirmeler */
.pdp-review-list { display: flex; flex-direction: column; gap: 0; }
.pdp-review-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.pdp-review-item:last-child { border-bottom: none; }
.pdp-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.pdp-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
}
.pdp-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pdp-review-author { margin-right: 8px; }
.pdp-review-stars { color: #eab308; font-size: 0.9rem; }
.pdp-review-date { font-size: 0.8rem; color: #94a3b8; }
.pdp-review-title { font-size: 1rem; margin: 6px 0 4px; color: #334155; }
.pdp-review-text { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin: 0; }
.pdp-review-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pdp-review-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    border: 1px solid #e2e8f0;
}
.pdp-review-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Benzer ürünler */
.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.pdp-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pdp-related-card:hover {
    border-color: #2d7a3e;
    box-shadow: 0 8px 24px rgba(45, 122, 62, 0.15);
    transform: translateY(-2px);
    color: inherit;
}
.pdp-related-image {
    aspect-ratio: 1;
    background: #e2e8f0;
    overflow: hidden;
}
.pdp-related-image img { width: 100%; height: 100%; object-fit: cover; }
.pdp-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}
.pdp-related-info { padding: 12px; }
.pdp-related-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdp-related-price { font-size: 1rem; font-weight: 700; color: #15803d; }

/* Sidebar */
.pdp-sidebar { top: 90px; }
.pdp-cart-card { padding: 0; }
.pdp-cart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #0f172a;
}
.pdp-cart-header i { color: #2d7a3e; font-size: 1.2rem; }
.pdp-cart-badge {
    margin-left: auto;
    background: #2d7a3e;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}
.pdp-cart-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
}
.pdp-cart-empty .fa { font-size: 2.5rem; margin-bottom: 10px; display: block; color: #cbd5e1; }
.pdp-cart-empty p { margin: 0 0 4px; font-size: 0.95rem; }
.pdp-cart-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1rem;
    max-height: 280px;
    overflow-y: auto;
}
.pdp-cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}
.pdp-cart-row:last-child { border-bottom: none; }
.pdp-cart-row .cart-name { flex: 1 1 100%; }
.pdp-cart-row .cart-name .cart-item-extras {
    font-size: 0.75rem !important;
    font-style: italic !important;
    color: #64748b;
}
.pdp-cart-row .cart-price { font-weight: 600; color: #15803d; }
.pdp-cart-row .cart-actions { display: flex; align-items: center; gap: 6px; }
.pdp-cart-row .cart-qty-input { width: 50px; padding: 4px; text-align: center; border-radius: 6px; border: 1px solid #e2e8f0; }
.pdp-cart-row .btn_remove_cart { background: none; border: none; color: #94a3b8; cursor: pointer; padding: 2px; }
.pdp-cart-row .btn_remove_cart:hover { color: #dc2626; }
.pdp-cart-footer { padding: 1rem 1.25rem; border-top: 2px solid #e2e8f0; background: #f8fafc; }
.pdp-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.pdp-cart-total strong { font-size: 1.35rem; color: #15803d; }
.pdp-btn-checkout {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2d7a3e 0%, #1e5631 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.pdp-btn-checkout:hover { color: #fff; opacity: 0.95; transform: translateY(-1px); }
.pdp-btn-checkout i { margin-right: 8px; }

.pdp-seller-card { padding: 1.25rem; }
.pdp-seller-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.pdp-seller-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}
.pdp-seller-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}
.pdp-btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #2d7a3e;
    color: #2d7a3e;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.pdp-btn-menu:hover { background: #2d7a3e; color: #fff; }

/* Responsive */
@media (max-width: 991px) {
    .pdp-product-info { padding: 1.5rem 1.25rem; }
    .pdp-product-title { font-size: 1.5rem; }
    .pdp-sidebar { position: static; }
}
@media (max-width: 767px) {
    .pdp-hero-seller-link { margin-left: 0; width: 100%; }
    .pdp-product-image-wrap { aspect-ratio: 16/10; }
    .pdp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
