/**
 * MERCI COFFEE — DIGITAL MENU SYSTEM & SALON CATALOGUE
 */

/* Menu Shell */
.mc-menu-stage {
    position: relative;
    padding-bottom: 60px;
}

/* Menu Prelude & Hero Banner */
.mc-menu-hero {
    position: relative;
    padding: 32px 0 20px;
}

.mc-menu-hero__plate {
    background: rgba(6, 59, 71, 0.88);
    border: 1px solid var(--mc-gold-border);
    border-radius: var(--mc-radius-lg);
    padding: 28px 24px 24px;
    box-shadow: 0 8px 32px rgba(3, 37, 46, 0.45);
    position: relative;
}

.mc-menu-hero__plate::before,
.mc-menu-hero__plate::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--mc-gold);
    border-style: solid;
    pointer-events: none;
}

.mc-menu-hero__plate::before {
    top: -2px;
    right: -2px;
    border-width: 2px 2px 0 0;
}

.mc-menu-hero__plate::after {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 2px 2px;
}

.mc-menu-hero__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.mc-menu-hero__crest {
    width: 54px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px var(--mc-gold-glow));
}

.mc-menu-hero__title {
    font-family: var(--mc-font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--mc-gold-bright);
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.mc-menu-hero__subtitle {
    font-size: 0.92rem;
    color: var(--mc-ivory);
    opacity: 0.85;
    margin: 0;
    max-width: 520px;
}

/* Menu Search Bar */
.mc-search-wrap {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

.mc-search-input {
    width: 100%;
    height: 48px;
    padding: 0 46px 0 18px;
    background: rgba(4, 37, 46, 0.7);
    border: 1px solid var(--mc-gold-border);
    border-radius: var(--mc-radius-pill);
    color: var(--mc-ivory);
    font-size: 0.92rem;
    outline: none;
    transition: all var(--mc-transition-fast);
}

.mc-search-input::placeholder {
    color: var(--mc-gold-light);
    opacity: 0.6;
}

.mc-search-input:focus {
    border-color: var(--mc-gold-light);
    background: rgba(4, 37, 46, 0.95);
    box-shadow: 0 0 0 3px rgba(200, 164, 93, 0.25), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mc-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mc-gold);
    font-size: 1rem;
    pointer-events: none;
}

/* Category Navigation (Horizontal Sticky Bar) */
.mc-cat-nav-sticky {
    position: sticky;
    top: var(--mc-header-h);
    z-index: 900;
    background: rgba(6, 59, 71, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--mc-gold-hairline);
    border-bottom: 1px solid var(--mc-gold-border);
    box-shadow: 0 4px 16px rgba(3, 37, 46, 0.35);
    padding: 8px 0;
    margin-bottom: 28px;
}

.mc-cat-rail {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.mc-cat-rail::-webkit-scrollbar {
    display: none;
}

.mc-cat-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--mc-radius-pill);
    color: var(--mc-ivory);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--mc-transition-fast);
}

.mc-cat-btn:hover {
    color: var(--mc-gold-bright);
    background: rgba(200, 164, 93, 0.1);
}

.mc-cat-btn.is-active {
    color: var(--mc-mahogany-dark);
    background: linear-gradient(135deg, #F5E4B8 0%, #C8A45D 100%);
    border-color: var(--mc-gold-bright);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(200, 164, 93, 0.4);
}

.mc-cat-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(6, 59, 71, 0.5);
    color: var(--mc-gold-light);
    border: 1px solid var(--mc-gold-hairline);
}

.mc-cat-btn.is-active .mc-cat-btn__count {
    background: rgba(56, 35, 31, 0.85);
    color: #fff;
    border-color: transparent;
}

/* Featured / Merci Signature Carousel */
.mc-featured-strip {
    margin-bottom: 44px;
}

.mc-featured-strip__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mc-featured-strip__title {
    font-family: var(--mc-font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--mc-gold-bright);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.mc-featured-strip__rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 2px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--mc-gold-dark) transparent;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.mc-featured-strip__rail > * {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .mc-featured-strip__rail > * {
        flex: 0 0 320px;
    }
}

/* Category Sections */
.mc-chapter {
    margin-bottom: 52px;
    scroll-margin-top: calc(var(--mc-header-h) + 70px);
}

.mc-chapter__head {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mc-gold-hairline);
}

.mc-chapter__head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--mc-gold);
    box-shadow: 0 0 6px var(--mc-gold-glow);
}

.mc-chapter__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mc-chapter__title {
    font-family: var(--mc-font-display);
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    font-weight: 600;
    color: var(--mc-gold-bright);
    margin: 0;
    letter-spacing: 0.5px;
}

.mc-chapter__desc {
    font-size: 0.88rem;
    color: var(--mc-gold-light);
    opacity: 0.8;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* Products Grid */
.mc-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .mc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .mc-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Product Card — Warm Ivory & Fine Gold Border */
.mc-card {
    background: var(--mc-ivory);
    border: 1px solid var(--mc-cream-dark);
    border-radius: var(--mc-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 16px rgba(4, 37, 46, 0.18);
    transition: transform var(--mc-transition-fast), box-shadow var(--mc-transition-fast), border-color var(--mc-transition-fast);
}

.mc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(4, 37, 46, 0.3), 0 0 0 1px var(--mc-gold-border);
    border-color: var(--mc-gold);
}

.mc-card--sold {
    opacity: 0.68;
    filter: grayscale(0.2);
}

/* Card Media */
.mc-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #e4dac8;
    overflow: hidden;
    cursor: pointer;
}

.mc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.mc-card:hover .mc-card__img {
    transform: scale(1.05);
}

/* Placeholder when no image exists */
.mc-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #EFE6D5 0%, #DCCFBA 100%);
    color: var(--mc-gold-dark);
    padding: 16px;
    text-align: center;
}

.mc-card__placeholder-crest {
    width: 52px;
    height: auto;
    opacity: 0.45;
    margin-bottom: 8px;
}

/* Badges */
.mc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: var(--mc-radius-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mc-badge--soldout {
    background: #38231F;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mc-badge--signature {
    background: linear-gradient(135deg, #F5E4B8 0%, #C8A45D 100%);
    color: var(--mc-mahogany-dark);
    border: 1px solid var(--mc-gold-bright);
}

.mc-badge--discount {
    background: linear-gradient(135deg, var(--mc-rose), var(--mc-rose-deep));
    color: #fff;
}

/* Card Body */
.mc-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    color: var(--mc-charcoal);
}

.mc-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.mc-card__title {
    font-family: var(--mc-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mc-charcoal);
    margin: 0;
    line-height: 1.3;
    cursor: pointer;
    transition: color var(--mc-transition-fast);
}

.mc-card__title:hover {
    color: var(--mc-teal);
}

.mc-card__desc {
    font-size: 0.82rem;
    color: var(--mc-text-body);
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.88;
}

/* Variants Pill Group */
.mc-variants-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mc-variant-chip {
    padding: 3px 10px;
    border-radius: var(--mc-radius-pill);
    font-size: 0.74rem;
    background: #EAE0CE;
    color: var(--mc-charcoal);
    border: 1px solid var(--mc-cream-dark);
    cursor: pointer;
    transition: all var(--mc-transition-fast);
}

.mc-variant-chip:hover {
    border-color: var(--mc-gold);
}

.mc-variant-chip.is-active {
    background: var(--mc-teal);
    color: #fff;
    border-color: var(--mc-teal-dark);
    font-weight: 600;
}

/* Card Footer & Price Actions */
.mc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--mc-cream-dark);
    gap: 8px;
}

.mc-card__pricing {
    display: flex;
    flex-direction: column;
}

.mc-card__price-orig {
    font-size: 0.76rem;
    text-decoration: line-through;
    color: #8c8275;
}

.mc-card__price-final {
    font-family: var(--mc-font-num);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mc-teal-dark);
    line-height: 1.1;
}

/* Quantity Adjuster */
.mc-qty {
    display: inline-flex;
    align-items: center;
    background: #EAE0CE;
    border: 1px solid var(--mc-gold);
    border-radius: var(--mc-radius-pill);
    padding: 2px;
}

.mc-qty__btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--mc-mahogany-dark);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--mc-transition-fast), color var(--mc-transition-fast);
}

.mc-qty__btn:hover {
    background: var(--mc-gold);
    color: #fff;
}

.mc-qty__val {
    min-width: 24px;
    text-align: center;
    font-family: var(--mc-font-num);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--mc-charcoal);
}

.mc-card__blocked {
    font-size: 0.8rem;
    color: var(--mc-danger);
    font-weight: 600;
}

/* Empty Search Message */
.mc-empty-search {
    text-align: center;
    padding: 48px 20px;
    background: rgba(6, 59, 71, 0.7);
    border: 1px solid var(--mc-gold-border);
    border-radius: var(--mc-radius-lg);
    margin: 20px 0;
}

.mc-empty-search.is-hidden {
    display: none !important;
}

.mc-empty-search__crest {
    width: 60px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 12px;
}

.mc-empty-search__title {
    font-family: var(--mc-font-display);
    font-size: 1.4rem;
    color: var(--mc-gold-bright);
    margin: 0 0 6px;
}

.mc-empty-search__desc {
    font-size: 0.88rem;
    color: var(--mc-ivory);
    opacity: 0.8;
    margin: 0;
}

/* Product Detail Modal */
.mc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mc-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.mc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 37, 46, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mc-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--mc-ivory);
    border: 2px solid var(--mc-gold);
    border-radius: var(--mc-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px var(--mc-gold-glow);
    z-index: 2;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--mc-charcoal);
}

.mc-modal.is-active .mc-modal__dialog {
    transform: scale(1);
}

.mc-modal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(56, 35, 31, 0.85);
    border: 1px solid var(--mc-gold);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--mc-transition-fast);
}

.mc-modal__close:hover {
    background: var(--mc-rose-deep);
}

.mc-modal__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #063B47;
}

.mc-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-modal__body {
    padding: 24px;
}

.mc-modal__category {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--mc-teal);
    letter-spacing: 1px;
}

.mc-modal__title {
    font-family: var(--mc-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--mc-charcoal);
    margin: 4px 0 10px;
}

.mc-modal__desc {
    font-size: 0.92rem;
    color: var(--mc-text-body);
    line-height: 1.6;
    margin: 0 0 18px;
}

.mc-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--mc-cream-dark);
    padding-top: 18px;
    gap: 16px;
}

.mc-modal__price {
    font-family: var(--mc-font-num);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mc-teal-dark);
}

