/* Maxxed — side cart drawer. */

.mini-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
	z-index: 10000;
}

.mini-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 460px;
	max-width: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .35s ease;
	z-index: 10001;
	box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
}

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

body.mini-cart-open .mini-cart-overlay {
	opacity: 1;
	visibility: visible;
}

body.mini-cart-open .mini-cart-drawer {
	transform: translateX(0);
}

.mini-cart-drawer-head {
	flex-shrink: 0;
	background: var(--maxxed-brand, #e1b04a);
	padding: 24px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mini-cart-drawer-head .common_heading {
	font-size: 34px;
	line-height: 1;
	text-transform: uppercase;
}

.mini-cart-close {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: 30px;
	line-height: 1;
	color: #000;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
}

.mini-cart-drawer-inner {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	min-height: 0;
}

/* ---- Empty state ---- */
.mini-cart-empty {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 30px;
}

.mini-cart-empty-icon {
	font-size: 60px;
	line-height: 1;
	margin: 0 0 20px;
}

.mini-cart-empty-title {
	font-size: 22px;
	font-weight: 700;
	color: #000;
	margin: 0 0 8px;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
}

.mini-cart-empty-text {
	font-size: 15px;
	color: #767676;
	margin: 0 0 26px;
}

.mini-cart-empty .mini-cart-continue {
	background: #000;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 15px 28px;
	font-size: 15px;
	font-weight: 700;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
	cursor: pointer;
	transition: background .2s ease;
}

.mini-cart-empty .mini-cart-continue:hover {
	background: #edac3a;
	color: #000;
}

/* ---- Items ---- */
.mini-cart-items {
	flex: 1 1 auto;
	padding: 20px 30px;
}

.mini-cart-item {
	display: flex;
	align-items: flex-start;
	column-gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid #ececec;
}

.mini-cart-item:first-child {
	padding-top: 0;
}

.mini-cart-item-image {
	position: relative;
	flex-shrink: 0;
	width: 88px;
	height: 88px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	overflow: visible;
}

.mini-cart-item-image img {
	max-width: 80%;
	max-height: 80%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.mini-cart-item-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.mini-cart-item-name {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
	font-family: var(--maxxed-heading-font, 'Bebas Neue');
	letter-spacing: 0.3px;
	line-height: 1.2;
}

.mini-cart-item-variation {
	margin: 4px 0 0;
	font-size: 15px;
	color: #000;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
}

.mini-cart-qty-stepper {
	display: flex;
	align-items: center;
	width: 108px;
	margin-top: 12px;
	border: 1px solid #d9d9d9;
	background: #fff;
	overflow: hidden;
}

.mini-cart-qty-btn {
	flex: 0 0 32px;
	height: 32px;
	border: none;
	background: #f2f2f2;
	color: #000;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
}

.mini-cart-qty-btn:disabled {
	opacity: .5;
	cursor: default;
}

.mini-cart-qty-value {
	flex: 1 1 auto;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #000;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
}

.mini-cart-item-price {
	flex-shrink: 0;
	text-align: right;
}

.mini-cart-item-was {
	margin: 0;
	font-size: 14px;
	color: #9a9a9a;
	white-space: nowrap;
}

.mini-cart-item-was del {
	text-decoration: line-through;
}

.mini-cart-item-off {
	margin: 2px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: #c0392b;
	white-space: nowrap;
}

.mini-cart-item-linetotal {
	margin: 4px 0 0;
	font-weight: 700;
	font-size: 18px;
	white-space: nowrap;
	color: #000;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
}

.mini-cart-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	border-radius: 50%;
	transition: background .15s ease;
}

.mini-cart-remove:hover {
	background: #c0392b;
}

/* ---- Footer / totals ---- */
.mini-cart-footer {
	flex-shrink: 0;
	padding: 20px 30px 28px;
	border-top: 1px solid #ececec;
	background: #fff;
}

.mini-cart-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 17px;
	font-weight: 700;
	color: #000;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
	margin-bottom: 18px;
}

.mini-cart-checkout.common_button {
	display: block;
	text-align: center;
	line-height: 54px;
	height: 54px;
	margin-bottom: 12px;
	box-shadow: none;
}

.mini-cart-checkout.common_button:hover {
	background: #d19f3f;
}

.mini-cart-continue-link {
	display: block;
	width: 100%;
	text-align: center;
	background: none;
	border: none;
	padding: 0;
	font-size: 14px;
	color: #000;
	text-decoration: underline;
	cursor: pointer;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
}

/* Product card grid — the theme's own .section1_shop_wrap rule sets a
   column-gap but no row-gap on desktop, so multi-row grids (shop archive,
   search results) show cards touching vertically. Only ever showed here
   since the homepage's version of this grid never wraps past one row. */
.section1_shop_wrap {
	row-gap: 30px;
}

/* Product card "In stock" / "Out of stock" badge — red dot + no pulse
   animation when out of stock, distinguishing it from the green in-stock one.
   Appears on shop/search/homepage/product cards, so lives here (loaded
   sitewide) rather than in woocommerce.css (product pages only). */
.hero_stock.out-of-stock p:before {
	background: #e74c3c;
	animation: none;
}

/* ---- "Added to cart" toast ---- */
.maxxed-toast {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translate(-50%, -16px);
	max-width: calc(100% - 40px);
	background: #fff9ee;
	border: 1px solid var(--maxxed-brand, #e1b04a);
	color: #000;
	padding: 14px 22px;
	border-radius: 6px;
	font-size: 14px;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	opacity: 0;
	z-index: 10050;
	transition: opacity .3s ease, transform .3s ease;
	pointer-events: none;
}

.maxxed-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---- Header cart icon count badge ---- */
.cart-icon-item {
	position: relative;
}

.cart-icon-item .mini-cart-toggle {
	position: relative;
	display: block;
}

.cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	background: var(--maxxed-brand, #e1b04a);
	color: #000;
	border-radius: 50%;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
	font-family: var(--maxxed-body-font, 'Arial'), sans-serif;
	font-weight: 700;
}

@media only screen and (max-width: 767px) {
	.mini-cart-drawer {
		width: 100%;
	}

	.mini-cart-drawer-head {
		padding: 18px 20px;
	}

	.mini-cart-items,
	.mini-cart-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.mini-cart-item {
		column-gap: 10px;
	}

	.mini-cart-item-image {
		width: 70px;
		height: 70px;
	}

	.mini-cart-item-name {
		font-size: 17px;
	}

	.mini-cart-item-linetotal {
		font-size: 15px;
	}
}
