/* =============================================================
   ELYSIA SHOP — Categorised layout styles
   ============================================================= */

/* ── Shop page header ─────────────────────────────────────── */
.elysia-shop-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.elysia-shop-header {
    text-align: center;
    padding: 48px 20px 32px;
    border-bottom: 1px solid #ede8f2;
    margin-bottom: 0;
}

.elysia-shop-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #372446;
    margin-bottom: 8px;
}

.elysia-shop-subtitle {
    color: #7a6a8a;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

/* ── Sticky category nav ──────────────────────────────────── */
.elysia-cat-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #372446;
    border-bottom: 2px solid #19BFB7;
    padding: 0;
    margin: 0 -20px 0;               /* bleed to page edges */
    box-shadow: 0 4px 20px rgba(55, 36, 70, 0.35);
}

.elysia-cat-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}

.elysia-cat-nav-inner::-webkit-scrollbar { display: none; }

.elysia-cat-nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px;
    color: #c9b8d8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
    flex-shrink: 0;
}

.elysia-cat-nav-link:hover,
.elysia-cat-nav-link.is-active {
    color: #19BFB7;
    border-bottom-color: #19BFB7;
    text-decoration: none;
}

.elysia-cat-nav-link .nav-icon {
    font-size: 1rem;
}

/* ── Category section ─────────────────────────────────────── */
.elysia-cat-section {
    padding: 52px 0 40px;
    scroll-margin-top: 60px;       /* offset for sticky nav height */
}

/* Section header bar */
.elysia-cat-section-header {
    background: linear-gradient(135deg, #372446 0%, #4a2e62 100%);
    border-radius: 10px;
    margin-bottom: 28px;
    padding: 24px 28px;
}

.elysia-cat-section-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cat-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cat-section-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.cat-section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.2;
}

.cat-section-tagline {
    font-size: 0.82rem;
    color: #a0deda;
    margin: 0;
    letter-spacing: 0.03em;
}

.cat-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cat-product-count {
    background: rgba(25, 191, 183, 0.18);
    border: 1px solid rgba(25, 191, 183, 0.35);
    color: #19BFB7;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
}

.cat-view-all {
    color: #19BFB7;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.15s ease;
}

.cat-view-all:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ── Product grid inside section ──────────────────────────── */
.elysia-cat-products .products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (max-width: 1024px) {
    .elysia-cat-products .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .elysia-cat-products .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .elysia-cat-nav-link .nav-icon { display: none; }
    .cat-section-icon { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .elysia-cat-products .products {
        grid-template-columns: 1fr !important;
    }
    .cat-header-right { display: none; }
}

/* Product card overrides within sections */
.elysia-cat-products ul.products li.product {
    background: #ffffff;
    border: 1px solid #ede8f2;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px 16px 16px !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.elysia-cat-products ul.products li.product:hover {
    box-shadow: 0 8px 28px rgba(55, 36, 70, 0.12);
    transform: translateY(-3px);
    border-color: #19BFB7;
}

.elysia-cat-products ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #372446;
    margin-bottom: 8px;
    line-height: 1.4;
    flex-grow: 1;
}

.elysia-cat-products ul.products li.product .price {
    color: #19BFB7 !important;
    font-weight: 700;
    font-size: 0.95rem !important;
    margin-bottom: 12px;
}

.elysia-cat-products ul.products li.product a.button,
.elysia-cat-products ul.products li.product button.button {
    width: 100%;
    text-align: center;
    background: #19BFB7 !important;
    border-color: #19BFB7 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-size: 0.82rem !important;
    padding: 9px 12px !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: auto;
}

.elysia-cat-products ul.products li.product a.button:hover,
.elysia-cat-products ul.products li.product button.button:hover {
    background: #13a09a !important;
    border-color: #13a09a !important;
}

/* No product image placeholder — clean text-only card */
.elysia-cat-products ul.products li.product .woocommerce-LoopProduct-link img {
    border-radius: 6px;
    margin-bottom: 12px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f5f0fa;
}

/* ── Section divider ──────────────────────────────────────── */
.elysia-cat-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ede8f2 20%, #d4c8e0 50%, #ede8f2 80%, transparent 100%);
    margin: 0;
}

/* ── Suppress default WC page title (we render our own) ───── */
.woocommerce-products-header,
.woocommerce-breadcrumb + h1.woocommerce-products-header__title {
    display: none !important;
}

/* ── Active nav link highlight (JS-driven via IntersectionObserver) */
.elysia-cat-nav-link.is-active {
    color: #19BFB7 !important;
    border-bottom-color: #19BFB7 !important;
}
