/* ===== Moho mini cart drawer ===== */
html.moho-minicart-lock { overflow: hidden; }

.moho-minicart { position: fixed; inset: 0; z-index: 100001; visibility: hidden; pointer-events: none; font-family: "Georama", sans-serif; color: #3d3835; }
.moho-minicart.is-open { visibility: visible; pointer-events: auto; }
.moho-minicart__backdrop { position: absolute; inset: 0; background: rgba(20, 16, 14, .55); opacity: 0; transition: opacity .35s ease; }
.moho-minicart.is-open .moho-minicart__backdrop { opacity: 1; }

/* The drawer is right-anchored and grows to the left: cart first, then suggestions */
.moho-minicart__drawer {
	position: absolute; top: 0; right: 0; bottom: 0;
	display: flex; flex-direction: row;
	max-width: 100vw; background: #faf8f6; outline: 0;
	transform: translateX(100%); transition: transform .38s cubic-bezier(.22, .61, .36, 1);
	box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
}
.moho-minicart.is-open .moho-minicart__drawer { transform: translateX(0); }

.moho-minicart__cart { position: relative; z-index: 2; flex: 0 0 440px; width: 440px; max-width: 100vw; display: flex; flex-direction: column; background: #fff; min-height: 0; }
/* "You may also like": sits behind the cart panel, then slides out to its left (same easing as the cart) */
.moho-minicart__recs {
	position: absolute; top: 0; bottom: 0; right: 100%; z-index: 1;
	width: 340px; overflow-y: auto; background: #f4f0ed;
	transform: translateX(100%);
	transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s ease;
	will-change: transform;
}
.moho-minicart.is-wide .moho-minicart__recs { transform: translateX(0); box-shadow: -10px 0 40px rgba(0, 0, 0, .14); }

.mc-loading { padding: 40px 28px; color: #8a817b; font-size: 14px; }

/* Cart head */
.mc-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 12px; }
.mc-title { margin: 0; font-size: 17px; font-weight: 600; color: #1e1a17; letter-spacing: .01em; }
.mc-count { font-size: 12px; font-weight: 400; color: #8a817b; vertical-align: super; }
.mc-close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #1e1a17; cursor: pointer; }
.mc-close:hover { color: #5f1b47; }
.mc-note { margin: 0; padding: 0 28px 16px; font-size: 13px; line-height: 1.55; color: #6b625c; border-bottom: 1px solid #ece5e1; }
.mc-error { margin: 0; padding: 10px 28px; background: #fdecea; color: #a12622; font-size: 13px; }

/* Items */
.mc-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 28px; min-height: 0; }
.mc-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid #f0eae6; }
.mc-item:last-child { border-bottom: 0; }
.mc-img { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; background: #f6f3f1; overflow: hidden; border-radius: 5px; }
.mc-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-name { color: #1e1a17; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.mc-name:hover { color: #5f1b47; }
.mc-opt { font-size: 13px; color: #6b625c; line-height: 1.5; }
.mc-opt b { font-weight: 500; color: #3d3835; }
.mc-price { margin-top: 4px; font-size: 14px; font-weight: 600; color: #5f1b47; }
.mc-price .woocommerce-Price-amount, .mc-total .woocommerce-Price-amount { font-size: inherit; color: inherit; }
.mc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.mc-qty { display: inline-flex; align-items: center; gap: 4px; }
.mc-qty button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #3d3835; font-size: 18px; line-height: 1; cursor: pointer; }
.mc-qty button:hover:not(:disabled) { color: #5f1b47; }
.mc-qty button:disabled { opacity: .3; cursor: default; }
.mc-qty span { min-width: 22px; text-align: center; font-size: 14px; }
.mc-remove { padding: 0; border: 0; background: transparent; color: #3d3835; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mc-remove:hover { color: #a12622; }
.moho-minicart.is-busy .mc-item, .moho-minicart.is-busy .mc-foot { opacity: .55; pointer-events: none; transition: opacity .2s ease; }

.mc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px 28px; color: #6b625c; }
.mc-empty p { margin: 0; font-size: 15px; }

/* Footer */
.mc-foot { padding: 20px 28px 26px; border-top: 1px solid #ece5e1; background: #faf8f6; }
.mc-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 15px; color: #1e1a17; }
.mc-total strong { font-size: 18px; font-weight: 600; }
a.mc-btn { display: block; padding: 15px 20px; background: #1e1a17; color: #fff; text-align: center; font-size: 15px; font-weight: 500; letter-spacing: .02em; text-decoration: none; border: 1px solid #1e1a17; transition: background .2s ease, border-color .2s ease; }
a.mc-btn:hover, a.mc-btn:focus { background: #5f1b47; border-color: #5f1b47; color: #fff; }
a.mc-btn--ghost { background: #fff; color: #1e1a17; }
a.mc-btn--ghost:hover { color: #fff; }
a.mc-link { display: block; margin-top: 14px; text-align: center; color: #1e1a17; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
a.mc-link:hover { color: #5f1b47; }

/* You may also like */
.mc-recs-title { margin: 0; padding: 26px 28px 16px; font-size: 16px; font-weight: 600; color: #1e1a17; white-space: nowrap; }
.mc-recs { list-style: none; margin: 0; padding: 0 28px 24px; box-sizing: border-box; }
.mc-rec { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: center; margin: 0; padding: 18px 0; border-top: 1px solid #e8e1dc; }
.mc-rec:first-child { border-top: 0; }
.mc-rec__img { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; background: #fff; overflow: hidden; border-radius: 5px; }
.mc-rec__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mc-rec__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-rec__name { color: #1e1a17; font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.mc-rec__name:hover { color: #5f1b47; }
.mc-rec__opt { font-size: 12px; color: #8a817b; }
.mc-rec__price { font-size: 13px; color: #5f1b47; font-weight: 600; }
.mc-rec__price .woocommerce-Price-amount { font-size: inherit; color: inherit; }
.mc-add { align-self: flex-start; margin-top: 8px; padding: 8px 14px; border: 1px solid #1e1a17; border-radius: 0; background: transparent; color: #1e1a17; font-family: inherit; font-size: 13px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.mc-add:hover, .mc-add:focus { background: #5f1b47; border-color: #5f1b47; color: #fff; }

/* Tablet: slimmer panels */
@media (max-width: 1100px) and (min-width: 761px) {
	.moho-minicart__cart { flex-basis: 400px; width: 400px; }
	.moho-minicart__recs { width: 300px; }
	.mc-recs { padding-left: 22px; padding-right: 22px; }
	.mc-recs-title { padding-left: 22px; }
}

/* Phones: one scrolling column - cart first, "You may also like" below it */
@media (max-width: 760px) {
	.moho-minicart__drawer { width: 100vw; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
	.moho-minicart__cart { order: 1; flex: 0 0 auto; width: 100%; z-index: auto; }
	.moho-minicart__recs, .moho-minicart.is-wide .moho-minicart__recs { position: static; order: 2; flex: 0 0 auto; width: 100%; overflow: visible; transform: none; transition: none; box-shadow: none; }
	.mc-head { padding: 18px 20px 10px; }
	.mc-note { padding: 0 20px 14px; }
	.mc-body { padding: 4px 20px; overflow: visible; }
	.mc-item { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
	.mc-img { width: 80px; height: 80px; }
	.mc-foot { position: sticky; bottom: 0; padding: 16px 20px 20px; box-shadow: 0 -8px 20px rgba(0, 0, 0, .06); }
	.mc-recs-title { padding: 26px 20px 12px; }
	.mc-recs { width: auto; padding: 0 20px 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.moho-minicart__drawer, .moho-minicart__backdrop, .moho-minicart__recs { transition-duration: .01ms; }
}
