:root {
    --bs-body-font-family: 'Roboto', sans-serif;
}

body {
    font-family: 'Roboto', sans-serif;
}

.site-brand-text {
    font-family: 'Roboto Flex', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding-left: 0.5rem;
}



/**
 * Category and Product Display - Buttons, titles etc
 *
 **/

/* button colors */
.btn-primary {
    --bs-btn-bg: #ccebee;
    --bs-btn-border-color: #ccebee;
    --bs-btn-hover-bg: #1d5a86;
    --bs-btn-hover-border-color: #1d5a86;
    --bs-btn-active-bg: #1d5a86;
    --bs-btn-color: #000;
    --bs-btn-hover-color: #fff;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    --bs-primary: #ccebee;
    color: #000;
}

/* Category card title — plain heading, black text, count in () */
.woocommerce-loop-category__title {
    background: transparent !important;
    border: 0 !important;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.woocommerce-loop-category__title:hover {
    text-decoration: underline;
    color: #000;
}

/* The count — drop badge look, wrap in parentheses */
.woocommerce-loop-category__title .count {
    background: transparent !important;
    color: #000;
    font-weight: 600;
    font-size: inherit;
    padding: 0;
}

/* Parentheses around the number */
.woocommerce-loop-category__title .count::before { content: "("; }
.woocommerce-loop-category__title .count::after  { content: ")"; }


/* Category cards only — same mechanism you found */
.product-category .card-body {
    flex: 0;
}




/**
 *  CUSTOM TREE MENU
 *
 *
 **/
.category-tree {
    --ct-red: #af1d35;
    --ct-hover-bg: #f5f1eb;
    --ct-parent-bg: #f7f3ee;
}

.category-tree,
.category-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links */
.category-tree a {
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes arrow right */
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.category-tree a:hover {
    background: var(--ct-hover-bg);
    color: #000;
}

/* Level sizing */
.category-tree > li > a {
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.category-tree .children a {
    font-size: 0.92rem;
    color: #555;
    border-bottom: 1px solid #ddd;
}

.category-tree .children .children > li > a {
    font-size: 0.9rem;
    padding-left: 25px;
}

/* Show/hide children */
.category-tree ul.children {
    display: none;
}

.category-tree li.open > ul.children,
.category-tree .current-cat > ul.children,
.category-tree .current-cat-parent > ul.children {
    display: block;
}

.category-tree .current-cat.open > ul.children,
.category-tree .current-cat-parent.open > ul.children {
    background: #f3f1ec;
}

/* Selected / current category */
.category-tree li.current-cat > a,
.category-tree li.current-cat-parent > a {
    cursor: default;
    opacity: 0.9;
}

.category-tree li.current-cat-parent > a {
    background: var(--ct-parent-bg);
    pointer-events: none;
}

.category-tree .current-cat.open > a,
.category-tree .current-cat-parent.open > a {
    background: var(--ct-red);
    font-weight: 500;
    color: #fff;
}

.category-tree .current-cat-parent.open .current-cat.open a {
    background: inherit;
    color: #000;
    font-weight: 700;
}

/* Root category highlight */
.category-tree li.root-cat > a {
    font-size: 1.5rem;
    color: #222;
}

/* ===== Arrows ===== */
.category-tree .category-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    padding: 4px;
    cursor: pointer;
    background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5l8 7-8 7' stroke='%23333' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    transition: transform 0.2s ease, filter 0.2s ease;
}

.category-tree li.open > a .category-arrow {
    transform: rotate(90deg);
}

.category-tree li.current-cat.open > a .category-arrow,
.category-tree li.current-cat-parent.open > a .category-arrow {
    filter: brightness(0) invert(1); /* white */
}

.category-tree .category-arrow:hover {
    filter: invert(17%) sepia(93%) saturate(7451%) hue-rotate(354deg) brightness(100%) contrast(101%); /* red */
}

/** END CUSTOM TREE STYLING **/





/* style the image thumbnail to prevent oversizing */
.card-img-top {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}


/**
 * CUSTOM BREADCRUMB STYLING
 *
 **/

/* The nav wrapper — grey track + padding */
nav[aria-label="breadcrumb"].bg-body-tertiary {
    --crumb-size: 1.35rem;          /* h3 size — used everywhere below */
    background: transparent !important;
    padding: 0 !important;          /* kills px-3 AND py-2 in one go */
    margin-bottom: .5rem !important;
    font-size: var(--crumb-size);
    line-height: 1.3;
}

/* Bootstrap's divider: "/" becomes ">" */
.breadcrumb {
    --bs-breadcrumb-divider: ">";
}

/* Hide the Home item */
.breadcrumb > li:first-child {
    display: none;
}

/* Kill the separator after the hidden Home item */
.breadcrumb > li:nth-child(2)::before {
    content: none;
}

/* Hide the Shop item (only if you can't touch PHP) */
.breadcrumb-item:has(a[href$="/shop/"]) {
    display: none;
}

/* Kill the separator after the hidden Shop item */
.breadcrumb-item:has(a[href$="/shop/"]) + .breadcrumb-item::before {
    content: none;
}

/* Breadcrumb links — thinner underline (or none) */
nav[aria-label="breadcrumb"] .breadcrumb-item a {
    color: #000;
    text-decoration-thickness: 1px;   /* or 0.5px for very thin */
    text-underline-offset: 3px;        /* breathing room from the text */
}

.breadcrumb-item a:hover {
    text-decoration: none;
}

/* On product pages: hide the product name (last breadcrumb item) */
body.single-product .breadcrumb > li:last-child {
    display: none;
}

/* "Stationery" item — zero the inherited left padding */
.breadcrumb-item:has(a[href$="/shop/"]) + .breadcrumb-item {
    padding-left: 0 !important;
}

/* ============================================================
   Rename "Stationery" → "Categories" (visual only)
   ============================================================ */

/* Case 1 — Stationery is a LINK (a subcat is selected):
   rename on the <a> itself so it stays clickable */
.breadcrumb-item:has(a[href$="/shop/"]) + .breadcrumb-item a {
    font-size: 0;
    line-height: 0;
    text-decoration: none;           /* no ghost underline from 0-size text */
}

.breadcrumb-item:has(a[href$="/shop/"]) + .breadcrumb-item a::after {
    content: "Categories";
    font-size: var(--crumb-size);
    line-height: 1.3;
    color: #000;
    text-decoration: underline;      /* fake the link look */
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.breadcrumb-item:has(a[href$="/shop/"]) + .breadcrumb-item a:hover::after {
    text-decoration: none;
}

/* Case 2 — Stationery is the CURRENT page (no subcat selected,
   rendered as plain text with no link): rename on the <li> */
.breadcrumb-item:has(a[href$="/shop/"]) + .breadcrumb-item:not(:has(a)) {
    font-size: 0;
    line-height: 0;
}

/* Keep the ">" divider visible (font-size: 0 shrinks it too) */
.breadcrumb-item:has(a[href$="/shop/"]) + .breadcrumb-item:not(:has(a))::before {
    font-size: var(--crumb-size);
    line-height: 1.3;
    color: #000;
}

/* Draw "Categories" at breadcrumb size */
.breadcrumb-item:has(a[href$="/shop/"]) + .breadcrumb-item:not(:has(a))::after {
    content: "Categories";
    font-size: var(--crumb-size);
    line-height: 1.3;
    color: #000;
}

/* ============================================================
   Mobile (<992px): smaller breadcrumb text
   ============================================================ */
@media (max-width: 991.98px) {
    nav[aria-label="breadcrumb"].bg-body-tertiary {
        --crumb-size: 1rem;      /* "Categories" follows automatically */
        font-size: 1rem;
    }
}

