/* ==============================================
   ÜRÜN DETAY SAYFASI - Modern E-Ticaret Tasarımı
   (Bu dosya sadece ürün detay sayfasında yüklenir)
   ============================================== */

/* ---- BREADCRUMB ---- */
.pd-breadcrumb {
    max-width: var(--max-width);
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pd-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.pd-breadcrumb a:hover {
    color: var(--color-primary);
}

.pd-breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ---- ADMIN BAR ---- */
.pd-admin-bar {
    max-width: var(--max-width);
    margin: 10px auto;
    padding: 8px 20px;
    display: flex;
    gap: 8px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border: 1px dashed #ddd;
}

.pd-admin-btn {
    padding: 6px 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.pd-admin-btn:hover { opacity: 0.85; }
.pd-admin-btn.edit { background: #3498db; color: #fff; }
.pd-admin-btn.delete { background: var(--color-primary); color: #fff; }

/* ---- MAIN LAYOUT ---- */
.pd-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: var(--max-width);
    margin: 25px auto;
    padding: 0 20px;
    align-items: start;
}

/* ---- GALLERY ---- */
.pd-gallery {
    position: sticky;
    top: 90px;
}

.pd-gallery-main {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    padding: 15px;
}

.pd-main-img:hover {
    transform: scale(1.03);
}

.pd-no-image {
    padding: 80px 40px;
    color: #ccc;
    font-size: 24px;
    text-align: center;
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pd-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    opacity: 0.7;
}

.pd-thumb:hover {
    opacity: 1;
    border-color: #ccc;
}

.pd-thumb.active {
    opacity: 1;
    border-color: var(--color-primary);
}

/* ---- PRODUCT INFO ---- */
.pd-info {
    padding: 5px 0;
}

.pd-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.pd-price-box {
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.pd-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

/* Stock */
.pd-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.pd-stock.in-stock {
    color: #27ae60;
    background: #f0faf4;
}

.pd-stock.out-of-stock {
    color: #e74c3c;
    background: #fdf2f2;
}

.pd-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pd-stock.in-stock .pd-stock-dot { background: #27ae60; }
.pd-stock.out-of-stock .pd-stock-dot { background: #e74c3c; }

/* Quantity */
.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pd-qty-row label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.pd-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.pd-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #555;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-qty-btn:hover { background: #eee; }

.pd-qty-control input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.pd-qty-control input::-webkit-outer-spin-button,
.pd-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Action Buttons */
.pd-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.pd-btn-cart {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    background: var(--color-dark);
    color: #fff;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.25s;
    letter-spacing: 0.3px;
}

.pd-btn-cart:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pd-btn-wish {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.pd-btn-wish:hover { border-color: #e74c3c; transform: scale(1.05); }
.pd-btn-wish.liked { border-color: #e74c3c; background: #fff5f5; }

/* WhatsApp Share */
.pd-share {
    margin-bottom: 24px;
}

.pd-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pd-btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-1px);
}

/* Description */
.pd-description {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.pd-description h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.pd-desc-content {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.pd-desc-content p { margin-bottom: 10px; }

/* ---- REVIEWS ---- */
.pd-reviews {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 30px 20px;
    border-top: 2px solid var(--color-border);
}

.pd-reviews-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.pd-review-count {
    font-weight: 400;
    color: #999;
    font-size: 1rem;
}

.pd-no-reviews {
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

.pd-review-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pd-review-item:last-of-type { border-bottom: none; }

.pd-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pd-review-stars {
    color: #f1c40f;
    font-size: 14px;
    letter-spacing: 1px;
}

.pd-review-date {
    font-size: 12px;
    color: #aaa;
    margin-left: auto;
}

.pd-review-text {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.pd-review-images {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.pd-review-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.pd-review-thumb:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* Review Form */
.pd-review-form-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.pd-review-form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pd-form-group {
    margin-bottom: 14px;
}

.pd-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #444;
}

.pd-form-group select,
.pd-form-group textarea,
.pd-form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.pd-form-group select:focus,
.pd-form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.pd-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.pd-btn-submit {
    padding: 12px 28px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.pd-btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pd-login-prompt {
    padding: 16px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    text-align: center;
}

.pd-login-prompt a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Preview Items */
.pd-preview-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.pd-preview-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
}

.pd-preview-item span {
    font-size: 10px;
    color: #27ae60;
    font-weight: bold;
}

.pd-preview-item button {
    cursor: pointer;
    border: none;
    background: transparent;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 2px;
}

/* ---- LIGHTBOX ---- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.94);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 12px; right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 0.7; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 48px; height: 48px;
    border-radius: 50%;
    z-index: 10001;
    transition: background 0.2s;
    display: none;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav.prev { left: 15px; }
.lightbox-nav.next { right: 15px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    display: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .pd-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pd-gallery {
        position: static;
    }

    .pd-gallery-main {
        aspect-ratio: auto;
        max-height: 400px;
    }

    .pd-title { font-size: 1.3rem; }
    .pd-price { font-size: 1.5rem; }

    .pd-action-buttons {
        flex-direction: row;
    }

    .pd-btn-cart {
        font-size: 15px;
        padding: 13px 16px;
    }

    .pd-breadcrumb { font-size: 12px; }

    .pd-review-date { margin-left: 0; }
}

@media (max-width: 480px) {
    .pd-main { padding: 0 12px; }
    .pd-reviews { padding: 20px 12px; }
    .pd-breadcrumb { padding: 0 12px; }
}