/* =====================================================
   HALAMAN MERCHANDISE (user)  -  prefix: mc-
   Letakkan di public/style/merchandise-page.css
   ===================================================== */
.mc-page { background: #ffffff; color: #111111; font-family: 'Inter', sans-serif; min-height: 100vh; }
.mc-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px 90px; }

/* Hero */
.mc-hero {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 40vh; padding: 150px 20px 80px; text-align: center; color: #ffffff;
    background: #0d0d0d url('../img/rawbg.webp') center / cover no-repeat;
}
.mc-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.mc-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.mc-hero__title { font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 56px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; line-height: 1.1; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.mc-hero__title--detail { font-size: 38px; text-transform: none; letter-spacing: 0.5px; }
.mc-hero__sub { margin-top: 16px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }

/* Filter status */
.mc-filter { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.mc-filter__item { padding: 10px 24px; border: 1px solid #dddddd; border-radius: 50px; font-size: 14.5px; font-weight: 500; color: #333333; text-decoration: none; transition: all 0.2s ease; }
.mc-filter__item:hover { border-color: #0c632e; color: #0c632e; }
.mc-filter__item.is-active { background: #0c632e; border-color: #0c632e; color: #ffffff; }

/* Grid */
.mc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.mc-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid #eeeeee; border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease; }
.mc-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1); }
.mc-card__media { position: relative; aspect-ratio: 1 / 1; background: #f4f4f4; overflow: hidden; }
.mc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-card__body { padding: 16px 18px 20px; }
.mc-card__name { font-family: 'Swiss721', 'Montserrat', sans-serif; font-size: 18px; line-height: 1.3; font-weight: 700; }
.mc-card__type { margin-top: 4px; font-size: 13.5px; color: #777777; }
.mc-card__price { margin-top: 10px; font-size: 17px; font-weight: 700; color: #0c632e; }

/* Badge status */
.mc-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 50px; font-size: 12.5px; font-weight: 600; background: #ffffff; color: #111111; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.mc-badge--on_sale { background: #FFE066; color: #3a2e00; }
.mc-badge--paid { background: #111111; color: #ffffff; }
.mc-badge--static { position: static; display: inline-block; box-shadow: none; }

.mc-empty { padding: 90px 20px; text-align: center; color: #666666; }

/* Detail */
.mc-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.mc-gallery__main { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #f4f4f4; border: 1px solid #eeeeee; }
.mc-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mc-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.mc-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #f4f4f4; cursor: pointer; aspect-ratio: 1 / 1; }
.mc-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-gallery__thumb.is-active { border-color: #0c632e; }
.mc-gallery__thumb:focus-visible { outline: 2px solid #0c632e; outline-offset: 2px; }

.mc-info__price { margin-top: 14px; font-size: 34px; font-weight: 800; color: #0c632e; font-family: 'Swiss721', 'Montserrat', sans-serif; }
.mc-specs { margin-top: 24px; border-top: 1px solid #eeeeee; }
.mc-specs__row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eeeeee; font-size: 15.5px; }
.mc-specs__row dt { width: 110px; flex-shrink: 0; color: #777777; }
.mc-specs__row dd { color: #111111; font-weight: 500; }
.mc-desc { margin-top: 24px; font-size: 16px; line-height: 1.8; color: #333333; }
.mc-buy { margin-top: 28px; padding: 20px 22px; border-radius: 12px; background: #fffbe6; border: 1px solid #f3e08a; }
.mc-buy__label { font-size: 14.5px; color: #5c4b00; line-height: 1.6; }
.mc-buy__value { display: block; margin-top: 6px; font-size: 18px; font-weight: 700; color: #111111; overflow-wrap: anywhere; }
a.mc-buy__value { color: #0c632e; text-decoration: underline; }
.mc-back { display: inline-block; margin-top: 32px; color: #0c632e; font-weight: 600; text-decoration: none; border-bottom: 2px solid #FFE066; padding-bottom: 2px; }
.mc-back:hover { border-bottom-color: #0c632e; }

@media (max-width: 1024px) { .mc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
    .mc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .mc-detail { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .mc-hero { padding: 120px 18px 60px; min-height: 32vh; }
    .mc-hero__title { font-size: 32px; }
    .mc-hero__title--detail { font-size: 26px; }
    .mc-hero__sub { font-size: 15px; }
    .mc-wrap { padding: 32px 16px 70px; }
    .mc-card__name { font-size: 15.5px; }
    .mc-card__price { font-size: 15px; }
    .mc-info__price { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .mc-card { transition: none; } .mc-card:hover { transform: none; } }


.mc-buy__btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 24px; border-radius: 999px; background: #0c632e; color: #ffffff; font-weight: 600; font-size: 15px; text-decoration: none; }
.mc-buy__btn:hover { background: #0a5126; }
.mc-buy__btn:focus-visible { outline: 2px solid #FFE066; outline-offset: 2px; }
.mc-buy__btn i { font-size: 18px; }
/* Harga member & variasi */
.mc-info__old { margin-left: 10px; font-size: 18px; font-weight: 500; color: #999999; text-decoration: line-through; }
.mc-info__member { margin-top: 4px; font-size: 14px; font-weight: 600; color: #0c632e; }
.mc-vars { margin-top: 24px; }
.mc-vars__title { margin-bottom: 10px; font-size: 14px; color: #777777; }
.mc-vars__list { display: flex; flex-wrap: wrap; gap: 10px; }
.mc-vars .mc-var { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 6px 14px 6px 6px; border: 1px solid #dddddd; border-radius: 50px; background: #ffffff; font-family: inherit; font-size: 14.5px; font-weight: 500; color: #111111; cursor: default; }
.mc-vars .mc-var[data-photo] { cursor: pointer; }
.mc-vars .mc-var[data-photo]:hover { border-color: #0c632e; }
.mc-vars .mc-var img { display: block; flex: 0 0 36px; width: 36px; height: 36px; max-width: 36px; border-radius: 50%; object-fit: cover; }
.mc-vars .mc-var:not(:has(img)) { padding-left: 14px; }