/* BUY PAGE (/buy/{slug}). Logical properties, so the same file serves Arabic (RTL). */
.buy-page { padding: 48px 0 96px; background: #fff; }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.buy-main { min-width: 0; }

.buy-gallery__stage { position: relative; border-radius: 12px; overflow: hidden; background: #f4f6f8; aspect-ratio: 16 / 10; }
.buy-gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.buy-gallery__img.is-active { opacity: 1; }
.buy-gallery__nav { position: absolute; inset-inline: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.buy-gallery__nav span { background: #fff; border-radius: 99px; padding: 6px 14px; font-size: .8rem; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.buy-gallery__nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.buy-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.buy-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 3 / 2; }
.buy-gallery__thumbs button.is-active { border-color: #fbad26; }
.buy-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.buy-h2 { font-size: 2rem; font-weight: 300; margin: 40px 0 16px; color: var(--text-primary); }
.buy-overview p { font-size: .95rem; line-height: 1.8; color: #444; margin: 0 0 12px; }
.buy-link { background: none; border: 0; padding: 0; color: #0063a3; text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }

.buy-acc { border-top: 1px solid var(--border-color); padding: 4px 0; margin-top: 24px; }
.buy-acc:last-of-type { border-bottom: 1px solid var(--border-color); }
.buy-acc summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.buy-acc summary::-webkit-details-marker { display: none; }
.buy-acc summary::after { content: '+'; width: 30px; height: 30px; border: 1px solid #252a2e; border-radius: 50%; display: grid; place-items: center; flex: none; margin-inline-start: 16px; }
.buy-acc[open] summary::after { content: '−'; }
.buy-acc p, .buy-acc li { font-size: .92rem; line-height: 1.7; color: #444; }
.buy-acc ul { margin: 0 0 16px; padding-inline-start: 20px; }
.buy-acc__lead { font-weight: 600; margin: 0 0 8px; }
.buy-detail { margin-top: 24px; font-size: .92rem; }

.buy-box { position: sticky; top: 24px; }
.buy-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #0063a3; margin: 0 0 4px; }
.buy-title { font-size: 2rem; font-weight: 300; margin: 0 0 20px; color: var(--text-primary); }
.buy-label { font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: 20px 0 8px; color: #252a2e; }
.buy-plan { display: flex; gap: 14px; padding: 18px 20px; border: 2px solid #0063a3; border-radius: 8px; cursor: default; }
.buy-plan input { margin-top: 4px; accent-color: #0063a3; }
.buy-plan > span { display: flex; flex-direction: column; gap: 4px; }
.buy-plan__name { font-size: .9rem; }
.buy-plan__price strong { font-size: 1.3rem; }
.buy-plan__price small { font-size: .7rem; }
.buy-plan__price s { color: #888; margin-inline-end: 4px; }
.buy-plan__per { font-size: .75rem; color: #666; }
.buy-plan__sale { font-size: .75rem; color: #b45309; font-weight: 600; }

.buy-qty { display: flex; align-items: center; gap: 14px; font-size: .85rem; font-weight: 600; }
.buy-qty__box { display: flex; border: 1px solid #252a2e; border-radius: 8px; overflow: hidden; }
.buy-qty__box button { width: 40px; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; }
.buy-qty__box input { width: 56px; text-align: center; border: 0; font: inherit; -moz-appearance: textfield; }
.buy-qty__box input::-webkit-outer-spin-button, .buy-qty__box input::-webkit-inner-spin-button { -webkit-appearance: none; }

.buy-cta { display: block; width: 100%; text-align: center; margin-top: 24px; }
.buy-box .buy-reseller { margin-top: 16px; }
.buy-help { font-size: .85rem; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border-color); }
.buy-help a { color: #0063a3; }
.buy-pay { font-size: .75rem; color: #666; line-height: 1.6; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border-color); }

@media (max-width: 900px) {
  .buy-grid { grid-template-columns: 1fr; gap: 32px; }
  .buy-box { position: static; order: -1; }
  .buy-page { padding-top: 24px; }
}
