/* Konfigurator PC-a */
.mt-cfg { display: grid; gap: 20px; }

.mt-cfg__intro { position: relative; overflow: hidden; border-radius: var(--mt-radius-xl); background: var(--mt-dark); color: #fff; min-height: 260px; display: flex; align-items: flex-end; }
.mt-cfg__bg { position: absolute; inset: 0; }
.mt-cfg__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mt-cfg__intro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 18, 28, .92) 0%, rgba(23, 18, 28, .55) 60%, rgba(23, 18, 28, .2) 100%); }
.mt-cfg__introtext { position: relative; z-index: 1; padding: clamp(24px, 4vw, 48px); max-width: 640px; display: grid; gap: 14px; }
.mt-cfg__introtext .mt-badge--pill { justify-self: start; background: rgba(255, 255, 255, .14); color: #fff; }
.mt-cfg__title { font-family: var(--mt-font-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.02em; margin: 0; color: #fff; }
.mt-cfg__introtext p { margin: 0; color: var(--mt-on-dark); font-size: 16px; }
.mt-cfg__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-cfg__presets > span { font-size: 13px; color: var(--mt-on-dark); margin-right: 4px; }
.mt-cfg__presets .mt-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }

.mt-cfg__progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 14px 18px; }
.mt-cfg__progress b { font-size: 14px; color: var(--mt-ink); }
.mt-cfg__bar { height: 8px; border-radius: 99px; background: var(--mt-lilac); overflow: hidden; }
.mt-cfg__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mt-primary), var(--mt-primary-light)); border-radius: inherit; transition: width .35s ease; }
.mt-cfg__progress .mt-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }

.mt-cfg__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

/* Koraci */
.mt-cfg__steps { padding: 8px; display: grid; gap: 2px; position: sticky; top: 90px; }
.mt-cfg__step { display: grid; grid-template-columns: 40px 1fr 22px; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: var(--mt-radius); background: transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.mt-cfg__step:hover { background: var(--mt-lilac-2); }
.mt-cfg__step.is-active { background: var(--mt-lilac); }
.mt-cfg__sicon { width: 40px; height: 40px; border-radius: 10px; background: var(--mt-bg); display: grid; place-items: center; color: var(--mt-graphite); }
.mt-cfg__step.is-active .mt-cfg__sicon { background: var(--mt-primary); color: #fff; }
.mt-cfg__stext { min-width: 0; display: grid; }
.mt-cfg__stext b { font-size: 14px; color: var(--mt-ink); }
.mt-cfg__stext small { font-size: 12px; color: var(--mt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-cfg__mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--mt-line-2); display: grid; place-items: center; font-size: 12px; color: #fff; }
.mt-cfg__mark.is-done { background: var(--mt-success); border-color: var(--mt-success); }

/* Opcije */
.mt-cfg__options { padding: 22px; min-width: 0; scroll-margin-top: 90px; }
.mt-cfg__ohead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.mt-cfg__ohead p { margin: 6px 0 0; font-size: 14px; }
.mt-cfg__list { display: grid; gap: 10px; }
.mt-cfg__opt { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); transition: border-color .15s, background .15s; }
.mt-cfg__opt:hover { border-color: #cdb6da; }
.mt-cfg__opt.is-chosen { border-color: var(--mt-primary); background: var(--mt-lilac-2); box-shadow: inset 0 0 0 1px var(--mt-primary); }
.mt-cfg__opt.is-locked { opacity: .55; }
.mt-cfg__oimg { width: 64px; height: 64px; border-radius: 10px; background: var(--mt-bg); display: grid; place-items: center; overflow: hidden; color: var(--mt-faint); }
.mt-cfg__oimg img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mt-cfg__oinfo { min-width: 0; display: grid; gap: 3px; }
.mt-cfg__oname { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-cfg__oname a { font-weight: 700; color: var(--mt-ink); text-decoration: none; font-size: 15px; }
.mt-cfg__oname a:hover { color: var(--mt-primary); }
.mt-cfg__ospec { font-size: 13px; color: var(--mt-muted); }
.mt-cfg__onote { font-size: 12px; font-weight: 600; }
.mt-cfg__onote.is-err { color: var(--mt-danger); }
.mt-cfg__onote.is-warn { color: var(--mt-warning); }
.mt-cfg__onote.is-info { color: var(--mt-primary); }
.mt-cfg__obuy { display: flex; align-items: center; gap: 14px; }
.mt-cfg__oprice { display: grid; text-align: right; }
.mt-cfg__oprice s { font-size: 12px; color: var(--mt-faint); }
.mt-cfg__oprice b { font-family: var(--mt-font-display); font-size: 17px; color: var(--mt-ink); white-space: nowrap; }
.mt-cfg__obuy .mt-btn { min-height: 40px; padding: 0 16px; font-size: 13px; min-width: 112px; }
.mt-cfg__obuy .mt-btn[disabled] { cursor: not-allowed; }
.mt-cfg__skeleton { height: 90px; border-radius: var(--mt-radius); background: linear-gradient(90deg, var(--mt-bg) 0%, var(--mt-lilac-2) 50%, var(--mt-bg) 100%); background-size: 200% 100%; animation: mt-cfg-sk 1.2s linear infinite; }
@keyframes mt-cfg-sk { to { background-position: -200% 0; } }
.mt-cfg__err { color: var(--mt-danger); }
.mt-cfg__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--mt-line); }

/* Pregled */
.mt-cfg__aside { display: grid; gap: 16px; position: sticky; top: 90px; }
.mt-cfg__summary { background: var(--mt-dark); color: #fff; border-radius: var(--mt-radius-lg); padding: 20px; display: grid; gap: 14px; }
.mt-cfg__summary h2 { font-family: var(--mt-font-display); font-size: 20px; margin: 0; color: #fff; }
.mt-cfg__rows { display: grid; }
.mt-cfg__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mt-cfg__row:hover b { color: #e3c9f2; }
.mt-cfg__row span { display: grid; min-width: 0; }
.mt-cfg__row small { font-size: 11px; color: var(--mt-on-dark); text-transform: uppercase; letter-spacing: .06em; }
.mt-cfg__row b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-cfg__row b.is-empty { color: rgba(255, 255, 255, .35); }
.mt-cfg__row em { font-style: normal; font-size: 13px; font-weight: 700; white-space: nowrap; }
.mt-cfg__services { display: grid; gap: 8px; }
.mt-cfg__services label { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; padding: 10px 12px; background: var(--mt-dark-2); border-radius: var(--mt-radius-sm); }
.mt-cfg__services input { accent-color: var(--mt-primary-light); width: 16px; height: 16px; margin: 0; }
.mt-cfg__total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding-top: 6px; }
.mt-cfg__total span { color: var(--mt-on-dark); font-size: 14px; }
.mt-cfg__total b { font-family: var(--mt-font-display); font-size: 30px; font-weight: 700; }
.mt-cfg__total small { grid-column: 1 / -1; text-align: right; color: var(--mt-on-dark); font-size: 13px; }
.mt-cfg__summary .mt-btn[disabled] { opacity: .5; cursor: not-allowed; }
.mt-cfg__msg { margin: 0; font-size: 13px; padding: 10px 12px; border-radius: var(--mt-radius-sm); }
.mt-cfg__msg.is-ok { background: rgba(47, 122, 75, .2); color: #bfe8cd; }
.mt-cfg__msg.is-err { background: rgba(180, 47, 51, .22); color: #f7c6c8; }
.mt-cfg__msg a { color: #fff; font-weight: 700; }

.mt-cfg__checks { padding: 18px; }
.mt-cfg__checks h3 { font-family: var(--mt-font-display); font-size: 16px; margin: 0 0 12px; color: var(--mt-ink); }
.mt-cfg__watt { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--mt-lilac-2); border-radius: var(--mt-radius-sm); font-size: 13px; margin-bottom: 10px; }
.mt-cfg__watt b { color: var(--mt-primary-dark); }
.mt-cfg__checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mt-cfg__checks li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; }
.mt-cfg__checks li > span { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--mt-line-2); }
.mt-cfg__checks li.is-ok > span { background: var(--mt-success); }
.mt-cfg__checks li.is-warn > span { background: #e0a030; }
.mt-cfg__checks li.is-err > span { background: var(--mt-danger); }
.mt-cfg__checks li div { display: grid; }
.mt-cfg__checks li b { font-size: 13px; color: var(--mt-ink); }
.mt-cfg__checks li small { font-size: 12px; color: var(--mt-muted); }

@media (max-width: 1280px) {
	.mt-cfg__grid { grid-template-columns: 220px minmax(0, 1fr) 300px; }
}
@media (max-width: 1024px) {
	.mt-cfg__grid { grid-template-columns: 1fr; }
	.mt-cfg__steps { position: static; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; }
	.mt-cfg__step { scroll-snap-align: start; }
	.mt-cfg__aside { position: static; }
}
@media (max-width: 640px) {
	.mt-cfg__progress { grid-template-columns: 1fr auto; }
	.mt-cfg__bar { grid-column: 1 / -1; grid-row: 2; }
	.mt-cfg__options { padding: 16px; }
	.mt-cfg__opt { grid-template-columns: 52px minmax(0, 1fr); }
	.mt-cfg__oimg { width: 52px; height: 52px; }
	.mt-cfg__obuy { grid-column: 1 / -1; justify-content: space-between; }
	.mt-cfg__oprice { text-align: left; }
	.mt-cfg__nav .mt-btn { flex: 1; }
}
