/**
 * UNIMART2040 — Desktop & large-screen commerce layouts
 * Fills width, reduces feature stacking, student-first density.
 */

/* Single-column shop intro when only one block present */
@media (min-width: 992px) {
    .cd-shop-intro:has(> :only-child) {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .sell-hub__body {
        max-width: 640px;
        padding-top: 1.5rem;
    }

    /* ── Shop home intro row: brief + essentials side by side ── */
    .cd-shop-intro {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 1.25rem 0.75rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 1rem;
        align-items: stretch;
    }
    .cd-shop-intro > :only-child {
        grid-column: 1 / -1;
    }
    .cd-shop-intro .index-brief-wrap {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    .cd-shop-intro .cd-home-rail {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    .cd-shop-intro .cd-home-rail .student-card {
        margin-bottom: 0;
        height: 100%;
    }

    /* Pillar rail: 3-column on desktop instead of tall stack */
    .cd-section--compact.cd-section--pillars .cd-pillar {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    .cd-section--compact.cd-section--pillars {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .cd-section--compact.cd-section--pillars .cd-pillars-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem 1.25rem;
    }

    /* Hero: full width, no empty side gutters */
    .hero-section {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 1.25rem 1rem;
    }
    .hero-desktop-layout--solo .carousel-main-container {
        flex: 1 1 100%;
    }
    .shop-hero-cta {
        width: 100%;
        min-height: clamp(200px, 22vw, 280px);
        border-radius: 14px;
        background: linear-gradient(135deg, var(--commerce-grey, #2c3e50) 0%, var(--secondary-light) 55%, rgba(246, 139, 30, 0.25) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
    .shop-hero-cta__inner {
        text-align: center;
        color: #fff;
        max-width: 520px;
    }
    .shop-hero-cta__inner h2 {
        font-size: 1.5rem;
        font-weight: 800;
        margin: 0 0 0.5rem;
    }
    .shop-hero-cta__inner p {
        font-size: 0.95rem;
        opacity: 0.85;
        margin: 0 0 1.25rem;
    }
    .shop-hero-cta__actions {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    .shop-hero-cta__actions a {
        padding: 0.6rem 1.25rem;
        border-radius: 999px;
        font-weight: 600;
        font-size: 0.88rem;
        text-decoration: none;
    }
    .shop-hero-cta__actions .shop-hero-cta__primary {
        background: var(--commerce-orange, #f68b1e);
        color: #fff;
    }
    .shop-hero-cta__actions .shop-hero-cta__ghost {
        border: 1px solid rgba(255, 255, 255, 0.35);
        color: #fff;
    }

    /* Campus strip: full width bar */
    body.commerce-2040-page .campus-strip__inner {
        max-width: 1280px;
        padding: 0 1.25rem;
    }
    body.commerce-2040-page .content-wrapper.full-width .content-inner {
        max-width: 1280px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    /* Campus hub owns its own full-bleed shell */
    body.cn-uniz-hub-page.commerce-2040-page .content-wrapper.full-width .content-inner,
    body.cn-uniz-hub-page .content-wrapper.full-width .content-inner {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }
    body.commerce-2040-page .cd-quick-nav {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ── /me/ dashboard ── */
    .opp-dash {
        max-width: 1120px;
        padding: 1.5rem 1.25rem 5rem;
    }
    .opp-dash__welcome {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1rem 2rem;
        align-items: center;
        padding: 1.5rem 1.75rem;
    }
    .opp-dash__welcome h1 {
        font-size: 1.6rem;
    }
    .opp-dash__welcome-stats {
        display: flex;
        gap: 1.25rem;
        flex-wrap: wrap;
    }
    .opp-dash__welcome-stat {
        text-align: center;
        min-width: 72px;
    }
    .opp-dash__welcome-stat strong {
        display: block;
        font-size: 1.35rem;
        color: var(--unimart-orange, #f68b1e);
    }
    .opp-dash__welcome-stat span {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        opacity: 0.7;
    }
    .opp-dash__grid {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 1rem;
        align-items: start;
    }
    .opp-dash__grid .opp-dash__card,
    .opp-dash__grid .cd-brief,
    .opp-dash__grid .cd-section {
        margin-bottom: 0;
    }
    .opp-dash__main > * + *,
    .opp-dash__side > * + * {
        margin-top: 1rem;
    }
    .opp-dash__grid + .opp-dash__card {
        margin-top: 1rem;
    }
    .opp-snapshot {
        grid-template-columns: repeat(3, 1fr);
    }
    .opp-quick {
        grid-template-columns: repeat(4, 1fr);
    }
    .opp-quick__btn {
        min-height: 64px;
    }

    /* ── Tour / Demand — container & grids from unimart-layer-pages.css ── */
    .tour-opp-list {
        display: grid;
        gap: 0.75rem;
    }
}

@media (min-width: 1200px) {
    .opp-dash__grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    }
}
