/* ── Hero ── */
.ew-hero {
    background: linear-gradient(135deg, #C9B3F5 0%, #EDE7FF 100%);
    padding: 72px 0;
    overflow: hidden;
}
.ew-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.ew-hero__text h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: #1A1A1A;
    margin: 0 0 16px;
}
.ew-hero__text h1 span { color: #7B4FD9; }
.ew-hero__text p { color: #444; font-size: 16px; margin: 0 0 28px; max-width: 420px; }
.ew-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ew-btn {
    display: inline-block;
    background: #7B4FD9;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}
.ew-btn:hover { background: #5E35B1; color: #fff !important; }
.ew-btn--outline {
    background: transparent;
    border: 2px solid #1A1A1A;
    color: #1A1A1A !important;
}
.ew-btn--outline:hover { background: #1A1A1A; color: #fff !important; }
.ew-hero__image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

/* ── Category Cards ── */
.ew-cats { padding: 56px 0 40px; }
.ew-cats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ew-cat-card {
    display: block;
    text-decoration: none;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ew-cat-card:hover { box-shadow: 0 6px 24px rgba(123,79,217,0.12); transform: translateY(-2px); }
.ew-cat-card__img { aspect-ratio: 4/3; overflow: hidden; background: #F3EEFF; }
.ew-cat-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ew-cat-card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 40px; }
.ew-cat-card__label { display: block; padding: 12px 14px; font-weight: 600; font-size: 14px; color: #1A1A1A; }

/* ── Why Us ── */
.ew-why { padding: 40px 0; background: #F3EEFF; }
.ew-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.ew-why__item { padding: 20px 12px; }
.ew-why__icon { font-size: 32px; display: block; margin-bottom: 10px; }
.ew-why__item strong { display: block; font-size: 15px; color: #1A1A1A; margin-bottom: 4px; }
.ew-why__item p { font-size: 13px; color: #666; margin: 0; }

/* ── Per-category product sections ── */
/* ── Per-category section ── */
.ew-cat-section { padding: 48px 0 0; }

.ew-cat-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

/* Desktop: heading left block + cards + view all in one row */
.ew-cat-section__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

.ew-cat-section__heading-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--clr-primary-light, #EDE7FF);
    border-radius: 10px;
    min-height: 100%;
}
.ew-cat-section__heading-block h2 {
    font-size: 20px;
    font-weight: 800;
    color: #7B4FD9;
    margin: 0;
    line-height: 1.3;
}
.ew-cat-section__heading-block .ew-view-all {
    font-size: 13px;
    color: #7B4FD9;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ew-cat-section__heading-block .ew-view-all:hover { text-decoration: underline; }

/* Product cards strip */
.ew-products-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Product card */
.ew-product-card {
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ew-product-card:hover {
    box-shadow: 0 4px 18px rgba(123,79,217,0.10);
    transform: translateY(-2px);
}
.ew-product-card__img-link {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #FAFAFA;
}
.ew-product-card__img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.ew-product-card:hover .ew-product-card__img-link img { transform: scale(1.04); }
.ew-product-card__body { padding: 14px; }
.ew-product-card__title { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.ew-product-card__title a { text-decoration: none; color: #1A1A1A; }
.ew-product-card__title a:hover { color: #7B4FD9; }
.ew-product-card__price { font-size: 15px; font-weight: 700; color: #7B4FD9; margin-bottom: 12px; }
.ew-product-card .button {
    width: 100%;
    text-align: center;
    display: block !important;
    background: #7B4FD9 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 9px 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.2s !important;
}
.ew-product-card .button:hover { background: #5E35B1 !important; }

/* ── Blog teaser ── */
.ew-blog-teaser { padding: 56px 0 72px; background: #FAFAFA; }

.ew-blog-section__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

.ew-blog-section__heading-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: #EDE7FF;
    border-radius: 10px;
}
.ew-blog-section__heading-block h2 {
    font-size: 20px;
    font-weight: 800;
    color: #7B4FD9;
    margin: 0;
    line-height: 1.3;
}
.ew-blog-section__heading-block .ew-view-all {
    font-size: 13px;
    color: #7B4FD9;
    font-weight: 600;
    text-decoration: none;
}
.ew-blog-section__heading-block .ew-view-all:hover { text-decoration: underline; }

.ew-blog-teaser__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ew-blog-teaser__grid .ew-blog-card:only-child { max-width: 380px; }

.ew-blog-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.ew-blog-card:hover { box-shadow: 0 4px 18px rgba(123,79,217,0.10); }
.ew-blog-card__img { aspect-ratio: 16/9; overflow: hidden; }
.ew-blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ew-blog-card__body { padding: 14px; }
.ew-blog-card__date { font-size: 12px; color: #999; display: block; margin-bottom: 6px; }
.ew-blog-card h3 { font-size: 14px; font-weight: 700; color: #1A1A1A; margin: 0 0 6px; }
.ew-blog-card p { font-size: 13px; color: #666; margin: 0; }


/* ── About Strip ── */
.ew-about-strip { padding: 64px 0; background: #fff; }
.ew-about-strip__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.ew-about-strip__inner h2 { font-size: 24px; font-weight: 800; color: #1A1A1A; margin-bottom: 12px; }
.ew-about-strip__inner p { color: #555; font-size: 15px; line-height: 1.7; margin: 0; }


/* ── Responsive ── */
@media (max-width: 1024px) {
    .ew-cat-section__row {
        grid-template-columns: 140px 1fr;
    }
    /* hide the view-all from heading block on tablet, show old header instead */
    .ew-cat-section__row { grid-template-columns: 1fr; }
    .ew-cat-section__heading-block {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: auto;
        padding: 12px 16px;
    }
    .ew-products-row { grid-template-columns: repeat(2, 1fr); }
    .ew-blog-section__row { grid-template-columns: 1fr; }
    .ew-blog-section__heading-block {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
    }
    .ew-blog-teaser__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .ew-products-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ew-blog-teaser__grid { grid-template-columns: 1fr; }
    .ew-cat-section__heading-block h2 { font-size: 17px; }
    .ew-why__grid { grid-template-columns: repeat(2, 1fr); }
}