/* =========================================================
   SkillVexo Edu — main.css (light purple education theme)
   ========================================================= */

:root {
    --brand: #7c3aed;
    --brand-2: #a78bfa;
    --brand-3: #ede9fe;
    --bg: #faf7ff;
    --bg-2: #f3ecff;
    --surface: #ffffff;
    --surface-2: #fbf9ff;
    --border: rgba(124, 58, 237, 0.14);
    --border-strong: rgba(124, 58, 237, 0.24);
    --text: #1e1b4b;
    --text-dim: #5b5677;
    --muted: #8b87a3;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(124,58,237,0.06);
    --shadow: 0 20px 45px -25px rgba(124,58,237,0.35);
    --container: 1200px;
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --mobile-cols-courses: 1fr;
    --mobile-cols-cats: repeat(2, 1fr);
}

[data-theme="dark"] {
    --brand: #a78bfa;
    --brand-2: #c4b5fd;
    --brand-3: rgba(167, 139, 250, 0.14);
    --bg: #0f0d1c;
    --bg-2: #16132a;
    --surface: #1a1730;
    --surface-2: #221d3d;
    --border: rgba(167, 139, 250, 0.18);
    --border-strong: rgba(167, 139, 250, 0.32);
    --text: #f4f2ff;
    --text-dim: #c7c1e2;
    --muted: #8e88a8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --shadow: 0 20px 45px -18px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    cursor: none;
    transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { opacity: .85; }
::selection { background: var(--brand); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 999; }

/* ===== Cursor dot ===== */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    border-radius: 50%; translate: -50% -50%;
    transition: width .2s ease, height .2s ease, background .2s ease, opacity .2s ease;
    mix-blend-mode: normal;
}
.cursor-dot { width: 8px; height: 8px; background: var(--brand); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid var(--brand-2); background: transparent; opacity: .55; transition: width .25s ease, height .25s ease, opacity .25s ease, border-color .25s ease; }
.cursor-dot.is-hover { width: 14px; height: 14px; background: var(--brand-2); }
.cursor-ring.is-hover { width: 54px; height: 54px; border-color: var(--brand); opacity: .85; }
@media (max-width: 900px), (hover: none) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,247,255,0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px; gap: 24px;
}
.site-title {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    letter-spacing: -0.01em;
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text);
}
.site-title__mark {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
}

.site-nav__list {
    display: flex; gap: 30px; list-style: none; margin: 0; padding: 0;
    font-size: 0.96rem; color: var(--text-dim); font-weight: 500;
}
.site-nav__list a { position: relative; padding: 6px 0; }
.site-nav__list a:hover { color: var(--brand); opacity: 1; }
.site-nav__list a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--brand);
    transition: width .25s ease; border-radius: 2px;
}
.site-nav__list a:hover::after { width: 100%; }

.site-header__cta { display: flex; gap: 10px; align-items: center; }

.icon-btn {
    width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; color: var(--brand); cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.icon-btn:hover { transform: translateY(-1px); background: var(--brand-3); border-color: var(--border-strong); }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 36px; height: 36px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--brand); margin: 4px 0; transition: transform .25s ease; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    font: 600 0.95rem/1 var(--font-sans);
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--pill { border-radius: 999px; }
.btn--primary {
    background: var(--brand); color: #ffffff; border-color: var(--brand);
    box-shadow: 0 8px 24px -8px rgba(124,58,237,0.5);
}
.btn--primary:hover { background: #6d28d9; border-color: #6d28d9; opacity: 1; color: #fff; }
.btn--ghost { color: var(--brand); background: var(--surface); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--brand-3); border-color: var(--brand-2); opacity: 1; }

/* ===== Eyebrow ===== */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brand); font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand-2); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 120px 0 90px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__blob { position: absolute; width: 620px; height: 620px; border-radius: 50%; filter: blur(120px); opacity: 0.35; }
.hero__blob--a { background: var(--brand-2); top: -180px; left: -140px; }
.hero__blob--b { background: var(--brand); bottom: -220px; right: -140px; opacity: 0.22; }
.hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(124,58,237,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(124,58,237,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero__inner { text-align: left; max-width: 960px; }
.hero__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 20px 0 22px;
    color: var(--text);
}
.hero__title em { font-style: italic; color: var(--brand); }
.hero__subtitle { font-size: 1.15rem; color: var(--text-dim); max-width: 620px; margin: 0 0 34px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

/* Marquee */
.marquee {
    overflow: hidden; padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
    display: flex; gap: 20px; white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-family: var(--font-serif);
    font-size: 1.3rem; color: var(--text);
}
.marquee__sep { color: var(--brand-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 50px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__title {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em;
    margin: 16px 0 10px; color: var(--text);
}
.section__subtitle { color: var(--text-dim); max-width: 560px; margin: 0; }

/* ===== Product/Course Cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--brand-2); box-shadow: var(--shadow); }
.product-card__media {
    position: relative; aspect-ratio: 4/3; overflow: hidden;
    background: linear-gradient(135deg, var(--brand-3), var(--bg-2));
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: var(--brand); font-family: var(--font-serif); font-size: 2rem;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(167,139,250,0.35), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(124,58,237,0.25), transparent 50%);
}
.product-card__badge {
    position: absolute; top: 14px; left: 14px;
    font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
    padding: 6px 12px; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
    border: 1px solid var(--border); border-radius: 999px; color: var(--brand);
}
.product-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__title { font-family: var(--font-serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: 0; letter-spacing: -0.01em; color: var(--text); }
.product-card__title a:hover { color: var(--brand); opacity: 1; }
.product-card__excerpt { color: var(--text-dim); font-size: 0.94rem; margin: 0; flex: 1; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--border); gap: 12px; }
.product-card__price { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 400; color: var(--brand); }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    padding: 32px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--brand-2); box-shadow: var(--shadow); }
.feature-card__icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--brand-3); color: var(--brand);
    margin-bottom: 18px;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__icon--chat { background: #fde8ff; color: #a855f7; }
.feature-card__icon--bolt { background: #fef3c7; color: #d97706; }
.feature-card__icon--star { background: #fee2e2; color: #e11d48; }
.feature-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--text); }
.feature-card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ===== Categories ===== */
.categories-section { background: linear-gradient(180deg, transparent, var(--bg-2), transparent); }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card {
    position: relative; padding: 32px 26px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    display: block; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden; color: var(--text);
}
.category-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(167,139,250,0.18), transparent 55%);
    opacity: 0; transition: opacity .3s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--brand-2); box-shadow: var(--shadow); opacity: 1; }
.category-card:hover::before { opacity: 1; }
.category-card__num { font-family: var(--font-serif); font-size: 0.9rem; color: var(--brand); letter-spacing: 0.1em; }
.category-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; margin: 14px 0 8px; letter-spacing: -0.01em; }
.category-card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }
.category-card__arrow { position: absolute; top: 26px; right: 26px; color: var(--brand-2); font-size: 1.4rem; transition: transform .3s ease, color .3s ease; }
.category-card:hover .category-card__arrow { color: var(--brand); transform: translate(4px, -4px); }

/* ===== CTA Banner ===== */
.cta-banner__inner {
    background: linear-gradient(135deg, var(--brand-3), #fdf4ff);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 60px 50px;
    display: flex; justify-content: space-between; align-items: center; gap: 30px;
}
.cta-banner h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.cta-banner p { color: var(--text-dim); margin: 0; max-width: 460px; }

/* ===== Page hero (courses page) ===== */
.page-hero {
    padding: 90px 0 40px; text-align: center;
    background: linear-gradient(180deg, var(--bg-2), transparent);
}
.page-hero__title {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em;
    margin: 16px auto 14px; max-width: 820px;
}
.page-hero__title em { color: var(--brand); font-style: italic; }
.page-hero__subtitle { color: var(--text-dim); max-width: 620px; margin: 0 auto 30px; font-size: 1.05rem; }
.page-hero__search {
    max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
    padding: 8px 8px 8px 20px; box-shadow: var(--shadow);
}
.page-hero__search svg { color: var(--brand); flex-shrink: 0; }
.page-hero__search input {
    flex: 1; border: 0; background: transparent; padding: 12px 8px; font: 500 1rem var(--font-sans); color: var(--text); outline: none;
}
.page-hero__search input::placeholder { color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text-dim); font-size: 0.88rem; font-weight: 500;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { background: var(--brand-3); color: var(--brand); opacity: 1; }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== Search overlay ===== */
.search-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(30,27,75,0.82); backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__close {
    position: absolute; top: 24px; right: 24px; width: 44px; height: 44px;
    background: var(--surface); border: 0; border-radius: 50%; font-size: 1.6rem; color: var(--brand); cursor: pointer;
}
.search-overlay__form { display: flex; gap: 10px; margin: 22px 0 14px; align-items: center; background: var(--surface); border-radius: 999px; padding: 8px 8px 8px 22px; border: 1px solid var(--border-strong); }
.search-overlay__input { flex: 1; border: 0; background: transparent; padding: 14px 8px; font: 500 1.1rem var(--font-sans); color: var(--text); outline: none; }
.search-overlay__submit { white-space: nowrap; }
.search-overlay__hints { color: rgba(255,255,255,0.85); display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.92rem; }
.search-overlay__hints a { color: #fff; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.search-overlay__hints a:hover { background: var(--brand-2); opacity: 1; }

/* ===== Post grid ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-card:hover { border-color: var(--brand-2); box-shadow: var(--shadow); }
.post-card__media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.post-card__body { padding: 22px; }
.post-card__meta { font-size: 0.8rem; color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.post-card__title { font-family: var(--font-serif); font-weight: 400; font-size: 1.4rem; margin: 8px 0 10px; letter-spacing: -0.01em; }
.post-card__more { color: var(--brand); font-weight: 600; }

/* ===== Single ===== */
.single-post { padding: 40px 0; }
.single-post__head { margin-bottom: 30px; }
.single-post__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 14px 0 0; }
.course-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-dim); font-size: 0.9rem; margin-top: 14px; }
.single-post__media { margin: 30px 0; border-radius: var(--radius); overflow: hidden; }
.single-post__content { font-size: 1.05rem; color: var(--text); }
.single-post__content p { margin: 0 0 1.2em; }
.single-post__buy {
    margin-top: 40px; padding: 26px; border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 20px;
    box-shadow: var(--shadow);
}
.single-post__price { font-family: var(--font-serif); font-size: 2rem; color: var(--brand); }

/* ===== Empty state ===== */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-dim); }
.empty-state h1, .empty-state h2 { font-family: var(--font-serif); color: var(--text); }

/* ===== Footer ===== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 70px; margin-top: 60px; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 60px; padding-bottom: 50px; }
.site-footer__brand p { color: var(--text-dim); max-width: 320px; margin-top: 12px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer__col h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; margin: 0 0 14px; color: var(--text); }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer__col a { color: var(--text-dim); font-size: 0.94rem; }
.site-footer__col a:hover { color: var(--brand); opacity: 1; }
.site-footer__bar { border-top: 1px solid var(--border); padding: 22px 0; color: var(--muted); font-size: 0.85rem; }
.site-footer__bar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer__menu { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }

/* ===== Pagination ===== */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination .current {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); background: var(--surface);
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .product-grid, .features-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: var(--mobile-cols-cats, repeat(2, 1fr)); }
    .site-footer__inner { grid-template-columns: 1fr; gap: 40px; }
    .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 70px 0; }
    .hero { padding: 80px 0 60px; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 24px; box-shadow: var(--shadow); }
    .site-nav.is-open .site-nav__list { flex-direction: column; gap: 14px; }
    .nav-toggle-btn { display: grid !important; }
    .browse-btn { display: none; }
    .cart-btn { display: none; }
    .mobile-cart-fab { display: grid !important; }
    .categories-grid--image { grid-template-columns: var(--mobile-cols-cats, repeat(2, 1fr)); }
}
@media (max-width: 640px) {
    .product-grid { grid-template-columns: var(--mobile-cols-courses, 1fr); }
    .features-grid, .post-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: var(--mobile-cols-cats, repeat(2, 1fr)); }
    .site-footer__cols { grid-template-columns: 1fr; }
    .section__head { flex-direction: column; align-items: flex-start; }
    .cta-banner__inner { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
    .site-footer__bar .container { flex-direction: column; align-items: flex-start; }
    .categories-grid--image { grid-template-columns: var(--mobile-cols-cats, repeat(2, 1fr)); gap: 12px; }
    .cat-tile__caption { padding: 10px 8px; }
    .cat-tile__name { font-size: 0.78rem; letter-spacing: 0.06em; }
    .cat-tile__count { font-size: 0.65rem; }
    .page-hero__search { flex-direction: column; border-radius: 20px; padding: 14px; }
    .page-hero__search input { width: 100%; }
    .page-hero__search .btn { width: 100%; justify-content: center; }
}

/* ===== Cart button + mobile FAB ===== */
.cart-btn { position: relative; }
.cart-btn__badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px;
    background: var(--brand); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 1;
    border: 2px solid var(--surface);
}
.nav-toggle-btn { display: none; }
.mobile-cart-fab {
    display: none; position: fixed; bottom: 20px; right: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff;
    border: 0; cursor: pointer; place-items: center;
    box-shadow: 0 12px 30px -8px rgba(124,58,237,0.55);
    transition: transform .2s ease, background .2s ease;
}
.mobile-cart-fab:hover { transform: translateY(-2px); background: #6d28d9; }
.mobile-cart-fab__badge {
    position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px;
    display: grid; place-items: center; border-radius: 999px;
    background: #fff; color: var(--brand); font-size: 0.72rem; font-weight: 700; border: 2px solid var(--brand);
}

/* ===== Cart drawer ===== */
.cart-backdrop {
    position: fixed; inset: 0; z-index: 100; background: rgba(30,27,75,0.5);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.cart-backdrop.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 420px; z-index: 101;
    background: var(--surface); border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -20px 0 50px -20px rgba(30,27,75,0.25);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-drawer__body-inner { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-drawer__foot-inner { border-top: 1px solid var(--border); padding: 18px 20px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-drawer__foot { border-top: 1px solid var(--border); padding: 18px 20px; }
.cart-drawer__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; color: var(--text-dim); }
.cart-drawer__row strong { color: var(--brand); font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400; }
.cart-drawer__empty { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; text-align: center; color: var(--text-dim); gap: 16px; }

.js-cart-drawer-inner { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); align-items: center; }
.cart-item__thumb { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--brand-3), var(--bg-2)); display: grid; place-items: center; color: var(--brand); font-family: var(--font-serif); font-size: 1.4rem; }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.2; color: var(--text); }
.cart-item__meta { font-size: 0.75rem; color: var(--muted); margin-top: 2px; letter-spacing: 0.05em; text-transform: uppercase; }
.cart-item__qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.cart-item__qty button { width: 24px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: var(--brand); cursor: pointer; font-size: 1rem; line-height: 1; }
.cart-item__qty button:hover { background: var(--brand-3); }
.cart-item__qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item__price { font-family: var(--font-serif); color: var(--brand); font-size: 1.05rem; }
.cart-item__remove { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.cart-item__remove:hover { color: #e11d48; }

/* ===== Simplified product card (title + price only) ===== */
.product-card__price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.product-card__price-row .price { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-serif); font-size: 1.25rem; color: var(--brand); }
.product-card__price-row del, .product-card__price--old { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; opacity: 0.85; }
.product-card__price-row ins { text-decoration: none; }
.product-card__price--sale, .product-card__price-row ins .amount, .product-card__price-row .amount { color: var(--brand); font-family: var(--font-serif); font-size: 1.35rem; }
.product-card__cta { width: 100%; justify-content: center; margin-top: 4px; }

/* Remove the old excerpt/meta space on new simplified card (only if present, hide) */
.product-card__body > .product-card__excerpt,
.product-card__body > .product-card__meta,
.product-card__body > .product-card__foot { }

/* ===== Dark mode contrast fixes ===== */
[data-theme="dark"] .hero__title,
[data-theme="dark"] .section__title,
[data-theme="dark"] .page-hero__title,
[data-theme="dark"] .product-card__title,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .cta-banner h2,
[data-theme="dark"] .single-post__title,
[data-theme="dark"] .site-title,
[data-theme="dark"] .site-footer__col h4 { color: var(--text); }
[data-theme="dark"] .hero__title em,
[data-theme="dark"] .page-hero__title em { color: var(--brand-2); }
[data-theme="dark"] .btn { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
[data-theme="dark"] .btn--primary { color: #0f0d1c; background: var(--brand); border-color: var(--brand); }
[data-theme="dark"] .btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #0f0d1c; }
[data-theme="dark"] .btn--ghost { color: var(--brand-2); background: var(--surface); }
[data-theme="dark"] .btn--ghost:hover { background: var(--brand-3); }
[data-theme="dark"] .cat-tile { background: var(--surface); }
[data-theme="dark"] .cat-tile__caption { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
[data-theme="dark"] .cat-tile__name { color: var(--text); }
[data-theme="dark"] .cta-banner__inner { background: linear-gradient(135deg, rgba(167,139,250,0.14), rgba(196,181,253,0.10)); }
[data-theme="dark"] .download-banner { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0f0d1c; }
[data-theme="dark"] .download-banner a { color: #0f0d1c; }

/* Categories mobile columns — driven by Customizer via --mobile-cols-cats */
@media (max-width: 900px) {
    .categories-grid--image { grid-template-columns: var(--mobile-cols-cats, repeat(2, 1fr)) !important; gap: 14px; }
}
@media (max-width: 480px) {
    .categories-grid--image { grid-template-columns: var(--mobile-cols-cats, repeat(2, 1fr)) !important; gap: 10px; }
    .cat-tile__caption { padding: 10px 8px; }
    .cat-tile__name { font-size: 0.78rem; letter-spacing: 0.06em; }
    .cat-tile__count { font-size: 0.62rem; }
}

/* ===== Thank-you note styling ===== */
.thankyou-note { text-align: center; padding: 40px 20px; }
.thankyou-note h2 { font-family: var(--font-serif); font-weight: 400; font-size: 2.4rem; color: var(--brand); margin: 0 0 10px; }
.thankyou-note p { color: var(--text-dim); font-size: 1.05rem; margin: 0; }

/* ===== WooCommerce single/checkout tweaks ===== */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-page form .form-row input.input-text {
    border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); color: var(--text);
}
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order, .woocommerce .button.alt, .woocommerce-page .button.alt {
    background: var(--brand) !important; color: #fff !important; border-radius: 999px; padding: 12px 22px; font-weight: 600; border: 0;
}
.woocommerce-checkout .woocommerce-billing-fields h3, .woocommerce-checkout h3 { font-family: var(--font-serif); font-weight: 400; color: var(--text); }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { color: var(--text); }

/* ===== Social icons ===== */
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-icon {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--brand);
    transition: background .2s ease, transform .2s ease, color .2s ease;
}
.social-icon:hover { background: var(--brand); color: #fff; transform: translateY(-2px); opacity: 1; }
.contact-list li { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.94rem; }
.contact-list .ci { color: var(--brand); font-weight: 700; }
.contact-list li a { color: var(--text-dim); }
.contact-list li a:hover { color: var(--brand); opacity: 1; }

/* ===== Image category tiles ===== */
.categories-grid--image { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; color: var(--text); }
.cat-tile:hover { transform: translateY(-5px); border-color: var(--brand-2); box-shadow: var(--shadow); opacity: 1; }
.cat-tile__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--brand-3); }
.cat-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile:hover .cat-tile__media img { transform: scale(1.06); }
.cat-tile__caption { padding: 14px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-top: 1px solid var(--border); }
.cat-tile__name { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.cat-tile__count { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }

/* ===== Stats + Prose ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 26px 20px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-card__n { font-family: var(--font-serif); font-size: 2.4rem; color: var(--brand); line-height: 1; }
.stat-card__l { color: var(--text-dim); font-size: 0.9rem; margin-top: 6px; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.prose h2 { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; margin: 30px 0 12px; letter-spacing: -0.01em; }
.prose p { color: var(--text-dim); font-size: 1.02rem; margin: 0 0 12px; max-width: 720px; }

/* ===== Contact page ===== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.contact-card { padding: 26px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: var(--text); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--brand-2); box-shadow: var(--shadow); opacity: 1; }
.contact-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-3); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; }
.contact-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.1rem; margin: 0 0 4px; }
.contact-card p { color: var(--text-dim); margin: 0; font-size: 0.92rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-wrap { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.contact-form h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; margin: 0 0 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .contact-form-wrap { padding: 24px; } }
.contact-form label { display: block; margin-bottom: 14px; }
.contact-form label span { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); font: 500 0.98rem var(--font-sans); color: var(--text); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); background: var(--surface); }
.form-alert { padding: 12px 14px; border-radius: 10px; background: var(--brand-3); color: var(--brand); font-weight: 600; margin-bottom: 14px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.is-open { border-color: var(--brand-2); box-shadow: var(--shadow); }
.faq-item__q { width: 100%; text-align: left; padding: 20px 24px; background: transparent; border: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-serif); font-size: 1.15rem; color: var(--text); }
.faq-item__q:hover { color: var(--brand); }
.faq-item__ic { color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq-item__a { padding: 0 24px 22px; color: var(--text-dim); line-height: 1.7; }

/* ===== Custom checkout header + summary tweaks ===== */
.skillvexo-checkout-header { text-align: center; padding: 20px 0 30px; }
.skillvexo-checkout__title { font-family: var(--font-serif); font-weight: 400; font-size: 2rem; margin: 0 0 8px; color: var(--text); }
.skillvexo-checkout__note { color: var(--text-dim); margin: 0; font-size: 1rem; }
.skillvexo-summary-name { color: var(--text); font-weight: 600; }

/* WooCommerce checkout — cleaner two-column layout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout h3 { font-family: var(--font-serif); font-weight: 400; color: var(--text); font-size: 1.4rem; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text {
    border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); color: var(--text); font: 500 0.98rem var(--font-sans);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce-page form .form-row input.input-text:focus { border-color: var(--brand); background: var(--surface); outline: none; }
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
.woocommerce .button.alt,
.woocommerce-page .button.alt {
    background: var(--brand) !important; color: #fff !important; border-radius: 999px; padding: 12px 22px; font-weight: 600; border: 0;
}
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { color: var(--text); }
.woocommerce table.shop_table_responsive tr td.product-name .wc-item-meta,
.woocommerce table.shop_table_responsive tr td.product-name dl.variation,
.woocommerce table.shop_table_responsive tr td.product-name p.description,
.woocommerce-checkout-review-order-table .product-name .wc-item-meta { display: none !important; }

/* ===== Single Product page — minimalist ===== */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .product_meta,
.woocommerce div.product .woocommerce-product-details__short-description ~ * .woocommerce-tabs { display: none !important; }
.woocommerce div.product .summary { padding: 0 0 0 30px; }
.woocommerce div.product .product_title { font-family: var(--font-serif); font-weight: 400; font-size: 2.2rem; margin: 0 0 14px; color: var(--text); }
.woocommerce div.product p.price { color: var(--brand); font-family: var(--font-serif); font-weight: 400; font-size: 1.8rem; margin: 0 0 20px; }
.woocommerce div.product p.price del { color: var(--muted); font-size: 1.1rem; margin-right: 8px; }
.woocommerce div.product p.price ins { color: var(--brand); text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--text-dim); margin: 0 0 24px; line-height: 1.6; }
.woocommerce div.product form.cart .button { background: var(--brand); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 600; border: 0; }
.woocommerce div.product form.cart .quantity input { border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 8px; }
.woocommerce .related.products > h2 { font-family: var(--font-serif); font-weight: 400; color: var(--text); }
@media (max-width: 900px) { .woocommerce div.product .summary { padding-left: 0; margin-top: 20px; } }

/* Product card sale price presentation */
.product-card__price-row .amount { color: var(--brand); font-family: var(--font-serif); font-size: 1.35rem; font-weight: 400; }
.product-card__price-row del .amount { color: var(--muted); font-size: 0.95rem; font-family: var(--font-sans); text-decoration: line-through; margin-right: 6px; }
.product-card__price-row ins { text-decoration: none; }

/* Cart drawer clear-cart button spacing */
.cart-drawer__foot-inner .js-cart-clear { display: inline-flex; align-items: center; justify-content: center; }

/* WooCommerce onsale badge — purple pill */
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale {
    background: var(--brand) !important; color: #fff !important; font-family: var(--font-sans); font-weight: 700;
    border-radius: 999px; padding: 6px 12px; min-height: unset; height: auto; line-height: 1; letter-spacing: 0.02em;
    top: 12px; right: auto; left: 12px; margin: 0; box-shadow: var(--shadow-sm);
}

/* ===== WooCommerce checkout form field layout fixes ===== */
.woocommerce-checkout form.checkout .col2-set,
.woocommerce-checkout form.checkout #customer_details { display: block; width: 100%; }
.woocommerce-checkout form.checkout .col2-set .col-1,
.woocommerce-checkout form.checkout .col2-set .col-2 { float: none; width: 100%; padding: 0; }
.woocommerce-checkout form.checkout #order_review_heading,
.woocommerce-checkout form.checkout #order_review { width: 100%; }
.woocommerce-checkout form.checkout .form-row-first,
.woocommerce-checkout form.checkout .form-row-last { width: 48%; float: left; }
.woocommerce-checkout form.checkout .form-row-first { margin-right: 4%; }
.woocommerce-checkout form.checkout .form-row-wide { clear: both; width: 100%; }
.woocommerce-checkout form.checkout .form-row { display: block; margin-bottom: 16px; }
.woocommerce-checkout form.checkout .form-row label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
/* Hide the empty "Additional information" wrapper (order_comments removed) */
.woocommerce-checkout .woocommerce-additional-fields { display: none !important; }
/* Two-column checkout: customer details on left, review on right, on wide screens */
@media (min-width: 900px) {
    .woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
    .woocommerce-checkout form.checkout #customer_details { grid-column: 1; }
    .woocommerce-checkout form.checkout h3#order_review_heading,
    .woocommerce-checkout form.checkout #order_review { grid-column: 2; }
    .woocommerce-checkout form.checkout .woocommerce-additional-fields { grid-column: 1 / -1; }
}
.woocommerce-checkout table.shop_table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td { padding: 14px 16px; color: var(--text); }
.woocommerce-checkout table.shop_table .product-name { font-weight: 600; }
.woocommerce-checkout .woocommerce-checkout-payment { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.woocommerce-checkout .woocommerce-checkout-payment ul.wc_payment_methods li { list-style: none; }
