@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Front-End Color Tokens */
.mcc-shop-wrapper, .mcc-portal-wrapper {
	--mcc-shop-primary: #3f51b5;
	--mcc-shop-primary-hover: #303f9f;
	--mcc-shop-secondary: #00838f;
	--mcc-shop-success: #2e7d32;
	--mcc-shop-danger: #d32f2f;
	--mcc-shop-warning: #ef6c00;
	--mcc-shop-dark: #1f2937;
	--mcc-shop-light: #f9fafb;
	--mcc-shop-border: #e5e7eb;
	--mcc-shop-font: 'Outfit', sans-serif;
	
	font-family: var(--mcc-shop-font);
	color: var(--mcc-shop-dark);
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--mcc-shop-border);
	padding: 25px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.03);
	margin: 20px 0;
	box-sizing: border-box;
}

.mcc-shop-wrapper *, .mcc-portal-wrapper * {
	box-sizing: border-box;
}

/* User Profile Header */
.mcc-shop-header, .mcc-portal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 2px solid var(--mcc-shop-border);
	padding-bottom: 20px;
	margin-bottom: 25px;
	flex-wrap: wrap;
	gap: 15px;
}

.mcc-shop-info h2, .mcc-portal-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: var(--mcc-shop-dark);
}

.mcc-shop-info p, .mcc-portal-header p {
	margin: 5px 0 0 0;
	font-size: 14px;
	color: #6b7280;
}

/* Credit Badge Box */
.mcc-shop-credit-card, .mcc-portal-badge {
	background: linear-gradient(135deg, #1e1b4b, #312e81);
	color: #fff;
	padding: 15px 25px;
	border-radius: 12px;
	text-align: right;
	box-shadow: 0 4px 15px rgba(49, 46, 129, 0.2);
}

.mcc-credit-card-detail span, .mcc-portal-badge span {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #c7d2fe;
}

.mcc-credit-card-detail strong, .mcc-portal-badge strong {
	display: block;
	font-size: 22px;
	font-weight: 700;
	margin-top: 3px;
	color: #fff;
}

/* Core Layout */
.mcc-shop-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 30px;
}

/* Category Sidebar */
.mcc-shop-sidebar h3 {
	margin-top: 0;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	color: #4b5563;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
}

.mcc-shop-cat-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mcc-shop-cat-list li {
	padding: 12px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	color: #4b5563;
	cursor: pointer;
	margin-bottom: 5px;
	transition: all 0.2s ease;
}

.mcc-shop-cat-list li:hover {
	background: #f3f4f6;
	color: var(--mcc-shop-primary);
}

.mcc-shop-cat-list li.active {
	background: #e0e7ff;
	color: var(--mcc-shop-primary);
}

/* Products Section */
.mcc-shop-search-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	gap: 15px;
}

#mcc-shop-search {
	flex: 1;
	padding: 12px 20px;
	border-radius: 10px;
	border: 1px solid var(--mcc-shop-border);
	font-family: var(--mcc-shop-font);
	font-size: 14px;
	outline: none;
	transition: border 0.3s ease;
}

#mcc-shop-search:focus {
	border-color: var(--mcc-shop-primary);
	box-shadow: 0 0 0 3px rgba(63,81,181,0.1);
}

.mcc-shop-btn {
	background: var(--mcc-shop-primary);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-family: var(--mcc-shop-font);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mcc-shop-btn:hover {
	background: var(--mcc-shop-primary-hover);
}

.mcc-shop-btn-secondary {
	background: #e5e7eb;
	color: #374151;
}

.mcc-shop-btn-secondary:hover {
	background: #d1d5db;
}

/* Grid of cards */
.mcc-shop-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

/* Product Card */
.mcc-product-card {
	border: 1px solid var(--mcc-shop-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	position: relative;
}

.mcc-product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.06);
	border-color: #cbd5e1;
}

.mcc-prod-image-wrapper {
	position: relative;
	height: 160px;
	background: #f9fafb;
}

.mcc-prod-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.mcc-product-card:hover .mcc-prod-image-wrapper img {
	transform: scale(1.05);
}

.mcc-prod-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--mcc-shop-danger);
	color: #fff;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	z-index: 2;
}

.mcc-prod-details {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mcc-prod-details h4 {
	margin: 0 0 5px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--mcc-shop-dark);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 42px;
}

.mcc-prod-sku {
	font-size: 11px;
	color: #9ca3af;
	margin-bottom: 10px;
}

.mcc-prod-day-tag {
	background: #f3f4f6;
	color: #4b5563;
	padding: 3px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	margin-bottom: 12px;
	display: inline-block;
	align-self: flex-start;
}

.mcc-prod-pricing {
	margin-top: auto;
	margin-bottom: 12px;
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.mcc-prod-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--mcc-shop-dark);
}

.mcc-prod-regular-price {
	font-size: 13px;
	text-decoration: line-through;
	color: #9ca3af;
}

.mcc-prod-details .mcc-shop-btn {
	width: 100%;
	justify-content: center;
	padding: 8px;
	font-size: 13px;
}

/* Spinner */
.mcc-shop-loading {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 200px;
}

.mcc-shop-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #f3f4f6;
	border-top-color: var(--mcc-shop-primary);
	border-radius: 50%;
	animation: mcc-spin-shop 1s linear infinite;
}

@keyframes mcc-spin-shop {
	to { transform: rotate(360deg); }
}

/* Cart Drawer Panel */
.mcc-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 380px;
	max-width: 100%;
	background: #fff;
	box-shadow: -5px 0 30px rgba(0,0,0,0.15);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcc-cart-drawer.active {
	transform: translateX(0);
}

.mcc-cart-drawer-header {
	padding: 20px;
	border-bottom: 1px solid var(--mcc-shop-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mcc-cart-drawer-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.mcc-close-cart {
	font-size: 28px;
	font-weight: 700;
	color: #9ca3af;
	cursor: pointer;
}

.mcc-close-cart:hover {
	color: var(--mcc-shop-dark);
}

.mcc-cart-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.mcc-cart-item {
	display: flex;
	gap: 12px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--mcc-shop-border);
	margin-bottom: 15px;
}

.mcc-cart-item-image {
	width: 55px;
	height: 55px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--mcc-shop-border);
}

.mcc-cart-item-details {
	flex: 1;
}

.mcc-cart-item-details h4 {
	margin: 0 0 4px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.mcc-cart-item-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--mcc-shop-primary);
}

.mcc-cart-item-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
}

.mcc-cart-qty-btn {
	background: #f3f4f6;
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 12px;
	cursor: pointer;
}

.mcc-cart-qty-btn:hover {
	background: #e5e7eb;
}

.mcc-cart-item-qty {
	font-size: 13px;
	font-weight: 600;
	margin: 0 10px;
}

.mcc-cart-remove {
	color: var(--mcc-shop-danger);
	font-size: 12px;
	cursor: pointer;
	font-weight: 500;
}

.mcc-cart-drawer-footer {
	padding: 20px;
	border-top: 1px solid var(--mcc-shop-border);
	background: var(--mcc-shop-light);
}

.mcc-cart-total-row {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
}

.mcc-cart-total-row strong {
	font-size: 20px;
	font-weight: 700;
	color: var(--mcc-shop-dark);
}

/* Modals */
.mcc-shop-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(31, 41, 55, 0.6);
	backdrop-filter: blur(4px);
	align-items: center;
	justify-content: center;
	padding: 15px;
}

.mcc-shop-modal.active {
	display: flex;
}

.mcc-shop-modal-content {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 500px;
	padding: 25px;
	position: relative;
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	max-height: 90%;
	overflow-y: auto;
}

.mcc-close-shop-modal {
	position: absolute;
	right: 15px;
	top: 10px;
	font-size: 28px;
	color: #9ca3af;
	cursor: pointer;
}

.mcc-close-shop-modal:hover {
	color: var(--mcc-shop-dark);
}

/* Login Box Styling */
.mcc-login-container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
}

.mcc-login-card {
	background: #fff;
	border: 1px solid var(--mcc-shop-border);
	border-radius: 12px;
	padding: 35px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	text-align: center;
}

.mcc-login-card h2 {
	margin-top: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--mcc-shop-primary);
}

.mcc-login-card p {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 25px;
}

.mcc-shop-form-group {
	margin-bottom: 18px;
	text-align: left;
}

.mcc-shop-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
	margin-bottom: 6px;
}

.mcc-shop-form-group input, .mcc-shop-form-group select {
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid var(--mcc-shop-border);
	font-family: var(--mcc-shop-font);
	font-size: 14px;
	outline: none;
	transition: border 0.2s ease;
}

.mcc-shop-form-group input:focus, .mcc-shop-form-group select:focus {
	border-color: var(--mcc-shop-primary);
}

.mcc-shop-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.mcc-login-card .mcc-shop-btn {
	width: 100%;
	justify-content: center;
	padding: 12px;
	font-size: 15px;
	margin-top: 10px;
}

/* Customer Portal Details */
.mcc-portal-details {
	display: flex;
	gap: 25px;
	flex-wrap: wrap;
}

.mcc-portal-card {
	flex: 1;
	min-width: 280px;
	border: 1px solid var(--mcc-shop-border);
	border-radius: 12px;
	padding: 20px;
	background: #fff;
}

.mcc-portal-card h3 {
	margin-top: 0;
	font-size: 16px;
	font-weight: 700;
	color: #4b5563;
	border-bottom: 1px solid var(--mcc-shop-border);
	padding-bottom: 10px;
	margin-bottom: 15px;
}

.mcc-portal-card p {
	font-size: 14px;
	margin: 8px 0;
	line-height: 1.5;
}

.mcc-portal-table th, .mcc-portal-table td {
	padding: 12px;
	font-size: 13px;
	border-bottom: 1px solid var(--mcc-shop-border);
}

.mcc-portal-table th {
	font-weight: 600;
	color: #4b5563;
}

.mcc-portal-badge-status {
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: capitalize;
}

.mcc-portal-badge-status.status-pending { background: #fef3c7; color: #d97706; }
.mcc-portal-badge-status.status-approved { background: #ccfbf1; color: #0d9488; }
.mcc-portal-badge-status.status-delivered { background: #dcfce7; color: #15803d; }
.mcc-portal-badge-status.status-cancelled { background: #fee2e2; color: #b91c1c; }

/* Responsive adjustments */
@media (max-width: 768px) {
	.mcc-shop-layout {
		grid-template-columns: 1fr;
	}
	.mcc-shop-sidebar {
		border-bottom: 1px solid var(--mcc-shop-border);
		padding-bottom: 15px;
	}
	.mcc-shop-cat-list {
		display: flex;
		overflow-x: auto;
		gap: 10px;
		padding-bottom: 8px;
	}
	.mcc-shop-cat-list li {
		white-space: nowrap;
		margin-bottom: 0;
	}
}
