/* PuntoKitap kitapdetay tasarımına göre ürün sayfası */
.product-detail-page {
    padding: 2rem 0 3rem;
    /* Bu sayfa içinde geçerli olacak renk değişkenleri */
    --primary: #B91C1C;
    --primary-dark: #991B1B;
    --primary-light: #FEE2E2;
    --secondary: #1F2937;
    --secondary-light: #374151;
    --accent: #D97706;
    --light: #F9FAFB;
    --dark: #111827;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
}

.product-detail-page .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Breadcrumb */
.product-detail-page .breadcrumb-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-detail-page .breadcrumb-product a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.product-detail-page .breadcrumb-product a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.product-detail-page .breadcrumb-product .separator {
    color: var(--gray-light);
}

/* Breadcrumb - kitaplar.html stili ( kategori, koleksiyon vb. ) */
.pk-breadcrumb-wrap {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pk-gray-light, #E5E7EB);
    background-color: #fff;
}

.pk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--pk-gray, #6B7280);
    flex-wrap: wrap;
}

.pk-breadcrumb a {
    color: var(--pk-primary, #B91C1C);
    text-decoration: none;
    transition: color 0.3s;
}

.pk-breadcrumb a:hover {
    color: var(--pk-primary-dark, #991B1B);
    text-decoration: underline;
}

.pk-breadcrumb-separator {
    color: var(--pk-gray-light, #E5E7EB);
}

/* Product Main Layout */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

/* Flag rozeti Pictures partial’ın dışında; mutlak konumlandırma için kapsayıcı */
.product-images > .pk-product-badge {
    z-index: 4;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-light);
    background-color: #ffffff;
    position: relative;
}

.main-image .pk-print-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    background-color: rgba(17, 24, 39, 0.9);
    color: #ffffff;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Baskı durumu — ürün görseli üzeri (pk-product-badge ile aynı palet) */
.main-image .pk-print-status-badge.badge-stokta { background-color: #16a34a; }
.main-image .pk-print-status-badge.badge-tukendi { background-color: #6b7280; }
.main-image .pk-print-status-badge.badge-baskiyok { background-color: #ea580c; }
.main-image .pk-print-status-badge.badge-yenicikacak { background-color: #2563eb; }
.main-image .pk-print-status-badge.badge-yayinevinden { background-color: #0d9488; }
.main-image .pk-print-status-badge.badge-coksatan { background-color: #d97706; }
.main-image .pk-print-status-badge.badge-hazirlanıyor { background-color: #7c3aed; }
.main-image .pk-print-status-badge.badge-satisdisi { background-color: #374151; }
.main-image .pk-print-status-badge.badge-setkitap { background-color: #0f4c81; }
.main-image .pk-print-status-badge.badge-indirim { background-color: #be185d; }

.main-image img {
    width: 100%;
    /*height: 400px;*/
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.zoom-icon {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-dark, #444);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
    z-index: 3;
}

.zoom-icon:hover {
    background: rgba(255, 255, 255, 1);
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.zoom-modal.active {
    display: flex;
}

.zoom-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.zoom-modal-content {
    position: relative;
    z-index: 1;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    min-width: min(600px, 90vw);
    min-height: min(400px, 70vh);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoom-in-anim 0.2s ease;
}

@keyframes zoom-in-anim {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.zoom-modal-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.zoom-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    height: 80px;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail:hover {
    border-color: var(--primary-light);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    padding-right: 1rem;
}

.product-title {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-description {
    margin-bottom: 2rem;
    color: var(--secondary-light);
    line-height: 1.6;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-sku {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.product-availability-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.product-availability:not(.product-availability--out) .product-availability-icon {
    color: #10b981;
}

.product-availability.product-availability--out .product-availability-icon {
    color: #d97706;
}

.availability-instock {
    color: #059669;
    font-weight: 600;
}

.availability-outstock {
    color: #b45309;
    font-weight: 600;
}

.product-details {
    margin-bottom: 2rem;
}

.details-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0.75rem 0 0;
    padding: 0;
    border-top: 1px solid var(--gray-light, #E5E7EB);
}

.details-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-light, #E5E7EB);
}

.detail-label {
    font-weight: 600;
    color: var(--dark);
    min-width: 0;
    font-size: 0.78rem;
    color: var(--gray, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: none;
}

.detail-value {
    color: var(--secondary-light);
    font-weight: 650;
    line-height: 1.35;
    word-break: break-word;
}

/* Sepet / Tükendi / stok bildir — dikey hizalı blok */
.product-purchase-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
}

.product-out-of-stock-subscribe {
    margin: 0;
    width: 100%;
}

/* Stok bildir — ürün kutusu içinde tam genişlik, abonelik durumuna göre stil */
.pk-oos-subscribe-btn {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    border: 2px solid var(--primary, #B91C1C);
    background-color: #fff;
    color: var(--primary, #B91C1C);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.pk-oos-subscribe-btn:hover {
    background-color: var(--primary-light, #FEE2E2);
    color: var(--primary-dark, #991B1B);
    border-color: var(--primary-dark, #991B1B);
}

.pk-oos-subscribe-btn--subscribed {
    border-color: #d1d5db;
    background-color: #f9fafb;
    color: #4b5563;
    font-weight: 600;
}

.pk-oos-subscribe-btn--subscribed:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Product Actions */
.product-actions {
    background-color: var(--light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-light);
}

.product-price-section {
    display: block;
    margin-bottom: 1.25rem;
}

/* Grand'ın fiyat markup'ını template görünümüne yaklaştır */
.product-actions .price {
    margin-bottom: 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.product-actions .pk-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
}

.product-actions .pk-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    width: 100%;
}

.product-actions .pk-price-caption {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray, #6B7280);
    min-width: 110px;
    text-decoration: none;
}

.product-actions .pk-price-row--final .pk-price-caption {
    color: var(--primary, #B91C1C);
}

.product-actions .pk-price-row--normal .actual-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary, #B91C1C);
}

.product-actions .pk-price-row--final .pk-price-discounted {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary, #B91C1C);
}

.product-actions .pk-price-row--label .pk-price-original {
    font-size: 1.1rem;
}

.product-actions .pk-price-row--discount .pk-discount-badge {
    margin-top: 0.15rem;
}

.product-actions .old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1.2rem;
}

.product-actions .discount-percent {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Ürün detay fiyat stilleri */
.pk-price-original {
    text-decoration: none;
    color: var(--gray, #6B7280);
    font-size: 1.1rem;
    font-weight: 400;
}

.pk-price-discounted {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary, #B91C1C);
}

.pk-discount-badge {
    display: inline-flex;
    align-items: center;
    background-color: #dc2626;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-label {
    font-weight: 600;
    color: var(--dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: var(--gray-light);
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    background-color: #ffffff;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    flex: 1;
    justify-content: center;
}

.action-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
}

.action-buttons .btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.action-buttons .btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-wishlist {
    background-color: #ffffff;
    color: var(--dark);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    min-width: 50px;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Basit responsive uyarlamalar */
@media (max-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 1rem 0 2rem;
    }
    .product-detail-page .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .product-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .main-image img {
        height: 280px;
    }
    .product-title {
        font-size: 1.3rem;
    }
    .product-actions {
        padding: 1rem;
    }
    .product-actions .price {
        font-size: 1.6rem;
    }
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary,
    .btn-wishlist {
        width: 100%;
        justify-content: center;
    }
    .product-tabs .tabs-header {
        gap: 0;
    }
    .product-tabs .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    .details-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-image img {
        height: 240px;
    }
    .product-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .product-title {
        font-size: 1.1rem;
    }
    .product-info {
        padding-right: 0;
    }
}

/* Products Toolbar - kitaplar.html stili (sıralama ve görünüm seçenekleri) */
.pk-products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pk-products-count {
    font-size: 0.9rem;
    color: var(--pk-gray, #6B7280);
}

.pk-products-count strong {
    color: var(--pk-primary, #B91C1C);
}

.pk-toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pk-excel-export-btn {
    background-color: var(--pk-light, #F9FAFB);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d6f42;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.pk-excel-export-btn:hover {
    background-color: #ecfdf5;
    border-color: #1d6f42;
}

.pk-view-options {
    display: flex;
    gap: 0.5rem;
}

.pk-view-btn {
    background-color: var(--pk-light, #F9FAFB);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-gray, #6B7280);
    cursor: pointer;
    transition: all 0.3s;
}

.pk-view-btn.active {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    border-color: var(--pk-primary, #B91C1C);
}

.pk-view-btn:hover:not(.active) {
    background-color: var(--pk-gray-light, #E5E7EB);
}

.pk-sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--pk-dark, #111827);
    outline: none;
    background-color: #ffffff;
    cursor: pointer;
}

.pk-sort-select:focus {
    border-color: var(--pk-primary, #B91C1C);
}

@media (max-width: 768px) {
    .pk-products-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pk-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .pk-view-options {
        display: none;
    }
}

/* Products Content - kitaplar.html ana kutu (toolbar + grid + pagination) */
.pk-products-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
}

/* Products Grid - kitaplar.html grid düzeni */
.pk-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
    border: none;
}

.pk-products-grid > li {
    list-style: none;
    margin: 0;
    max-width: none !important;
    flex: none !important;
    width: 100% !important;
}

.pk-products-grid > li.product.col {
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* Product Card - kitaplar.html stili */
.pk-product-card .pk-product-card-inner {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
}

.pk-product-card:hover .pk-product-card-inner {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(185, 28, 28, 0.1);
    border-color: var(--pk-primary-light, #FEE2E2);
}

.pk-product-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pk-gray-light, #F3F4F6);
}

.pk-product-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pk-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.pk-product-card:hover .pk-product-image img {
    transform: scale(1.05);
}

/* Resim üzeri: yazar / yayınevi / dağıtım tarihi (hover) */
.pk-product-image-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.65rem 0.55rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.35;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 1;
}

.pk-product-image:hover .pk-product-image-meta {
    opacity: 1;
    visibility: visible;
}

.pk-book-image:hover .pk-product-image-meta {
    opacity: 1;
    visibility: visible;
}

.pk-product-image-meta__line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-product-image-meta__line + .pk-product-image-meta__line {
    margin-top: 0.15rem;
}

.pk-product-image-meta__label {
    font-weight: 600;
    opacity: 0.92;
    margin-right: 0.25rem;
}

.pk-product-image-meta__line--author a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pk-product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

/* Stokta — yeşil */
.pk-product-badge.badge-stokta {
    background-color: #16a34a;
}

/* Tükendi — gri */
.pk-product-badge.badge-tukendi {
    background-color: #6b7280;
}

/* Baskısı Yok — turuncu */
.pk-product-badge.badge-baskiyok {
    background-color: #ea580c;
}

/* Yeni Çıkacak — mavi */
.pk-product-badge.badge-yenicikacak {
    background-color: #2563eb;
}

/* Yayınevinden Bekleniyor — teal */
.pk-product-badge.badge-yayinevinden {
    background-color: #0d9488 !important;
    color: #ffffff !important;
}

/* Çok Satan — altın sarısı */
.pk-product-badge.badge-coksatan {
    background-color: #d97706;
}

/* Hazırlanıyor — mor */
.pk-product-badge.badge-hazirlanıyor {
    background-color: #7c3aed;
}

/* Satış Dışı / İptal — koyu gri */
.pk-product-badge.badge-satisdisi {
    background-color: #374151;
}

/* Set Kitaplar — koyu mavi */
.pk-product-badge.badge-setkitap {
    background-color: #0f4c81;
}

/* İndirim — pembe/kırmızı */
.pk-product-badge.badge-indirim {
    background-color: #be185d;
}

/* İndirim oranı — sol üst köşe */
.pk-product-badge.pk-product-discount-flag {
    top: 0.75rem;
    right: auto;
    bottom: auto;
    left: 0.75rem;
    background-color: #dc2626;
}

.pk-product-actions {
    position: absolute;
    top: auto;
    bottom: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 3;
}

.pk-product-card:hover .pk-product-actions {
    opacity: 1;
    transform: translateY(0);
}

.pk-product-action-btn {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-dark, #111827);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pk-product-action-btn:hover {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    transform: scale(1.1);
}

.pk-product-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pk-product-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--pk-dark, #111827);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.pk-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.pk-product-title a:hover {
    color: var(--pk-primary, #B91C1C);
}

.pk-product-author {
    color: var(--pk-gray, #6B7280);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    min-height: 1.2em;
}

.pk-product-author a {
    color: inherit;
    text-decoration: none;
}

.pk-product-author a:hover {
    color: var(--pk-primary, #B91C1C);
}

.pk-product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.pk-rating-stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.pk-rating-count {
    color: var(--pk-gray, #6B7280);
    font-size: 0.75rem;
}

.pk-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--pk-gray-light, #E5E7EB);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pk-product-price {
    display: flex;
    flex-direction: column;
}

.pk-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--pk-primary, #B91C1C);
}

.pk-old-price {
    text-decoration: none;
    color: var(--pk-gray, #6B7280);
    font-size: 0.8rem;
}

.new-product-card .product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.new-product-card .product-price .old-price {
    text-decoration: none;
}

.pk-add-to-cart {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-decoration: none;
    height: 34px;
    line-height: 1;
    box-sizing: border-box;
}

.pk-add-to-cart:hover {
    background-color: var(--pk-primary-dark, #991B1B);
    color: #ffffff;
}

.pk-add-to-cart.pk-add-to-cart--soldout,
button.pk-add-to-cart--soldout:disabled {
    background-color: #9ca3af !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 1;
}

.pk-add-to-cart.pk-add-to-cart--soldout:hover,
button.pk-add-to-cart--soldout:disabled:hover {
    background-color: #9ca3af !important;
    color: #ffffff !important;
}

.add-to-cart-button--soldout:disabled,
.add-to-cart--soldout {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    pointer-events: none;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    min-height: 48px;
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-actions .action-buttons .add-to-cart-button--soldout:disabled {
    width: 100%;
}

/* Quantity Selector - kitaplar/categories.html stili */
.pk-quantity-selector {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pk-product-meta .pk-quantity-selector {
    margin: 0;
}

.pk-quantity-label {
    font-size: 0.8rem;
    color: var(--pk-gray, #6B7280);
    font-weight: 500;
}

.pk-quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 6px;
    overflow: hidden;
    height: 34px;
    box-sizing: border-box;
}

.pk-quantity-btn {
    width: 26px;
    height: 100%;
    background-color: var(--pk-light, #F9FAFB);
    border: none;
    color: var(--pk-dark, #111827);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9rem;
}

.pk-quantity-btn:hover {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
}

.pk-quantity-decrease {
    border-right: 1px solid var(--pk-gray-light, #E5E7EB);
}

.pk-quantity-increase {
    border-left: 1px solid var(--pk-gray-light, #E5E7EB);
}

.pk-quantity-input {
    width: 32px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 0.85rem;
    outline: none;
    padding: 0 0.25rem;
}

.pk-quantity-input:focus {
    background-color: var(--pk-primary-light, #FEE2E2);
}

/* Page Header - kitaplar.html stili (başlık + breadcrumb yan yana, tam genişlik) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.5rem;
}

.page-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pk-dark, #111827);
}

.page-subtitle {
    color: var(--pk-gray, #6B7280);
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Authors page wrapper (yazarlar.html paddings) */
.authors-page {
    padding: 2rem 0 3rem;
}

/* Breadcrumb - page-header içinde, sağ tarafta */
.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--pk-gray, #6B7280);
    flex-wrap: wrap;
}

.page-header .breadcrumb a {
    color: var(--pk-primary, #B91C1C);
    text-decoration: none;
    transition: color 0.3s;
}

.page-header .breadcrumb a:hover {
    color: var(--pk-primary-dark, #991B1B);
    text-decoration: underline;
}

.page-header .breadcrumb .separator {
    color: var(--pk-gray-light, #E5E7EB);
}

/* List view */
.pk-products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pk-products-list .pk-product-list-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
}

.pk-products-list .pk-product-list-item .actual-price.price {
    color: var(--pk-primary, #B91C1C);
    font-weight: 700;
}

.pk-products-list .pk-add-to-cart-list {
    white-space: nowrap;
}

.pk-product-list-title a {
    color: var(--pk-dark, #111827);
    font-weight: 700;
}

.pk-product-list-title a:hover {
    color: var(--pk-primary, #B91C1C);
}

.pk-products-list .woocommerce-loop-product__thumbnail {
    position: relative;
}

.pk-featured-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pk-gray-light, #F3F4F6);
}

.pk-featured-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pk-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.pk-product-badge-list {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.pk-list-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    background-color: #ffffff;
    color: var(--pk-gray, #6B7280);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.pk-list-action-btn:hover {
    border-color: var(--pk-primary, #B91C1C);
    color: var(--pk-primary, #B91C1C);
}

.pk-list-action-btn.pk-list-action-active {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    border-color: var(--pk-primary, #B91C1C);
}

.pk-products-list .col-md-auto.d-flex {
    gap: 0.5rem;
}

/* Filters Sidebar - kitaplar.html stili */
.pk-filters-sidebar {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    height: fit-content;
    max-height: calc(100vh - 160px);
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pk-filters-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    padding-right: 0.25rem;
}

.pk-filters-body::-webkit-scrollbar {
    width: 6px;
}

.pk-filters-body::-webkit-scrollbar-track {
    background: var(--pk-gray-light, #E5E7EB);
    border-radius: 3px;
}

.pk-filters-body::-webkit-scrollbar-thumb {
    background: var(--pk-primary, #B91C1C);
    border-radius: 3px;
}

.pk-filters-body::-webkit-scrollbar-thumb:hover {
    background: var(--pk-primary-dark, #991B1B);
}

.pk-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--pk-gray-light, #E5E7EB);
}

.pk-filters-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--pk-dark, #111827);
}

.pk-clear-filters {
    color: var(--pk-primary, #B91C1C);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.pk-clear-filters:hover {
    color: var(--pk-primary-dark, #991B1B);
    text-decoration: underline;
}

/* Sidebar widgets - Kategori/Koleksiyon navigasyon (kitaplar.html filter-group stili) */
.pk-sidebar-widget {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
}

.pk-nav-list {
    padding: 0;
    margin: 0;
}

.pk-nav-item {
    margin-bottom: 0.5rem;
}

.pk-nav-link {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--pk-secondary, #1F2937);
    text-decoration: none;
    transition: color 0.3s;
}

.pk-nav-link:hover {
    color: var(--pk-primary, #B91C1C);
}

.pk-nav-item.pk-nav-active .pk-nav-link {
    color: var(--pk-primary, #B91C1C);
    font-weight: 600;
}

.pk-nav-count {
    color: var(--pk-gray, #6B7280);
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.pk-nav-sublist {
    list-style: none;
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 0.5rem 0 0 1rem;
    border-left: 2px solid var(--pk-gray-light, #E5E7EB);
}

.pk-nav-sublist .pk-nav-item {
    margin-bottom: 0.35rem;
}
.pk-nav-sublist .pk-nav-item:last-child {
    margin-bottom: 0;
}

.pk-nav-viewall {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--pk-primary, #B91C1C);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.pk-nav-viewall:hover {
    color: var(--pk-primary-dark, #991B1B);
    text-decoration: underline;
}

.pk-filter-group {
    margin-bottom: 1.5rem;
}

.pk-filter-group-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--pk-dark, #111827);
    margin-bottom: 0.75rem;
}

.pk-filter-group-content {
    padding-left: 0.5rem;
}

/* Kategori navigasyon: scroll + alt kategori aç/kapa */
.pk-category-nav-scroll {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
}
.pk-category-nav-scroll::-webkit-scrollbar {
    width: 6px;
}
.pk-category-nav-scroll::-webkit-scrollbar-track {
    background: var(--pk-gray-light, #E5E7EB);
    border-radius: 3px;
}
.pk-category-nav-scroll::-webkit-scrollbar-thumb {
    background: var(--pk-gray, #9CA3AF);
    border-radius: 3px;
}
.pk-category-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--pk-secondary, #6B7280);
}

.pk-nav-row {
    display: flex;
    align-items: center;
}

/* Filter item - checkbox-style (kitaplar.html) */
.pk-filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--pk-secondary, #1F2937);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.pk-filter-item:hover {
    color: var(--pk-primary, #B91C1C);
}

.pk-filter-checkbox {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 3px;
    background-color: #fff;
    transition: all 0.3s;
}

.pk-filter-item:hover .pk-filter-checkbox {
    border-color: var(--pk-primary, #B91C1C);
    background-color: var(--pk-primary-light, #FEE2E2);
}

.pk-filter-label {
    flex: 1;
}

/* Color filter item */
.pk-filter-item-color {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pk-filter-color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
}

.pk-filtered-by {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pk-gray-light, #E5E7EB);
}

.pk-filtered-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--pk-dark, #111827);
}

.pk-filtered-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pk-filtered-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--pk-primary-light, #FEE2E2);
    color: var(--pk-primary, #B91C1C);
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}

.pk-filtered-tag:hover {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
}

.pk-remove-filter-btn {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pk-remove-filter-btn:hover {
    background-color: var(--pk-primary-dark, #991B1B);
}

/* Pagination disabled */
.pk-pagination-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .pk-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    /* Grid item max-width override - dış CSS çakışmasını engelle */
    .pk-products-grid > li,
    .pk-products-grid > li.product.col {
        max-width: none !important;
        flex: none !important;
        width: 100% !important;
    }
    #primary.content-area {
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-width: 0;
        overflow-x: hidden;
        width: 100%;
    }
    .pk-products-content {
        padding: 0.75rem;
        border-radius: 8px;
    }
    .pk-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .pk-filters-sidebar {
        position: static;
    }
    .pk-product-card-inner {
        border-radius: 6px;
    }
    .pk-product-image {
        height: 160px;
    }
    .pk-product-content {
        padding: 0.6rem;
    }
    .pk-product-title {
        font-size: 0.8rem;
    }
    .pk-product-meta {
        padding-top: 0.5rem;
        gap: 0.4rem;
        flex-direction: column;
        align-items: stretch;
    }
    .pk-product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .pk-price {
        font-size: 0.9rem;
    }
    .pk-add-to-cart {
        font-size: 0.72rem;
        padding: 0.3rem 0.5rem;
        height: 30px;
        width: 100%;
        justify-content: center;
    }
    .pk-quantity-selector {
        display: none;
    }
}

@media (max-width: 480px) {
    .pk-products-content {
        padding: 0.5rem;
    }
    .pk-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
}

/* Pagination - kitaplar.html stili */
.pk-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.pk-pagination .page-item {
    margin: 0;
}

.pk-pagination .page-link {
    background-color: var(--pk-light, #F9FAFB);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pk-dark, #111827);
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.pk-pagination .page-link:hover {
    background-color: var(--pk-gray-light, #E5E7EB);
}

.pk-pagination .page-item.currentpage .page-link {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    border-color: var(--pk-primary, #B91C1C);
}

/* Related products section */
.related-products {
    margin-top: 3rem;
}

.related-products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.related-products .section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.related-products .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.related-products .view-all {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    font-size: 0.85rem;
}

.related-products .view-all:hover {
    color: var(--primary-dark);
    background-color: var(--primary-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(185, 28, 28, 0.1);
    border-color: var(--primary-light);
}

.product-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--primary);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.product-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-author {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.product-card-price {
    display: flex;
    flex-direction: column;
}

.product-card-current-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.product-card-old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.8rem;
}

.add-to-cart-sm {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.add-to-cart-sm:hover {
    background-color: var(--primary-dark);
}

/* Product Tabs - Açıklama, Detaylar, Değerlendirmeler, Kargo & İade */
.product-detail-page .product-tabs {
    margin-bottom: 2rem;
}

.product-detail-page .product-tabs .tabs-header {
    display: flex;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.product-detail-page .product-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.product-detail-page .product-tabs .tab-btn:hover {
    color: var(--primary);
}

.product-detail-page .product-tabs .tab-btn.active {
    color: var(--primary);
}

.product-detail-page .product-tabs .tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.product-detail-page .product-tabs .tab-content {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.product-detail-page .product-tabs .tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-detail-page .product-tabs .description-content {
    line-height: 1.7;
    color: var(--secondary-light);
}

.product-detail-page .product-tabs .description-content h3 {
    font-size: 1.2rem;
    margin: 1.25rem 0 0.75rem;
    color: var(--dark);
}

.product-detail-page .product-tabs .description-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.product-detail-page .product-tabs .description-content li {
    margin-bottom: 0.5rem;
}

/* Collections / authors list page (collection/all) */
.collection-list-page {
    padding-bottom: 3rem;
}

.collection-list-page .collections-toolbar {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
}

.collections-toolbar .collections-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.collections-search-input {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.collections-search-input:focus {
    border-color: var(--pk-primary, #B91C1C);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.collections-search-btn {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.collections-search-btn:hover {
    background-color: var(--pk-primary-dark, #991B1B);
}

.collections-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.collections-filter .filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.collections-filter .filter-btn {
    background-color: var(--pk-light, #F9FAFB);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--pk-secondary, #1F2937);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.collections-filter .filter-btn:hover {
    background-color: var(--pk-gray-light, #E5E7EB);
}

.collections-filter .filter-btn.active {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
    border-color: var(--pk-primary, #B91C1C);
}

.collections-count {
    font-size: 0.9rem;
    color: var(--pk-gray, #6B7280);
}

.collections-count strong {
    color: var(--pk-primary, #B91C1C);
}

/* Alphabet navigation */
.collection-list-page .alphabet-nav {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
}

.alphabet-nav .alphabet-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--pk-dark, #111827);
    margin-bottom: 1rem;
}

.alphabet-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.alphabet-letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: var(--pk-light, #F9FAFB);
    color: var(--pk-secondary, #1F2937);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.alphabet-letter:hover {
    background-color: var(--pk-gray-light, #E5E7EB);
}

.alphabet-letter.active {
    background-color: var(--pk-primary, #B91C1C);
    color: #ffffff;
}

/* Popular authors section (collection/all) */
.popular-authors-section {
    margin-bottom: 3rem;
}

.popular-authors-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.popular-authors-section .section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pk-dark, #111827);
    position: relative;
    padding-bottom: 0.75rem;
}

.popular-authors-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--pk-primary, #B91C1C);
    border-radius: 2px;
}

.popular-authors-section .view-all {
    color: var(--pk-primary, #B91C1C);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border: 1px solid var(--pk-primary-light, #FEE2E2);
    border-radius: 6px;
    font-size: 0.85rem;
}

.popular-authors-section .view-all:hover {
    color: var(--pk-primary-dark, #991B1B);
    background-color: var(--pk-primary-light, #FEE2E2);
}

.popular-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.popular-author-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    transition: all 0.3s ease;
    text-decoration: none;
}

.popular-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(185, 28, 28, 0.1);
    border-color: var(--pk-primary-light, #FEE2E2);
}

.popular-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pk-primary-light, #FEE2E2);
}

.popular-author-info {
    flex: 1;
}

.popular-author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--pk-dark, #111827);
    margin-bottom: 0.25rem;
}

/* Featured authors section */
.featured-authors-section {
    background: linear-gradient(135deg, var(--pk-primary-light, #FEE2E2), #fff5f5);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-authors-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.featured-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--pk-primary, #B91C1C);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.featured-subtitle {
    color: var(--pk-secondary, #1F2937);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.featured-authors-slider {
    position: relative;
    z-index: 2;
}

.featured-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-author-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.featured-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(185, 28, 28, 0.1);
}

.featured-author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--pk-primary-light, #FEE2E2);
}

.featured-author-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--pk-dark, #111827);
    margin-bottom: 0.5rem;
}

.featured-author-bio {
    color: var(--pk-gray, #6B7280);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Collections grid */
.all-collections-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.all-collections-section .section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pk-dark, #111827);
    position: relative;
    padding-bottom: 0.75rem;
}

.all-collections-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--pk-primary, #B91C1C);
    border-radius: 2px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.collection-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(185, 28, 28, 0.1);
    border-color: var(--pk-primary-light, #FEE2E2);
}

.collection-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--pk-primary-light, #FEE2E2);
}

.collection-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--pk-dark, #111827);
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .collections-toolbar .collections-search {
        flex-direction: column;
    }

    .collections-search-btn {
        width: 100%;
        justify-content: center;
    }

    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .alphabet-letter {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -------------------------------------------------------------------------- */
/* Quick view modal — PuntoKitap (katalog / ürün kartı ile uyumlu)            */
/* -------------------------------------------------------------------------- */

#ModalQuickView .pk-quickview-modal-content {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
    overflow: hidden;
}

#ModalQuickView .pk-quickview-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--pk-light, #F9FAFB);
    border-bottom: 1px solid var(--pk-gray-light, #E5E7EB);
}

#ModalQuickView .pk-quickview-modal-title {
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pk-dark, #111827);
    margin: 0;
    flex: 1;
    min-width: 0;
}

#ModalQuickView .pk-quickview-modal-close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--pk-gray, #6B7280);
    font-size: 1.5rem;
    line-height: 1;
    opacity: 1;
    transition: color 0.2s, background-color 0.2s;
}

#ModalQuickView .pk-quickview-modal-close:hover,
#ModalQuickView .pk-quickview-modal-close:focus {
    color: var(--pk-primary, #B91C1C);
    background-color: var(--pk-primary-light, #FEE2E2);
    outline: none;
}

#ModalQuickView .pk-quickview-modal-body {
    padding: 1.25rem 1.25rem 1.5rem;
    max-height: min(85vh, 720px);
    overflow-y: auto;
}

#ModalQuickView .pk-quickview-modal-body::-webkit-scrollbar {
    width: 6px;
}

#ModalQuickView .pk-quickview-modal-body::-webkit-scrollbar-thumb {
    background: var(--pk-gray-light, #D1D5DB);
    border-radius: 6px;
}

#ModalQuickView .pk-quickview .pk-quickview-picture {
    text-align: center;
    background: var(--pk-gray-light, #F3F4F6);
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

#ModalQuickView .pk-quickview .pk-quickview-picture img#main_qv_img {
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

#ModalQuickView .pk-quickview .pk-quickview-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 0;
}

#ModalQuickView .pk-quickview .pk-quickview-thumb {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--pk-gray-light, #E5E7EB);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0;
}

#ModalQuickView .pk-quickview .pk-quickview-thumb:hover {
    border-color: var(--pk-primary-light, #FECACA);
    box-shadow: 0 0 0 1px var(--pk-primary, #B91C1C);
}

#ModalQuickView .pk-quickview-overview .prices {
    margin-bottom: 1rem;
}

#ModalQuickView .pk-quickview-overview .actual-price,
#ModalQuickView .pk-quickview-overview .your-price .actual-price,
#ModalQuickView .pk-quickview-overview strong.actual-price {
    color: var(--pk-primary, #B91C1C) !important;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

#ModalQuickView .pk-quickview-overview .old-price {
    color: var(--pk-gray, #9CA3AF);
    font-size: 0.95rem;
}

#ModalQuickView .pk-quickview-overview .stock .col-form-label {
    font-weight: 600;
    color: var(--pk-dark, #374151);
    font-size: 0.875rem;
}

#ModalQuickView .pk-quickview-overview .stock .value {
    color: var(--pk-gray, #6B7280);
    font-size: 0.875rem;
}

#ModalQuickView .pk-quickview .pk-quickview-collapse-btn.collapse-button {
    width: 100%;
    margin: 0 0 0.5rem 0;
    padding: 0.65rem 1rem;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pk-dark, #111827);
    background: #fff;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 8px;
    text-align: left;
    box-shadow: none;
    transition: border-color 0.2s, background-color 0.2s;
}

#ModalQuickView .pk-quickview .pk-quickview-collapse-btn.collapse-button:hover,
#ModalQuickView .pk-quickview .pk-quickview-collapse-btn.collapse-button:focus {
    border-color: var(--pk-primary-light, #FECACA);
    background: var(--pk-light, #F9FAFB);
    color: var(--pk-primary, #B91C1C);
}

#ModalQuickView .pk-quickview-overview .collapse-panel {
    padding: 0.25rem 0 1rem 0.25rem;
}

#ModalQuickView .pk-quickview .attributes {
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

#ModalQuickView .pk-quickview .attributes .attribute-name {
    color: var(--pk-dark, #374151);
    font-weight: 600;
    font-size: 0.875rem;
}

#ModalQuickView .pk-quickview .attributes .text-prompt {
    color: var(--pk-gray, #6B7280);
    font-size: 0.8125rem;
}

#ModalQuickView .pk-quickview .quick-view-overview .main-button.btn-info {
    background-color: var(--pk-primary, #B91C1C) !important;
    border-color: var(--pk-primary, #B91C1C) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    min-height: 44px;
    transition: background-color 0.2s, border-color 0.2s;
}

#ModalQuickView .pk-quickview .quick-view-overview .main-button.btn-info:hover,
#ModalQuickView .pk-quickview .quick-view-overview .main-button.btn-info:focus {
    background-color: var(--pk-primary-dark, #991B1B) !important;
    border-color: var(--pk-primary-dark, #991B1B) !important;
}

#ModalQuickView .pk-quickview .add-to-wishlist-button.btn-secondary,
#ModalQuickView .pk-quickview .add-to-compare-list-button.btn-secondary {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    color: var(--pk-dark, #374151);
    background: #fff;
}

#ModalQuickView .pk-quickview .add-to-wishlist-button.btn-secondary:hover,
#ModalQuickView .pk-quickview .add-to-compare-list-button.btn-secondary:hover {
    border-color: var(--pk-primary, #B91C1C);
    color: var(--pk-primary, #B91C1C);
    background: var(--pk-primary-light, #FEE2E2);
}

#ModalQuickView .pk-quickview .product-add-to-cart {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

#ModalQuickView .pk-quickview .product-add-to-cart > .qty-input.form-control,
#ModalQuickView .pk-quickview .product-add-to-cart > select.qty-dropdown {
    flex: 0 0 auto !important;
    width: 72px;
    min-width: 72px !important;
    max-width: 100px;
    border-radius: 8px;
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    height: 44px;
}

#ModalQuickView .pk-quickview .product-add-to-cart .input-group-append {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
}

#ModalQuickView .pk-quickview .product-add-to-cart .input-group-append .btn {
    width: 100%;
    min-width: 140px;
    white-space: nowrap;
}

#ModalQuickView .pk-quickview .associatedItem.card {
    border: 1px solid var(--pk-gray-light, #E5E7EB);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
}

#ModalQuickView .pk-quickview .associatedItem .card-body.overview {
    padding: 1rem 1.125rem;
}

#ModalQuickView .pk-quickview .linked-product-grid {
    border-top: 1px solid var(--pk-gray-light, #E5E7EB);
    margin-top: 1rem;
    padding-top: 1rem;
}

#ModalQuickView .pk-quickview .qv-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--pk-gray, #4B5563);
}

#ModalQuickView .pk-quickview img {
    background-color: var(--pk-gray-light, #F3F4F6);
}

/* Koyu tema: #app veya modal kökü (teleport body) */
#app[dark-theme="true"] #ModalQuickView .pk-quickview-modal-content,
#ModalQuickView[dark-theme="true"] .pk-quickview-modal-content {
    background: #1f2937;
    border-color: #374151;
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview-modal-header,
#ModalQuickView[dark-theme="true"] .pk-quickview-modal-header {
    background: #111827;
    border-bottom-color: #374151;
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview-modal-title,
#ModalQuickView[dark-theme="true"] .pk-quickview-modal-title {
    color: #f9fafb;
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview-modal-close,
#ModalQuickView[dark-theme="true"] .pk-quickview-modal-close {
    color: #9ca3af;
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview-modal-close:hover,
#app[dark-theme="true"] #ModalQuickView .pk-quickview-modal-close:focus,
#ModalQuickView[dark-theme="true"] .pk-quickview-modal-close:hover,
#ModalQuickView[dark-theme="true"] .pk-quickview-modal-close:focus {
    color: #fecaca;
    background-color: rgba(185, 28, 28, 0.25);
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview .pk-quickview-collapse-btn.collapse-button,
#ModalQuickView[dark-theme="true"] .pk-quickview .pk-quickview-collapse-btn.collapse-button {
    background: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview .pk-quickview-collapse-btn.collapse-button:hover,
#ModalQuickView[dark-theme="true"] .pk-quickview .pk-quickview-collapse-btn.collapse-button:hover {
    border-color: #b91c1c;
    color: #fecaca;
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview .attributes,
#ModalQuickView[dark-theme="true"] .pk-quickview .attributes {
    background: #111827;
    border-color: #4b5563;
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview .pk-quickview-picture,
#ModalQuickView[dark-theme="true"] .pk-quickview .pk-quickview-picture {
    background: #111827;
    border-color: #4b5563;
}

#app[dark-theme="true"] #ModalQuickView .pk-quickview-overview .stock .col-form-label,
#app[dark-theme="true"] #ModalQuickView .pk-quickview .qv-description,
#ModalQuickView[dark-theme="true"] .pk-quickview-overview .stock .col-form-label,
#ModalQuickView[dark-theme="true"] .pk-quickview .qv-description {
    color: #d1d5db;
}

@media (max-width: 991px) {
    #ModalQuickView .pk-quickview-modal-body {
        max-height: min(90vh, 640px);
        padding: 1rem;
    }

    #ModalQuickView .pk-quickview .pk-quickview-picture img#main_qv_img {
        max-height: 280px;
    }
}
