/* ===== Base palette & typography ===== */
:root {
    --bg: #000;
    --txt: #fff;
    --muted: rgba(255, 255, 255, .75);
    --glass: rgba(255, 255, 255, .06);
    --glass-2: rgba(255, 255, 255, .03);
    --c1: #a9def9;
    /* cyan */
    --c2: #e4c1f9;
    /* lavender */
    --ring: rgba(169, 222, 249, .2);

    /* layout scales */
    --wrap: 1160px;
    --radius: 16px;
    --radius-lg: 20px;
    --gap: 16px;
}

/* =========================
   ✅ LIGHT THEME OVERRIDES
   (same design, different tokens)
   ✅ FIX: give the gradient real contrast in light mode
   ========================= */
:root[data-theme="light"] {
    --bg: #ffffff;
    --txt: #0b0f1a;
    --muted: rgba(11, 15, 26, .72);
    --glass: rgba(11, 15, 26, .10);
    --glass-2: rgba(11, 15, 26, .06);
    --ring: rgba(37, 99, 235, .20);

    /* ✅ IMPORTANT: darker accents so gradient text is visible on white */
    --c1: #d0638b;
    /* blue */
    --c2: #f3a253;
    /* violet */
}

/* ===== Light mode fixes for animated background ===== */

/* Constellation canvas */
:root[data-theme="light"] #constellation-canvas {
    opacity: 0.35;
    filter: invert(1) contrast(1.1);
}

/* Orbs */
:root[data-theme="light"] .orb {
    opacity: 0.18;
    filter: blur(50px);
}

:root[data-theme="light"] .orb--left {
    background: radial-gradient(#2563eb, transparent 70%);
}

:root[data-theme="light"] .orb--right {
    background: radial-gradient(#7c3aed, transparent 70%);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    width: 100%;
    min-height: 100%;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--txt);
    overflow-x: visible;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Cursor (desktop only) ===== */
@media (pointer:fine) {
    .cursor {
        position: fixed;
        left: 0;
        top: 0;
        pointer-events: none;
        z-index: 1000;
        mix-blend-mode: screen;
    }

    .cursor__ring {
        position: absolute;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid var(--c1);
        box-shadow: 0 0 80px var(--ring);
        opacity: .6;
        transform: translate(-50%, -50%);
    }

    .cursor__dot {
        position: absolute;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--c2);
        filter: drop-shadow(0 0 10px var(--c2));
        transform: translate(-50%, -50%);
    }

    a,
    button,
    .magnet {
        cursor: none
    }
}

/* Hide custom cursor on touch */
@media (pointer:coarse) {
    .cursor {
        display: none
    }
}

/* ===== Layout helpers ===== */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 18px;
}

.section {
    padding: clamp(48px, 7vw, 72px) 0;
}

/* =========================================================
   ✅ TOPBAR (logo only, nav right, keeps dark style)
   ========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, .45);
    border-bottom: 1px solid var(--glass);
    transition: background .3s ease, box-shadow .3s ease;
}

:root[data-theme="light"] .topbar {
    background: rgba(255, 255, 255, .68);
}

.topbar.is-stuck {
    background: rgba(0, 0, 0, .75);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

:root[data-theme="light"] .topbar.is-stuck {
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

.topbar .wrap {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 18px;
}

/* Brand (logo only) */
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 1000px;
}

.brand__logo {
    height: 160px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Nav (right side, compact like screenshot) */
.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.nav a {
    padding: 10px 8px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .16em;
    transition: background .2s ease, color .2s ease;
}

:root[data-theme="light"] .nav a {
    color: rgba(11, 15, 26, .86);
}

.nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

:root[data-theme="light"] .nav a:hover {
    background: rgba(11, 15, 26, .08);
    color: #0b0f1a;
}

/* CTA stays pill */
.cta-link {
    border: 2px solid var(--c1);
    border-radius: 999px;
    padding: 10px 14px !important;
    letter-spacing: .08em;
}

.cta-link:hover {
    background: var(--c1);
    color: #000;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    position: relative;
    width: 34px;
    height: 28px;
    background: none;
    border: 0;
    padding: 0;
}

.hamburger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
    transform-origin: center;
}

:root[data-theme="light"] .hamburger span {
    background: #0b0f1a;
}

.hamburger span:nth-child(1) {
    top: 4px
}

.hamburger span:nth-child(2) {
    top: 13px
}

.hamburger span:nth-child(3) {
    top: 22px
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg)
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg)
}

/* Mobile nav behavior */
@media (max-width: 920px) {
    .topbar .wrap {
        height: 74px;
    }

    .brand__logo {
        height: 10006px;
    }

    .nav {
        position: fixed;
        inset: 74px 12px auto 12px;
        display: grid;
        gap: 8px;
        background: rgba(0, 0, 0, .88);
        border: 1px solid var(--glass);
        border-radius: 14px;
        padding: 12px;
        transform-origin: top right;
        transform: scale(.98);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s, transform .25s;
        backdrop-filter: blur(8px);
    }

    :root[data-theme="light"] .nav {
        background: rgba(255, 255, 255, .92);
    }

    .nav a {
        letter-spacing: .08em;
        padding: 12px 12px;
        border-radius: 12px;
    }

    .nav.is-open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .hamburger {
        position: fixed;
        top: calc(env(safe-area-inset-top) + 14px);
        right: calc(env(safe-area-inset-right) + 18px);
        z-index: 10000;
        display: inline-block !important;
    }
}

/* =========================
   ✅ FLOATING THEME BUTTON
   bottom-right, always visible
   ========================= */
.theme-fab {
    position: fixed;
    right: calc(env(safe-area-inset-right) + 18px);
    bottom: calc(env(safe-area-inset-bottom) + 18px);
    z-index: 2000;

    width: 52px;
    height: 52px;
    border-radius: 999px;

    display: grid;
    place-items: center;

    border: 1px solid var(--glass);
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(10px);

    color: var(--txt);
    cursor: pointer;

    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

:root[data-theme="light"] .theme-fab {
    background: rgba(255, 255, 255, .80);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

.theme-fab:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .18);
}

:root[data-theme="light"] .theme-fab:hover {
    border-color: rgba(11, 15, 26, .16);
}

.theme-fab .icon {
    font-size: 20px;
    line-height: 1;
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 40%);
}

#constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    max-width: 820px;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(36px, 7vw, 64px);
    margin: 0 0 10px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--c1), var(--c2));
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ✅ ensure hero title stays visible in light mode */
:root[data-theme="light"] .hero-content h1 {
    background: linear-gradient(45deg, var(--c1), var(--c2));
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    opacity: .9;
    margin-bottom: 8px
}

.hero-content p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    margin: 0 0 26px;
    color: rgba(255, 255, 255, .85);
}

:root[data-theme="light"] .hero-content p,
:root[data-theme="light"] .tagline {
    color: rgba(11, 15, 26, .85);
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 2px solid var(--c1);
    border-radius: 50px;
    background: transparent;
    transition: all .3s ease-in-out;
}

:root[data-theme="light"] .cta-button {
    color: var(--txt);
}

.cta-button:hover {
    background: var(--c1);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(169, 222, 249, .2);
}

.cta-button.ghost {
    border-color: var(--c2)
}

.cta-button.ghost:hover {
    background: var(--c2)
}

.pills {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pills li {
    padding: 6px 10px;
    border-radius: 999px;
    color: #000;
    background: linear-gradient(45deg, var(--c1), var(--c2));
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

/* Orbs */
.orb {
    position: absolute;
    filter: blur(40px);
    opacity: .25;
    pointer-events: none;
}

.orb--left {
    left: 3%;
    top: 18%;
    width: 160px;
    height: 160px;
    background: radial-gradient(var(--c2), transparent 70%);
}

.orb--right {
    right: 4%;
    bottom: 12%;
    width: 220px;
    height: 220px;
    background: radial-gradient(var(--c1), transparent 70%);
}

/* ===== Reveal on scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Overview grid ===== */
.grid-4 {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(12, 1fr);
}

.chunk {
    grid-column: span 12;
    padding: 16px;
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
}

.chunk h3 {
    margin: 0 0 6px
}

/* Plain text variant (no card look) */
.chunk.plain {
    border: 0;
    background: transparent;
    padding: 0;
}

.chunk.plain h3 {
    margin: 0 0 8px;
    font-weight: 800;
    font-size: clamp(18px, 2.6vw, 22px);
    background: linear-gradient(45deg, var(--c1), var(--c2));
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ✅ ensure gradient text is visible in light mode (extra safety) */
:root[data-theme="light"] .chunk.plain h3,
:root[data-theme="light"] .sec-title,
:root[data-theme="light"] .topic-title,
:root[data-theme="light"] .products-title {
    background: linear-gradient(45deg, var(--c1), var(--c2));
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: contrast(1.15);
}

.sec-title {
    font-size: clamp(22px, 3.5vw, 32px);
    margin: 0 0 8px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--c1), var(--c2));
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.chunk.plain p,
.chunk.plain .check {
    color: var(--muted)
}

@media (min-width:760px) {
    .chunk {
        grid-column: span 6
    }

    .chunk.plain {
        grid-column: span 6
    }
}

@media (min-width:1040px) {
    .chunk {
        grid-column: span 3
    }

    .chunk.plain {
        grid-column: span 4
    }
}

/* Optional: ensure lists align nicely in plain blocks */
.chunk.plain .check {
    margin-top: 6px;
    padding-left: 1.1em;
}

.check {
    margin: 8px 0 0;
    padding-left: 1.1em;
}

.check li {
    margin: 6px 0
}

/* ===== Partners scroller ===== */
.scroller {
    --gap-x: 36px;
    --speed: 42s;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
    padding-block: 12px;
    margin-top: 10px;
}

.scroller__track {
    display: flex;
    align-items: center;
    gap: var(--gap-x);
    width: max-content;
    animation: scroll-left var(--speed) linear infinite;
}

.logo {
    list-style: none;
    flex: 0 0 auto;
    padding-inline: 6px;
}

.logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
}

.logo img {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
    opacity: .95;
    filter: brightness(1.1) contrast(1.05);
    transition: opacity .2s, transform .2s, filter .2s;
}

.logo a:hover img {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
}

@keyframes scroll-left {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.scroller:hover .scroller__track {
    animation-play-state: paused
}

@media (prefers-reduced-motion: reduce) {
    .scroller__track {
        animation: none
    }
}

@media (max-width:640px) {
    .logo a {
        height: 48px
    }

    .logo img {
        height: 36px
    }

    .scroller {
        --gap-x: 24px
    }
}

/* ===== Cards & Topics ===== */
.topic {
    margin: 28px 0 8px
}

.topic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.topic-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--c1), var(--c2));
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cards {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(12, 1fr);
}

.card {
    grid-column: span 12;
    padding: 16px;
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.card-footer {
    padding: 16px;
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 16px 50px rgba(169, 222, 249, .08);
}

.card h4 {
    margin: 0 0 6px
}

.card p {
    margin: 0
}

@media (min-width:760px) {
    .card {
        grid-column: span 6
    }
}

@media (min-width:1040px) {
    .card {
        grid-column: span 4
    }
}

.card.span2 {
    grid-column: span 12
}

@media (min-width:1040px) {
    .card.span2 {
        grid-column: span 8
    }
}

/* Tilt affordance (light parallax) */
.tilt {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .15s ease;
}

/* ===== Carousel ===== */
.carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0));
}

.carousel__track {
    display: flex;
    gap: 20px;
    padding: 20px;
    will-change: transform;
    transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}

.slide-card {
    flex: 0 0 min(860px, 92vw);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
}

@media (max-width:880px) {
    .slide-card {
        grid-template-columns: 1fr
    }
}

.slide-image {
    position: relative;
    background: rgba(255, 255, 255, .02);
}

.slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-copy {
    padding: 16px
}

.slide-copy h4 {
    margin: 0 0 6px
}

.slide-copy p {
    margin: 0
}

.carousel__controls {
    display: flex;
    gap: 10px;
}

.btn-ghost {
    background: transparent;
    color: var(--txt);
    border: 1px solid var(--glass);
    padding: 10px 14px;
    border-radius: 12px;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 10px 30px rgba(228, 193, 249, .06);
}

/* ===== Contact & Footer ===== */
.contact {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

@media (max-width:900px) {
    .contact {
        grid-template-columns: 1fr;
    }

    .form {
        grid-template-columns: 1fr;
    }

    .form .full {
        grid-column: 1 / -1;
    }
}

.contact .card a {
    color: var(--c1)
}

.form {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
}

.form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.form .full {
    grid-column: 1/-1
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--glass-2);
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea {
    color: var(--txt);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--c1);
    box-shadow: 0 0 0 3px rgba(169, 222, 249, .16);
}

.footer {
    border-top: 1px solid var(--glass);
    padding: 22px 0;
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.foot-nav {
    display: flex;
    gap: 12px;
}

.foot-nav a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

:root[data-theme="light"] .foot-nav a {
    color: rgba(11, 15, 26, .70);
}

.foot-nav a:hover {
    color: #fff;
    text-decoration: none;
}

:root[data-theme="light"] .foot-nav a:hover {
    color: #0b0f1a;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .tilt,
    .carousel__track {
        transition: none
    }
}

/* ===== Products (same style) ===== */
.products-section {
    background: transparent;
    color: var(--txt);
    padding: clamp(48px, 7vw, 72px) 0;
}

.products-title {
    text-align: center;
    letter-spacing: 6px;
    font-weight: 900;
    margin: 0 0 26px;
    background: linear-gradient(45deg, var(--c1), var(--c2));
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(12, 1fr);
    align-items: stretch;
}

.product-card {
    grid-column: span 12;
    padding: 16px;
    border: 1px solid var(--glass);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0));
    text-align: center;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

/* ✅ keep products in a row again (grid like before) */
.products-grid.products-accordion {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
}

/* ✅ collapsed cards are in a row */
.products-grid.products-accordion .product-card.product-acc {
    grid-column: span 12;
    /* mobile default */
    text-align: left;
    /* better for accordion layout */
}

/* ✅ desktop: show cards in a row */
@media (min-width: 900px) {
    .products-grid.products-accordion .product-card.product-acc {
        grid-column: span 6;
        /* 2 cards per row */
    }
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 16px 50px rgba(169, 222, 249, .08);
}

.product-card img {
    width: min(260px, 80%);
    height: 170px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .35));
}

.product-card p {
    max-width: 420px;
    margin: 0 auto 16px;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 500;
}

.product-btn {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid var(--c1);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 50px;
    background: transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

/* =========================
   PRODUCTS: accordion behavior + two images
   ========================= */
/* .products-accordion {
    display: grid;
    gap: var(--gap);
} */

.product-acc__summary {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: center;
}

/* ✅ collapsed view: same look as before (image top, centered) */
.products-grid.products-accordion .product-acc__summary {
    display: block;
    text-align: center;
}

.products-grid.products-accordion .product-acc__thumb {
    width: min(260px, 80%);
    height: 170px;
    margin: 0 auto 14px;
}

@media (max-width: 700px) {
    .product-acc__summary {
        grid-template-columns: 1fr;
    }
}

/* small image */
.product-acc__thumb {
    width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .25));
}

/* short description */
.product-acc__desc {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 500;
}

/* details area (expanded) */
.product-acc__details {
    margin-top: 14px;
    border-top: 1px solid var(--glass);
    padding-top: 16px;
}

/* ✅ expanded area should not break the grid */
.products-grid.products-accordion .product-acc__details {
    margin-top: 14px;
    border-top: 1px solid var(--glass);
    padding-top: 16px;
    text-align: left;
}

/* keep your expanded layout responsive */
.products-grid.products-accordion .product-acc__details-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .products-grid.products-accordion .product-acc__details-grid {
        grid-template-columns: 1fr;
    }
}

.product-acc__details-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 900px) {
    .product-acc__details-grid {
        grid-template-columns: 1fr;
    }
}

/* big image */
.product-acc__big {
    width: 100%;
    height: min(360px, 60vw);
    object-fit: contain;
    display: block;
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--glass);
    padding: 10px;
}

/* copy */
.product-acc__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.product-acc__lead {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.55;
}

.product-acc__specs {
    margin: 0 0 14px;
    padding-left: 1.1em;
}

.product-acc__specs li {
    margin: 6px 0;
    color: var(--muted);
}

/* two images row */
.product-acc__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .product-acc__images {
        grid-template-columns: 1fr;
    }
}

.product-acc__images img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid var(--glass);
    background: rgba(255, 255, 255, .02);
    padding: 10px;
}

/* button becomes the "accordion toggle" */
.product-acc__toggle {
    width: fit-content;
}

/* nice open animation */
.product-acc__details[hidden] {
    display: none;
}

:root[data-theme="light"] .product-btn {
    color: var(--txt);
}

.product-btn:hover {
    background: var(--c1);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(169, 222, 249, .2);
}

@media (min-width: 900px) {
    .product-card {
        grid-column: span 4;
    }
}