:root {
  --sidebar: 300px;
  --black: #000;
  --orange: #ff9900;
  --green: #4abd92;
  --ink: #2d2d2d;
  --slate: #253034;
  --footer: #292935;
  --muted: #999;
  --line: #e4e4e4;
  --paper: #f7f7f7;
  /* Musta menüü, päise ja jaluse ning valge sisu vahelise kaare raadius. */
  --corner: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
}
a { color: var(--green); text-decoration: none; }
a:hover { color: #696969; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar);
  background: var(--black);
  color: #fff;
  z-index: 30;
  overflow: auto;
}
.logo {
  display: block;
  padding: 36px 28px 18px;
}
.logo img { width: 100%; height: auto; }
.nav { list-style: none; margin: 10px 0 40px; padding: 0; }
.nav a {
  display: block;
  padding: 16px 36px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--orange); }
.menu-btn {
  display: none;
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 40;
  background: var(--black);
  color: #fff;
  border: 0;
  width: 46px;
  height: 40px;
  cursor: pointer;
}
.menu-btn .bars,
.menu-btn .bars:before,
.menu-btn .bars:after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}
.menu-btn .bars:before,
.menu-btn .bars:after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn .bars:before { top: -7px; }
.menu-btn .bars:after { top: 7px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-title {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: 78px 8vw;
}
/* Ümar üleminek: must menüü ja must päis kohtuvad valge sisuga kaarega,
   mitte täisnurgaga (nõgus nurk sisuala ülemises vasakus servas). */
.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(-1 * var(--corner));
  width: var(--corner);
  height: var(--corner);
  background: radial-gradient(circle at 100% 100%, transparent calc(var(--corner) - 0.5px), var(--black) var(--corner));
  pointer-events: none;
  z-index: 1;
}
.page-title h1 {
  margin: 0;
  font-family: Poppins, Montserrat, sans-serif;
  font-weight: 300;
  font-size: 41px;
}
.content {
  flex: 1;
  padding: 48px 8vw 72px;
  max-width: 980px;
}
h2.orange {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 28px;
  font-weight: 600;
}
.hours { margin-top: 8px; }
.hours strong { font-weight: 500; }

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--slate); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #bbb; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn:focus-visible, .link-btn:focus-visible, .stepper-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.link-btn:hover { color: #696969; }

/* Tellimuse sammud */
.stepper {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  scroll-margin-top: 16px;
}
.stepper li { position: relative; }
.stepper li + li::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.stepper li.done::before,
.stepper li.current::before { background: var(--green); }
.stepper-btn {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.stepper-btn:disabled { cursor: default; }
.stepper-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 15px;
}
.stepper li.done .stepper-btn { color: var(--ink); }
.stepper li.done .stepper-num { border-color: var(--green); background: var(--green); color: #fff; }
.stepper li.done .stepper-btn:not(:disabled):hover .stepper-text { text-decoration: underline; }
.stepper li.current .stepper-btn { color: var(--ink); }
.stepper li.current .stepper-num { border-color: var(--orange); background: var(--orange); color: #fff; }
.step[hidden] { display: none; }
.step-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 500;
}
.step-title:focus { outline: none; }
.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.step-nav [data-next], .step-nav #upload-button { margin-left: auto; }
.step-sum {
  margin: 4px 0 0;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  max-width: 420px;
}
.step-sum strong { font-weight: 500; color: var(--orange); }
.choices-stack { flex-direction: column; gap: 8px; }
.choice-price { color: var(--muted); font-size: 15px; }
.summary { margin: 0 0 20px; border-top: 1px solid var(--line); }
.summary > div {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.summary dt { font-weight: 500; font-size: 15px; }
.summary dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.summary .summary-edit { align-self: start; }
.pay-total { color: var(--orange); font-weight: 600; white-space: nowrap; }
.progress { margin: 4px 0 14px; }
.progress-track {
  height: 12px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  width: 0;
  height: 100%;
  background: var(--green);
}
.progress p { margin: 8px 0 0; font-size: 14px; }
.progress[hidden] { display: none; }
.upload-start {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  padding: 14px 16px;
  margin: 16px 0 0;
}
.upload-start[hidden] { display: none; }
.upload-start p { margin: 0 0 10px; font-size: 16px; }
.upload-start strong { font-weight: 600; }
.upload-progress { margin: 16px 0 0; }
.upload-state { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #666; }
.upload-state .link-btn { font-size: 12px; }
.state-done { color: #2f9e74; font-weight: 500; }
.state-uploading, .state-waiting { color: #b26b00; }
.state-error { color: #9a3412; }
.pay-methods {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.pay-method {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.pay-method:hover,
.pay-method:focus-visible { border-color: var(--green); color: var(--ink); }
.pay-method img { max-height: 32px; max-width: 110px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.services { list-style: none; margin: 0; padding: 0; }
.services li {
  position: relative;
  margin: 0 0 18px;
  padding-left: 42px;
}
.services li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
}
.services h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.services p { margin: 4px 0 0; color: #444; }

.price-block { margin-top: 48px; }
.price-block h2 { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.note { color: #666; font-size: 15px; }
.place { margin: 28px 0 8px; }
.place img { width: auto; max-width: 100%; max-height: 560px; }
.place figcaption { margin-top: 8px; color: #666; font-size: 14px; }
.note strong { color: var(--ink); font-weight: 600; }
.rich p { margin: 0 0 10px; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 22px; }
.rich h2 { font-size: 22px; font-weight: 500; margin: 24px 0 8px; }
.rich h3 { font-size: 18px; font-weight: 500; margin: 18px 0 6px; }
.rich strong { font-weight: 600; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.pricelist th { background: #000; color: var(--orange); }
table { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 400; }
th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
  font-weight: 500;
}
td.num, th.num { text-align: right; }

.drop {
  border: 2px dashed #cfcfcf;
  background: var(--paper);
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
}
.drop.over { border-color: var(--green); background: #eef8f4; }
.drop strong { display: block; font-weight: 500; font-size: 22px; }
.file-input { display: none; }
.previews {
  display: grid;
  gap: 14px;
  margin: 16px 0 8px;
}
.order-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
}
.thumb { position: relative; }
.thumb img { width: 100%; height: 120px; object-fit: cover; background: #fff; }
.thumb-fallback {
  width: 100%;
  height: 120px;
  display: grid;
  place-items: center;
  margin: 0;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 500;
}
/* Pildi eemaldamise nupp: hele ja tagasihoidlik, hiire all punane. */
.thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #666;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.thumb button:hover,
.thumb button:focus-visible {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}
.thumb figcaption {
  padding: 6px 0 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  align-content: start;
}
.sizes label { font-size: 13px; }
.sizes input { padding: 8px 10px; }
.item-sum { margin: 8px 0 0; font-size: 14px; color: #555; }
.form { display: grid; gap: 14px; margin-top: 18px; max-width: 640px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  padding: 10px 12px;
  font-weight: 300;
}
textarea { min-height: 90px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 16px 28px; font-weight: 300; }
.choices label { display: flex; align-items: center; gap: 8px; font-weight: 300; }
.choices input { width: auto; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 300; font-size: 16px; }
.check input { width: auto; margin-top: 6px; }
.parcel-picker[hidden] { display: none; }
.parcel-picker { display: grid; gap: 8px; }
.parcel-picker .note { margin: 0; }
.parcel-picker > label { font-size: 15px; font-weight: 500; }
/* Pakiautomaadi otsing: soovitused ilmuvad välja alla kirjutamise ajal. */
.combo { position: relative; }
.combo input:disabled { background: var(--paper); cursor: wait; }
.combo-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #bbb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.combo-list[hidden] { display: none; }
.combo-list [role="option"] {
  display: grid;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  line-height: 1.35;
}
.combo-list [role="option"] strong { font-weight: 500; font-size: 15px; }
.combo-list [role="option"] span { font-size: 13px; color: #666; }
.combo-list [role="option"]:hover,
.combo-list [role="option"].active { background: #eef8f4; }
.combo-list [aria-selected="true"] strong { color: #2f9e74; }
.combo-empty { padding: 10px 12px; font-size: 14px; color: #666; }
.price-lines { margin: 0; max-width: 420px; }
.price-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.price-lines > div[hidden] { display: none; }
.price-lines dt, .price-lines dd { margin: 0; }
.price-lines dd { white-space: nowrap; font-weight: 500; }
.price-lines .total { border-bottom: 0; padding-top: 8px; }
.total {
  font-size: 22px;
  font-weight: 500;
}
.total dd { color: var(--orange); }
.recaptcha-wrap { min-height: 78px; }
.recaptcha-wrap[hidden] { display: none; }
@media (max-width: 420px) {
  .recaptcha-wrap { transform: scale(0.88); transform-origin: 0 0; }
}
/* Müügitingimused ja privaatsuspoliitika */
.legal { max-width: 820px; }
.legal h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 500; }
.legal p, .legal li { font-size: 16px; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal li strong, .legal p strong { font-weight: 500; }
/* Fotograafiga täpsustamist vajav koht – enne avaldamist eemaldada. */
mark.todo { background: #fff3a8; color: #6b4e00; padding: 0 3px; }

/* Makse kinnitusleht (makse.php) */
.confirm { max-width: 720px; display: grid; gap: 20px; }
.confirm > p { margin: 0; }
.confirm-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #eef8f4;
  border-left: 4px solid var(--green);
  padding: 20px 22px;
}
.confirm-hero p { margin: 0; }
.confirm-hero p + p { margin-top: 6px; }
.confirm-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.confirm-lead { font-size: 22px; font-weight: 500; line-height: 1.4; }
.confirm-card {
  border: 1px solid var(--line);
  padding: 18px 22px;
}
.confirm-card h2,
.confirm-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
}
.confirm-subtitle { margin: 8px 0 0; }
.confirm-card p { margin: 0; }
.confirm-card .note { margin-top: 8px; }
.confirm-label { font-size: 15px; color: #666; }
.confirm-place strong { font-weight: 500; font-size: 20px; }
.confirm-files { list-style: none; margin: 0; padding: 0; }
.confirm-files li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.confirm-card .confirm-filelist {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #888;
  overflow-wrap: anywhere;
}
.confirm-card .confirm-filelist span { color: #555; }
.confirm-qty { white-space: nowrap; font-weight: 500; }
.confirm .price-lines { max-width: none; }
.confirm-meta { margin: 0; display: grid; gap: 6px; }
.confirm-meta > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.confirm-meta dt { color: #666; font-size: 15px; }
.confirm-meta dd { margin: 0; overflow-wrap: anywhere; }
.confirm-id { font-family: Consolas, "Courier New", monospace; font-size: 15px; overflow-wrap: anywhere; }
.confirm .actions { margin-top: 4px; }
.confirm-test { border-top: 1px dashed #ccc; padding-top: 12px; }
@media (max-width: 560px) {
  .confirm-hero { padding: 16px; gap: 14px; }
  .confirm-lead { font-size: 19px; }
  .confirm-card { padding: 16px; }
  .confirm-meta > div { grid-template-columns: 1fr; gap: 0; }
}

.error { color: #9a3412; min-height: 1.2em; margin: 0; font-size: 15px; }
.error:empty { min-height: 0; }
.step-error { margin: 12px 0 0; }

.site-footer {
  position: relative;
  background: var(--black);
  color: #b5b5b5;
  padding: 26px 8vw 32px;
  font-family: Poppins, Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.site-footer a { color: #d7d7d7; }
.site-footer a:hover { color: #fff; }
/* Sama kaar ka jaluse kohal: valge sisuala alumine vasak nurk on ümar. */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(-1 * var(--corner));
  width: var(--corner);
  height: var(--corner);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--corner) - 0.5px), var(--black) var(--corner));
  pointer-events: none;
}

@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: min(300px, 86vw);
  }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .logo { padding-top: 18px; background: #000; }
  .page-title, .content, .site-footer { padding-left: 22px; padding-right: 22px; }
  .page-title { padding-top: 72px; }
  /* Kitsal ekraanil on menüü peidus, seega pole ka nurka. */
  .page-title::after, .site-footer::before { display: none; }
  .page-title h1 { font-size: 32px; }
  .order-item { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stepper { scroll-margin-top: 72px; }
  .stepper li:not(.current) .stepper-text { display: none; }
  .stepper-text { font-size: 13px; }
  .summary > div { grid-template-columns: 1fr auto; }
  .summary dd:not(.summary-edit) { grid-column: 1 / -1; grid-row: 2; }
  .summary .summary-edit { grid-column: 2; grid-row: 1; }
}
