/* SellingIt Slide Cart — full-height right drawer */

.si-cart-trigger {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 100050;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font: 600 0.9rem/1 system-ui, sans-serif;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.28);
}

.si-cart-trigger:hover,
.si-cart-trigger:focus-visible {
	background: #000;
	outline: none;
}

.si-cart-trigger__label {
	display: none;
}

@media (min-width: 640px) {
	.si-cart-trigger__label {
		display: inline;
	}
}

.si-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #e11d48;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.si-cart-count[hidden] {
	display: none !important;
}

.si-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 100060;
}

.si-cart-drawer[hidden] {
	display: none !important;
}

.si-cart-backdrop {
	position: absolute;
	inset: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.si-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(460px, 100vw);
	height: 100%;
	background: #fff;
	color: #111827;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
	transform: translateX(100%);
	transition: transform 0.28s ease;
}

.si-cart-drawer.is-open .si-cart-panel {
	transform: translateX(0);
}

.admin-bar .si-cart-panel {
	top: 32px;
	height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .si-cart-panel {
		top: 46px;
		height: calc(100% - 46px);
	}
}

.si-cart-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid #e5e7eb;
	flex: 0 0 auto;
}

.si-cart-panel__head h2 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.si-cart-close {
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 8px;
	background: #f3f4f6;
	color: #111827;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.si-cart-close:hover {
	background: #e5e7eb;
}

.si-cart-panel__body {
	flex: 1 1 auto;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.si-cart-empty {
	padding: 3rem 1.5rem;
	text-align: center;
	color: #6b7280;
}

.si-cart-empty__link {
	display: inline-block;
	margin-top: 0.75rem;
	color: #111827;
	font-weight: 600;
}

.si-cart-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.si-cart-item {
	display: grid;
	grid-template-columns: 72px 1fr auto;
	gap: 0.85rem;
	align-items: start;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #f3f4f6;
}

.si-cart-item__media img,
.si-cart-item__img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	display: block;
}

.si-cart-item__title {
	display: block;
	margin: 0 0 0.55rem;
	color: #111827;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
	text-decoration: none;
}

.si-cart-item__title:hover {
	text-decoration: underline;
}

.si-cart-item__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.si-cart-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.si-cart-qty__btn {
	width: 2rem;
	height: 2rem;
	border: 0;
	background: #fff;
	color: #111827;
	font-size: 1rem;
	cursor: pointer;
}

.si-cart-qty__btn:hover {
	background: #f3f4f6;
}

.si-cart-qty__val {
	min-width: 1.75rem;
	text-align: center;
	font-weight: 600;
	font-size: 0.9rem;
}

.si-cart-item__price {
	font-weight: 700;
	font-size: 0.92rem;
	white-space: nowrap;
}

.si-cart-item__remove {
	width: 1.75rem;
	height: 1.75rem;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #9ca3af;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.si-cart-item__remove:hover {
	color: #b91c1c;
	background: #fef2f2;
}

.si-cart-panel__foot {
	flex: 0 0 auto;
	padding: 1rem 1.25rem 1.25rem;
	border-top: 1px solid #e5e7eb;
	background: #fff;
}

.si-cart-panel__foot:empty {
	display: none;
}

.si-cart-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.85rem;
	font-size: 0.95rem;
}

.si-cart-checkout {
	display: block;
	width: 100%;
	padding: 0.9rem 1rem;
	border-radius: 10px;
	background: #111827;
	color: #fff !important;
	text-align: center;
	text-decoration: none !important;
	font-weight: 700;
}

.si-cart-checkout:hover {
	background: #000;
	color: #fff !important;
}

.si-cart-view {
	display: block;
	margin-top: 0.65rem;
	text-align: center;
	color: #4b5563;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.si-cart-view:hover {
	color: #111827;
}

/* Related products */
.si-cart-related {
	margin: 0;
	padding: 1.1rem 1.25rem 1.35rem;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
}

.si-cart-related h3 {
	margin: 0 0 0.85rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
}

.si-cart-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.si-cart-related__item {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 0.75rem;
	align-items: center;
	padding: 0.65rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.si-cart-related__media {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	line-height: 0;
}

.si-cart-related__img,
.si-cart-related__media img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	display: block;
	background: #f3f4f6;
}

.si-cart-related__info {
	min-width: 0;
	display: grid;
	gap: 0.2rem;
}

.si-cart-related__title {
	color: #111827;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.si-cart-related__title:hover {
	text-decoration: underline;
}

.si-cart-related__price {
	font-size: 0.84rem;
	font-weight: 700;
	color: #111827;
}

.si-cart-related__price del {
	color: #9ca3af;
	font-weight: 500;
	margin-right: 0.25rem;
}

.si-cart-related__add {
	justify-self: start;
	margin-top: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: #111827;
	color: #fff !important;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none !important;
	line-height: 1.2;
}

.si-cart-related__add:hover,
.si-cart-related__add.loading {
	background: #000;
	color: #fff !important;
}

.si-cart-related__add--view {
	background: #fff;
	color: #111827 !important;
	border: 1px solid #e5e7eb;
}

.si-cart-related__add--view:hover {
	background: #f3f4f6;
	color: #111827 !important;
}

body.si-cart-open {
	overflow: hidden;
}
