/*
 * Ferreton Store Designer — desktop sidebar for WooCommerce catalog archives.
 * It is hidden by default and enabled only above the tablet breakpoint.
 */

.fsd-shop-layout {
	display: block;
	width: 100%;
	min-width: 0;
}

.fsd-shop-main {
	min-width: 0;
}

.fsd-shop-sidebar {
	display: none;
}

@media (min-width: 1025px) {
	/*
	 * The theme normally limits the content to a centered column. On catalog
	 * archives we intentionally break out of that column and use the viewport,
	 * leaving only a small safety gutter at both sides.
	 */
	.fsd-shop-has-sidebar .site-main,
	.fsd-shop-has-sidebar main#main {
		box-sizing: border-box;
		width: calc(100vw - 40px) !important;
		max-width: none !important;
		margin-right: 0 !important;
		margin-left: 50% !important;
		transform: translateX(-50%);
	}

	.fsd-rishi.fsd-shop-has-sidebar .site-content .rishi-container,
	.fsd-rishi.fsd-shop-has-sidebar .site-content > .container,
	.fsd-rishi.fsd-shop-has-sidebar #content > .container,
	.fsd-rishi.fsd-shop-has-sidebar .site-content .main-content-wrapper,
	.fsd-rishi.fsd-shop-has-sidebar main .main-content-wrapper {
		width: 100% !important;
		max-width: none !important;
	}

	.fsd-shop-has-sidebar .site-main > .woocommerce,
	.fsd-shop-has-sidebar main#main > .woocommerce {
		width: 100% !important;
		max-width: none !important;
	}

	.fsd-shop-has-sidebar .fsd-shop-layout {
		display: grid;
		grid-template-columns: minmax(230px, var(--fsd-sidebar-width)) minmax(0, 1fr);
		align-items: start;
		gap: clamp(22px, 2.15vw, 32px);
	}

	.fsd-shop-has-sidebar .fsd-shop-sidebar {
		display: grid;
		position: sticky;
		top: 26px;
		align-self: start;
		gap: 16px;
		min-width: 0;
	}

	.admin-bar.fsd-shop-has-sidebar .fsd-shop-sidebar {
		top: 58px;
	}

	.fsd-shop-has-sidebar .fsd-shop-main {
		width: 100%;
	}

	.fsd-shop-has-sidebar .fsd-shop-main::after {
		display: table;
		clear: both;
		content: '';
	}

	.fsd-shop-has-sidebar .fsd-sidebar-card {
		overflow: hidden;
		border: 1px solid rgba(23, 33, 43, .09);
		border-radius: 17px;
		background: var(--fsd-card-bg, #fff);
		box-shadow: 0 10px 30px rgba(27, 56, 76, .08);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-card > h2 {
		display: flex;
		align-items: center;
		gap: 10px;
		margin: 0;
		padding: 17px 18px 14px;
		border-bottom: 1px solid rgba(23, 33, 43, .08);
		color: var(--fsd-text, #17212b);
		font-size: 17px;
		font-weight: 800;
		line-height: 1.25;
		letter-spacing: -.01em;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-icon {
		display: grid;
		place-items: center;
		width: 30px;
		height: 30px;
		flex: 0 0 30px;
		border-radius: 9px;
		background: rgba(0, 147, 231, .12);
		background: color-mix(in srgb, var(--fsd-primary, #0093e7) 12%, #fff);
		color: var(--fsd-primary, #0093e7);
		font-size: 14px;
		font-weight: 900;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-card ul {
		margin: 0;
		padding: 8px 12px 12px;
		list-style: none;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-brands a,
	.fsd-shop-has-sidebar .fsd-sidebar-categories details a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 9px;
		min-height: 39px;
		padding: 8px;
		border-radius: 9px;
		color: var(--fsd-text, #17212b);
		font-size: 13px;
		font-weight: 650;
		line-height: 1.3;
		text-decoration: none;
		transition: background-color .18s ease, color .18s ease, transform .18s ease;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-brands a:hover,
	.fsd-shop-has-sidebar .fsd-sidebar-categories details a:hover {
		background: rgba(0, 147, 231, .09);
		background: color-mix(in srgb, var(--fsd-primary, #0093e7) 9%, #fff);
		color: var(--fsd-accent, #0067b8);
		transform: translateX(2px);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-brands a b {
		color: var(--fsd-primary, #0093e7);
		font-size: 20px;
		font-weight: 500;
		line-height: 1;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories > details {
		overflow: hidden;
		margin: 12px 12px 0;
		border: 1px solid rgba(23, 33, 43, .1);
		border-radius: 13px;
		background: #fff;
		box-shadow: 0 5px 14px rgba(23, 33, 43, .055);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories > details:last-child {
		margin-bottom: 14px;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 15px 14px;
		color: var(--fsd-text, #17212b);
		font-size: 13.5px;
		font-weight: 800;
		line-height: 1.3;
		list-style: none;
		cursor: pointer;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories summary::before {
		display: block;
		width: 9px;
		height: 9px;
		flex: 0 0 9px;
		border-radius: 50%;
		content: '';
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories summary > span {
		min-width: 0;
		flex: 1;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-lighting {
		border-color: rgba(0, 147, 231, .28);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-lighting > summary {
		border-bottom-color: rgba(0, 147, 231, .16);
		background: linear-gradient(135deg, #edf9ff 0%, #dff4ff 100%);
		color: #0067b8;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-lighting > summary::before {
		background: #0093e7;
		box-shadow: 0 0 0 4px rgba(0, 147, 231, .13);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-material {
		border-color: rgba(217, 119, 6, .3);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-material > summary {
		border-bottom-color: rgba(217, 119, 6, .17);
		background: linear-gradient(135deg, #fffaf0 0%, #fff0cf 100%);
		color: #965c00;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-material > summary::before {
		background: #e99110;
		box-shadow: 0 0 0 4px rgba(233, 145, 16, .14);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories summary::-webkit-details-marker {
		display: none;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories summary b {
		display: grid;
		place-items: center;
		width: 22px;
		height: 22px;
		flex: 0 0 22px;
		border-radius: 50%;
		background: rgba(23, 33, 43, .06);
		color: var(--fsd-primary, #0093e7);
		font-size: 17px;
		font-weight: 500;
		transition: transform .2s ease;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-lighting summary b {
		background: rgba(0, 147, 231, .12);
		color: #0067b8;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-material summary b {
		background: rgba(217, 119, 6, .12);
		color: #965c00;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories details[open] summary b {
		transform: rotate(45deg);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories details[open] > summary {
		border-bottom-style: solid;
		border-bottom-width: 1px;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories details ul {
		max-height: 238px;
		overflow: auto;
		padding-top: 0;
		scrollbar-width: thin;
		scrollbar-color: rgba(0, 147, 231, .35) transparent;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories details a {
		font-size: 12px;
		font-weight: 600;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories details a span {
		min-width: 0;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories details a em {
		display: grid;
		place-items: center;
		min-width: 25px;
		height: 22px;
		padding: 0 6px;
		border-radius: 99px;
		background: rgba(23, 33, 43, .06);
		color: var(--fsd-muted, #657483);
		font-size: 10px;
		font-style: normal;
		font-weight: 700;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-view-all a {
		color: var(--fsd-primary, #0093e7);
		font-weight: 800;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-lighting a:hover,
	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-lighting .fsd-view-all a {
		background: rgba(0, 147, 231, .085);
		color: #0067b8;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-lighting a em {
		background: rgba(0, 147, 231, .1);
		color: #0067b8;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-material a:hover,
	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-material .fsd-view-all a {
		background: rgba(217, 119, 6, .085);
		color: #965c00;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-categories .fsd-category-group-material a em {
		background: rgba(217, 119, 6, .1);
		color: #965c00;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust {
		border-color: transparent;
		background: linear-gradient(145deg, var(--fsd-accent, #0067b8), #003d75);
		box-shadow: 0 14px 34px rgba(0, 74, 137, .2);
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust > h2 {
		border-bottom-color: rgba(255, 255, 255, .16);
		color: #fff;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust .fsd-sidebar-icon {
		background: rgba(255, 255, 255, .15);
		color: #fff;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust ul {
		display: grid;
		gap: 3px;
		padding: 12px 17px 8px;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust li {
		display: flex;
		align-items: flex-start;
		gap: 10px;
		padding: 8px 0;
		color: #fff;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust li > span {
		display: grid;
		place-items: center;
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
		border-radius: 8px;
		background: rgba(255, 255, 255, .14);
		font-size: 11px;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust li div {
		min-width: 0;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust strong,
	.fsd-shop-has-sidebar .fsd-sidebar-trust small {
		display: block;
		color: #fff;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust strong {
		font-size: 12px;
		font-weight: 800;
		line-height: 1.35;
	}

	.fsd-shop-has-sidebar .fsd-sidebar-trust small {
		margin-top: 2px;
		opacity: .76;
		font-size: 10px;
		line-height: 1.4;
	}

	.fsd-shop-has-sidebar .fsd-payment-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin: 4px 15px 15px;
		padding: 11px 13px;
		border: 1px solid rgba(255, 255, 255, .25);
		border-radius: 10px;
		background: #fff;
		color: var(--fsd-accent, #0067b8);
		font-size: 11px;
		font-weight: 800;
		line-height: 1.25;
		text-decoration: none;
		transition: transform .18s ease, box-shadow .18s ease;
	}

	.fsd-shop-has-sidebar .fsd-payment-link:hover {
		color: var(--fsd-accent, #0067b8);
		transform: translateY(-1px);
		box-shadow: 0 7px 17px rgba(0, 24, 55, .2);
	}
}

@media (min-width: 1800px) {
	.fsd-shop-has-sidebar {
		--fsd-cols-desktop: 5;
	}
}
