/* =========================================================
   SoGood Mini Cart
   Header cart trigger + side drawer panel.
   All tunable values are the custom properties below.
   ========================================================= */

.sgmc {
	--sgmc-grad-from: #F98A2E;
	--sgmc-grad-mid: #F4641F;
	--sgmc-grad-to: #EE3124;

	--sgmc-icon-size: 56px;
	--sgmc-glyph-size: 28px;
	--sgmc-badge-size: 22px;

	--sgmc-text-dark: #111111;
	--sgmc-text-muted: #6B6B6B;
	--sgmc-label: #3D3D3D;
	--sgmc-divider: #E2E2E2;

	--sgmc-total-size: 19px;
	--sgmc-count-size: 14px;
	--sgmc-label-size: 13px;

	--sgmc-panel-bg: #FFFFFF;
	--sgmc-panel-width: 380px;
	--sgmc-panel-radius: 0px;

	--sgmc-backdrop: rgba(17, 17, 17, .45);
	--sgmc-z: 100000;

	position: relative;
	display: inline-block;
	line-height: normal;
}

/* ---------- Trigger ---------- */

.sgmc__trigger-wrap {
	display: inline-block;
}

.sgmc__trigger {
	display: flex;
	align-items: center;
	gap: 18px;
	text-decoration: none !important;
	box-shadow: none !important;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.sgmc__icon-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.sgmc__icon {
	position: relative;
	width: var(--sgmc-icon-size);
	height: var(--sgmc-icon-size);
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		var(--sgmc-grad-from) 0%,
		var(--sgmc-grad-mid) 45%,
		var(--sgmc-grad-to) 100%
	);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	transition: transform .18s ease, box-shadow .18s ease;
}

.sgmc__trigger:hover .sgmc__icon {
	transform: translateY(-1px);
}

.sgmc__icon-svg {
	width: var(--sgmc-glyph-size);
	height: var(--sgmc-glyph-size);
	display: block;
}

/* Count bubble sitting on the top-right edge of the circle */
.sgmc__badge {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: var(--sgmc-badge-size);
	height: var(--sgmc-badge-size);
	padding: 0 5px;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--sgmc-text-dark);
	font-size: 12px;
	font-weight: 600;
	line-height: var(--sgmc-badge-size);
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
	box-sizing: border-box;
}

.sgmc__label {
	font-size: var(--sgmc-label-size);
	font-weight: 500;
	color: var(--sgmc-label);
	white-space: nowrap;
}

/* Vertical rule, a touch taller than the circle, centred on it. */
.sgmc__divider {
	width: 1px;
	height: calc(var(--sgmc-icon-size) + 30px);
	margin-top: -6px;
	background: var(--sgmc-divider);
	flex-shrink: 0;
}

/* Price + item count, optically centred against the circle */
.sgmc__meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	height: calc(var(--sgmc-icon-size) + 12px);
	margin-top: -6px;
	white-space: nowrap;
}

.sgmc__total {
	font-size: var(--sgmc-total-size);
	font-weight: 800;
	color: var(--sgmc-text-dark);
	letter-spacing: -.2px;
}

.sgmc__count {
	font-size: var(--sgmc-count-size);
	font-weight: 400;
	color: var(--sgmc-text-muted);
}

/* ---------- Portal wrapper (appended to <body> by JS) ---------- */

.sgmc-portal {
	position: static;
}

/* ---------- Backdrop ---------- */

.sgmc__backdrop {
	position: fixed;
	inset: 0;
	z-index: calc(var(--sgmc-z) - 1);
	background: var(--sgmc-backdrop);
	opacity: 0;
	visibility: hidden;
	transition: opacity .28s ease, visibility .28s ease;
}

.sgmc-portal.is-open .sgmc__backdrop {
	opacity: 1;
	visibility: visible;
}

/* ---------- Side drawer ---------- */

.sgmc__dropdown {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: var(--sgmc-z);
	display: flex;
	flex-direction: column;
	width: var(--sgmc-panel-width);
	max-width: 90vw;
	background: var(--sgmc-panel-bg);
	border-radius: var(--sgmc-panel-radius) 0 0 var(--sgmc-panel-radius);
	box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
	padding: 20px 22px 22px;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s;
	will-change: transform;
}

.sgmc-portal.is-open .sgmc__dropdown {
	transform: translateX(0);
	visibility: visible;
}

.sgmc__dropdown-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sgmc-divider);
	flex-shrink: 0;
}

.sgmc__dropdown-title p {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--sgmc-text-dark);
}

.sgmc__dropdown-close {
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: var(--sgmc-text-muted);
	padding: 0 2px;
}

.sgmc__dropdown-message {
	margin-top: 12px;
	font-size: 13px;
	color: var(--sgmc-text-muted);
	flex-shrink: 0;
}

/* Items area fills the drawer; the list scrolls, subtotal + buttons stay pinned */

.sgmc__dropdown-items {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.sgmc__dropdown-items .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.sgmc__dropdown-items .woocommerce-mini-cart {
	margin: 0;
	padding: 0 4px 0 0;
	list-style: none;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

/* Cart item row: fix the thumbnail's size/position and the row's left
   padding together, so the gap to the text is a deliberate, fixed value
   instead of whatever mismatch the theme's own image sizing produced. */
.sgmc__dropdown-items .woocommerce-mini-cart li.woocommerce-mini-cart-item {
	position: relative;
	padding: 10px 34px 10px 68px !important;
}

.sgmc__dropdown-items .woocommerce-mini-cart li.woocommerce-mini-cart-item img {
	position: absolute !important;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	object-fit: cover;
	border-radius: 8px;
	float: none !important;
}

.sgmc__dropdown-items .woocommerce-mini-cart li.woocommerce-mini-cart-item a:not(.remove) {
	display: block;
	color: var(--sgmc-text-dark);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.sgmc__dropdown-items .woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--sgmc-text-muted);
}

.sgmc__dropdown-items .woocommerce-mini-cart__empty-message {
	margin: 24px 0;
	text-align: center;
	color: var(--sgmc-text-muted);
	font-size: 14px;
}

.sgmc__dropdown-items .woocommerce-mini-cart__total {
	flex-shrink: 0;
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--sgmc-divider);
	font-size: 15px;
}

.ast-mini-cart-message{
    display:none!important;
}

.sgmc__dropdown-items .woocommerce-mini-cart__buttons {
	display: flex;
	gap: 10px;
	margin: 14px 0 0;
	flex-shrink: 0;
}

.sgmc__dropdown-items .woocommerce-mini-cart__buttons .button {
	flex: 1 1 50%;
	text-align: center;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
	background: #FFFFFF;
	color: var(--sgmc-grad-to);
	border: 2px solid var(--sgmc-grad-to);
	transition: background .18s ease, color .18s ease, opacity .18s ease;
}

.sgmc__dropdown-items .woocommerce-mini-cart__buttons .button:hover {
	background: var(--sgmc-grad-to);
	color: #FFFFFF;
}

.sgmc__dropdown-items .woocommerce-mini-cart__buttons .checkout {
	background: linear-gradient(135deg, var(--sgmc-grad-from), var(--sgmc-grad-to));
	color: #FFFFFF;
	border: 2px solid transparent;
}

.sgmc__dropdown-items .woocommerce-mini-cart__buttons .checkout:hover {
	filter: brightness(1.06);
	color: #FFFFFF;
}

/* Stops the page scrolling behind the open drawer */
.sgmc-body-locked {
	overflow: hidden !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	.sgmc {
		--sgmc-icon-size: 44px;
		--sgmc-glyph-size: 22px;
		--sgmc-badge-size: 19px;
	}

	.sgmc__divider,
	.sgmc__meta {
		display: none;
	}
}

.woocommerce ul.product_list_widget li a.remove{
    position:absolute;
    top:10px!important;
}
.woocommerce-js ul.product_list_widget li {
    padding: .6em 2rem .6em 4em!important;
}
.sgmc__dropdown-title{
    margin-bottom:0px!important;
}
.sgmc__dropdown-title p{
    margin-block-end:0px!important;
    margin-bottom:0px!important;
}
.sgmc__dropdown{
    border-radius:0px!important;
}