/* =============================================================================
   FRONT PAGE HEADER BACKGROUND
   ============================================================================= */

.co-home-banner {
    background-color: #17193b;
    background-image: url('/wp-content/uploads/hero-slider/wavy-lines-background-1200x454-1.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}


/* =============================================================================
   HOMEPAGE HERO
   ============================================================================= */

.co-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 48px;
}

.co-hero__swirl {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 70% 80% at 5% 50%,  rgba(222, 165, 231, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 55% 70% at 92% 25%, rgba(219, 239, 157, 0.08) 0%, transparent 60%);
}

.co-hero__empty {
    max-width: 1800px;
    margin-inline: auto;
    padding: 60px 2rem;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-sans);
    text-align: center;
}

.co-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 2rem;
}


/* =============================================================================
   THREE-COLUMN LAYOUT (xl and up only)
   ============================================================================= */

.co-hero__layout {
    display: grid;
    grid-template-columns: 3fr 3fr 4fr;
    gap: 32px;
    align-items: stretch;
    min-height: 440px;
}


/* =============================================================================
   COL 1 — Static headline text
   ============================================================================= */

.co-hero__col-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}


.co-hero__headline {
    font-family: var(--font-sans);
    font-size: clamp(3.5rem, 4.5vw, 6.5rem);
    font-weight: 800;
    color: #dea5e7;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0;
}


/* =============================================================================
   COL 2 — Single card
   ============================================================================= */

.co-hero__col-main {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.co-hero__flag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 5px;
    z-index: 10;
    padding: 7px 26px 7px 14px;
    background: linear-gradient(135deg, #9d91ca 0%, #6a5aad 100%);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
    filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.45));
}

.co-hero__card--main {
    flex: 0 0 75%;
    border-right: 1px solid #d9dde2;
}


.co-hero__card-panels {
    position: absolute;
    inset: 0;
    overflow: hidden;
}


/* =============================================================================
   COL 3 — 2×2 grid
   ============================================================================= */

.co-hero__col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-auto-rows: 0;
    gap: 20px;
    overflow: hidden;
}


/* =============================================================================
   CARDS — shared
   ============================================================================= */

.co-hero__card {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 200px;
    border-right: 1px solid #d9dde2;
}

.co-hero__card--main {
    min-height: 180px;
}


/* Each card has two absolutely-positioned panels that slide past each other */
.co-hero__product {
    position: absolute;
    inset: 0;
    display: flex;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    text-decoration: none;
}


.co-hero__card-body {
    position: relative;
    z-index: 1;
    padding: 5px;
    width: 100%;
}

.co-hero__product-title {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.co-hero__card--main .co-hero__product-title {
    font-size: 36px;
    margin-bottom: 8px;
}

.co-hero__tagline {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: #9d91ca;
    margin: 6px 0;
    line-height: 1;
}

.co-hero__card--main .co-hero__tagline {
    font-size: 14px;
    margin: 8px 0;
}

/* WooCommerce price output */
.co-hero__price {
    font-family: var(--font-sans);
    font-weight: 700;
    color: #dbef9d;
    margin-bottom: 10px;
    line-height: 1;
}

.co-hero__price .woocommerce-Price-amount {
    font-size: 40px;
    color: #dbef9d;
}

.co-hero__card--main .co-hero__price .woocommerce-Price-amount {
    font-size: 50px;
}

.co-hero__price-sup {
    font-size: 0.45em;
    vertical-align: super;
    line-height: 0;
}

.co-hero__price ins {
    text-decoration: none;
}

.co-hero__price del {
    color: rgba(255,255,255,0.45);
    font-size: 0.75em;
    font-weight: 400;
    margin-right: 4px;
}

.co-hero__shop-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #ffffff;
    background-color: #ea1d25;
    padding: 4px 12px;
    border-radius: 4px;
}

.co-hero__card--main .co-hero__shop-btn {
    font-size: 14px;
    padding: 6px 16px;
}

.co-hero__product:hover .co-hero__shop-btn {
    opacity: 0.85;
}

@media (min-width: 1280px) {
    .co-hero__headline {
        font-size: 4vw;
    }
}


/* =============================================================================
   RESPONSIVE — scale down for smaller devices
   ============================================================================= */

/* ≤1100px — tighten section padding, headline scales down a step */
@media (max-width: 1100px) {
    .co-hero {
        padding: 20px 24px 40px;
    }

    .co-hero__headline {
        font-size: clamp(4rem, 5.5vw, 6rem);
    }

    .co-hero__col-text {
        padding: 20px 12px;
    }
}

/* ≤1000px — restack: headline + main card share a row, grid (all 4 cards) drops to its own full-width row.
   Every column caps at 500px, centered, so nothing gets squeezed too narrow. */
@media (max-width: 1000px) {
    .co-hero__layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "text main"
            "grid grid";
        min-height: 0;
    }

    .co-hero__col-text  { grid-area: text; }
    .co-hero__col-main  { grid-area: main; }
    .co-hero__col-grid  { grid-area: grid; }

    .co-hero__col-text,
    .co-hero__col-main,
    .co-hero__col-grid {
        width: 100%;
        max-width: 500px;
        margin-inline: auto;
    }

    /* Per-product bg-size % is tuned for full desktop card width — force fit instead of zoom */
    .co-hero__product {
        background-size: contain !important;
    }

    .co-hero__headline {
        font-size: clamp(3.5rem, 6.5vw, 5rem);
    }

    .co-hero__col-text {
        padding: 16px 10px;
    }
}

/* ≤900px — headline moves above into its own full-width row */
@media (max-width: 900px) {
    .co-hero__layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "main"
            "grid";
    }

    .co-hero__headline {
        font-size: clamp(3rem, 7.5vw, 4.25rem);
    }

    .co-hero__col-text {
        padding: 12px 8px;
    }
}

/* ≤600px — phone: keep all columns, stack every card 1-up (main + all 4 grid cards) */
@media (max-width: 600px) {
    .co-hero__col-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .co-hero__headline {
        font-size: clamp(2.75rem, 9vw, 3.5rem);
    }

    .co-hero__col-text {
        padding: 8px 6px;
    }

    /* Main card title shrinks (still a step above the grid card titles) */
    .co-hero__product-title {
        font-size: 28px;
    }

    .co-hero__card--main .co-hero__product-title {
        font-size: 32px;
    }
}

/* ≤479px (below xs) — less inner side padding */
@media (max-width: 479px) {
    .co-hero__inner {
        padding-inline: 1rem;
    }
}
