/**
 * Custom WooCommerce Side Cart Drawer CSS for WiFi Bikes (All font sizes in PX)
 */

/* Backdrop Overlay */
.wb-side-cart-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s;
}

.wb-side-cart-backdrop.is-active {
	opacity: 1;
	visibility: visible;
}

/* Side Cart Drawer Main Container */
.wb-side-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 440px;
	max-width: 90vw;
	height: 100vh;
	height: 100dvh;
	background: #ffffff;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
	transform: translateX(100%);
	transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wb-side-cart-drawer.is-open {
	transform: translateX(0) !important;
}

/* Drawer Header */
.wb-side-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	background: #000000;
	color: #ffffff;
	border-bottom: 3px solid #FFDB00;
	flex-shrink: 0;
}

.wb-side-cart-title-box {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wb-side-cart-title-box svg {
	color: #FFDB00;
	stroke: #FFDB00;
}

.wb-side-cart-title {
	margin: 0;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	letter-spacing: 0.3px;
}

.wb-side-cart-count-badge {
	background: #FFDB00;
	color: #000000;
	font-weight: 800;
	font-size: 13px !important;
	padding: 3px 10px;
	border-radius: 12px;
}

.wb-side-cart-close-btn {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #ffffff;
	cursor: pointer;
	font-size: 18px !important;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.wb-side-cart-close-btn:hover {
	background: #FFDB00;
	color: #000000;
	transform: rotate(90deg);
}

/* Main Content Body */
.wb-side-cart-content-wrapper {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 0;
	background: #ffffff;
}

/* Shipping Progress Bar */
.wb-mini-cart-shipping-bar {
	background: #fffdf0;
	padding: 14px 24px;
	border-bottom: 1px solid #f0ecce;
	flex-shrink: 0;
}

.wb-mini-cart-shipping-bar p {
	margin: 0 0 6px 0;
	font-size: 14px !important;
	color: #222222;
}

.wb-shipping-progress {
	height: 8px;
	background: #e6e4d5;
	border-radius: 10px;
	overflow: hidden;
}

.wb-shipping-progress span {
	display: block;
	height: 100%;
	border-radius: 10px;
	transition: width 0.4s ease;
}

/* Product List */
.wb-side-cart-drawer ul.woocommerce-mini-cart {
	list-style: none !important;
	margin: 0 !important;
	padding: 20px 24px !important;
	display: flex;
	flex-direction: column;
	gap: 18px;
	flex: 1;
	overflow-y: auto;
}

/* Product Item Card */
.wb-side-cart-drawer ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
	display: flex !important;
	gap: 16px !important;
	padding-bottom: 18px !important;
	border-bottom: 1px solid #eeeeee !important;
	position: relative !important;
	align-items: flex-start !important;
	float: none !important;
	width: 100% !important;
	background: transparent !important;
	margin: 0 !important;
}

/* Product Image */
.wb-side-cart-drawer .wb-mini-cart-img {
	width: 90px !important;
	height: 90px !important;
	flex-shrink: 0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	border: 1px solid #e2e2e2 !important;
	background: #fafafa !important;
}

.wb-side-cart-drawer .wb-mini-cart-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

/* Details Column */
.wb-side-cart-drawer .wb-mini-cart-details {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	min-height: 90px !important;
}

.wb-side-cart-drawer .wb-mini-cart-head {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	gap: 10px !important;
}

.wb-side-cart-drawer .wb-mini-cart-title {
	margin: 0 0 6px 0 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: #111111 !important;
}

.wb-side-cart-drawer .wb-mini-cart-title a {
	color: #111111 !important;
	text-decoration: none !important;
}

.wb-side-cart-drawer .wb-mini-cart-title a:hover {
	color: #000000 !important;
}

/* Remove Icon */
.wb-side-cart-drawer a.remove {
	color: #888888 !important;
	font-size: 20px !important;
	line-height: 1 !important;
	text-decoration: none !important;
	font-weight: bold !important;
	padding: 2px 6px !important;
	border-radius: 4px !important;
	transition: all 0.2s !important;
	display: inline-block !important;
}

.wb-side-cart-drawer a.remove:hover {
	color: #ef4444 !important;
	background: #fee2e2 !important;
}

/* Variations / Attributes DL */
.wb-side-cart-drawer dl.variation {
	margin: 4px 0 10px 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	color: #555555 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 4px 10px !important;
	border: none !important;
}

.wb-side-cart-drawer dl.variation dt {
	font-weight: 600 !important;
	margin: 0 !important;
	float: none !important;
	color: #333333 !important;
}

.wb-side-cart-drawer dl.variation dd {
	margin: 0 8px 0 0 !important;
	float: none !important;
}

.wb-side-cart-drawer dl.variation dd p {
	margin: 0 !important;
}

/* Price Row */
.wb-side-cart-drawer .wb-mini-cart-bottom {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	margin-top: 10px !important;
}

.wb-side-cart-drawer .wb-cart-item-price {
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #000000 !important;
}

/* Footer / Totals & Buttons */
.wb-side-cart-drawer .woocommerce-mini-cart__total {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 18px 24px 10px 24px !important;
	margin: 0 !important;
	border-top: 1px solid #eaeaea !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #000000 !important;
	background: #ffffff !important;
}

.wb-side-cart-drawer .woocommerce-mini-cart__buttons {
	display: flex !important;
	gap: 12px !important;
	padding: 12px 24px 24px 24px !important;
	margin: 0 !important;
	background: #ffffff !important;
}

.wb-side-cart-drawer .woocommerce-mini-cart__buttons a.button {
	flex: 1 !important;
	text-align: center !important;
	padding: 14px 18px !important;
	border-radius: 8px !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	text-decoration: none !important;
	transition: all 0.25s ease !important;
	margin: 0 !important;
	display: block !important;
	float: none !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
}

.wb-side-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout) {
	background: #f0f0f0 !important;
	color: #111111 !important;
	border: 1px solid #d4d4d4 !important;
}

.wb-side-cart-drawer .woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
	background: #e2e2e2 !important;
	color: #000000 !important;
}

.wb-side-cart-drawer .woocommerce-mini-cart__buttons a.button.checkout {
	background: #000000 !important;
	color: #FFDB00 !important;
	border: 1px solid #000000 !important;
}

.wb-side-cart-drawer .woocommerce-mini-cart__buttons a.button.checkout:hover {
	background: #222222 !important;
	color: #FFDB00 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

/* Empty Cart State Styling */
.wb-side-cart-drawer .wb-side-cart-empty-state {
	padding: 50px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.wb-side-cart-drawer .wb-side-cart-empty-icon {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: #f7f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.wb-side-cart-drawer .wb-side-cart-empty-state h4 {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 8px 0;
	color: #111111;
}

.wb-side-cart-drawer .wb-side-cart-empty-state p {
	font-size: 14px;
	color: #666666;
	margin: 0 0 20px 0;
}

.wb-side-cart-drawer .wb-side-cart-shop-btn {
	background: #000000;
	color: #FFDB00;
	padding: 12px 28px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s;
}

.wb-side-cart-drawer .wb-side-cart-shop-btn:hover {
	background: #222222;
	color: #FFDB00;
	transform: translateY(-2px);
}

#wb-side-cart-drawer .wb-mini-cart-img {
	display: flex;
	align-items: center;
}

#wb-side-cart-drawer dl.variation dt {
	text-transform: capitalize;
}

#wb-side-cart-drawer a.remove {
	padding: 0px 4px 0px 3px !important;
}

#wb-side-cart-drawer dl.variation {
	gap: 6px 0px !important;
}

#wb-side-cart-drawer .wb-mini-cart-bottom {
	flex-wrap: balance !important;
	gap: 5px;
}

@media (max-width: 480px) {
	#wb-side-cart-drawer .wb-side-cart-title {
		font-size: 16px !important;
	}
}