/* ===================================================================
   Abhay Product Design — Frontend Styles
   Template styles: gold_luxe (default) / minimal_editorial / bold_overlay
   Display modes:   slider (drag/swipe)  /  grid (load more, no infinite scroll)
=================================================================== */

:root {
	--apd-accent: #c99a2e;
	--apd-dark: #1a1a1a;
}

/* ---------- Shared wrapper basics ---------- */
.apd-slider-wrapper,
.apd-grid-wrapper {
	--apd-accent: #c99a2e;
	--apd-dark: #1a1a1a;
	--apd-gap: 20px;
	position: relative;
	margin: 36px 0;
	padding: 0 40px;
	box-sizing: border-box;
}

.apd-slider-header,
.apd-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.apd-slider-header-noheading { justify-content: flex-end; }

.apd-slider-heading,
.apd-block-heading {
	font-size: 27px;
	font-weight: 700;
	color: var(--apd-dark);
	margin: 0;
	position: relative;
	padding-bottom: 10px;
	letter-spacing: .3px;
}
.apd-slider-heading::after,
.apd-block-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 3px;
	background: var(--apd-accent);
	border-radius: 2px;
}

.apd-arrows { display: flex; gap: 8px; }
.apd-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--apd-accent);
	background: #fff;
	color: var(--apd-dark);
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
}
.apd-arrow:hover { background: var(--apd-accent); color: #fff; transform: translateY(-1px); }
.apd-arrow:disabled { opacity: .3; cursor: default; transform: none; }
.apd-arrow:disabled:hover { background: #fff; color: var(--apd-dark); }

/* ---------- Slider track (smooth swipe + real desktop drag) ---------- */
.apd-slider-track {
	display: flex;
	gap: var(--apd-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 12px;
	-ms-overflow-style: none;
	scrollbar-width: thin;
	scrollbar-color: var(--apd-accent) #eee;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}
.apd-slider-track.apd-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
}
.apd-slider-track::-webkit-scrollbar { height: 6px; }
.apd-slider-track::-webkit-scrollbar-thumb { background: var(--apd-accent); border-radius: 10px; }
.apd-slider-track::-webkit-scrollbar-track { background: #eee; border-radius: 10px; }

.apd-slide {
	flex: 0 0 auto;
	scroll-snap-align: start;
	/* width is set dynamically via JS based on desktop/mobile column count */
}

/* ---------- Grid + Load More ---------- */
.apd-grid {
	display: grid;
	grid-template-columns: repeat(var(--apd-cols-mobile, 2), 1fr);
	gap: var(--apd-gap);
}
@media (min-width: 769px) {
	.apd-grid { grid-template-columns: repeat(var(--apd-cols-desktop, 5), 1fr); }
}

.apd-grid-item-hidden { display: none !important; }

.apd-grid-item {
	animation: apdFadeInUp .45s ease both;
}
@keyframes apdFadeInUp {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

.apd-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 34px;
}
.apd-load-more-btn {
	background: transparent;
	border: 2px solid var(--apd-dark);
	color: var(--apd-dark);
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	font-size: 13px;
	padding: 14px 42px;
	border-radius: 30px;
	cursor: pointer;
	transition: all .25s ease;
}
.apd-load-more-btn:hover {
	background: var(--apd-dark);
	color: #fff;
	border-color: var(--apd-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.apd-load-more-wrap.apd-all-loaded { display: none; }

/* ---------- Product card — base ---------- */
.apd-product-card {
	position: relative;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.apd-product-image { position: relative; display: block; background: #f7f7f7; overflow: hidden; }
.apd-product-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3/4;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.apd-product-card:hover .apd-product-image img { transform: scale(1.05); }

.apd-badge-sale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--apd-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 20px;
	letter-spacing: .5px;
	text-transform: uppercase;
	z-index: 4;
}

/* ---------- Wishlist heart button (TI WooCommerce Wishlist integration) ----------
   Renders the plugin's own [ti_wishlists_addtowishlist] shortcode output, then
   this wrapper normalizes it into a clean round heart badge on the top-right
   corner of the product image, regardless of overlap card style. */
.apd-wishlist-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	display: block;
	line-height: 0;
}
.apd-wishlist-btn,
.apd-wishlist-btn * { box-sizing: border-box; }
.apd-wishlist-btn .tinv-wishlist,
.apd-wishlist-btn > div,
.apd-wishlist-btn > span,
.apd-wishlist-btn > ul,
.apd-wishlist-btn > li {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.apd-wishlist-btn a,
.apd-wishlist-btn button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	border: none !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
	color: var(--apd-dark) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}
.apd-wishlist-btn a:hover,
.apd-wishlist-btn button:hover {
	transform: scale(1.08);
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.apd-wishlist-btn [class*="tinvwl-icon-"]::before {
	font-size: 16px !important;
	margin: 0 !important;
	line-height: 1 !important;
	vertical-align: middle !important;
	color: inherit !important;
}
.apd-wishlist-btn img { width: 16px !important; height: 16px !important; }
/* text label the plugin may render next to the icon — keep it hidden, icon-only look */
.apd-wishlist-btn .tinvwl_add_to_wishlist-text,
.apd-wishlist-btn .tinvwl-txt,
.apd-wishlist-btn span:not([class*="tinvwl-icon-"]) {
	position: absolute !important;
	width: 1px !important; height: 1px !important;
	overflow: hidden !important;
	clip: rect(0,0,0,0) !important;
	white-space: nowrap !important;
}
/* already-in-wishlist state → fill with the accent color */
.apd-wishlist-btn .tinvwl-added [class*="tinvwl-icon-"]::before,
.apd-wishlist-btn a.tinvwl-added [class*="tinvwl-icon-"]::before,
.apd-wishlist-btn a[class*="added"] [class*="tinvwl-icon-"]::before {
	color: var(--apd-accent) !important;
}

.apd-product-info { padding: 15px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.apd-product-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--apd-dark);
	text-decoration: none;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.apd-product-title:hover { color: var(--apd-accent); }

.apd-product-price { font-size: 15px; font-weight: 700; color: var(--apd-accent); }
.apd-product-price del { opacity: .5; font-weight: 400; margin-right: 6px; }

.apd-product-addtocart { margin-top: auto; padding-top: 8px; }
.apd-add-to-cart-btn {
	display: block;
	text-align: center;
	width: 100%;
	background: var(--apd-dark);
	color: #fff !important;
	border: none;
	border-radius: 6px;
	padding: 11px 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .3px;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease;
}
.apd-add-to-cart-btn:hover { background: var(--apd-accent); }
.apd-add-to-cart-btn.loading { opacity: .6; pointer-events: none; }
.apd-add-to-cart-btn.added::after { content: " ✓"; }

/* ================= Template Style: Gold Luxe (default) ================= */
.apd-template-gold_luxe .apd-product-card {
	border: 1px solid #eee;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.apd-template-gold_luxe .apd-product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 28px rgba(0,0,0,.12);
	border-color: var(--apd-accent);
}

/* ================= Template Style: Minimal Editorial ================= */
.apd-template-minimal_editorial .apd-product-card {
	border: none;
	box-shadow: none;
	border-radius: 0;
}
.apd-template-minimal_editorial .apd-product-image { border-radius: 0; }
.apd-template-minimal_editorial .apd-product-card:hover { transform: none; }
.apd-template-minimal_editorial .apd-product-title {
	font-weight: 500;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: .8px;
}
.apd-template-minimal_editorial .apd-product-price {
	color: var(--apd-dark);
	font-weight: 500;
}
.apd-template-minimal_editorial .apd-product-info { padding: 14px 2px; }
.apd-template-minimal_editorial .apd-add-to-cart-btn {
	background: transparent;
	color: var(--apd-dark) !important;
	border: 1px solid var(--apd-dark);
	border-radius: 0;
}
.apd-template-minimal_editorial .apd-add-to-cart-btn:hover {
	background: var(--apd-dark);
	color: #fff !important;
}

/* ================= Template Style: Bold Overlay ================= */
.apd-template-bold_overlay .apd-product-card { position: relative; border-radius: 10px; }
.apd-template-bold_overlay .apd-product-image img { aspect-ratio: 3/4; }
.apd-template-bold_overlay .apd-product-info {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: linear-gradient(to top, rgba(0,0,0,.85) 10%, rgba(0,0,0,.35) 60%, transparent);
	color: #fff;
	padding: 34px 14px 14px;
}
.apd-template-bold_overlay .apd-product-title { color: #fff; }
.apd-template-bold_overlay .apd-product-price { color: var(--apd-accent); }
.apd-template-bold_overlay .apd-product-card:hover { transform: translateY(-4px); }

/* ============ Page Banner Templates ============ */
.apd-page-wrapper { width: 100%; }

.apd-page-banner {
	background-size: cover;
	background-position: center;
	background-color: var(--apd-dark);
	min-height: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.apd-page-banner-overlay {
	width: 100%;
	height: 100%;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px;
	box-sizing: border-box;
}

/* Classic Center */
.apd-banner-style-classic .apd-page-banner-overlay { background: rgba(0,0,0,.38); }
.apd-banner-style-classic h1 {
	color: #fff;
	font-size: 44px;
	font-weight: 800;
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.apd-banner-style-classic p { color: #f2f2f2; font-size: 17px; margin: 0; }

/* Minimal Clean */
.apd-banner-style-minimal {
	background-image: none !important;
	background: var(--apd-dark);
	min-height: 220px;
}
.apd-banner-style-minimal .apd-page-banner-overlay {
	align-items: flex-start;
	text-align: left;
	max-width: 1400px;
	margin: 0 auto;
	min-height: 220px;
}
.apd-banner-style-minimal h1 {
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 8px;
	letter-spacing: 1px;
}
.apd-banner-style-minimal p { color: #cfcfcf; font-size: 15px; margin: 0; }

/* Bold Gradient */
.apd-banner-style-bold .apd-page-banner-overlay {
	background: linear-gradient(120deg, rgba(0,0,0,.75) 30%, rgba(201,154,46,.55));
}
.apd-banner-style-bold h1 {
	color: #fff;
	font-size: 46px;
	font-weight: 800;
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: 2px;
	position: relative;
	display: inline-block;
	padding-bottom: 14px;
}
.apd-banner-style-bold h1::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 70px;
	height: 4px;
	background: var(--apd-accent);
	border-radius: 2px;
}
.apd-banner-style-bold p { color: #f2f2f2; font-size: 17px; margin: 0; }

.apd-page-body { max-width: 1400px; margin: 0 auto; padding: 34px 20px 64px; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
	.apd-slider-wrapper,
	.apd-grid-wrapper { padding: 0 16px; }
	.apd-slider-heading,
	.apd-block-heading { font-size: 21px; }
	.apd-page-banner-overlay h1,
	.apd-banner-style-classic h1,
	.apd-banner-style-bold h1 { font-size: 28px; }
	.apd-banner-style-minimal h1 { font-size: 26px; }
	.apd-arrow { width: 34px; height: 34px; }
	.apd-load-more-btn { padding: 12px 32px; font-size: 12px; }
}

/* ===================================================================
   v2.0 additions — slider effects, pagination dots, category tab pages
=================================================================== */

/* ---------- Pagination dots ---------- */
.apd-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}
.apd-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #dcdcde;
	cursor: pointer;
	padding: 0;
	transition: all .25s ease;
}
.apd-dot:hover { background: var(--apd-accent); opacity: .7; }
.apd-dot.active { background: var(--apd-accent); width: 22px; border-radius: 4px; }

/* ---------- Slide effects ---------- */
.apd-effect-snap .apd-slider-track {
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
}
.apd-effect-snap .apd-slide { scroll-snap-align: start; scroll-snap-stop: always; }

.apd-effect-smooth .apd-slider-track { scroll-snap-type: none; }

.apd-effect-coverflow .apd-slider-track {
	scroll-snap-type: x proximity;
	padding-top: 10px;
	padding-bottom: 22px;
}
.apd-effect-coverflow .apd-slide {
	scroll-snap-align: center;
	transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s ease;
	will-change: transform, opacity;
}

/* ---------- Loading spinner (category AJAX) ---------- */
.apd-cat-grid-wrap { position: relative; }
.apd-cat-loading {
	display: none;
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,.6);
	align-items: center;
	justify-content: center;
}
.apd-category-wrapper.apd-loading .apd-cat-loading { display: flex; }
.apd-spinner {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 3px solid #eee;
	border-top-color: var(--apd-accent);
	animation: apdSpin .7s linear infinite;
}
@keyframes apdSpin { to { transform: rotate(360deg); } }

.apd-grid-fade { opacity: 0; }
.apd-grid { transition: opacity .25s ease; }

/* ===================================================================
   Category Page — tabbed filter bar + toolbar + grid
   (default "clean_tabs" styling matches the H&M-style reference layout)
=================================================================== */
.apd-category-wrapper {
	--apd-accent: #c99a2e;
	--apd-dark: #1a1a1a;
	--apd-gap: 20px;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 40px 60px;
	box-sizing: border-box;
}

.apd-cat-heading {
	font-size: 28px;
	font-weight: 700;
	color: var(--apd-dark);
	margin: 20px 0 22px;
	letter-spacing: .3px;
}

.apd-cat-tabs-row {
	border-bottom: 1px solid #e4e4e4;
	overflow-x: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.apd-cat-tabs-row::-webkit-scrollbar { display: none; }

.apd-cat-tabs {
	display: flex;
	gap: 34px;
	white-space: nowrap;
}

.apd-cat-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 18px 2px 14px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: #6b6b6b;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease;
}
.apd-cat-tab:hover { color: var(--apd-dark); }
.apd-cat-tab.active {
	color: var(--apd-dark);
	border-bottom-color: var(--apd-dark);
}

.apd-cat-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
}
.apd-cat-count { font-size: 14px; color: #6b6b6b; letter-spacing: .2px; }

.apd-cat-filter-wrap { position: relative; }
.apd-cat-filter-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--apd-dark);
	cursor: pointer;
	padding: 8px 4px;
}
.apd-cat-filter-toggle svg { color: var(--apd-dark); }
.apd-cat-filter-dropdown {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0,0,0,.12);
	padding: 12px 16px;
	min-width: 210px;
	z-index: 20;
}
.apd-cat-filter-dropdown.open { display: block; }
.apd-cat-filter-dropdown label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--apd-dark);
	padding: 7px 0;
	cursor: pointer;
}

.apd-cat-grid-wrap .apd-grid {
	display: grid;
	grid-template-columns: repeat(var(--apd-cols-mobile, 2), 1fr);
	gap: var(--apd-gap);
	padding-top: 6px;
}
@media (min-width: 769px) {
	.apd-cat-grid-wrap .apd-grid { grid-template-columns: repeat(var(--apd-cols-desktop, 4), 1fr); }
}

/* clean_tabs card look: quiet, no borders/shadows, clean caption below image */
.apd-cat-template-clean_tabs .apd-product-card { border: none; box-shadow: none; border-radius: 0; }
.apd-cat-template-clean_tabs .apd-product-image { border-radius: 2px; }
.apd-cat-template-clean_tabs .apd-product-card:hover { transform: none; }
.apd-cat-template-clean_tabs .apd-product-title { font-weight: 500; font-size: 14px; }
.apd-cat-template-clean_tabs .apd-product-price { color: var(--apd-dark); font-weight: 500; }
.apd-cat-template-clean_tabs .apd-product-info { padding: 12px 2px; }

@media (max-width: 768px) {
	.apd-category-wrapper { padding: 0 16px 44px; }
	.apd-cat-heading { font-size: 22px; }
	.apd-cat-tabs { gap: 22px; }
	.apd-cat-tab { font-size: 12.5px; padding: 14px 2px 11px; }
}

/* ===================================================================
   Shop Page — sidebar filters (desktop) + slide-in drawer & chips (mobile)
=================================================================== */
.apd-shop-wrapper {
	--apd-accent: #c99a2e;
	--apd-dark: #1a1a1a;
	--apd-gap: 18px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 40px 60px;
	box-sizing: border-box;
}

.apd-shop-heading {
	font-size: 26px;
	font-weight: 700;
	color: var(--apd-dark);
	margin: 22px 0 18px;
	letter-spacing: .3px;
}

/* Mobile category chip row */
.apd-shop-chip-row {
	display: none;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 0 14px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.apd-shop-chip-row::-webkit-scrollbar { display: none; }
.apd-shop-chip {
	flex: 0 0 auto;
	background: #f4f4f4;
	border: 1px solid #e4e4e4;
	color: var(--apd-dark);
	font-size: 13px;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 20px;
	white-space: nowrap;
	cursor: pointer;
}
.apd-shop-chip.active { background: var(--apd-dark); border-color: var(--apd-dark); color: #fff; }

/* Toolbar */
.apd-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 0;
	border-top: 1px solid #e4e4e4;
	border-bottom: 1px solid #e4e4e4;
	flex-wrap: wrap;
}
.apd-shop-toolbar-left { display: flex; align-items: center; gap: 16px; }
.apd-shop-toolbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.apd-shop-filter-btn {
	display: none;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .3px;
	color: var(--apd-dark);
	cursor: pointer;
	padding: 4px 0;
}
.apd-shop-count { font-size: 14px; color: #6b6b6b; }

.apd-shop-sort,
.apd-shop-quick-filter {
	border: none;
	background: none;
	font-size: 13.5px;
	color: var(--apd-dark);
	font-weight: 500;
	cursor: pointer;
	padding: 4px 22px 4px 4px;
}

.apd-shop-view-toggle { display: flex; gap: 6px; }
.apd-shop-view-btn {
	background: none;
	border: none;
	color: #bbb;
	cursor: pointer;
	padding: 4px;
	display: flex;
}
.apd-shop-view-btn.active,
.apd-shop-view-btn:hover { color: var(--apd-dark); }

/* Body: sidebar + main */
.apd-shop-body { display: flex; gap: 34px; align-items: flex-start; margin-top: 22px; }

.apd-shop-sidebar {
	flex: 0 0 250px;
	position: sticky;
	top: 24px;
}
.apd-shop-sidebar-head { display: none; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #e4e4e4; margin-bottom: 6px; font-weight: 700; font-size: 16px; }
.apd-shop-sidebar-close { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--apd-dark); }

.apd-shop-filter-group { border-bottom: 1px solid #eee; padding: 14px 0; }
.apd-shop-filter-group-toggle {
	width: 100%;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 600;
	color: var(--apd-dark);
	cursor: pointer;
	padding: 2px 0;
	text-transform: uppercase;
	letter-spacing: .3px;
}
.apd-shop-toggle-icon { font-size: 16px; color: #999; font-weight: 400; }
.apd-shop-filter-group-body { margin-top: 10px; max-height: 340px; overflow-y: auto; }
.apd-shop-filter-group.collapsed .apd-shop-filter-group-body { display: none; }
.apd-shop-filter-group.collapsed .apd-shop-toggle-icon::before { content: "+"; }

.apd-shop-term-list { list-style: none; margin: 0; padding: 0; }
.apd-shop-term-list-nested { margin-left: 18px; }
.apd-shop-term-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: #444;
	padding: 6px 0;
	cursor: pointer;
}
.apd-shop-term-count { margin-left: auto; color: #aaa; font-size: 12px; }

.apd-shop-clear-filters {
	margin-top: 10px;
	background: none;
	border: none;
	text-decoration: underline;
	font-size: 13px;
	color: var(--apd-dark);
	cursor: pointer;
	padding: 6px 0;
}

.apd-shop-sidebar-backdrop { display: none; }

/* Main grid area */
.apd-shop-main { flex: 1 1 auto; min-width: 0; }
.apd-shop-grid-wrap { position: relative; }
.apd-shop-grid {
	display: grid;
	grid-template-columns: repeat(var(--apd-cols-mobile, 2), 1fr);
	gap: var(--apd-gap);
}
@media (min-width: 769px) {
	.apd-shop-grid.apd-view-comfortable { grid-template-columns: repeat(var(--apd-cols-desktop, 3), 1fr); }
	.apd-shop-grid.apd-view-compact { grid-template-columns: repeat(var(--apd-cols-desktop-compact, 4), 1fr); }
}

.apd-shop-grid-item { position: relative; }
.apd-delivery-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--apd-dark);
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

/* Mobile layout: chips + drawer sidebar */
@media (max-width: 900px) {
	.apd-shop-wrapper { padding: 0 16px 44px; }
	.apd-shop-heading { font-size: 21px; }
	.apd-shop-chip-row { display: flex; }
	.apd-shop-filter-btn { display: flex; }
	.apd-shop-body { display: block; }

	.apd-shop-sidebar {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: 82%;
		max-width: 340px;
		background: #fff;
		z-index: 1000;
		padding: 20px;
		box-sizing: border-box;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .3s ease;
		box-shadow: -8px 0 24px rgba(0,0,0,.15);
	}
	.apd-shop-wrapper.apd-shop-drawer-open .apd-shop-sidebar { transform: translateX(0); }
	.apd-shop-sidebar-head { display: flex; }

	.apd-shop-sidebar-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,.4);
		z-index: 999;
	}
	.apd-shop-wrapper.apd-shop-drawer-open .apd-shop-sidebar-backdrop { display: block; }

	.apd-shop-grid.apd-view-comfortable,
	.apd-shop-grid.apd-view-compact { grid-template-columns: repeat(var(--apd-cols-mobile, 2), 1fr); }
}
