/**
 * Mini-Cart Standalone Styles
 * Standalone mini-cart component that works site-wide
 */

/* Cart Icon and Badge */
.cart {
	position: relative;
}

.cart > i{
    cursor: pointer;
}

.cart-badge {
	position: absolute;
	top: -10px;
	right: -10px;
	background: #006775;
	color: white;
	border-radius: 50%;
	min-width: 15px;
	height: 15px;
	font-size: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	pointer-events: none;
}

/* Mini-Cart Dropdown */
.mini-cart-dropdown {
	position: absolute;
	top: 30px;
	right: -10px;
	background: white;
	border-radius: 20px;
	min-width: 325px;
	max-width: 400px;
	cursor: auto;
	z-index: 1000;
	display: none;
	overflow: hidden;
	box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
}

.mini-cart-header {
	padding: 10px 15px 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	position: relative;
}

.mini-cart-close {
	background: none;
	border: none;
	font-size: 16px;
	color: #A7B7BD;
	cursor: pointer;
	padding: 5px;
	border-radius: 4px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.mini-cart-close:hover {
	background-color: #f0f0f0;
	color: #333;
}

.mini-cart-items {
	max-height: 350px;
	overflow-y: auto;
}

.mini-cart-item {
	display: flex;
	padding: 10px;
	border: 1px solid #D7DFE2;
	gap: 12px;
	margin: 5px 10px;
	border-radius: 15px;
}

.cart-item-image {
	width: 80px;
	height: 100px;
	background: #f8f9fa;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #666;
	flex-shrink: 0;
}

.cart-item-details {
	flex: 1;
	min-width: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.cart-item-title {
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
	font-size: 14px;
}

.cart-item-category {
	font-size: 18px;
	color: #000000;
	margin-bottom: 4px;
	font-weight: 600;
}

.cart-item-option {
	color: #000000;
	font-size: 12px;
}

.cart-item-simcha {
	font-size: 13px;
	color: #000000;
	margin-bottom: 4px;
	font-weight: 200;
}

.cart-item-price {
	font-weight: 700;
	color: #000000;
	font-size: 17px;
	margin-top: auto;
	margin-bottom: 0;
	padding-top: 5px;
}

.cart-item-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.cart-item-edit {
	color: #A7B7BD;
	cursor: pointer;
	padding: 4px;
	border-radius: 8px;
	font-size: 12px;
	border: 1px solid #D7DFE2;
	width: 24px;
	height: 24px;
	text-align: center;
}

.cart-item-remove {
	color: #9F1B1B;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	font-size: 12px;
	margin-top: auto;
	border: 1px solid #D7DFE2;
	width: 24px;
	height: 24px;
	text-align: center;
}

.mini-cart-footer {
	padding: 15px;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-weight: bold;
	font-size: 16px;
}

.cart-checkout-btn {
	width: 100%;
	border: none;
	background: linear-gradient(to right, #5298A1 0%, #006775 100%);
	color: #fff;
	border-radius: 20px;
	padding: 10px 10px 5px;
	cursor: pointer;
	font-weight: 600;
	font-size: 18px;
	font-family: 'MainTTCommons', "Roboto", sans-serif;
}

.cart-checkout-btn:hover {
	background: #005563;
}

.cart-empty {
	padding: 40px 20px;
	text-align: center;
	color: #666;
}

.cart-empty i {
	font-size: 48px;
	color: #ddd;
	margin-bottom: 16px;
	display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.mini-cart-dropdown {
		right: 0;
		min-width: 280px;
		max-width: 320px;
	}
}
