/* Look & feel taken from www.rarecacti.com (vzacnykytky.css), made responsive. */
:root {
  --bg: #f1eed4;
  --paper: #fff;
  --ink: #222;
  --muted: #6b6455;
  --green: #62932b;
  --green-dark: #4d7621;
  --orange: #eb6b01;
  --red: #cf4401;
  --brown: #7e5d4e;
  --brown-dark: #5e4337;
  --line: #e4dfc0;
  --cream: #faf8ea;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 14px/1.45 "Helvetica Neue", Arial, Helvetica, sans-serif;
  background: var(--bg) url("../img/body-bg.577b266d0b9a.gif") left 0 repeat-x;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; color: var(--brown-dark); }
h1 { font-size: 24px; margin: 0 0 12px; }
h2 { font-size: 19px; margin: 24px 0 10px; }

#page { max-width: 980px; margin: 0 auto; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }

/* header */
#head { position: relative; background: var(--bg); }
#head .head-img img { width: 100%; }
#lang { position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: bold; }
#lang a { color: var(--brown-dark); background: rgba(255,255,255,.7); padding: 3px 7px; border-radius: 3px; }

/* menu – brown tabs like the e-shop */
#menu {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
  padding: 6px 8px; background: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
}
#menu a, #menu button {
  display: block; color: #eee; text-transform: uppercase; font-size: 12px; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 4px; background: none; border: 0; cursor: pointer; font-family: inherit;
}
#menu a:hover, #menu a.active, #menu button:hover { background: var(--brown-dark); color: #fff; text-decoration: none; }
#menu .menu-form { margin: 0; }
#menu .eshop { opacity: .85; }

#content { padding: 20px 24px 32px; min-height: 360px; }

/* footer */
#pata {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  background: var(--cream); border-top: 1px solid var(--line); padding: 8px 12px 0; font-size: 12px; color: var(--muted);
}
#pata p { margin: 0 0 14px; text-align: center; flex: 1; }

/* messages */
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { padding: 10px 14px; border-radius: 4px; margin-bottom: 6px; border: 1px solid; }
.msg-success { background: #eef7e3; border-color: #b8d98f; color: #3c6512; }
.msg-error { background: #fdece4; border-color: #f1b493; color: #9a3300; }
.msg-warning, .msg-info { background: #fff7dc; border-color: #f2d27a; color: #6d5200; }

/* buttons */
.btn {
  display: inline-block; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--green); color: #fff; padding: 9px 16px; font-size: 14px; font-weight: bold;
  text-decoration: none; font-family: inherit;
}
.btn:hover { background: var(--green-dark); text-decoration: none; color: #fff; }
.btn-buy { background: var(--orange); width: 100%; font-size: 15px; }
.btn-buy:hover { background: var(--red); }
.btn-secondary { background: #ece7cc; color: var(--brown-dark); }
.btn-secondary:hover { background: #ddd6b4; color: var(--brown-dark); }
.btn[disabled] { opacity: .5; cursor: default; }

/* auction header */
.auction-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.auction-head h1 { margin: 0; }
.auction-meta { color: var(--muted); font-size: 13px; }
.auction-clock { font-weight: bold; color: var(--brown-dark); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: bold;
  text-transform: uppercase; letter-spacing: .04em; background: #ece7cc; color: var(--brown-dark); }
.badge-preview { background: #fde3cc; color: var(--red); }
.intro { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; }
.intro p { margin: 4px 0; }

/* item grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.card .photo { display: block; overflow: hidden; position: relative; aspect-ratio: 1 / 1; background: var(--cream); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo .ribbon { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; text-align: center;
  font-weight: bold; color: #fff; background: rgba(94,67,55,.88); text-transform: uppercase; font-size: 12px; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 13px; font-weight: bold; color: var(--ink); margin: 0; line-height: 1.3; }
.card h3 a { color: var(--ink); }
.card .code { color: var(--muted); font-size: 11px; }
.card .spacer { flex: 1; }
.card.is-sold { opacity: .72; }
.card.is-mine { outline: 3px solid var(--green); }

.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { color: var(--orange); font-size: 22px; font-weight: bold; white-space: nowrap; }
.price-start { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.price.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: #fff2b0; } 100% { background: transparent; } }
.drop { font-size: 12px; color: var(--muted); min-height: 1.4em; }
.drop strong { color: var(--brown-dark); font-variant-numeric: tabular-nums; }
.state-note { font-weight: bold; color: var(--brown-dark); font-size: 13px; }

/* item detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
.gallery .main { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--cream); }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery .thumbs img { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--line); border-radius: 4px; cursor: pointer; }
.gallery .thumbs img.active { border-color: var(--green); }
.buybox { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: var(--cream); }
.buybox .price { font-size: 32px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* tables */
table.list { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
table.list th, table.list td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: normal; }
table.list td.num, table.list th.num { text-align: right; white-space: nowrap; }
table.list tr.total td { font-weight: bold; border-bottom: 0; font-size: 16px; }
table.list tr.past td { color: #aaa; }
table.list tr.now td { font-weight: bold; color: var(--orange); }
.timeline-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.timeline-wrap table.list { margin: 0; }

/* forms */
.form { max-width: 520px; }
.form .field { margin-bottom: 12px; }
.form label { display: block; font-weight: bold; font-size: 13px; margin-bottom: 4px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=tel],
.form select, .form textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cfc8a5; border-radius: 4px; font: inherit; background: #fff;
}
.form .errorlist { color: var(--red); list-style: none; padding: 0; margin: 4px 0 0; font-size: 13px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices label { font-weight: normal; display: flex; gap: 8px; align-items: center; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 4px; margin-bottom: 6px; cursor: pointer; background: #fff; }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: var(--cream); margin: 16px 0; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.pay-grid dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.pay-grid dt { color: var(--muted); }
.pay-grid dd { margin: 0; font-weight: bold; }
.qr svg { width: 180px; height: 180px; background: #fff; }
.status { font-weight: bold; }
.status-pending { color: var(--orange); }
.status-paid, .status-shipped { color: var(--green); }
.status-cancelled { color: #999; }

.auction-list { list-style: none; padding: 0; margin: 0; }
.auction-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auction-list a { font-family: Georgia, serif; font-size: 17px; }

@media (max-width: 720px) {
  #content { padding: 14px 16px 24px; }
  .detail { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .price { font-size: 19px; }
  .pay-grid { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  #menu a, #menu button { padding: 5px 8px; font-size: 11px; }
}
