/* PIR Nashr — PHP versiyasi uchun qo'shimcha stillar (asosiy dizayn style.css da) */

/* Til tanlash */
.lang-form { display: inline-flex; align-items: center; gap: 6px; }
.lang-form select { cursor: pointer; font-weight: 600; }
.footer-langs a { margin-left: 12px; }
.footer-langs a.active { color: var(--teal); font-weight: 600; }
.drawer-note a { margin-right: 10px; }
.drawer-note a.active { color: var(--teal); font-weight: 700; }

/* Miqdor maydoni */
.quantity input[type="number"] { width: 40px; text-align: center; font-size: 12px; font-weight: 600; border: 0; border-inline: 1px solid var(--line); line-height: 22px; height: 27px; padding: 0; -moz-appearance: textfield; appearance: textfield; background: #fff; color: var(--ink); }
.quantity input[type="number"]::-webkit-outer-spin-button, .quantity input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity button:disabled { opacity: .4; }

/* Galereya panellari */
.gallery-pane { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 482px; position: relative; }
.gallery-pane[hidden] { display: none; }
.gallery-pane > img { width: 67%; height: 360px; object-fit: contain; filter: drop-shadow(6px 12px 10px #092d482b); }
.gallery-pane > .cover-design { height: 350px; width: 235px; }
.gallery-pane > .cover-design strong { font-size: 38px; }
.gallery-pane .book-preview { max-width: 520px; }
.gallery-thumb .cover-design { height: 100%; width: auto; aspect-ratio: 3/4; padding: 6px; }
.gallery-thumb .cover-design strong { font-size: 9px; }
.gallery-thumb .cover-design small, .gallery-thumb .cover-design span { display: none; }

/* Format tanlash (label + radio) */
.format-card { user-select: none; }
.format-card:has(input:checked) { border-color: var(--teal); background: #f1f9fb; box-shadow: 0 0 0 1px #006c8015; }
.format-card:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Buyurtma tablar (havolalar) */
.order-tabs > a { background: #fff; border: 0; border-bottom: 2px solid transparent; color: #426076; padding: 12px 15px; font-size: 12px; white-space: nowrap; display: inline-block; }
.order-tabs > a.active { border-bottom-color: var(--teal); color: var(--teal); font-weight: 600; }
.order-meta .badge { margin-left: 4px; }

/* Kabinet: chiqish tugmasi formasi */
.account-nav form { display: contents; }
.account-nav > form > button { display: flex; align-items: center; gap: 15px; background: transparent; border: 0; border-radius: 6px; padding: 13px 14px; font-size: 14px; color: var(--red); text-align: left; width: 100%; }
.account-nav > form > button .icon { width: 23px; height: 23px; color: var(--red); }
.account-nav > form > button:hover { background: #fdf0f0; }

/* Muallif fotosi */
.author-photo { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; margin: 0 auto 17px; border: 6px solid #f5f8f8; }
.author-bio .author-photo { margin: 0; flex: 0 0 auto; }

/* Statik sahifa matni */
.page-body h2, .document-content h2 { margin: 22px 0 10px; font-size: 22px; }
.page-body h3, .document-content h3 { margin: 18px 0 8px; }
.page-body p, .document-content p { margin: 0 0 12px; line-height: 1.7; }
.page-body ul, .document-content ul, .document-content ol { margin: 0 0 14px 20px; list-style: disc; }
.document-content ol { list-style: decimal; }
.document-content li { margin-bottom: 6px; }
.document-content .btn { margin-top: 18px; }
.book-contents { white-space: pre-line; line-height: 1.8; }

/* To'lov logolari (matnli) */
.pay-logo { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 32px; padding: 0 8px; border-radius: 6px; font: 700 13px Arial, sans-serif; letter-spacing: .3px; color: #fff; flex: 0 0 auto; }
.pay-click { background: #00a3e0; }
.pay-payme { background: #00cccc; }
.payment-choices .choice-card { align-items: center; }

/* Holat banneri */
.success-hero.pending .success-icon { background: #fff0e7; color: var(--peach-dark); }
.success-hero.failed .success-icon { background: #fde7e7; color: var(--red); }
.success-copy .btn { margin-top: 12px; }

/* Paginatsiya havolalari */
.pagination a[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* Filtr formasi */
#desktop-filters form, #mobile-filters form { display: block; }
.filters noscript .btn { margin-top: 10px; }

/* Review */
.review-head small { margin-left: auto; font-size: 11px; }
.checkout-step a { color: inherit; }
.address-actions form { display: inline; }
.address-actions .link { margin-right: 10px; }

/* Toast: link */
.toast a { white-space: nowrap; }

/* Kichik ekranlar */
@media (max-width: 600px) {
  .lang-form select { font-size: 11px; }
  .pay-logo { min-width: 42px; height: 28px; font-size: 12px; }
}
@media print {
  .lang-form, .footer-langs, .tracking-buttons, .mobile-bottom-nav { display: none !important; }
}
