/* ==========================================================================
   Single product — AutoParts custom layout (RTL, WhatsApp-first)
   ========================================================================== */
.ap-sp { background: var(--ap-cream, #f8f6f1); color: var(--ap-text, #0E1014); font-family: var(--ap-font); padding-bottom: clamp(48px, 7vw, 96px); }
.ap-sp__container { max-width: var(--ap-container, 1280px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* breadcrumb */
.ap-sp-crumbs { padding: 20px 0 8px; }
.ap-sp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--ap-text-soft, #767b83); }
.ap-sp-crumbs li { display: flex; align-items: center; gap: 6px; }
.ap-sp-crumbs li:not(:last-child)::after { content: "‹"; color: var(--ap-silver-2, #a8acb1); }
.ap-sp-crumbs a { color: var(--ap-text-muted, #585d65); text-decoration: none; }
.ap-sp-crumbs a:hover { color: var(--ap-red, #CD1719); }
.ap-sp-crumbs [aria-current="page"] { color: var(--ap-text, #0E1014); font-weight: 700; }

/* top: gallery + summary */
.ap-sp__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 16px; }
@media (max-width: 900px) { .ap-sp__top { grid-template-columns: 1fr; } }

/* gallery */
.ap-sp-gallery__main { margin: 0; background: var(--ap-paper, #fff); border: 1px solid var(--ap-line, #e7e2d6); border-radius: var(--ap-r, 18px); overflow: hidden; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; box-shadow: var(--ap-shadow-2); }
.ap-sp-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.ap-sp-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ap-sp-thumb { padding: 0; border: 2px solid var(--ap-line, #e7e2d6); border-radius: var(--ap-r-sm, 10px); overflow: hidden; background: #fff; cursor: pointer; width: 72px; height: 72px; transition: border-color .15s; }
.ap-sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-sp-thumb.is-active, .ap-sp-thumb:hover { border-color: var(--ap-red, #CD1719); }

/* summary */
.ap-sp-summary { display: flex; flex-direction: column; gap: 16px; }
.ap-sp-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; font-weight: 800; margin: 0; color: var(--ap-ink, #0E1014); }
.ap-sp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ap-sp-chip { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: var(--ap-r-pill, 999px); background: var(--ap-cream-2, #f1ede4); color: var(--ap-text-muted, #585d65); border: 1px solid var(--ap-line, #e7e2d6); }
.ap-sp-chip--brand { background: var(--ap-ink, #0E1014); color: #fff; border-color: var(--ap-ink); }
.ap-sp-fab { font-size: 14px; color: var(--ap-text-muted, #585d65); margin: 0; }
.ap-sp-fab span { font-weight: 700; color: var(--ap-text, #0E1014); }

/* price */
.ap-sp-price { display: flex; align-items: baseline; gap: 8px; padding: 14px 0 2px; border-top: 1px dashed var(--ap-line, #e7e2d6); }
.ap-sp-price__num { font-family: var(--ap-font-num); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--ap-red, #CD1719); }
.ap-sp-price__cur { font-size: 16px; font-weight: 700; color: var(--ap-text-muted, #585d65); }
.ap-sp-price__req { color: var(--ap-text-muted, #585d65); font-size: 20px; }
.ap-sp-price.is-selected .ap-sp-price__num { color: var(--ap-ink, #0E1014); }

/* order (variation + whatsapp) */
.ap-sp-order { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ap-sp-order__label { font-size: 14px; font-weight: 700; color: var(--ap-text, #0E1014); }
.ap-sp-select { appearance: none; -webkit-appearance: none; width: 100%; font-family: var(--ap-font); font-size: 15px; padding: 13px 16px; border-radius: var(--ap-r-sm, 10px); border: 1.5px solid var(--ap-charcoal, #2a3038); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23585d65' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 16px center; cursor: pointer; }
.ap-sp-select:focus { outline: none; border-color: var(--ap-red, #CD1719); }
.ap-btn--wa-lg { width: 100%; justify-content: center; font-size: 17px; padding: 16px 24px; border-radius: var(--ap-r, 18px); box-shadow: 0 8px 24px -8px rgba(37,211,102,.5); }

/* trust */
.ap-sp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ap-line, #e7e2d6); font-size: 13.5px; color: var(--ap-text-muted, #585d65); }
.ap-sp-trust li { display: flex; align-items: center; gap: 6px; }
.ap-sp-trust li::before { content: "✓"; color: var(--ap-wa, #25D366); font-weight: 800; }

/* description (Koray content) */
.ap-sp-desc { margin-top: clamp(36px, 5vw, 64px); }
.ap-sp-desc__inner { background: var(--ap-paper, #fff); border: 1px solid var(--ap-line, #e7e2d6); border-radius: var(--ap-r-lg, 28px); padding: clamp(22px, 3.5vw, 44px); box-shadow: var(--ap-shadow-1); line-height: 1.95; font-size: 16.5px; color: #23282e; }
.ap-sp-desc__inner > *:first-child { margin-top: 0; }
.ap-sp-desc__inner h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--ap-ink, #0E1014); margin: 2em 0 .6em; padding-inline-start: 14px; border-inline-start: 4px solid var(--ap-red, #CD1719); line-height: 1.35; }
.ap-sp-desc__inner h3 { font-size: 19px; font-weight: 700; margin: 1.6em 0 .5em; color: var(--ap-ink); }
.ap-sp-desc__inner p { margin: 0 0 1.1em; }
.ap-sp-desc__inner a { color: var(--ap-red, #CD1719); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(205,23,25,.25); }
.ap-sp-desc__inner a:hover { border-bottom-color: var(--ap-red); }
.ap-sp-desc__inner ul, .ap-sp-desc__inner ol { margin: 0 0 1.2em; padding-inline-start: 1.4em; }
.ap-sp-desc__inner li { margin-bottom: .5em; }
.ap-sp-desc__inner table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.ap-sp-desc__inner th, .ap-sp-desc__inner td { border: 1px solid var(--ap-line, #e7e2d6); padding: 11px 14px; text-align: start; }
.ap-sp-desc__inner th { background: var(--ap-cream-2, #f1ede4); font-weight: 700; color: var(--ap-ink); }
.ap-sp-desc__inner tr:nth-child(even) td { background: #faf9f5; }

/* related */
.ap-sp-related { margin-top: clamp(40px, 6vw, 72px); }
.ap-sp-related .ap-h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; margin: 0 0 20px; color: var(--ap-ink, #0E1014); }
.ap-product-card__price { font-family: var(--ap-font-num); font-weight: 800; color: var(--ap-red, #CD1719); margin-top: 6px; font-size: 15px; }
