/*
 * product-cat-swiper.css
 * Place in: /wp-content/themes/YOUR-THEME/css/product-cat-swiper.css
 */

/* ── Page wrapper ─────────────────────────────────────── */
.wc-category-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    box-sizing: border-box;
}

/* ── Page title ───────────────────────────────────────── */
.wc-category-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #111;
    margin: 0 0 16px 0;
}

/* ── Breadcrumb ───────────────────────────────────────── */
.wc-breadcrumb {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #888;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.wc-breadcrumb a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.wc-breadcrumb a:hover { color: #cc0000; text-decoration: underline; }
.wc-breadcrumb span {
    color: #ccc;
    margin: 0 8px;
}
.wc-breadcrumb strong {
    color: #cc0000;
    font-weight: 700;
}

/* ── Swiper container ─────────────────────────────────── */
.product-cat-swiper {
    position: relative;
    padding-bottom: 10px;
    /* give room for the arrows */
    padding-left: 0;
    padding-right: 0;
}

/* ── Individual slide / card ──────────────────────────── */
.product-cat-slide {
    display: flex !important;   /* override Swiper's block */
    flex-direction: column;
    justify-content: space-between;
    border: 1.5px solid #e0e0e0;
    background: #ffffff;
    text-decoration: none !important;
    color: #111;
    box-sizing: border-box;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
	width: 20%;
    height: auto;               /* let content define height */
}
.product-cat-slide:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    border-color: #bbb;
}

/* ── Icon area ────────────────────────────────────────── */
.product-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 28px;
    box-sizing: border-box;
}
.product-cat-icon img,
.product-cat-icon svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
/* placeholder SVG slightly faded */
.product-cat-icon svg {
    opacity: 0.4;
}

/* ── Title bar ────────────────────────────────────────── */
.product-cat-title {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #111;
    line-height: 1.4;
    padding: 12px 14px 0 14px;
    border-top: 1px solid #eee;
    position: relative;
    /* space for the red underline bar */
    padding-bottom: 13px;
}

/* Red underline bar — shown on hover */
.product-cat-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: transparent;
    transition: background 0.2s;
}
.product-cat-slide:hover .product-cat-title::after {
    background: #cc0000;
}

/* ── Swiper arrows ────────────────────────────────────── */
.product-cat-swiper .swiper-button-prev,
.product-cat-swiper .swiper-button-next {
    top: 30%;                    /* align with icon area */
    width: 36px;
    height: 36px;
    background: #e5e5e5;
    border-radius: 2px;
    color: #444;
    transition: background 0.2s;
}
.product-cat-swiper .swiper-button-prev:hover,
.product-cat-swiper .swiper-button-next:hover {
    background: #ccc;
}
.product-cat-swiper .swiper-button-prev::after,
.product-cat-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 900;
}
/* Push arrows outside the track */
.product-cat-swiper .swiper-button-prev { left: -46px; }
.product-cat-swiper .swiper-button-next { right: -46px; }

/* On small screens keep arrows inside */
@media (max-width: 900px) {
    .product-cat-swiper .swiper-button-prev { left: 4px; }
    .product-cat-swiper .swiper-button-next { right: 4px; }
    .product-cat-swiper { padding-left: 0; padding-right: 0; }
}