/* ============================================================
   ollynk Series Catalog — Frontend Styles
   ============================================================ */

/* ── SHARED BASE ───────────────────────────────────────────── */
.ollynk-catalog {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111827;
    line-height: 1.5;
    box-sizing: border-box;
}
.ollynk-catalog *, .ollynk-catalog *::before, .ollynk-catalog *::after {
    box-sizing: inherit;
}

/* Filter Tabs */
.ollynk-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.ollynk-filter-btn {
    padding: 8px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.ollynk-filter-btn:hover {
    border-color: var(--ollynk-accent, #7c3aed);
    color: var(--ollynk-accent, #7c3aed);
}
.ollynk-filter-btn.active {
    background: var(--ollynk-accent, #7c3aed);
    border-color: var(--ollynk-accent, #7c3aed);
    color: #fff;
}

/* Category title */
.ollynk-cat-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #111827;
}
.ollynk-category { margin-bottom: 40px; }
.ollynk-category:last-child { margin-bottom: 0; }

/* Shared button */
.ollynk-btn {
    display: inline-block;
    background: var(--ollynk-btn, #4f46e5);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    transition: opacity 0.2s, transform 0.1s;
    cursor: pointer;
}
.ollynk-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.ollynk-btn--sm { padding: 8px 18px; font-size: 14px; width: auto; }

/* Badges */
.ollynk-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-right: 4px;
}
.ollynk-badge--promo  { background: #fef3c7; color: #92400e; }
.ollynk-badge--trial  { background: #d1fae5; color: #065f46; }
.ollynk-badge--sub    { background: #ede9fe; color: #5b21b6; }
.ollynk-badge--sm     { font-size: 11px; padding: 2px 8px; }

/* Price helpers */
.ollynk-price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 14px;
    margin-right: 4px;
}
.ollynk-promo-ends {
    font-size: 12px;
    color: #b45309;
    margin: 0 0 10px;
}

/* ── TEMPLATE 1 — GRID CARDS ───────────────────────────────── */
.ollynk-t1-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.ollynk-t1-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow 0.2s, transform 0.2s;
}
.ollynk-t1-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.ollynk-t1-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ollynk-accent, #7c3aed);
}
.ollynk-t1-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}
.ollynk-t1-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    flex-grow: 1;
}
.ollynk-t1-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.ollynk-t1-price .ollynk-price-main {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}
.ollynk-price-period {
    font-size: 13px;
    color: #9ca3af;
}
.ollynk-t1-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ollynk-t1-meta li {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ollynk-icon { font-size: 14px; }

/* ── TEMPLATE 2 — PRICING TABLE ────────────────────────────── */
.ollynk-t2-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.ollynk-t2-col {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
}
.ollynk-t2-col:last-child { border-right: none; }
.ollynk-t2-col--popular {
    background: var(--ollynk-accent, #7c3aed);
    color: #fff;
}
.ollynk-t2-col--popular .ollynk-t2-type,
.ollynk-t2-col--popular .ollynk-t2-title,
.ollynk-t2-col--popular .ollynk-t2-features li,
.ollynk-t2-col--popular .ollynk-price-period { color: rgba(255,255,255,.85); }
.ollynk-t2-col--popular .ollynk-t2-price .ollynk-price-main { color: #fff; }
.ollynk-t2-col--popular .ollynk-price-original { color: rgba(255,255,255,.6); }
.ollynk-t2-col--popular .ollynk-promo-ends { color: #fde68a; }
.ollynk-t2-popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
}
.ollynk-t2-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ollynk-accent, #7c3aed);
}
.ollynk-t2-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}
.ollynk-t2-price { display: flex; flex-direction: column; gap: 2px; }
.ollynk-t2-price .ollynk-price-main {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}
.ollynk-t2-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ollynk-t2-features li { font-size: 13px; color: #374151; }
.ollynk-t2-col--popular .ollynk-btn {
    background: #fff;
    color: var(--ollynk-accent, #7c3aed) !important;
}
.ollynk-t2-col--popular .ollynk-btn:hover { opacity: 0.9; }
@media (max-width: 640px) {
    .ollynk-t2-table { grid-template-columns: 1fr; }
    .ollynk-t2-col { border-right: none; border-bottom: 1px solid #e5e7eb; }
    .ollynk-t2-col:last-child { border-bottom: none; }
}

/* ── TEMPLATE 3 — MINIMAL LIST ─────────────────────────────── */
.ollynk-t3-cat-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ollynk-accent, #7c3aed);
    margin: 0 0 12px;
}
.ollynk-t3-list { display: flex; flex-direction: column; }
.ollynk-t3-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ollynk-t3-row:last-child { border-bottom: none; }
.ollynk-t3-left { flex: 1; min-width: 0; }
.ollynk-t3-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.ollynk-t3-title { font-size: 15px; font-weight: 600; color: #111827; }
.ollynk-t3-meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.ollynk-t3-spots { color: #b45309; }
.ollynk-t3-desc  { font-size: 13px; color: #9ca3af; margin: 4px 0 0; }
.ollynk-t3-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.ollynk-t3-price-wrap { text-align: right; }
.ollynk-t3-price {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    display: block;
}
@media (max-width: 480px) {
    .ollynk-t3-row { flex-direction: column; align-items: flex-start; }
    .ollynk-t3-right { width: 100%; justify-content: space-between; }
}

/* ── TEMPLATE 4 — DARK PREMIUM ─────────────────────────────── */
.ollynk-t4 {
    background: #0f172a;
    border-radius: 16px;
    padding: 32px;
    color: #e2e8f0;
}
.ollynk-t4-filters .ollynk-filter-btn {
    border-color: #334155;
    background: transparent;
    color: #94a3b8;
}
.ollynk-t4-filters .ollynk-filter-btn:hover {
    border-color: var(--ollynk-accent, #7c3aed);
    color: var(--ollynk-accent, #7c3aed);
}
.ollynk-t4-filters .ollynk-filter-btn.active {
    background: var(--ollynk-accent, #7c3aed);
    border-color: var(--ollynk-accent, #7c3aed);
    color: #fff;
}
.ollynk-t4-cat-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #64748b;
    margin: 0 0 20px;
}
.ollynk-t4-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.ollynk-t4-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ollynk-t4-card:hover {
    border-color: var(--ollynk-accent, #7c3aed);
    box-shadow: 0 0 20px rgba(124, 58, 237, .25);
}
.ollynk-t4-card--promo {
    border-color: var(--ollynk-accent, #7c3aed);
    background: linear-gradient(135deg, #1e293b 60%, #2d1f4e);
}
.ollynk-t4-top    { margin-bottom: 20px; }
.ollynk-t4-middle { margin-bottom: 20px; }
.ollynk-t4-bottom { margin-top: auto; }
.ollynk-t4-badges { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ollynk-t4-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ollynk-accent, #7c3aed);
    margin-bottom: 6px;
}
.ollynk-t4-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #f1f5f9;
}
.ollynk-t4-desc { font-size: 13px; color: #64748b; margin: 0; }
.ollynk-t4-divider {
    height: 1px;
    background: #334155;
    margin: 16px 0;
}
.ollynk-t4-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.ollynk-t4-price-main {
    font-size: 32px;
    font-weight: 800;
    color: #f1f5f9;
}
.ollynk-t4-period { font-size: 13px; color: #64748b; }
.ollynk-t4-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ollynk-t4-meta li {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ollynk-t4-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ollynk-accent, #7c3aed);
    flex-shrink: 0;
}
.ollynk-t4-dot--hot { background: #f59e0b; }
.ollynk-t4-btn {
    background: linear-gradient(135deg, var(--ollynk-btn, #4f46e5), var(--ollynk-accent, #7c3aed));
    box-shadow: 0 4px 14px rgba(124, 58, 237, .4);
}
.ollynk-t4-btn:hover { opacity: 0.9; box-shadow: 0 6px 20px rgba(124, 58, 237, .55); }
.ollynk-t4 .ollynk-price-original { color: #475569; }
.ollynk-t4 .ollynk-promo-ends { color: #fbbf24; }
