/* Tema 2 - Ürün Detay Sayfası */

.pb-product-page .pb-product-main {
    padding-top: 18px;
    padding-bottom: 48px;
}

.pb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--color-text-muted);
    margin-bottom: 22px;
}

.pb-breadcrumb a:hover {
    color: var(--color-primary);
}

.pb-breadcrumb-sep {
    color: #cbd5e1;
}

.pb-breadcrumb-current {
    color: var(--color-primary);
    font-weight: 700;
}

/* Genişletilebilir özel alanlar (boşken gizli) */
.pb-product-slot:empty {
    display: none;
}

.pb-product-slot:not(:empty) {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px dashed #d2dae2;
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.pb-product-detail {
    margin-bottom: 36px;
}

.pb-product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.pb-product-media-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pb-product-media-col .pb-visual-approval {
    margin-top: 0;
}

.pb-product-gallery {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.pb-product-gallery.has-thumbs {
    flex-direction: row-reverse;
}

.pb-product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.pb-product-thumb {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    border: 2px solid #eef2f6;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.pb-product-thumb.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.pb-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f8fafc;
}

.pb-product-main-image-wrap {
    flex: 1;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.pb-product-image-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #dc143c;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.pb-product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    will-change: transform;
}

@media (hover: none) {
    .pb-product-main-image-wrap {
        cursor: default;
    }
}

.pb-product-title {
    font-size: 28px;
    font-weight: 800;
    color: #2d3748;
    line-height: 1.2;
    margin: 0 0 14px;
}

.pb-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.pb-product-tag {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.pb-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 18px;
}

.pb-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.pb-product-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.pb-product-rating-score {
    font-weight: 800;
    color: #2d3748;
}

.pb-product-rating-count {
    color: var(--color-text-muted);
    font-weight: 500;
}

.pb-product-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pb-product-price-old {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 600;
}

.pb-product-price-current {
    font-size: 30px;
    font-weight: 800;
    color: #dc143c;
    line-height: 1;
}

.pb-product-price-unit {
    font-size: 15px;
    font-weight: 600;
    color: #9a8f86;
    margin-left: 4px;
}

.pb-product-short-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0 0 18px;
}

/* Teslimat günü / saati seçimi */
.pb-delivery-schedule {
    margin-bottom: 20px;
}

.pb-date-schedule-wrap {
    position: relative;
    margin-bottom: 14px;
}

.pb-date-picks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.pb-date-pick {
    min-height: 76px;
    border: 2px solid #eef2f6;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #2d3748;
    font-family: var(--font-theme);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pb-date-pick-label {
    font-size: 15px;
    font-weight: 800;
    color: #0a2240;
}

.pb-date-pick-date {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.pb-date-pick:hover {
    border-color: #d2dae2;
    background: #ffffff;
}

.pb-time-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pb-time-picks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.pb-time-pick {
    min-height: 52px;
    border: 2px solid #eef2f6;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #2d3748;
    font-family: var(--font-theme);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 6px;
    line-height: 1.25;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pb-time-pick:hover {
    border-color: #d2dae2;
    background: #ffffff;
}

.pb-delivery-urgency {
    padding: 14px 16px;
    background: #fff8f0;
    border: 1px solid #fde4c8;
    border-radius: var(--radius-md);
}

.pb-urgency-text {
    margin: 0 0 10px;
    font-size: 15px;
    color: #9a3412;
    line-height: 1.45;
}

.pb-urgency-text strong {
    font-weight: 800;
}

.pb-urgency-bar {
    height: 8px;
    background: #fde4c8;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pb-urgency-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    border-radius: 99px;
    transition: width 0.6s ease;
}

.pb-urgency-note {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #7c2d12;
    font-weight: 600;
}

.pb-product-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.pb-btn-order {
    width: 100%;
    min-width: 0;
    height: 52px;
    font-size: 16px;
}

.pb-btn-order:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pb-btn-order:disabled:hover {
    background: var(--color-primary);
}
.pb-btn {
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.pb-btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.pb-btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
}

.pb-btn-secondary {
    width: 100%;
    min-width: 0;
    height: 52px;
    font-size: 16px;
    background: #fff;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.pb-btn-secondary:hover:not(:disabled) {
    background: rgba(192, 57, 43, 0.06);
}

.pb-btn-cart {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 20px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pb-btn-cart.is-added {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

/* WhatsApp ile sipariş butonu (detay) */
.pb-btn-whatsapp {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 20px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
}

.pb-btn-whatsapp:hover {
    background: #1ebe5b;
}

.pb-btn-whatsapp svg {
    width: 22px;
    height: 22px;
}

/* Kargo tarihi bilgisi (detay) */
.pb-product-cargo-eta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-md);
    color: #166534;
    font-size: 14.5px;
}

.pb-product-cargo-eta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Karşılaştır / Fiyat alarmı ikon aksiyonları (detay) */
.pb-product-icon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-product-icon-action {
    flex: 1 1 0;
    min-width: 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-md);
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-theme);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pb-product-icon-action svg {
    width: 19px;
    height: 19px;
}

.pb-product-icon-action:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pb-product-icon-action.is-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(192, 57, 43, 0.06);
}

.pb-gift-note-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    user-select: none;
}

.pb-gift-note-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.pb-gift-note-panel {
    display: none;
    flex-direction: column;
    gap: 6px;
}

.pb-gift-note-panel.is-visible {
    display: flex;
}

.pb-gift-note-panel textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #eef2f6;
    border-radius: var(--radius-md);
    font-size: 14px;
    resize: vertical;
    min-height: 88px;
    outline: none;
}

.pb-gift-note-panel textarea:focus {
    border-color: var(--color-primary);
}

.pb-gift-note-count {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: right;
}

.pb-visual-approval {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: #f0f6ff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
}

.pb-visual-approval-icon {
    font-size: 22px;
    line-height: 1;
}

.pb-product-tabs-section {
    margin-bottom: 40px;
    border: 1px solid #eef2f6;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}

.pb-product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid #eef2f6;
    background: #f8fafc;
}

.pb-tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 16px 18px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pb-tab-btn.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: #fff;
}

.pb-tab-panel {
    padding: 28px 24px;
}

.pb-tab-panel[hidden] {
    display: none !important;
}

.pb-product-description h3 {
    font-size: 18px;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 12px;
}

.pb-product-description p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 14px;
}

.pb-reviews-summary {
    margin-bottom: 24px;
}

.pb-reviews-score-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 28px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #eef2f6;
}

.pb-reviews-big-score {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.pb-reviews-stars {
    color: #f59e0b;
    margin: 6px 0;
}

.pb-reviews-total {
    font-size: 13px;
    color: var(--color-text-muted);
}

.pb-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pb-review-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f6;
}

.pb-review-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 14px;
}

.pb-review-head strong {
    color: #2d3748;
}

.pb-review-head span {
    color: var(--color-text-muted);
}

.pb-review-stars {
    color: #f59e0b;
    font-size: 13px;
    margin-bottom: 8px;
}

.pb-review-item p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.pb-review-write {
    margin-bottom: 28px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: var(--radius-md);
}

.pb-review-write-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 800;
    color: var(--color-primary);
}

.pb-review-guest-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pb-review-guest-head .pb-review-write-title {
    margin-bottom: 6px;
}

.pb-review-guest-desc {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.pb-review-login-btn {
    min-width: 120px;
    height: 44px;
    font-size: 14px;
    flex-shrink: 0;
}

.pb-review-auth-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #d2dae2;
    max-width: 420px;
}

.pb-review-auth-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary);
}

.pb-review-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.pb-review-auth-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #eef2f6;
    border-radius: var(--radius-md);
    font-family: var(--font-theme);
    font-size: 14px;
    outline: none;
    background: #fff;
}

.pb-review-auth-input:focus {
    border-color: var(--color-primary);
}

.pb-review-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.pb-review-auth-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pb-review-auth-link {
    border: none;
    background: none;
    padding: 0;
    font-family: var(--font-theme);
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: underline;
    cursor: pointer;
}

.pb-review-auth-link:hover {
    color: var(--color-primary);
}

.pb-review-auth-submit {
    min-width: 110px;
    height: 40px;
    font-size: 14px;
}

.pb-review-user .pb-review-write-title {
    margin-bottom: 14px;
}

.pb-review-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pb-review-form-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pb-review-form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.pb-review-stars-input {
    display: flex;
    gap: 4px;
}

.pb-review-star-btn {
    border: none;
    background: none;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.pb-review-star-btn.is-active {
    color: #f59e0b;
}

.pb-review-star-btn:hover {
    transform: scale(1.1);
}

.pb-review-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #eef2f6;
    border-radius: var(--radius-md);
    font-family: var(--font-theme);
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
    min-height: 100px;
    outline: none;
    background: #fff;
}

.pb-review-form-textarea:focus {
    border-color: var(--color-primary);
}

.pb-review-submit {
    align-self: flex-start;
    min-width: 160px;
    height: 44px;
    font-size: 14px;
}

.pb-delivery-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 10px;
}

.pb-delivery-info h3:not(:first-child) {
    margin-top: 22px;
}

.pb-delivery-info ul {
    margin: 0;
    padding-left: 20px;
    color: var(--color-text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.pb-similar-section {
    margin-top: 10px;
}

/* Ürün kartı link sarmalayıcı */
a.product-card--link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

a.product-card--link:hover {
    text-decoration: none;
}

a.product-card--link .fav-btn {
    z-index: 3;
}

@media (max-width: 992px) {
    .pb-product-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pb-product-main-image-wrap {
        max-height: none;
    }

    .pb-product-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .pb-product-gallery.has-thumbs {
        flex-direction: column-reverse;
    }

    .pb-product-thumbs {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pb-product-thumbs::-webkit-scrollbar {
        display: none;
    }

    .pb-date-picks {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .pb-date-pick {
        min-height: 50px;
        padding: 5px 3px;
        gap: 2px;
    }

    .pb-date-pick-label {
        font-size: 11px;
        line-height: 1.2;
    }

    .pb-date-pick-date {
        font-size: 9.5px;
        line-height: 1.2;
    }

    .pb-time-picks {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .pb-time-pick {
        min-height: 46px;
        font-size: 11.5px;
        padding: 6px 3px;
    }

    .pb-tab-btn {
        min-width: 100%;
        text-align: left;
    }
}

/* Değerlendirme — dinamik durumlar */
.pb-product-rating {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.pb-product-rating--empty .pb-product-stars {
    color: #cbd5e1;
}
.pb-product-rating--empty .pb-product-rating-count {
    color: #94a3b8;
}
.pb-reviews-empty,
.pb-reviews-disabled p {
    color: #64748b;
    font-size: 14px;
    padding: 16px 0;
    margin: 0;
}
