/* Options tabs on /products/ (owner, 7 Oct 2026). Uses theme tokens so every theme restyles it. */
.opt { padding: 72px 0 24px; }
.opt h2 { margin-bottom: 8px; }
.opt-lead { max-width: 60ch; margin: 0 0 26px; }
.opt-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.opt-tabs button { font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.opt-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt-tabs button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.opt-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.opt-panel[hidden] { display: none; }
.opt-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.opt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.opt-img { aspect-ratio: 1 / 1; background: var(--bone-2); overflow: hidden; display: grid; place-items: center; }
.opt-img img { width: 100%; height: 100%; object-fit: cover; }
.opt-ph { font-family: var(--serif); font-weight: 800; font-size: 3.4rem; color: var(--ember); opacity: .35; }
.opt-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.opt-body h3 { font-size: 1.12rem; margin: 0; }
.opt-body p { margin: 0; font-size: .94rem; color: var(--ink-2); line-height: 1.55; }
.opt-body .go { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--ember); }
@media (max-width: 1140px) { .opt-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .opt-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .opt { padding-top: 48px; } }
@media (max-width: 520px) { .opt-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .opt-tabs button { white-space: nowrap; } .opt-panel { grid-template-columns: 1fr; } }
/* Compact version on the home page (owner, 7 Oct 2026): photo + title only, 6 per row. */
.opt-compact { padding: 56px 0 24px; }
.opt-compact h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.opt-compact .opt-lead { font-size: .95rem; margin-bottom: 18px; }
.opt-compact .opt-tabs { gap: 8px; margin-bottom: 18px; }
.opt-compact .opt-tabs button { padding: 7px 15px; font-size: .85rem; font-weight: 500; }
.opt-compact .opt-panel { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.opt-compact .opt-card { border-radius: 14px; }
.opt-compact .opt-img { aspect-ratio: 4 / 3; }
.opt-compact .opt-body { padding: 10px 12px 12px; gap: 2px; }
.opt-compact .opt-body h3 { font-size: .86rem; font-weight: 500; }
.opt-compact .opt-body p { display: none; }
.opt-compact .opt-body .go { font-size: .76rem; font-weight: 500; }
@media (max-width: 1140px) { .opt-compact .opt-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .opt-compact .opt-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Home compact tabs: cards stretch to fill the full width whatever the tab's card count (owner, 7 Oct 2026). */
.opt-compact .opt-panel { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.opt-compact .opt-img { aspect-ratio: 16 / 10; }
.opt-compact .opt-body p { display: block; font-size: .82rem; line-height: 1.45; }
@media (max-width: 820px) { .opt-compact .opt-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .opt-compact .opt-body p { display: none; } }
