/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;                 /* tighter spacing like Magento */
    margin-top: 20px;

    font-family: "PT Sans", Arial, Helvetica, sans-serif;
    font-size: 12px;
}

/* Page numbers + arrows */
.pagination a,
.pagination span.current,
.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 32px;

    padding: 0 14px;
    line-height: 1;

    border: 1px solid #000;
    background: #fff;
    color: #000;

    text-decoration: none;
    box-sizing: border-box;
}

/* Current page */
.pagination span.current {
    background: #000;
    color: #fff;
    cursor: default;
}

/* Hover (Magento subtle) */
.pagination a:hover {
    background: #f5f5f5;
}

/* =========================================================
   Pagination arrows – Magento style (outline only)
   ========================================================= */

.pagination .nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 32px;
    height: 32px;
    padding: 0;

    border: 1px solid #000;
    background: #fff;
    text-decoration: none;

    position: relative;
}

.pagination .nav::before {
    content: "";
    width: 8px;
    height: 8px;

    border-top: 1.5px solid #000;
    border-right: 1.5px solid #000;

    display: block;
}

.pagination .nav.prev::before {
    transform: rotate(-135deg) translateX(-2px) translateY(1px);
}

.pagination .nav.next::before {
    transform: rotate(45deg) translateX(-1px) translateY(1px);
}

/* Shift GO TO PAGE block to the right */
.pagination .goto {
    margin-left: 30px;
}

.pagination .goto input{
    height: 30px;
    min-width: 32px;
    padding: 0 8px;
    border: 1px solid #000;
    background: #fff;
    font-size: 12px;
    color: #000;
    line-height: 28px;
}	
	
.pagination .goto button {
    height: 32px;
    min-width: 32px;
    padding: 0 8px;
    border: 1px solid #000;
    background: #000;
    font-size: 12px;
    color: #fff;
    line-height: 28px;
}

/* Remove number input up/down arrows (pagination jump) */
.pagination .goto input[type="number"]::-webkit-inner-spin-button,
.pagination .goto input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pagination .goto input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}



/* =========================================================
   MAGENTO-STYLE BREADCRUMBS
   ========================================================= */

.catalog-breadcrumbs {
    margin: 10px 0 15px;
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    font-size: 12px;
    color: #a3a3a3;
	text-transform: uppercase;
	padding-left: 21px;
}

.catalog-breadcrumbs .breadcrumbs {
    display: block;
}

.catalog-breadcrumbs .breadcrumbs a {
    color: #a3a3a3;
    text-decoration: none;
}

.catalog-breadcrumbs .breadcrumbs a:hover {
    text-decoration: underline;
}

.catalog-breadcrumbs .breadcrumbs span {
    color: #a3a3a3;
    font-weight: 400;
}

.catalog-breadcrumbs .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.catalog-breadcrumbs .breadcrumbs a,
.catalog-breadcrumbs .breadcrumbs span {
    display: inline-flex;
    align-items: center;
}

/* Magento-style breadcrumb arrow (stem + solid triangle) */
.catalog-breadcrumbs .breadcrumbs .crumb-sep {
    position: relative;
    width: 14px;
    height: 10px;
    margin: 0 8px;
    flex-shrink: 0;
}

/* stem */
.catalog-breadcrumbs .breadcrumbs .crumb-sep::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 9px;
    height: 2px;
    background-color: #b5b5b5;
    transform: translateY(-50%);
}

/* solid triangle head */
.catalog-breadcrumbs .breadcrumbs .crumb-sep::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 9px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #b5b5b5;
    transform: translateY(-50%);
}

/* =========================================================
   MAGENTO-STYLE CATALOG LAYOUT
   ========================================================= */

/* Breadcrumb spacing */
.catalog-breadcrumbs {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Category title + toolbar */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.catalog-title {
    font-size: 26px;
    font-weight: normal;
    margin: 0;
}

/* Main two-column layout */
.catalog-columns {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* LEFT SIDEBAR */
.catalog-sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* RIGHT CONTENT */
.catalog-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* Products wrapper */
.catalog-products-wrapper {
    width: 100%;
}

/* Pagination spacing */
.catalog-pagination {
    margin-top: 25px;
}

.category-tree,
.category-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-children {
    margin-left: 10px;
    padding-left: 6px;
    border-left: 1px solid #e5e5e5;
}

.category-toggle {
    display: inline-block;
    width: 14px;
    cursor: pointer;
    color: #999;
    user-select: none;
	margin-left: auto;
	margin-right: 16px;
}

.category-item.expanded > .category-toggle {
    color: #333;
}

/* ================================
   Sidebar category scroll box
   ================================ */

.catalog-sidebar .category-tree {
    max-height: 520px;          /* ~22 rows, adjust if needed */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;         /* space for scrollbar */
}

/* Prevent layout shift when scrollbar appears */
.catalog-sidebar {
    box-sizing: border-box;
}

/* Optional: smoother scrolling */
.catalog-sidebar .category-tree {
    scroll-behavior: smooth;
}

/* =========================================================
   MAGENTO-STYLE CATALOG TITLE
   ========================================================= */

.catalog-title {
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

/* =========================================================
   MAGENTO-STYLE SIDEBAR
   ========================================================= */

.catalog-sidebar {
    font-family: "PT Sans", Helvetica Neue, Arial, sans-serif;
    font-size: 13px;
    color: #555;
}

/* Sidebar category block */

.catalog-sidebar .category-block {
    margin-bottom: 25px;
}

.catalog-sidebar .category-block h3 {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 200;
    text-transform: uppercase;
    color: #000;
}

.catalog-sidebar .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-sidebar .category-list li {
    margin: 10px 0;
}

.catalog-sidebar .category-list a {
    color: #000;
    text-decoration: none;
}

.catalog-sidebar .category-list a:hover {
    text-decoration: underline;
}


/* Filter groups */

.catalog-sidebar h3,
.catalog-sidebar h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 20px 0 8px;
}

.catalog-sidebar .filter-group {
    margin-bottom: 20px;
}


.catalog-sidebar .filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-sidebar .filter-list li {
    margin: 5px 0;
}

.catalog-sidebar .filter-list a {
    color: #000;
    text-decoration: none;
}

.catalog-sidebar .filter-list li a {
    font-size: 14px;
	color: #555;
	padding-left: 2px;
	line-height: 1.4;
}

.catalog-sidebar .filter-list a:hover {
    text-decoration: underline;
}

.catalog-sidebar .filter-list li.active a {
    font-weight: 600;
}

.category-item {
    display: grid;
    grid-template-columns: 1fr 14px; /* text | arrow */
    column-gap: 8px;
    align-items: start;
	position: relative;
}

.category-item > a {
    display: block;
    padding-right: 44px;     /* ← space for arrow */
    word-break: break-word;
}

.category-item > .category-children {
    grid-column: 1 / -1;
}

.category-toggle {
    display: inline-block;
    width: 10px;
    height: 10px;
    cursor: pointer;
    position: relative;
    top: -1px;
	margin-left: auto;
    flex-shrink: 0;
	position: absolute;
    right: 6px;
    top: 8px;
}

.category-toggle::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    top: 1px;
    left: 1px;

    transform-origin: center;
    transform: rotate(45deg);        /* ▼ DOWN */
    transition: transform 0.15s ease;
}

.category-item.expanded > .category-toggle::before {
    transform: rotate(225deg) translateX(-3px) translateY(-3px);
}

/* =========================================================
   CATEGORY TREE (EXPAND / COLLAPSE)
   ========================================================= */

.category-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    position: relative;
	display: flex;
    align-items: center;
	flex-wrap: wrap;
}

/* children are hidden by default */
.category-children {
    display: none;
    margin-left: 10px; /* indentation */
    list-style: none;
    padding-left: 5px;
}

.category-item > .category-children {
    width: 100%;
    margin-left: 10px; /* restore original indentation */
}


/* show children when expanded */
.category-item.expanded > .category-children {
    display: block;
}


.category-count {
    display: inline-block;
    margin-left: 6px;
    padding: 0 4px;

    font-size: 11px;
    font-weight: normal;
    line-height: 16px;

    color: #b5b5b5;
    background: #fff;

    border: 1px solid #cfcfcf;
    border-radius: 3px;

    vertical-align: middle;
    white-space: nowrap;
}

/* =========================
   Catalog toolbar (base)
   ========================= */

.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 12px 0;
    margin-bottom: 10px;

    font-size: 14px;
    color: #111;
}

.toolbar-limit,
.toolbar-sort {
    margin-left: auto;
}

/* View toggle (list / grid) */

.toolbar-view {
    display: flex;
    gap: 6px;
}

.toolbar-view a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    background: #222;
    color: #fff;

    text-decoration: none;
    font-size: 18px;
    line-height: 1;
}

.toolbar-view a:not(.active) {
    background: #f2f2f2;
    color: #000;
}

.toolbar-items {
    white-space: nowrap;
    color: #111;
}

/* Toolbar selects (underline style) */

.toolbar-limit,
.toolbar-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.toolbar-limit select,
.toolbar-sort select {
    border: none;
    border-bottom: 1px solid #d6d6d6;
    background: transparent;

    padding: 2px 4px;
    font-size: 14px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;
}

/* Sort direction arrow – Magento-style (stem + head) */

.sort-dir {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin-left: 6px;
    position: relative;

    text-decoration: none;
    color: #777;
    cursor: pointer;

    font-size: 0; /* hide any text */
}

/* STEM */
.sort-dir::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 7px;
    background: #777;
    left: 50%;
    transform: translateX(-50%);
}

/* ARROW HEAD */
.sort-dir::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* UP */
.sort-dir[data-dir="asc"]::before {
    top: 14px;
}

.sort-dir[data-dir="asc"]::after {
    top: 8px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #777;
}

/* DOWN */
.sort-dir[data-dir="desc"]::before {
    top: 10px;
}

.sort-dir[data-dir="desc"]::after {
    top: 17px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #777;
}


/* Toolbar font – match Magento */

.catalog-toolbar,
.catalog-toolbar select,
.catalog-toolbar option,
.catalog-toolbar a {
    font-family: "PT Sans", Arial, Helvetica, sans-serif;
    font-weight: normal;
}

/* Toolbar select wrapper */
.toolbar-select {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Native select */
.toolbar-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: transparent;

    /* spacing */
    padding-left: 8px;    /* space BEFORE number */
    padding-right: 22px;  /* space for arrow + space AFTER */

    font-size: 14px;
    cursor: pointer;
}

/* Arrow container (same as category toggle) */
.toolbar-select-arrow {
    display: inline-block;
    width: 10px;
    height: 10px;

    margin-left: -14px;  /* pull arrow inside select */
    margin-right: 8px;   /* space AFTER arrow */

    pointer-events: none;
    position: relative;
    top: -1px;
}

.toolbar-select-arrow::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-right: 2px solid #777;
    border-bottom: 2px solid #777;
    top: 1px;
    left: 1px;

    transform-origin: center;
    transform: rotate(45deg); /* ▼ DOWN */
}

/* =========================
   Catalog list layout
   ========================= */

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* space between items */
}

.catalog-list-item {
    display: block;
    grid-template-columns: 220px 220px minmax(360px, 1fr); /* image, image, text */
    column-gap: 24px;
    align-items: start;
}

.catalog-list-item > a.catalog-list-link {
    display: grid;
    grid-template-columns: 220px 220px minmax(360px, 1fr);
    column-gap: 24px;
    align-items: stretch; /* VERY IMPORTANT */
    text-decoration: none;
    color: inherit;
}

/* Image boxes */

.catalog-list-image {
    width: 260px;

    box-sizing: border-box; /* ← FIX */

    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    background: #fff;
    overflow: hidden;
}



.catalog-list-info {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    box-sizing: border-box; /* ← FIX */

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;

    width: 100%;
    max-width: none;
    align-items: center;

    text-align: center;
    padding: 32px 20px 20px;
	font-family: "PT Sans", Arial, Helvetica, sans-serif;
    font-weight: normal;
	font-size: 15px;
	color: #555;
}

.catalog-list-image img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    display: block;
}

/* =========================
   Catalog grid view
   ========================= */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    gap: 40px 30px; /* vertical / horizontal spacing */
}

/* Individual grid item */
.catalog-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Grid image box */

.catalog-grid-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px; /* smaller padding than list view */
    box-sizing: border-box;

    background: #fff;
    overflow: hidden;
}

.catalog-grid-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Grid item info */

.catalog-grid-info {
    margin-top: 2px;

    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: "PT Sans", Arial, Helvetica, sans-serif;
    text-align: center;
}

/* Issuer / location */
.catalog-grid-info div:nth-child(1) {
    font-size: 15px;
    font-weight: normal;
    color: #555;
    margin-bottom: 4px;
}

/* Item name */
.catalog-grid-info div:nth-child(2) {
    font-size: 15px;
    font-weight: normal;
    color: #555;
    margin-bottom: 4px;
}

/* Year */
.catalog-grid-info div:nth-child(3) {
    font-size: 15px;
    font-weight: normal;
    color: #555;
}

/* Base color for ALL grid info rows */
.catalog-grid-info div {
    color: #555;
}

.catalog-list,
.catalog-grid {
    width: 100%;
}

/* View switching */

.catalog-list {
    display: flex;
}

.catalog-grid {
    display: none;
}

.catalog-view-grid .catalog-list {
    display: none;
}

.catalog-view-grid .catalog-grid {
    display: grid;
}

/* Ensure images don’t shrink oddly */
.catalog-list-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* If grid view also needs fixing */
.catalog-grid-item > a.catalog-grid-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.catalog-list-image img[src$="/media/no_image.png"] {
    transform: scale(0.6);
    transform-origin: center center;
    opacity: 0.75;
}

.catalog-grid-image img[src$="/media/no_image.png"] {
    transform: scale(0.7);
    transform-origin: center center;
    opacity: 0.75;
}

