/* ==========================================================================
   Narudžbenica (studeni 2026.). Sve je ograničeno na .sk-nar.
   ========================================================================== */
.sk-nar {
  --y: #ffe600; --y2: #f5dc00; --ink: #141414; --muted: #5f5f5f; --line: #e6e6e6;
  color: var(--ink); background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5;
}
.sk-nar *, .sk-nar *::before, .sk-nar *::after { box-sizing: border-box; }
.sk-nar [hidden] { display: none !important; }
.sk-nar a { color: inherit; text-decoration: none; border-bottom: 0; }
.sk-nar h1, .sk-nar h2, .sk-nar p { font-family: inherit; text-transform: none; color: inherit; }
.sk-nar svg { flex: none; }
.skn-wrap { max-width: 1360px; margin: 0 auto; padding: 44px clamp(16px, 3vw, 40px) 72px; }

.skn-head { margin-bottom: 28px; }
.sk-nar .skn-head h1 { position: relative; margin: 0 0 10px; padding-left: 18px; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.skn-head h1::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .1em; width: 5px; border-radius: 3px; background: var(--y); }
.sk-nar .skn-head p { margin: 0; max-width: 720px; font-size: 17px; color: var(--muted); }

.skn-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); gap: 28px; align-items: start; }
.skn-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; box-shadow: 0 6px 24px rgba(0, 0, 0, .04); }
.sk-nar .skn-card-title { margin: 0 0 18px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

/* Proizvodi */
.skn-list { list-style: none; margin: 0; padding: 0; }
.skn-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 44px; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.skn-item:first-child { border-top: 0; padding-top: 4px; }
.sk-nar .skn-thumb { display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; border: 1px solid #efefef; border-radius: 12px; background: #fff; overflow: hidden; }
.skn-thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 6px; }
.skn-noimg { width: 100%; height: 100%; background: #f4f4f4; }
.skn-info { min-width: 0; }
.sk-nar .skn-name { display: block; font-size: 17px; line-height: 1.3; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.sk-nar .skn-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sk-nar .skn-sku { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.skn-qty { display: inline-flex; align-items: center; border: 1.5px solid #cfcfcf; border-radius: 12px; overflow: hidden; background: #fff; }
.sk-nar .skn-qty-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 44px; padding: 0; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.sk-nar .skn-qty-btn:hover:not(:disabled) { background: #f4f4f4; }
.sk-nar .skn-qty-btn:disabled { color: #bdbdbd; cursor: not-allowed; }
.skn-qty-btn svg { width: 18px; height: 18px; }
.sk-nar .skn-qty-input { width: 48px; height: 44px; margin: 0; padding: 0; border: 0; border-left: 1px solid #e3e3e3; border-right: 1px solid #e3e3e3; border-radius: 0; background: #fff; text-align: center; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); -moz-appearance: textfield; appearance: textfield; box-shadow: none; }
.skn-qty-input::-webkit-outer-spin-button, .skn-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sk-nar .skn-remove { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #6b6b6b; cursor: pointer; }
.sk-nar .skn-remove:hover { background: #fdecea; color: #b42318; }
.skn-remove svg { width: 20px; height: 20px; }
.sk-nar .skn-note { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 14px 16px; border-radius: 12px; background: #fffbe0; font-size: 14.5px; color: #3d3d3d; }
.skn-note svg { width: 20px; height: 20px; color: #8a7400; }

/* Detalji */
.skn-details-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.skn-summary { min-width: 190px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.sk-nar .skn-summary-title { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b6b6b; }
.skn-summary dl { margin: 0; }
.skn-summary dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 1.6; }
.skn-summary dt { font-weight: 400; color: #444; }
.skn-summary dd { margin: 0; font-weight: 800; }

/* Polja (Contact Form 7) */
.sk-nar .wpcf7 form, .sk-nar .wpcf7-form { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.sk-nar .wpcf7-form p { margin: 0; }
.sk-nar .wpcf7-form br { display: none; }
.skn-field { margin: 0 0 16px; min-width: 0; }
.sk-nar .skn-field > label { display: block; margin: 0 0 6px; font-size: 14.5px; font-weight: 700; color: #1d1d1d; }
.skn-req { color: #b42318; }
.skn-opt { font-weight: 400; font-size: 13px; color: #6b6b6b; }
.skn-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sk-nar .wpcf7-form-control-wrap { display: block; }
.sk-nar input.wpcf7-text, .sk-nar input.wpcf7-email, .sk-nar textarea.wpcf7-textarea {
  width: 100%; height: auto; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cfcfcf; border-radius: 10px; background: #fff; box-shadow: none;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.sk-nar textarea.wpcf7-textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.sk-nar input.wpcf7-form-control:focus, .sk-nar textarea.wpcf7-form-control:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 230, 0, .6); }
.sk-nar ::placeholder { color: #8a8a8a; }
.sk-nar .wpcf7-not-valid { border-color: #b42318 !important; background: #fff8f7 !important; }
.sk-nar .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: #b42318; }
.sk-nar .wpcf7-not-valid-tip::before { content: "! "; font-weight: 800; }
.skn-consent .wpcf7-list-item { margin: 0; }
.sk-nar .skn-consent label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #3a3a3a; cursor: pointer; }
.skn-consent input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #141414; }
.sk-nar .skn-consent a { text-decoration: underline; text-underline-offset: 3px; }
.skn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sk-nar input.skn-send, .sk-nar .wpcf7-submit {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; margin-top: 6px; padding: 0 24px;
  border: 0; border-radius: 12px; background: var(--y); color: #111; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
}
.sk-nar input.skn-send:hover:not(:disabled) { background: var(--y2); }
.sk-nar input.skn-send:disabled { opacity: .7; cursor: progress; }
.sk-nar input.skn-send:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sk-nar .wpcf7-spinner { display: block; margin: 10px auto 0; }
.sk-nar .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 14px !important; border-radius: 10px; font-size: 14.5px; }
.sk-nar .wpcf7 form.invalid .wpcf7-response-output, .sk-nar .wpcf7 form.unaccepted .wpcf7-response-output, .sk-nar .wpcf7 form.failed .wpcf7-response-output, .sk-nar .wpcf7 form.spam .wpcf7-response-output { border: 1.5px solid #b42318 !important; color: #8a1c13; background: #fff8f7; }
.sk-nar .wpcf7 form.sent .wpcf7-response-output { display: none; }

/* Prazna narudžbenica i potvrda */
.skn-empty, .skn-ok { max-width: 640px; margin: 8px auto 0; padding: 44px 28px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.skn-empty-icon, .skn-ok-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fff6b0; }
.skn-ok-icon { background: var(--y); }
.skn-empty-icon svg, .skn-ok-icon svg { width: 30px; height: 30px; }
.sk-nar .skn-empty h2, .sk-nar .skn-ok h2 { margin: 16px 0 8px; font-size: 24px; font-weight: 800; }
.sk-nar .skn-empty p, .sk-nar .skn-ok p { margin: 0 0 22px; color: var(--muted); }
.skn-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.sk-nar .skn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 800; font-size: 15px; }
.sk-nar .skn-btn-primary { background: var(--y); }
.sk-nar .skn-btn-line { border: 1.5px solid #bdbdbd; background: #fff; }
.skn-ok:focus { outline: none; }
.sk-nar :is(a, button):focus-visible, .sk-nar .skn-qty-input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

@media (max-width: 1000px) {
  .skn-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .skn-wrap { padding: 28px 16px 48px; }
  .sk-nar .skn-head p { font-size: 15.5px; }
  .skn-card { padding: 20px 16px; border-radius: 16px; }
  .skn-item { grid-template-columns: 84px minmax(0, 1fr) 44px; grid-template-areas: "slika info ukloni" "slika kol kol"; gap: 8px 14px; align-items: start; }
  .sk-nar .skn-thumb { grid-area: slika; width: 84px; height: 84px; }
  .skn-info { grid-area: info; }
  .skn-qty { grid-area: kol; justify-self: start; }
  .sk-nar .skn-remove { grid-area: ukloni; justify-self: end; }
  .sk-nar .skn-name { font-size: 15.5px; }
  .skn-details-top { flex-direction: column; gap: 0; }
  .skn-summary { width: 100%; margin: 0 0 18px; }
  .skn-grid2 { grid-template-columns: 1fr; }
}
