/* Collections page - card grid. Responsive column count (not a fixed 4)
   so cards stay roughly square at any width: 5 on very wide screens, 4 on
   typical desktop, 2 on tablet, 1 on phone. */
.yexart-collections-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.yexart-collection-card {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background-color: #222;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

@media (min-width: 1600px) {
	.yexart-collections-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.yexart-collection-card__scrim {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.yexart-collection-card__title {
	position: absolute;
	left: 24px;
	bottom: 20px;
	z-index: 1;
	color: #fff;
	font-weight: 700;
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

@media (max-width: 991px) {
	.yexart-collections-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 575px) {
	.yexart-collections-grid {
		grid-template-columns: 1fr;
	}
	.yexart-collection-card__title {
		font-size: 18px;
		left: 16px;
		bottom: 14px;
	}
}

/* Header mega menu (Collections). The theme's own CSS already makes the
   <li>/<ul class="menu"> ancestors `position: relative` (for its regular
   dropdowns) - that would make an `absolute` panel here hug the
   "Collections" link's own narrow width no matter what we set on the
   panel itself, since `absolute` always sizes against the *nearest*
   positioned ancestor. `fixed` sidesteps that (positions against the
   viewport instead), its `top` is set in JS (mega-menu.js) to track the
   header's actual bottom edge. */
.yexart-mega-menu {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	background: #fff;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
	padding: 28px;
	z-index: 200;
}

li.has-yexart-mega-menu:hover .yexart-mega-menu {
	display: block;
}

.yexart-mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 24px 16px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Extra ".yexart-mega-menu" ancestor on these three (instead of just
   ".yexart-mega-menu-item(__x)") to out-specificity the theme's own
   ".nav a { display: block }" / similar broad rules, which otherwise win
   over a single-class selector despite loading later. */
.yexart-mega-menu .yexart-mega-menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}

.yexart-mega-menu .yexart-mega-menu-item__img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #f2f1f0;
	background-size: cover;
	background-position: center;
	border: 1px solid #eaeaea;
}

.yexart-mega-menu .yexart-mega-menu-item__name {
	font-size: 12px;
	font-weight: 600;
	color: #222;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

/* Shop page - fixed side tab + collections panel. Plain text list of
   names on purpose (no icons), unlike the header mega menu. The toggle is
   a vertical tab (label + arrow) rather than a hamburger, so it reads
   clearly as "open this side panel" rather than a generic menu icon. */
.yexart-shop-panel-toggle {
	position: fixed;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	z-index: 210;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px 9px;
	background: #222;
	border: none;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
}

.yexart-shop-panel-toggle__label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.yexart-shop-panel-toggle__arrow {
	font-size: 16px;
	line-height: 1;
	color: #fff;
	transition: transform 0.2s ease;
}

.yexart-shop-panel-toggle[aria-expanded="true"] .yexart-shop-panel-toggle__arrow {
	transform: rotate(180deg);
}

.yexart-shop-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 280px;
	max-width: 80vw;
	background: #fff;
	box-shadow: 20px 0 40px rgba(0, 0, 0, 0.15);
	z-index: 220;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.yexart-shop-panel.is-open,
.yexart-shop-panel-toggle:hover + .yexart-shop-panel,
.yexart-shop-panel:hover {
	transform: translateX(0);
}

.yexart-shop-panel__inner {
	position: relative;
	padding: 60px 28px 28px;
}

.yexart-shop-panel__close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #222;
}

.yexart-shop-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.yexart-shop-panel__item {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	border-bottom: 1px solid #eaeaea;
	padding: 14px 0;
	font-size: 13px;
	font-weight: 600;
	color: #222;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	cursor: pointer;
}

.yexart-shop-panel__item:hover {
	color: #767676;
}

.yexart-shop-panel__item--all {
	font-weight: 700;
}

.yexart-shop-active-collection {
	margin: 4px 0 20px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #222;
}

.yexart-shop-active-collection__name {
	font-weight: 700;
}

.yexart-shop-active-collection__clear {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	margin-left: 6px;
	color: #222;
}
