/*
 * G70 — Coming Products page CSS
 * Scope: .page-coming-products (added via mu-plugin body_class)
 * All classes prefix `.cp-` to avoid colliding with existing theme CSS.
 */

.page-coming-products { background: #f9fafb; }

.cp-page { padding-bottom: 64px; }

/* ============ Reset + Base ============ */
.cp-page *,
.cp-page *::before,
.cp-page *::after { box-sizing: border-box; }
.cp-page h1,
.cp-page h2,
.cp-page h3 { margin: 0; font-weight: 600; }
.cp-page img { max-width: 100%; display: block; }
.cp-page a { color: inherit; text-decoration: none; }
.cp-page ul,
.cp-page ol { margin: 0; padding: 0; list-style: none; }
.cp-page button { font: inherit; cursor: pointer; }

:root { --centi-cp-primary: #be8c4c; --centi-cp-primary-dark: #9b6f37; --centi-cp-bg: #f9fafb; --centi-cp-surface: #ffffff; --centi-cp-border: #e5e7eb; --centi-cp-text: #1f2937; --centi-cp-muted: #6b7280; --centi-cp-coming: #0f766e; --centi-cp-coming-bg: #f0fdfa; --cp-sidebar-w: 280px; --cp-max-w: 1180px; }

/* ============ Page header banner ============ */
.cp-page-header { background: linear-gradient(135deg, #fff7ed 0%, #f5f5f4 100%); padding: 48px 24px 36px; border-bottom: 1px solid var(--centi-cp-border); }
.cp-page-header__inner { max-width: var(--cp-max-w); margin: 0 auto; }
.cp-page-header__title { font-size: 38px; letter-spacing: -0.5px; color: var(--centi-cp-text); margin: 12px 0 8px; }
.cp-page-header__subtitle { font-size: 16px; color: var(--centi-cp-muted); margin: 0 0 16px; max-width: 760px; }
.cp-meta-row { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--centi-cp-text); }
.cp-meta-row strong { color: var(--centi-cp-primary-dark); font-size: 18px; font-weight: 700; margin-right: 6px; }
.cp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--centi-cp-coming-bg); color: var(--centi-cp-coming); font-size: 12px; font-weight: 600; border-radius: 100px; letter-spacing: 0.4px; text-transform: uppercase; }

/* ============ Two-column layout ============ */
.cp-layout { display: grid; grid-template-columns: var(--cp-sidebar-w) 1fr; gap: 32px; max-width: var(--cp-max-w); margin: 0 auto; padding: 32px 24px 24px; }

/* ============ Sticky sidebar ============ */
.cp-sidebar { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; padding: 20px 12px; background: var(--centi-cp-surface); border: 1px solid var(--centi-cp-border); border-radius: 8px; }
.cp-sidebar__title { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--centi-cp-muted); margin: 0 4px 8px; }
.cp-sidebar__heading { font-size: 16px; font-weight: 600; padding: 0 4px 12px; border-bottom: 1px solid var(--centi-cp-border); margin: 0 0 12px; }

.cp-nav { display: flex; flex-direction: column; gap: 2px; }
.cp-nav li { margin: 0; }
.cp-nav li > a { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--centi-cp-text); transition: background .15s, color .15s; border-left: 3px solid transparent; }
.cp-nav li > a:hover { background: #fff7ed; }
.cp-nav li > a.is-active { background: #fff7ed; color: var(--centi-cp-primary-dark); border-left-color: var(--centi-cp-primary); font-weight: 600; }
.cp-nav__thumb { width: 36px; height: 36px; border-radius: 6px; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.cp-nav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cp-nav__thumb-fallback { font-size: 12px; font-weight: 600; color: var(--centi-cp-muted); font-family: ui-monospace, monospace; }
.cp-nav__inner { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cp-nav__sku { font-size: 11px; font-weight: 600; color: var(--centi-cp-muted); font-family: ui-monospace, monospace; letter-spacing: 0.4px; }
.cp-nav__title { font-size: 12px; color: var(--centi-cp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ Product article ============ */
.cp-main { min-width: 0; }
.cp-product { background: var(--centi-cp-surface); border: 1px solid var(--centi-cp-border); border-radius: 10px; padding: 28px 28px 32px; margin-bottom: 28px; scroll-margin-top: 80px; }
.cp-product__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--centi-cp-border); }
.cp-product__sku { font-size: 12px; font-weight: 600; color: var(--centi-cp-primary-dark); letter-spacing: 1.2px; text-transform: uppercase; font-family: ui-monospace, monospace; }
.cp-product__title { font-size: 22px; color: var(--centi-cp-text); margin-top: 4px; line-height: 1.3; }
.cp-product__short { color: var(--centi-cp-muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }

.cp-product__badges { display: flex; gap: 8px; flex-shrink: 0; }

/* ============ Gallery ============ */
.cp-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; margin-bottom: 24px; }
.cp-gallery__main { position: relative; background: #f4f4f5; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.cp-gallery__main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.cp-gallery__placeholder { color: var(--centi-cp-muted); font-size: 13px; }
/* G72 — REMOVED `.cp-gallery__zoom` button styles + :hover transform: scale(1.05).
 * The button was deleted from template-coming-products.php too.
 * Cursor on main image stays `zoom-in`; click still opens lightbox via .js-main-img handler.
 */

.cp-gallery__thumbs { display: flex; flex-direction: column; gap: 8px; }
.cp-thumb { width: 96px; height: 96px; background: #f4f4f5; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; position: relative; transition: border-color .15s, transform .15s; }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cp-thumb__label { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px; font-weight: 600; text-align: center; padding: 2px 0; background: rgba(0, 0, 0, 0.55); color: #fff; letter-spacing: 0.5px; opacity: 0; transition: opacity .15s; }
.cp-thumb:hover .cp-thumb__label,
.cp-thumb.is-active .cp-thumb__label { opacity: 1; }
.cp-thumb.is-active { border-color: var(--centi-cp-primary); }
.cp-thumb:hover { border-color: var(--centi-cp-primary); }
.cp-thumb:focus-visible { outline: 2px solid var(--centi-cp-primary); outline-offset: 2px; }

/* ============ Section titles ============ */
.cp-section-title { font-size: 16px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--centi-cp-text); padding: 8px 12px; background: #fff7ed; border-left: 3px solid var(--centi-cp-primary); border-radius: 4px; margin: 28px 0 14px; font-weight: 600; }

/* ============ KSP list ============ */
.cp-ksp { display: grid; gap: 8px; margin: 0 0 16px; }
.cp-ksp li { padding: 10px 14px; border: 1px solid var(--centi-cp-border); border-radius: 6px; background: #fafafa; font-size: 14px; line-height: 1.5; }
.cp-ksp li::before { content: '\2713'; color: var(--centi-cp-coming); font-weight: 700; margin-right: 8px; }

/* ============ Spec table ============ */
.cp-spec-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.cp-spec-table tr { border-bottom: 1px solid var(--centi-cp-border); }
.cp-spec-table tr:last-child { border-bottom: 0; }
.cp-spec-table th { text-align: left; padding: 12px 14px; width: 36%; background: #fafafa; color: var(--centi-cp-muted); font-weight: 500; vertical-align: top; }
.cp-spec-table td { padding: 12px 14px; color: var(--centi-cp-text); vertical-align: top; }
.cp-spec-note { display: inline-block; margin-left: 6px; padding: 1px 6px; background: #fff7ed; color: var(--centi-cp-primary-dark); font-size: 11px; font-style: italic; border-radius: 4px; }

/* ============ Detail long-form ============ */
.cp-detail { font-size: 14px; line-height: 1.75; color: var(--centi-cp-text); }
.cp-detail p { margin: 0 0 14px; }

/* ============ CTA buttons ============ */
.cp-product__cta-row { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--centi-cp-border); margin-top: 24px; }
.cp-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; border-radius: 6px; transition: all .15s ease; cursor: pointer; }
.cp-cta-btn--primary { background: var(--centi-cp-primary); color: #fff; border: 1px solid var(--centi-cp-primary); }
.cp-cta-btn--primary:hover { background: var(--centi-cp-primary-dark); border-color: var(--centi-cp-primary-dark); }
.cp-cta-btn--ghost { background: transparent; color: var(--centi-cp-primary-dark); border: 1px solid var(--centi-cp-border); }
.cp-cta-btn--ghost:hover { border-color: var(--centi-cp-primary); }

/* ============ Footer note ============ */
.cp-footer-note { text-align: center; padding: 32px 24px; font-size: 13px; color: var(--centi-cp-muted); max-width: 720px; margin: 0 auto; }
.cp-footer-note h3 { color: var(--centi-cp-text); font-size: 18px; margin: 0 0 12px; }
.cp-footer-note p { margin: 0; line-height: 1.6; }

/* ============ Empty fallback ============ */
.cp-empty { max-width: 720px; margin: 60px auto; padding: 40px; background: #fff; border: 1px solid var(--centi-cp-border); border-radius: 8px; text-align: center; }
.cp-empty h1 { font-size: 28px; margin-bottom: 12px; }

/* ============ Lightbox ============ */
.cp-lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 40px; }
.cp-lightbox.is-open { display: flex; }
.cp-lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4); }
.cp-lightbox__close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.cp-lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }
.cp-lightbox__caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; opacity: 0.85; font-family: ui-monospace, monospace; }

/* ============ G73 — Sidebar global Copy-link button ============ */
.cp-copy-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 16px); margin: 0 8px 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--centi-cp-primary-dark); background: #fff7ed; border: 1px solid var(--centi-cp-primary); border-radius: 6px; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.cp-copy-link:hover:not(:disabled) { background: var(--centi-cp-primary); color: #fff; }
.cp-copy-link:active:not(:disabled) { transform: scale(0.98); }
.cp-copy-link:focus-visible { outline: 2px solid var(--centi-cp-primary); outline-offset: 2px; }
.cp-copy-link:disabled { cursor: not-allowed; opacity: 0.55; background: #f9fafb; border-color: var(--centi-cp-border); color: var(--centi-cp-muted); }
.cp-copy-link__icon { font-size: 16px; line-height: 1; }

/* ============ G73 — Toast (transient copy-feedback message) ============ */
.cp-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); padding: 12px 20px; background: #1f2937; color: #fff; font-size: 14px; font-weight: 500; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 10000; max-width: 90vw; text-align: center; }
.cp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cp-toast.is-ok { background: #047857; }
.cp-toast.is-error { background: #b91c1c; }

/* ============ Mobile ============ */
@media (max-width: 880px) {
	.cp-layout { grid-template-columns: 1fr; }
	.cp-sidebar { position: static; max-height: 240px; }
	.cp-page-header__title { font-size: 28px; }
	.cp-gallery { grid-template-columns: 1fr; }
	.cp-gallery__thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
	.cp-thumb { width: 80px; height: 80px; flex-shrink: 0; }
	.cp-product { padding: 20px 16px 24px; }
	.cp-product__header { flex-direction: column; }
}

@media (max-width: 540px) {
	.cp-page-header { padding: 32px 16px 24px; }
	.cp-layout { padding: 20px 14px 14px; }
	.cp-spec-table th { width: 42%; padding: 10px 8px; }
	.cp-spec-table td { padding: 10px 8px; }
}
