/* ==========================================================================
   Shop archive — hero + category tabs + sidebar filters + product grid.
   Apple / Insta360 inspired: white bg, soft borders, tight rhythm,
   clean typography, precise spacing, elegant hover micro-interactions.
   ========================================================================== */

body.coco-body-shop-custom {
	overflow-x: clip;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO — Store page (full-width immersive) + Category page (minimal)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Base hero (used by category page) ── */
.coco-shop-hero {
	position: relative;
	padding: 48px 0 32px;
	border-bottom: none;
	background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.coco-shop-hero > .coco-container {
	position: relative;
	z-index: 2;
}

.coco-shop-hero__title {
	position: relative;
	margin: 0;
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
	color: var(--text-main, #1d1d1f);
}

.coco-shop-hero__subtitle {
	margin: 16px 0 0;
	font-size: 16px;
	color: var(--text-gray, #6e6e73);
	line-height: 1.6;
	max-width: 560px;
}

/* ── Store page hero — full-width, immersive ── */
.coco-shop-hero--store {
	position: relative;
	width: 100%;
	max-width: none;
	padding: 72px 0 80px;
	margin: 0;
	background: #ffffff;
	overflow: hidden;
	isolation: isolate;
}

/* Base gradient backdrop — full screen */
.coco-shop-hero--store .coco-shop-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, #eef1f5 0%, #f7f8fa 40%, #ffffff 100%);
	z-index: 0;
}

/* Floating orbs */
.coco-shop-hero--store .coco-shop-hero__bg-orbs {
	display: none;
}

@keyframes cocoOrbFloat {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33%      { transform: translate(30px, -20px) scale(1.05); }
	66%      { transform: translate(-20px, 15px) scale(0.95); }
}

/* Fine grain overlay */
.coco-shop-hero--store::after {
	content: none;
}

/* Hero inner — grid: left text + right stats, same row */
.coco-shop-hero--store .coco-shop-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 40px;
	color: #1d1d1f;
}

/* Left column: eyebrow + title + subtitle */
.coco-shop-hero--store .coco-shop-hero__text {
	max-width: 620px;
}

.coco-shop-hero--store .coco-shop-hero__eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--theme-color, #0052D1);
	background: rgba(0, 82, 209, 0.08);
	border: 1px solid rgba(0, 82, 209, 0.12);
	border-radius: 980px;
}

.coco-shop-hero--store .coco-shop-hero__title {
	font-size: 52px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: #1d1d1f;
}

.coco-shop-hero--store .coco-shop-hero__subtitle {
	margin-top: 14px;
	font-size: 16px;
	color: #6e6e73;
	max-width: 480px;
}

/* Right column: stats */
.coco-shop-hero--store .coco-shop-hero__stats {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-shrink: 0;
}

.coco-shop-hero--store .coco-shop-hero__stats .stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: center;
}

.coco-shop-hero--store .coco-shop-hero__stats strong {
	font-size: 22px;
	font-weight: 700;
	color: #1d1d1f;
	letter-spacing: -0.01em;
}

.coco-shop-hero--store .coco-shop-hero__stats span {
	font-size: 12px;
	color: #86868b;
	font-weight: 500;
}

.coco-shop-hero--store .coco-shop-hero__stats .stat-divider {
	width: 1px;
	height: 32px;
	background: #e5e5ea;
}

/* ── Category archive hero — clean & minimal ── */
.coco-shop-hero--category {
	padding: 56px 0 20px;
	background: transparent;
}

.coco-shop-hero--category::before,
.coco-shop-hero--category::after {
	display: none;
}

.coco-shop-hero--category .coco-shop-hero__title {
	font-size: 40px;
	letter-spacing: -0.025em;
}

.coco-shop-hero--category .coco-shop-hero__subtitle {
	font-size: 15px;
	margin-top: 12px;
	max-width: none;
}

/* Hide legacy breadcrumb + title underline everywhere */
.coco-shop-hero .woocommerce-breadcrumb,
.coco-shop-hero__title::after {
	display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CATEGORY CHIPS (text only)
   ═══════════════════════════════════════════════════════════════════════════════ */
.coco-shop-cards {
	padding: 20px 0 20px;
	margin-top: -16px;
	z-index: 3;
}

.coco-shop-cards__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.coco-shop-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-main, #1d1d1f);
	background: #ffffff;
	border: 1px solid #e5e5ea;
	border-radius: 980px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease,
	            border-color 0.2s ease,
	            color 0.2s ease,
	            transform 0.2s ease,
	            box-shadow 0.2s ease;
}

.coco-shop-chip:hover {
	color: #ffffff;
	background: var(--text-main, #1d1d1f);
	border-color: var(--text-main, #1d1d1f);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.coco-shop-chip__count {
	font-size: 11px;
	font-weight: 600;
	color: var(--text-gray, #6e6e73);
	background: #f5f5f7;
	padding: 2px 8px;
	border-radius: 980px;
	min-width: 24px;
	text-align: center;
	transition: color 0.2s ease, background 0.2s ease;
}

.coco-shop-chip:hover .coco-shop-chip__count {
	color: var(--text-main, #1d1d1f);
	background: rgba(255, 255, 255, 0.9);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TWO-COLUMN LAYOUT + SIDEBAR + GRID + TOOLBAR + CARDS (base / desktop)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Two-column layout ── */
.coco-shop-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 32px;
	padding: 16px 0 32px;
}

.coco-shop-layout--category {
	grid-template-columns: 1fr !important;
	gap: 0;
	padding-top: 16px;
	padding-bottom: 40px;
	width: 100%;
}

.coco-shop-layout--category .coco-shop-sidebar { display: none; }

.coco-shop-layout--category .coco-shop-main {
	width: 100%;
	grid-column: 1 / -1;
}

.coco-shop-layout--category .coco-shop-toolbar {
	border-bottom: none;
	margin-bottom: 24px;
	padding-top: 0;
	padding-bottom: 0;

	min-width: 0;
	overflow: visible;
}

.coco-shop-layout--category .coco-shop-toolbar .woocommerce-result-count { display: none; }

/* ── Sidebar ── */
.coco-shop-sidebar {
	position: sticky;
	top: 100px;
	align-self: start;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #e5e5ea transparent;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

.coco-shop-sidebar::-webkit-scrollbar { width: 6px; }
.coco-shop-sidebar::-webkit-scrollbar-thumb {
	background: #e5e5ea;
	border-radius: 3px;
}
.coco-shop-sidebar::-webkit-scrollbar-track { background: transparent; }

/* Header — Reset · Title · Close */
.coco-shop-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.coco-shop-sidebar__title {
	flex: 1;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #262629;
	line-height: 22px;
}

.coco-shop-sidebar__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	margin-left: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--theme-color, #0052D1);
	border-radius: 10px;
	transition: background 0.2s ease, min-width 0.2s ease;
}

.coco-shop-sidebar__count[data-count="0"] {
	background: #e5e5ea;
	color: #86868b;
}

.coco-shop-sidebar__action {
	font-size: 14px;
	font-weight: 400;
	color: var(--theme-color, #0052D1);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px 6px;
	line-height: 1;
	border-radius: 8px;
	transition: opacity 0.15s ease;
}

.coco-shop-sidebar__action:hover { opacity: 0.75; }
.coco-shop-sidebar__action:disabled {
	color: #c7c7cc;
	cursor: default;
	opacity: 1;
}

.coco-shop-sidebar__action--close {
	display: none;
	width: 30px;
	height: 30px;
	padding: 0;
	align-items: center;
	justify-content: center;
	color: #8e8e93;
}

/* Desktop — no footer, no close button */
.coco-shop-sidebar__footer { display: none; }

/* Filter groups */
.coco-shop-filter + .coco-shop-filter { border-top: 1px solid #f4f4f5; }

.coco-shop-filter { padding: 24px 0; }

.coco-shop-filter__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	color: #262629;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 22px;
	text-align: left;
}

.coco-shop-filter__caret {
	transition: transform 0.2s ease, opacity 0.2s ease;
	color: #262629;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.coco-shop-filter__caret-open,
.coco-shop-filter__caret-closed { transition: opacity 0.2s ease; }

.coco-shop-filter__toggle .coco-shop-filter__caret-closed { display: none; }
.coco-shop-filter__toggle .coco-shop-filter__caret-open   { display: inline-block; }

.coco-shop-filter__toggle[aria-expanded="false"] .coco-shop-filter__caret-closed { display: inline-block; }
.coco-shop-filter__toggle[aria-expanded="false"] .coco-shop-filter__caret-open   { display: none; }

.coco-shop-filter__body { margin-top: 14px; }

.coco-shop-filter__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}

/* Chip list — horizontal wrap, space-efficient */
.coco-shop-filter__list--chips {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.coco-shop-filter__chip-item { margin: 0; }
.coco-shop-filter__chip-item.is-child { margin-left: 16px; }

/* Chip (button-like toggle wrapping a hidden checkbox) */
.coco-shop-filter__chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 500;
	color: #6b6b70;
	background: #fff;
	border: 1px solid #e5e5ea;
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.coco-shop-filter__chip input[type="checkbox"] {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.coco-shop-filter__chip:hover {
	background: #ececef;
	color: #262629;
}

/* Selected state — outlined + remove badge top-right */
.coco-shop-filter__chip.is-selected {
	color: #262629;
	background: #fff;
	border-color: var(--theme-color, #0052D1);
}

.coco-shop-filter__chip.is-selected .coco-shop-filter__chip-remove {
	display: inline-flex;
}

.coco-shop-filter__chip input[type="checkbox"]:focus-visible ~ .coco-shop-filter__chip-label {
	box-shadow: 0 0 0 3px rgba(0, 82, 209, 0.18);
	border-radius: 8px;
}

.coco-shop-filter__chip-label { line-height: 1; }

/* Small × badge — only visible when chip is selected */
.coco-shop-filter__chip-remove {
	display: none;
	position: absolute;
	top: -6px;
	right: -6px;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
	background: var(--theme-color, #0052D1);
	color: #fff;
	border-radius: 50%;
	line-height: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	z-index: 1;
}
.coco-shop-filter__chip-remove svg { display: block; }

.coco-shop-filter__empty {
	margin: 0;
	padding: 4px 0;
	font-size: 13px;
	color: #a0a0a8;
}

.coco-shop-filter__count {
	font-size: 12px;
	color: #a0a0a8;
	font-variant-numeric: tabular-nums;
}

/* ── Main + Toolbar ── */
.coco-shop-main { min-width: 0; }

.coco-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 12px;
	margin-bottom: 20px;
	border-bottom: none;
}

.coco-shop-toolbar .woocommerce-result-count {
	margin: 0;
	font-size: 14px;
	color: var(--text-gray, #6e6e73);
}

.coco-shop-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 0;
}

.coco-shop-toolbar .orderby {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* Custom sort dropdown */
.coco-custom-sort { position: relative; display: inline-block; }

.coco-custom-sort__trigger {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 4px 4px 2px;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	color: var(--text-main, #1d1d1f);
	background: transparent;
	border: none;
	border-radius: 0;
	cursor: pointer;
	line-height: 1.2;
	transition: color 0.15s ease;
}

.coco-custom-sort__trigger:hover { color: var(--theme-color, #0052D1); }
.coco-custom-sort__trigger:focus-visible { outline: none; color: var(--theme-color, #0052D1); }

.coco-custom-sort__label { line-height: 1.2; }

.coco-custom-sort__caret {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12px; height: 12px;
	color: #6e6e73;
	transition: transform 0.2s ease, color 0.15s ease;
}

.coco-custom-sort.is-open .coco-custom-sort__caret {
	transform: rotate(180deg);
	color: var(--theme-color, #0052D1);
}

.coco-custom-sort__trigger:hover .coco-custom-sort__caret { color: var(--theme-color, #0052D1); }

.coco-custom-sort__panel {
	position: absolute;
	left: 0;
	right: auto;
	top: calc(100% + 4px);
	min-width: 180px;
	width: max-content;
	max-width: calc(100vw - 32px);
	max-height: 320px;
	overflow-y: auto;
	padding: 6px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.10);
	z-index: 500;
	scrollbar-width: thin;
	scrollbar-color: #d1d1d6 transparent;
}

.coco-custom-sort__panel::-webkit-scrollbar { width: 6px; }
.coco-custom-sort__panel::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 3px; }
.coco-custom-sort__panel::-webkit-scrollbar-track { background: transparent; }

.coco-custom-sort__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
	padding: 8px 12px;
	font-size: 13.5px;
	font-weight: 400;
	font-family: inherit;
	color: #1d1d1f;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	white-space: nowrap;
	transition: background 0.12s ease, color 0.12s ease;
}

.coco-custom-sort__option:hover,
.coco-custom-sort__option.is-focused {
	background: #f5f5f7;
	color: #0052D1;
	outline: none;
}

.coco-custom-sort__option-label { flex: 1; line-height: 1.3; }

.coco-custom-sort__check {
	flex-shrink: 0;
	color: #0052D1;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.coco-custom-sort__option.is-selected .coco-custom-sort__check {
	opacity: 1;
	transform: scale(1);
}

.coco-custom-sort__panel[hidden] { display: none; }
.coco-custom-sort__panel:not([hidden]) {
	animation: cocoSortPanelDown 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.coco-custom-sort__panel.is-flip-up:not([hidden]) {
	animation: cocoSortPanelUp 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes cocoSortPanelDown {
	from { opacity: 0; transform: translateY(-6px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cocoSortPanelUp {
	from { opacity: 0; transform: translateY(6px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.coco-shop-toolbar__filters-btn {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 6px 2px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-main, #1d1d1f);
	background: transparent;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: color 0.15s ease;
}

.coco-shop-toolbar__filters-btn:hover { color: var(--theme-color, #0052D1); }
.coco-shop-toolbar__filters-btn:focus { outline: none; box-shadow: none; color: var(--theme-color, #0052D1); }

.coco-shop-toolbar__filters-count {
	display: none;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	color: #fff;
	background: #1d1d1f;
	border-radius: 9px;
	text-align: center;
	align-items: center;
	justify-content: center;
	margin-left: 2px;
}

.coco-shop-toolbar__filters-btn .coco-shop-toolbar__filters-label { display: inline; }

/* ── Product grid ── */
.coco-shop-grid,
.coco-shop-products .products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.coco-shop-layout--category .coco-shop-grid,
.coco-shop-layout--category .coco-shop-products .products {
	grid-template-columns: repeat(4, 1fr);
	gap: 2px;
}

/* ── Product Card ── */
.coco-shop-card-wrap {
	margin: 0;
	display: flex;
}

.coco-shop-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	height: 100%;
	padding: 10px;
	background: #ffffff;
	border-radius: 18px;
	border: none;
	cursor: default;
}

/* Button turns blue when ANYWHERE on card is hovered */
.coco-shop-card:hover .coco-shop-card__add,
.coco-shop-card:hover .coco-shop-card__cta .button {
	background: #0052D1;
}

/* Media — clickable, zoom cursor */
.coco-shop-card__media {
	position: relative;
	display: block;
	width: 100%;
	padding-top: 100%;
	background: #f5f5f7;
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
}

.coco-shop-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.coco-shop-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #f5f5f7 0%, #ebebef 100%);
	border-radius: inherit;
}

/* Badge */
.coco-shop-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 3px 9px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 6px;
	backdrop-filter: blur(10px);
}

.coco-shop-card__badge--new { background: rgba(0, 113, 227, 0.92); color: #fff; }
.coco-shop-card__badge--sale { background: rgba(255, 59, 48, 0.92); color: #fff; }

/* Body */
.coco-shop-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.coco-shop-card__title {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--text-main, #1d1d1f);
	letter-spacing: -0.005em;
}

.coco-shop-card__title a {
	color: inherit;
	text-decoration: none;
	cursor: default;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
/* NOTE: no title hover color change — stays same */

.coco-shop-card__desc { display: none; }
.coco-shop-card__desc-legacy {
	margin: 0;
	font-size: 12.5px;
	color: var(--text-gray, #6e6e73);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-shrink: 0;
}

.coco-shop-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: auto;
	padding-top: 4px;
}

.coco-shop-card__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 17px;
	font-weight: 600;
	color: var(--text-main, #1d1d1f);
}

.coco-shop-card__price .woocommerce-Price-amount { font-weight: 600; }
.coco-shop-card__price del { font-size: 13px; font-weight: 400; color: #86868b; }
.coco-shop-card__price .woocommerce-Price-currencySymbol { font-size: 12px; font-weight: 500; }
.coco-shop-card__price-suffix { font-size: 11px; font-weight: 400; color: var(--text-gray, #6e6e73); }

.coco-shop-card__add,
.coco-shop-card__cta .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 16px;
	font-size: 11.5px;
	font-weight: 500;
	color: #ffffff;
	background: #1d1d1f;
	border: none;
	border-radius: 980px;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.2s ease;
	text-decoration: none;
	line-height: 1.3;
	white-space: nowrap;
}

.coco-shop-card__add:hover,
.coco-shop-card__cta .button:hover {
	transform: scale(1.04);
}

.coco-shop-card__add:active,
.coco-shop-card__cta .button:active {
	transform: scale(0.97);
}

.coco-shop-card__add:active,
.coco-shop-card__cta .button:active { transform: scale(0.97); }

.coco-shop-card__add:disabled,
.coco-shop-card__add.added,
.coco-shop-card__cta .button.added {
	background: #e5e5ea;
	color: #86868b;
	cursor: default;
	transform: none;
}

/* ── Mobile drawer overlay ── */
body.coco-filter-drawer-open { overflow: hidden; }

.coco-filter-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 105;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

body.coco-filter-drawer-open .coco-filter-drawer-overlay {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.35s ease, visibility 0s linear 0s;
}

/* ── Pagination ── */
.coco-shop-main .woocommerce-pagination {
	margin-top: 32px;
	text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ──────────────────────────────────────────────────────────────────────────────
   Store product grid | Category product grid | Category chips
   >1024:   3  (220 sidebar) | 4  (full-width)  | flex-wrap pills
   ≤1024:   3  (200 sidebar) | 3                | flex-wrap pills
   ≤900 :   2  (sidebar)     | 3                | flex-wrap pills
   ≤768 :   2  (drawer)      | 2                | flex-wrap pills (tighter)
   ≤480 :   2                | 2                | smaller pills
   ≤360 :   1                | 1                | smaller pills
   ═══════════════════════════════════════════════════════════════════════════════ */



/* ── ≤1200px: iPad landscape + phone → drawer sidebar ── */
@media (max-width: 1280px) {
	/* Store layout — sidebar → bottom drawer (iPad + phone) */
	.coco-shop-sidebar {
		position: fixed !important;
		top: auto !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		z-index: 9999;
		width: 100vw !important;
		max-width: none !important;
		margin: 0 !important;
		max-height: 85dvh;
		height: auto;
		padding: 8px 20px 0;
		background: #ffffff;
		border-radius: 20px 20px 0 0;
		border: none;
		box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
		overflow: hidden;
		display: flex;
		flex-direction: column;
		transform: translateY(100%);
		visibility: hidden;
		opacity: 1;
		transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		            visibility 0s linear 0.35s;
	}

	.coco-shop-sidebar::before {
		content: '';
		position: absolute;
		top: 8px; left: 50%;
		transform: translateX(-50%);
		width: 36px; height: 4px;
		border-radius: 2px;
		background: #e5e5ea;
		z-index: 3;
	}

	body.coco-filter-drawer-open .coco-shop-sidebar {
		transform: translateY(0);
		visibility: visible;
		transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		            visibility 0s linear 0s;
	}

	/* Header — sticky at top, below drag handle */
	.coco-shop-sidebar__header {
		flex-shrink: 0;
		padding: 16px 0 14px;
		margin-bottom: 0;
		background: #fff;
		border-bottom: 1px solid #f4f4f5;
		position: relative;
		z-index: 2;
	}

	/* Show close button on mobile */
	.coco-shop-sidebar__action--close {
		display: inline-flex;
	}

	/* Hide count badge and header Reset in the drawer — footer has the buttons */
	.coco-shop-sidebar__count,
	.coco-shop-sidebar__action--reset {
		display: none;
	}

	/* Body — scrolls between header and footer */
	.coco-shop-sidebar__body {
		flex: 1;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 4px 0 16px;
	}

	.coco-shop-filter { padding: 18px 0; }
	.coco-shop-filter:first-of-type { padding-top: 20px; }

	/* Footer — sticky at bottom with Reset + Show results */
	.coco-shop-sidebar__footer {
		display: flex;
		gap: 10px;
		flex-shrink: 0;
		padding: 14px 0 calc(16px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #f4f4f5;
	}

	.coco-shop-sidebar__btn-reset {
		flex: 0 0 auto;
		height: 46px;
		padding: 0 20px;
		background: #fff;
		color: #1c1c1e;
		border: 1px solid #e5e5ea;
		border-radius: 12px;
		font-size: 14px;
		cursor: pointer;
		transition: background 0.15s ease;
	}
	.coco-shop-sidebar__btn-reset:hover { background: #f7f7f9; }
	.coco-shop-sidebar__btn-reset:disabled {
		color: #c7c7cc;
		border-color: #f0f0f2;
		cursor: default;
		background: #fff;
	}

	.coco-shop-sidebar__btn-apply {
		flex: 1;
		height: 46px;
		background: var(--theme-color, #0052D1);
		color: #fff;
		border: none;
		border-radius: 12px;
		font-size: 15px;
		font-weight: 500;
		cursor: pointer;
		transition: opacity 0.15s ease;
	}
	.coco-shop-sidebar__btn-apply:hover { opacity: 0.88; }

	/* Toolbar — single row with Filters button */
	.coco-shop-toolbar {
		flex-wrap: wrap;
		gap: 12px;
		padding: 8px 0 12px;
		margin-bottom: 16px;
		border-bottom: none;
	}
	.coco-shop-toolbar .woocommerce-result-count { display: none; }
	.coco-shop-toolbar__sort { flex: 0 0 auto; }
	.coco-shop-toolbar__filters-btn {
		display: inline-flex;
		flex: 0 0 auto;
	}

	/* Sidebar became fixed drawer — collapse layout to single column so main can use full width. */
	.coco-shop-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.coco-shop-layout .coco-shop-main {
		width: 100%;
		grid-column: 1 / -1;
	}
}
@media (max-width: 1024px) {
	/* Store hero */
	.coco-shop-hero--store { padding: 56px 0 48px; }
	.coco-shop-hero--store .coco-shop-hero__title { font-size: 52px; }
	.coco-shop-hero--store .orb--1 { width: 340px; height: 340px; }
	.coco-shop-hero--store .orb--2 { width: 280px; height: 280px; }
	.coco-shop-hero--store .coco-shop-hero__inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.coco-shop-hero--store .coco-shop-hero__text { max-width: none; }
	.coco-shop-hero--store .coco-shop-hero__stats { justify-content: flex-start; }

	/* Category chips */
	.coco-shop-cards { padding: 12px 0 12px; margin-top: -24px; }
	/* Product grids */
	.coco-shop-grid,
	.coco-shop-products .products {
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
	}

	/* Card size scaling */
	.coco-shop-card { padding: 10px; gap: 10px; }
	.coco-shop-card__media { border-radius: 13px; }
	.coco-shop-card__title { font-size: 14px; }
	.coco-shop-card__price { font-size: 16px; }
	.coco-shop-card__badge { font-size: 10px; padding: 3px 8px; top: 10px; left: 10px; }

	.coco-shop-layout { padding: 0 0 24px; }
	.coco-shop-layout--category { padding-top: 8px; padding-bottom: 24px; }
	.coco-shop-layout--category .coco-shop-grid,
	.coco-shop-layout--category .coco-shop-products .products {
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
	}

}
@media (max-width: 900px) {
	.coco-shop-hero--store { padding: 48px 0 36px; }
	.coco-shop-hero--store .coco-shop-hero__title { font-size: 46px; }
	.coco-shop-hero--store .coco-shop-hero__subtitle { font-size: 16px; max-width: 440px; }

	.coco-shop-grid,
	.coco-shop-products .products {
		grid-template-columns: repeat(2, 1fr);
		gap: 4px;
	}

	.coco-shop-layout--category .coco-shop-grid,
	.coco-shop-layout--category .coco-shop-products .products {
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
	}

	.coco-shop-hero--category { padding: 40px 0 16px; }
	.coco-shop-hero--category .coco-shop-hero__title { font-size: 36px; }

	/* Card size */
	.coco-shop-card { padding: 9px; gap: 9px; border-radius: 16px; }
	.coco-shop-card__media { border-radius: 12px; }
	.coco-shop-card__title { font-size: 13.5px; }
	.coco-shop-card__price { font-size: 15px; }
	.coco-shop-card__badge { font-size: 10px; padding: 2px 7px; top: 10px; left: 10px; }
	.coco-shop-card__add, .coco-shop-card__cta .button { padding: 6px 14px; font-size: 11px; }
}

@media (max-width: 768px) {
	/* iPad portrait — sidebar → drawer */
	.coco-shop-hero--store { padding: 44px 0 28px; }
	.coco-shop-hero--store .coco-shop-hero__title { font-size: 40px; letter-spacing: -0.025em; }
	.coco-shop-hero--store .coco-shop-hero__subtitle { font-size: 15px; margin-top: 10px; }
	.coco-shop-hero--store .coco-shop-hero__stats { gap: 18px; margin-top: 20px; }
	.coco-shop-hero--store .orb--1,
	.coco-shop-hero--store .orb--2,
	.coco-shop-hero--store .orb--3 {
		width: 220px; height: 220px;
		filter: blur(50px);
	}

	/* Category chips */
	.coco-shop-cards { padding: 8px 0 8px; margin-top: -20px; }
	.coco-shop-cards__list { gap: 10px; }

	.coco-shop-layout { padding: 0 0 20px; }
}

@media (max-width: 480px) {
	/* iPhone — compact */
	.coco-shop-hero--store { padding: 36px 0 20px; }
	.coco-shop-hero--store .coco-shop-hero__title { font-size: 34px; letter-spacing: -0.025em; }
	.coco-shop-hero--store .coco-shop-hero__subtitle { font-size: 14px; margin-top: 8px; }
	.coco-shop-hero--store .coco-shop-hero__stats { gap: 16px; margin-top: 16px; flex-wrap: wrap; }
	.coco-shop-hero--store .orb--1 { width: 180px; height: 180px; top: -60px; left: -40px; }
	.coco-shop-hero--store .orb--2 { width: 160px; height: 160px; top: 20px; right: -60px; }

	/* Category chips — tighter */
	.coco-shop-cards { padding: 4px 0 4px; margin-top: -16px; }
	.coco-shop-cards__list { gap: 8px; }
	.coco-shop-chip { padding: 8px 14px; font-size: 13px; }

	/* Product grids */
	.coco-shop-grid,
	.coco-shop-products .products {
		grid-template-columns: 1fr 1fr;
		gap: 4px;
	}

	/* Card size */
	.coco-shop-card { padding: 8px; gap: 8px; border-radius: 14px; }
	.coco-shop-card__media { border-radius: 11px; }
	.coco-shop-card__title { font-size: 12.5px; line-height: 1.28; letter-spacing: 0; }
	.coco-shop-card__price { font-size: 14px; }
	.coco-shop-card__badge { font-size: 9.5px; padding: 2px 6px; top: 8px; left: 8px; border-radius: 5px; }
	.coco-shop-card__add, .coco-shop-card__cta .button { padding: 5px 10px; font-size: 10px; border-radius: 980px; }

	.coco-shop-layout { padding: 0 0 16px; }
	.coco-shop-layout--category { padding-top: 4px; padding-bottom: 20px; }
	.coco-shop-layout--category .coco-shop-grid,
	.coco-shop-layout--category .coco-shop-products .products {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.coco-shop-hero--category { padding: 28px 0 12px; }
	.coco-shop-hero--category .coco-shop-hero__title { font-size: 28px; }
}

@media (max-width: 360px) {
	/* Small phones */
	.coco-shop-hero--store { padding: 40px 0 56px; }
	.coco-shop-hero--store .coco-shop-hero__title { font-size: 28px; letter-spacing: -0.025em; }
	.coco-shop-hero--store .coco-shop-hero__subtitle { font-size: 13px; margin-top: 10px; }
	.coco-shop-hero--store .coco-shop-hero__stats { gap: 16px; }

	/* Product grids — 1 col */
	.coco-shop-grid,
	.coco-shop-products .products {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.coco-shop-layout--category .coco-shop-grid,
	.coco-shop-layout--category .coco-shop-products .products {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	/* Card size — smallest */
	.coco-shop-card { padding: 7px; gap: 7px; border-radius: 12px; }
	.coco-shop-card__media { border-radius: 10px; }
	.coco-shop-card__title { font-size: 14px; }
	.coco-shop-card__price { font-size: 14px; }
	.coco-shop-card__badge { font-size: 9px; padding: 2px 6px; top: 6px; left: 6px; }
	.coco-shop-card__add, .coco-shop-card__cta .button { padding: 5px 10px; font-size: 10px; }
}
