/*
 * magazin.css (11.11.2026): produsele personalizate, editorul lor, coșul și comanda.
 * Culorile sunt ale site-ului: fundal #0e1422, carduri rgba(21,29,45,.7), margini rgba(148,163,184,.14), accent #ff6b6b / #d9363e.
 */

/* ---------- lista de produse ---------- */
.mg-grupa { margin: 2.2rem 0 1rem; font-size: 1.15rem; font-weight: 600; color: #e5e7eb; }
.mg-grupa:first-child { margin-top: 0; }
.mg-grila { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .mg-grila { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mg-grila { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mg-card { position: relative; border-radius: 1.1rem; border: 1px solid rgba(148, 163, 184, .16); background: #161e2e; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.mg-card:hover, .mg-card:focus-within { border-color: rgba(255, 107, 107, .6); transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 107, 107, .25); }
.mg-card__tot { display: flex; flex-direction: column; width: 100%; height: 100%; padding: .55rem .55rem .9rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mg-card__tot:focus-visible { outline: 2px solid #ff6b6b; outline-offset: -2px; }
/* poza: pe fond deschis, ca într-o fotografie de produs */
.mg-card__poza { position: relative; display: block; aspect-ratio: 1; border-radius: .75rem; background: radial-gradient(120% 95% at 50% 28%, #fbf8f1 0%, #efe7d8 52%, #dccfb8 100%); overflow: hidden; }
.mg-card__poza img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 7%; filter: drop-shadow(0 9px 9px rgba(60, 40, 20, .3)); transition: transform .35s ease; }
.mg-card:hover .mg-card__poza img { transform: scale(1.06) rotate(-2deg); }
.mg-card__semn { position: absolute; left: .55rem; top: .55rem; z-index: 1; padding: .28rem .6rem; border-radius: 999px; background: linear-gradient(135deg, #ff5d5d, #e2313d); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; box-shadow: 0 4px 10px rgba(226, 49, 61, .4); white-space: nowrap; }
.mg-card__text { display: block; padding: .85rem .45rem 0; }
.mg-card__text strong { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: #fff; }
.mg-card__text small { display: block; margin-top: .2rem; font-size: .78rem; line-height: 1.4; color: #9ca3af; }
.mg-card__pret { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem; margin-top: auto; padding: .7rem .45rem 0; }
.mg-card__pret b { font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: #ff7b7b; white-space: nowrap; }
.mg-card__pret small { font-size: .78rem; color: #9ca3af; white-space: nowrap; }
.mg-card__pret small span { font-weight: 600; color: #d1d5db; }
.mg-card__buton { display: block; margin: .75rem .2rem 0; padding: .62rem .8rem; border-radius: .7rem; background: linear-gradient(135deg, #ff6b6b, #ff4757); color: #fff; font-size: .92rem; font-weight: 600; text-align: center; box-shadow: 0 6px 16px rgba(255, 71, 87, .26); transition: filter .2s ease; }
.mg-card:hover .mg-card__buton { filter: brightness(1.08); }
.mg-sub { margin-top: 1.4rem; font-size: .88rem; line-height: 1.6; color: #9ca3af; max-width: 46rem; }
@media (max-width: 420px) {
  .mg-card__tot { padding: .4rem .4rem .7rem; }
  .mg-card__text strong { font-size: .94rem; }
  .mg-card__pret b { font-size: 1.25rem; }
  .mg-card__semn { font-size: .64rem; padding: .24rem .5rem; }
  .mg-card__buton { font-size: .86rem; padding: .55rem .5rem; }
}

/* ---------- butoane ---------- */
.mg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: .75rem; border: 1px solid rgba(148, 163, 184, .28); background: rgba(255, 255, 255, .04); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter .2s ease, border-color .2s ease, background .2s ease; }
.mg-btn:hover { border-color: rgba(255, 255, 255, .5); }
.mg-btn--plin { border-color: transparent; background: linear-gradient(135deg, #ff6b6b, #ff4757); box-shadow: 0 6px 18px rgba(255, 71, 87, .28); }
.mg-btn--plin:hover { filter: brightness(1.07); border-color: transparent; }
.mg-btn--mic { padding: .5rem .95rem; font-size: .9rem; border-radius: .6rem; }
.mg-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; box-shadow: none; }
.mg-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- editorul ---------- */
html.mg-fara-scroll { overflow: hidden; }
.mg-ed { position: fixed; inset: 0; margin: auto; width: min(68rem, calc(100vw - 2rem)); max-width: none; height: min(46rem, calc(100vh - 2rem)); max-height: none; padding: 0; border: 1px solid rgba(148, 163, 184, .2); border-radius: 1.1rem; background: #111827; color: #e5e7eb; overflow: hidden; }
.mg-ed::backdrop { background: rgba(3, 7, 18, .78); }
.mg-ed__x { position: absolute; top: .7rem; right: .7rem; z-index: 3; margin: 0; }
.mg-ed__x button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .25); background: rgba(17, 24, 39, .85); color: #e5e7eb; cursor: pointer; }
.mg-ed__x button:hover { border-color: #fff; color: #fff; }
.mg-ed__x svg { width: 1.1rem; height: 1.1rem; }
.mg-ed__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); height: 100%; }
.mg-ed__vede { position: relative; display: flex; flex-direction: column; min-height: 0; background: radial-gradient(circle at 50% 45%, #27324a, #141b2b 72%); }
.mg-ed__3d { position: relative; flex: 1; min-height: 0; }
.mg-ed__3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: opacity .25s ease; }
.mg-ed__3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.mg-ed__3d canvas:active { cursor: grabbing; }
.mg-ed__3d.are-3d img { opacity: 0; pointer-events: none; }
.mg-ed__hint { margin: 0; padding: .7rem 1rem .9rem; text-align: center; font-size: .82rem; color: #9ca3af; }
.mg-ed__alege { min-height: 0; overflow-y: auto; padding: 1.6rem 1.6rem 1.4rem; overscroll-behavior: contain; background: linear-gradient(180deg, #161f33, #111827 34%); scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .35) transparent; }
.mg-ed__alege h2 { margin: 0 2.6rem 0 0; font-size: 1.55rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: #fff; }
.mg-ed__marime { margin: .3rem 0 0; font-size: .85rem; color: #9ca3af; }
.mg-ed__desc { margin: .65rem 0 0; font-size: .93rem; line-height: 1.5; color: #cbd5e1; }
.mg-camp { display: block; min-width: 0; margin: 1.4rem 0 0; padding: 0; border: 0; }
.mg-camp__nume { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; width: 100%; margin-bottom: .55rem; padding: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.mg-camp__nume small { font-weight: 400; color: #9ca3af; font-variant-numeric: tabular-nums; }
.mg-camp__nota { display: block; margin-top: .4rem; font-size: .8rem; line-height: 1.5; color: #9ca3af; }
.mg-camp input[type=text], .mg-form input:not([type=checkbox]):not([type=radio]), .mg-form select, .mg-form textarea {
  width: 100%; padding: .75rem .9rem; border-radius: .65rem; border: 1px solid rgba(148, 163, 184, .3); background: #0b1220; color: #fff; font: inherit; font-size: 1rem; }
.mg-camp input[type=text]:focus, .mg-form input:focus, .mg-form select:focus, .mg-form textarea:focus { outline: none; border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); }
/* numele: câte litere mai încap se vede chiar în căsuță */
.mg-scris { position: relative; display: block; }
.mg-scris input[type=text] { padding-right: 3.7rem; font-size: 1.05rem; border-radius: .8rem; }
.mg-scris small { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-size: .78rem; color: #94a3b8; font-variant-numeric: tabular-nums; pointer-events: none; }
.mg-fonturi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.mg-font { display: grid; place-items: center; min-height: 2.9rem; padding: .45rem .5rem; border-radius: .8rem; border: 1px solid rgba(148, 163, 184, .25); background: #0b1220; color: #e5e7eb; font: inherit; font-size: .9rem; cursor: pointer; overflow: hidden; }
.mg-font svg { display: block; max-width: 100%; height: 1.2rem; width: auto; }
.mg-font:hover { border-color: rgba(255, 255, 255, .5); }
.mg-font[aria-pressed=true] { border-color: #ff6b6b; background: rgba(255, 107, 107, .14); color: #fff; box-shadow: 0 0 0 1px #ff6b6b inset; }
.mg-ed__atentie { margin: .7rem 0 0; padding: .7rem .85rem; border-radius: .65rem; border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .1); color: #fde68a; font-size: .88rem; line-height: 1.5; }
.mg-combi { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.3rem, 1fr)); gap: .45rem; }
.mg-combi__una { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; padding: .65rem .25rem .55rem; border-radius: .9rem; border: 1px solid rgba(148, 163, 184, .18); background: #0b1220; color: #cbd5e1; font: inherit; font-size: .78rem; line-height: 1.2; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.mg-combi__una i { flex: none; width: 2.7rem; height: 2.7rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .32); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.mg-combi__una:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }
.mg-combi__una:hover i { transform: scale(1.06); }
.mg-combi__una[aria-pressed=true] { border-color: #ff6b6b; background: rgba(255, 107, 107, .12); color: #fff; font-weight: 600; }
.mg-combi__una[aria-pressed=true] i { border-color: #fff; }
.mg-marimi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.mg-marime { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .05rem .6rem; padding: .6rem .85rem; border-radius: .8rem; border: 1px solid rgba(148, 163, 184, .18); background: #0b1220; color: #cbd5e1; font: inherit; text-align: left; cursor: pointer; }
.mg-marime b { font-size: .95rem; color: #fff; }
.mg-marime span { grid-column: 1; font-size: .8rem; color: #94a3b8; }
.mg-marime i { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-weight: 700; color: #ff8e8e; white-space: nowrap; }
.mg-marime:hover { border-color: rgba(255, 255, 255, .45); }
.mg-marime[aria-pressed=true] { border-color: #ff6b6b; background: rgba(255, 107, 107, .14); box-shadow: 0 0 0 1px #ff6b6b inset; }
.mg-alegeri { display: grid; gap: .4rem; }
.mg-alegerand { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); align-items: center; gap: .6rem; }
.mg-alegerand > span { font-size: .86rem; color: #cbd5e1; }
.mg-alege { display: flex; gap: .25rem; padding: .22rem; border-radius: .8rem; border: 1px solid rgba(148, 163, 184, .18); background: #0b1220; }
.mg-alege__una { flex: 1; min-width: 0; padding: .42rem .4rem; border: 0; border-radius: .58rem; background: none; color: #cbd5e1; font: inherit; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.mg-alege__una:hover { color: #fff; }
.mg-alege__una[aria-pressed=true] { background: rgba(255, 107, 107, .18); color: #fff; box-shadow: 0 0 0 1px #ff6b6b inset; }
.mg-ed__piese { margin: .6rem 0 0; font-size: .85rem; line-height: 1.5; color: #94a3b8; }
.mg-ed__piese b { color: #cbd5e1; font-weight: 600; }
.mg-ed__poze { position: absolute; left: .8rem; top: .8rem; z-index: 3; display: flex; flex-direction: column; gap: .4rem; }
.mg-ed__poze button { padding: 0; border: 2px solid rgba(248, 250, 252, .85); border-radius: .65rem; background: none; overflow: hidden; cursor: zoom-in; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); transition: transform .15s ease, border-color .15s ease; }
.mg-ed__poze button:hover { transform: scale(1.07); }
.mg-ed__poze button[aria-pressed=true] { border-color: #ff6b6b; cursor: zoom-out; }
.mg-ed__poze img { display: block; width: 3.4rem; height: 3.4rem; object-fit: cover; }
/* poza mare stă peste desen, în același loc */
.mg-ed__mare { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 1rem 1rem 1rem 5.2rem; background: rgba(13, 18, 32, .96); }
.mg-ed__mare[hidden] { display: none; }
.mg-ed__mare img { max-width: 100%; max-height: 100%; border-radius: .9rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.mg-ed__mare button { position: absolute; right: 1rem; bottom: 1rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .35); background: rgba(17, 24, 39, .9); color: #e5e7eb; font: inherit; font-size: .82rem; cursor: pointer; }
.mg-ed__mare button:hover { border-color: #fff; color: #fff; }
@media (max-width: 820px) { .mg-ed__poze img { width: 2.4rem; height: 2.4rem; } .mg-ed__mare { padding-left: 4rem; } }
.mg-card__pret small { font-size: .8rem; font-weight: 500; color: #9ca3af; }
.mg-maimult { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; margin-top: .6rem; padding: .7rem .9rem; border-radius: .8rem; border: 1px solid rgba(148, 163, 184, .18); background: none; color: #cbd5e1; font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.mg-maimult:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }
.mg-maimult svg { flex: none; width: 1rem; height: 1rem; color: #94a3b8; transition: transform .2s ease; }
.mg-maimult[aria-expanded=true] svg { transform: rotate(180deg); }
.mg-maimult + .mg-sloturi { margin-top: .5rem; }
.mg-sloturi[hidden] { display: none; }
.mg-sloturi { display: grid; gap: .45rem; }
.mg-slot { border-radius: .8rem; border: 1px solid rgba(148, 163, 184, .18); background: #0b1220; }
.mg-slot__cap { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .8rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mg-slot__ce { flex: 1; min-width: 0; font-size: .9rem; color: #d1d5db; }
.mg-slot__nume { font-size: .85rem; font-weight: 600; color: #fff; text-align: right; }
.mg-slot__cap svg { flex: none; width: 1rem; height: 1rem; color: #9ca3af; transition: transform .2s ease; }
.mg-slot__cap[aria-expanded=true] svg { transform: rotate(180deg); }
.mg-pata { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .28); }
.mg-paleta { padding: .1rem .75rem .8rem; }
.mg-paleta__titlu { margin: .55rem 0 .4rem; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #9ca3af; }
.mg-paleta__rand { display: flex; flex-wrap: wrap; gap: .45rem; }
.mg-culoare { width: 2rem; height: 2rem; padding: 0; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .22); background: var(--c); cursor: pointer; transition: transform .12s ease; }
.mg-culoare:hover { transform: scale(1.12); }
.mg-culoare[aria-pressed=true] { border-color: #fff; box-shadow: 0 0 0 2px #111827, 0 0 0 4px #ff6b6b; }
.mg-ed__jos { position: sticky; bottom: -1.4rem; display: flex; align-items: center; gap: .9rem; margin: 1.4rem -1.6rem -1.4rem; padding: .9rem 1.6rem 1.1rem; border-top: 1px solid rgba(148, 163, 184, .16); background: #111827; }
.mg-ed__jos .mg-btn { flex: 1; }
.mg-ed__pret { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.mg-ed__pret strong { font-size: 1.3rem; color: #fff; }
.mg-ed__pret small { font-size: .72rem; color: #9ca3af; }
.mg-ed__nota { margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(148, 163, 184, .14); font-size: .82rem; line-height: 1.5; color: #9ca3af; }
.mg-buc { display: inline-flex; align-items: center; border-radius: .65rem; border: 1px solid rgba(148, 163, 184, .3); background: #0b1220; }
.mg-buc button { width: 2.3rem; height: 2.5rem; border: 0; background: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.mg-buc button:hover { color: #ff8e8e; }
.mg-buc output { min-width: 1.7rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .mg-ed { width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; margin: 0; }
  .mg-ed__in { grid-template-columns: 1fr; grid-template-rows: minmax(13rem, 38%) minmax(0, 1fr); }
  .mg-ed__hint { padding: .35rem 1rem .5rem; font-size: .76rem; }
  .mg-ed__alege { padding: 1.1rem 1.1rem 1rem; }
  .mg-ed__alege h2 { font-size: 1.2rem; }
  .mg-ed__jos { bottom: -1rem; margin: 1.2rem -1.1rem -1rem; padding: .8rem 1.1rem .9rem; gap: .6rem; }
  .mg-ed__pret strong { font-size: 1.1rem; }
}

/* ---------- anunțul „e în coș” și butonul coșului ---------- */
.mg-anunt { position: fixed; left: 50%; bottom: 1.2rem; z-index: 70; display: flex; align-items: center; gap: .9rem; max-width: calc(100vw - 2rem); padding: .75rem .8rem .75rem 1.1rem; border-radius: .9rem; border: 1px solid rgba(148, 163, 184, .25); background: #1f2937; color: #e5e7eb; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); transform: translate(-50%, 150%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.mg-anunt.e-deschis { transform: translate(-50%, 0); opacity: 1; }
.mg-anunt b { color: #fff; }
.mg-prev { position: fixed; left: 0; right: 0; top: 0; z-index: 80; margin: 0; padding: .4rem 1rem; text-align: center; font-size: .82rem; color: #1f1300; background: #fbbf24; }
/* coșul din bara de sus: o iconiță mică, cu numărul de bucăți */
.mg-card__var { position: absolute; left: .6rem; bottom: .6rem; z-index: 1; padding: .22rem .6rem; border-radius: 999px; background: rgba(17, 24, 39, .82); color: #fff; font-size: .74rem; font-style: normal; font-weight: 600; }
.mg-card__var[hidden] { display: none; }
.mg-cosnav { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; color: #e5e7eb; text-decoration: none; transition: background .15s ease, color .15s ease; }
.mg-cosnav[hidden] { display: none; }
.mg-cosnav:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.mg-cosnav svg { width: 1.5rem; height: 1.5rem; }
.mg-cosnav b { position: absolute; top: .1rem; right: -.05rem; display: grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .28rem; border-radius: 999px; background: #ff4757; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; }
.mg-cosnav--lat { margin-right: .7rem; }
.mg-cosnav--mobil { margin-left: auto; margin-right: 1.2rem; }
.mg-cosnav--singur { position: fixed; top: .8rem; right: .9rem; z-index: 60; background: rgba(17, 24, 39, .85); }
@media (min-width: 1024px) { .mg-cosnav--mobil { display: none; } }
@media (max-width: 1023px) { .mg-cosnav--lat { display: none; } }
@media (prefers-reduced-motion: reduce) { .mg-card, .mg-anunt, .mg-culoare { transition: none; } }

/* ---------- coșul și comanda (cos.html) ---------- */
.mg-cos { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) { .mg-cos { grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 1fr); gap: 2rem; } .mg-sumar { position: sticky; top: 6rem; } }
.mg-cutie { border-radius: 1rem; border: 1px solid rgba(148, 163, 184, .14); background: rgba(21, 29, 45, .7); padding: 1.4rem; }
.mg-cutie + .mg-cutie { margin-top: 1.25rem; }
.mg-cutie h2 { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; color: #fff; }
.mg-cutie h2 small { font-weight: 400; font-size: .85rem; color: #9ca3af; }
.mg-rand { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .9rem 1.1rem; padding: 1.1rem 0; border-top: 1px solid rgba(148, 163, 184, .14); }
@media (max-width: 520px) { .mg-rand { grid-template-columns: 4.6rem minmax(0, 1fr); gap: .7rem .8rem; } .mg-rand__poza { width: 4.6rem !important; height: 4.6rem !important; } }
.mg-rand:first-of-type { border-top: 0; padding-top: 0; }
.mg-rand__poza { width: 6.5rem; height: 6.5rem; border-radius: .9rem; background: radial-gradient(circle at 50% 40%, #fbf6ea, #ecdfc8); object-fit: contain; padding: .35rem; }
.mg-rand__sus { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mg-rand__nume { margin: 0; font-size: 1.02rem; font-weight: 600; color: #fff; }
.mg-rand__det { margin: .2rem 0 0; font-size: .88rem; line-height: 1.5; color: #d1d5db; }
.mg-rand__det b { color: #fff; font-weight: 600; }
.mg-rand__culori { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .5rem; }
.mg-rand__culori i { width: 1.05rem; height: 1.05rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); }
.mg-rand__jos { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: .8rem; }
.mg-rand__jos .mg-buc button { width: 2rem; height: 2.15rem; }
.mg-rand__pret { font-size: 1.05rem; font-weight: 700; color: #fff; white-space: nowrap; text-align: right; }
.mg-rand__pret small { display: block; font-weight: 400; font-size: .75rem; color: #9ca3af; text-align: right; }
.mg-leg { padding: 0; border: 0; background: none; color: #ff8e8e; font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mg-leg:hover { color: #fff; }
.mg-rand__eroare { grid-column: 1 / -1; margin: 0; padding: .65rem .8rem; border-radius: .6rem; border: 1px solid rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .1); color: #fecaca; font-size: .88rem; }
.mg-gol { text-align: center; padding: 3rem 1rem; }
.mg-gol p { margin: 0 0 1.2rem; color: #d1d5db; }
.mg-total { margin: 0; }
.mg-total div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; color: #d1d5db; }
.mg-total dt { font-weight: 400; }
.mg-total dd { margin: 0; white-space: nowrap; color: #fff; }
.mg-total .e-total { margin-top: .5rem; padding-top: .8rem; border-top: 1px solid rgba(148, 163, 184, .2); font-size: 1.2rem; font-weight: 700; color: #fff; }
.mg-total .e-total small { display: block; font-size: .75rem; font-weight: 400; color: #9ca3af; }
.mg-form { display: grid; gap: .9rem; }
.mg-form .mg-doua { display: grid; gap: .9rem; }
@media (min-width: 560px) { .mg-form .mg-doua { grid-template-columns: 1fr 1fr; } }
.mg-form label > span { display: block; margin-bottom: .35rem; font-size: .88rem; font-weight: 600; color: #e5e7eb; }
.mg-form label > span small { font-weight: 400; color: #9ca3af; }
.mg-form textarea { min-height: 5rem; resize: vertical; }
.mg-optiuni { display: grid; gap: .55rem; }
.mg-opt { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem .95rem; border-radius: .75rem; border: 1px solid rgba(148, 163, 184, .25); background: #0b1220; cursor: pointer; }
.mg-opt:has(input:checked) { border-color: #ff6b6b; background: rgba(255, 107, 107, .08); }
.mg-opt input { flex: none; width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: #ff6b6b; }
.mg-opt__text { flex: 1; min-width: 0; }
.mg-opt__text b { display: block; color: #fff; font-weight: 600; }
.mg-opt__text small { display: block; margin-top: .15rem; font-size: .84rem; line-height: 1.45; color: #9ca3af; }
.mg-opt__pret { font-weight: 600; color: #fff; white-space: nowrap; }
.mg-bifa { display: flex; align-items: flex-start; gap: .7rem; font-size: .92rem; line-height: 1.5; color: #d1d5db; cursor: pointer; }
.mg-bifa input { flex: none; width: 1.15rem; height: 1.15rem; margin: .18rem 0 0; accent-color: #ff6b6b; }
.mg-bifa a, .mg-nota a { color: #ff8e8e; text-decoration: underline; text-underline-offset: 3px; }
.mg-nota { margin: 0; font-size: .84rem; line-height: 1.55; color: #9ca3af; }
.mg-nota--cutie { padding: .75rem .9rem; border-radius: .65rem; border: 1px solid rgba(148, 163, 184, .2); background: rgba(255, 255, 255, .03); color: #d1d5db; }
.mg-eroare { margin: 0; padding: .8rem .95rem; border-radius: .65rem; border: 1px solid rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); color: #fecaca; line-height: 1.5; }
.mg-test { margin: 0 0 1.25rem; padding: .6rem .9rem; border-radius: .65rem; background: #fbbf24; color: #1f1300; font-size: .9rem; }
.mg-trimite { width: 100%; padding: 1rem 1.2rem; font-size: 1.05rem; }
.mg-ed [hidden], .mg-cos [hidden], .mg-form [hidden], .mg-sectiune[hidden] { display: none !important; }

/* ---------- coșul și comanda, șlefuite (12.11.2026) ---------- */
.mg-cutie h2 { display: flex; align-items: center; gap: .65rem; }
.mg-pas { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 999px; background: rgba(255, 107, 107, .14); color: #ff8e8e; font-size: .9rem; font-weight: 700; font-style: normal; }
.mg-cutie--sumar { background: linear-gradient(180deg, rgba(255, 107, 107, .08), rgba(21, 29, 45, .78) 8rem); border-color: rgba(255, 107, 107, .24); }
.mg-rand { row-gap: .75rem; }
.mg-rand__poza { box-shadow: 0 6px 16px rgba(0, 0, 0, .28); }
.mg-rand > .mg-rand__jos { grid-column: 2; margin-top: 0; gap: .55rem; }
.mg-rand__jos .mg-buc { border-radius: 999px; overflow: hidden; }
.mg-rand__jos .mg-buc button { width: 2.2rem; height: 2.2rem; }
.mg-act { display: inline-flex; align-items: center; gap: .4rem; height: 2.2rem; padding: 0 .85rem; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .25); background: rgba(255, 255, 255, .03); color: #d1d5db; font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.mg-act svg { flex: none; width: 1rem; height: 1rem; }
.mg-act:hover { color: #fff; border-color: rgba(148, 163, 184, .5); background: rgba(255, 255, 255, .07); }
.mg-act--scoate { margin-left: auto; width: 2.2rem; padding: 0; justify-content: center; color: #9ca3af; }
.mg-act--scoate:hover { color: #fca5a5; border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
.mg-adauga { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; color: #ff8e8e; font-size: .9rem; font-weight: 600; text-decoration: none; }
.mg-adauga:hover { color: #fff; }
.mg-adauga svg { width: 1.05rem; height: 1.05rem; }
@media (max-width: 520px) { .mg-rand > .mg-rand__jos { grid-column: 1 / -1; } }
.mg-opt { align-items: center; gap: .8rem; border-radius: .85rem; transition: border-color .15s, background .15s; }
.mg-opt:hover { border-color: rgba(148, 163, 184, .45); }
.mg-opt:has(input:checked):hover { border-color: #ff6b6b; }
.mg-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255, 107, 107, .25); }
.mg-opt input { margin: 0; }
.mg-opt__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .7rem; background: rgba(148, 163, 184, .1); color: #cbd5e1; transition: background .15s, color .15s; }
.mg-opt__ic svg { width: 1.35rem; height: 1.35rem; }
.mg-opt:has(input:checked) .mg-opt__ic { background: rgba(255, 107, 107, .18); color: #ff8e8e; }
.mg-opt__pret.e-gratuit, .mg-total dd.e-gratuit { color: #34d399; }
/* „.mg-form label > span” (etichetele câmpurilor) prinde și bucățile opțiunilor: aici le scoatem de sub ea */
.mg-form .mg-opt > span { margin-bottom: 0; }
.mg-form .mg-opt > .mg-opt__ic, .mg-opt > .mg-opt__ic { display: inline-flex; }
@media (max-width: 420px) { .mg-form .mg-opt > .mg-opt__ic, .mg-opt > .mg-opt__ic { display: none; } }
@media (min-width: 521px) { .mg-rand:has(> .mg-rand__jos) > .mg-rand__poza { grid-row: 1 / span 2; } }
.mg-total .e-total { align-items: baseline; }
.mg-total .e-total dd { font-size: 1.55rem; }
.mg-trimite { border-radius: .9rem; }
.mg-trimite svg { width: 1.15rem; height: 1.15rem; }
.mg-parola { display: flex; gap: .5rem; }
.mg-parola input { flex: 1; min-width: 0; }
.mg-parola .mg-act { height: auto; min-width: 5.2rem; justify-content: center; border-radius: .65rem; }
.mg-uitat { margin-top: .2rem; }
.mg-uitat summary { width: fit-content; color: #ff8e8e; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
.mg-uitat summary::-webkit-details-marker { display: none; }
.mg-uitat[open] summary { margin-bottom: .9rem; color: #fff; text-decoration: none; }
.mg-aicont { margin: -.35rem 0 1rem; font-size: .88rem; color: #9ca3af; }
.mg-aicont a { color: #ff8e8e; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contul: iconița din bara de sus și fereastra mică de sub ea (12.11.2026) ---------- */
.mg-contnav { border: 0; background: none; cursor: pointer; padding: 0; }
.mg-contnav i { position: absolute; top: .35rem; right: .3rem; width: .6rem; height: .6rem; border-radius: 999px; background: #34d399; box-shadow: 0 0 0 2px #111827; }
.mg-contnav i[hidden] { display: none; }
.mg-contnav--lat { margin-right: .5rem; }
.mg-cosnav--lat:not([hidden]) + .mg-contnav--lat { margin-left: -.5rem; }
.mg-contnav--mobil { margin-right: .9rem; }
.mg-contnav--mobil:first-of-type, .mg-cosnav--mobil[hidden] + .mg-contnav--mobil { margin-left: auto; }
.mg-cosnav--mobil:not([hidden]) { margin-right: .2rem; }
@media (min-width: 1024px) { .mg-contnav--mobil { display: none; } }
@media (max-width: 1023px) { .mg-contnav--lat { display: none; } }
.mg-contpop { position: fixed; z-index: 1200; width: min(19.5rem, calc(100vw - 20px)); padding: 1.1rem 1.15rem 1.15rem; border-radius: 1rem; border: 1px solid rgba(148, 163, 184, .22); background: #131a2b; color: #e5e7eb; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.mg-contpop[hidden] { display: none; }
.mg-contpop form { display: grid; gap: .6rem; margin: 0; }
.mg-contpop__t { margin: 0 0 .25rem; font-size: 1.02rem; font-weight: 700; color: #fff; }
.mg-contpop input { width: 100%; padding: .7rem .85rem; border-radius: .65rem; border: 1px solid rgba(148, 163, 184, .3); background: #0b1220; color: #fff; font: inherit; }
.mg-contpop input:focus { outline: none; border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); }
.mg-contpop .mg-btn { width: 100%; padding: .75rem 1rem; }
.mg-contpop__er { margin: 0; padding: .55rem .7rem; border-radius: .55rem; border: 1px solid rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); color: #fecaca; font-size: .86rem; line-height: 1.45; }
.mg-contpop__er[hidden] { display: none; }
.mg-contpop__uitat { justify-self: center; color: #ff8e8e; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.mg-contpop__nota { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid rgba(148, 163, 184, .16); font-size: .82rem; line-height: 1.5; color: #9ca3af; }
.mg-contpop__cine { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.5; color: #d1d5db; overflow-wrap: anywhere; }
.mg-contpop__cine b { color: #fff; }
.mg-contpop .mg-leg { display: block; margin: .8rem auto 0; }
.mg-opt--oprit { cursor: default; opacity: .62; }
.mg-opt--oprit:hover { border-color: rgba(148, 163, 184, .25); }
.mg-opt__eticheta { flex: none; padding: .22rem .6rem; border-radius: 999px; background: rgba(251, 191, 36, .16); color: #fcd34d; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
