/* wt_shop.css – stránky Dárkový poukaz a Stav objednávky ve stylu certifikační aplikace (viz wt_app_theme.css) */
.shop-frame{ width:100%; max-width:740px; }
.shop-frame .panel{ padding:40px 40px 36px; }
.shop-title{ font-family:'Fraunces', serif; font-weight:700; font-size:34px; line-height:1.12; margin:0 0 8px 0; color:var(--wine); letter-spacing:-0.01em; }
.shop-lead{ font-size:15px; opacity:0.9; margin:0 0 26px 0; max-width:60ch; line-height:1.6; }
.shop-section{ margin:0 0 18px 0; padding:22px 24px; border-radius:var(--radius-md); border:1px solid var(--line);
  background:linear-gradient(165deg, rgba(196,166,107,0.08), rgba(120,29,38,0.02)); }
.shop-section h2{ font-family:'Fraunces', serif; font-weight:700; font-size:17px; margin:0 0 14px 0; color:var(--wine); }
.shop-section h3{ font-family:'Fraunces', serif; font-weight:700; font-size:14.5px; margin:14px 0 6px 0; color:var(--wine); }
.shop-section label{ font-size:13px; font-weight:600; margin:10px 0 6px; display:block; }
.shop-section input[type=text], .shop-section input[type=email], .shop-section select, .shop-section textarea{ width:100%; padding:13px 15px; border:1.5px solid var(--line);
  border-radius:var(--radius-sm); font-size:15px; font-family:'Work Sans', sans-serif; background:rgba(20,12,8,0.03); color:var(--ink); transition:border-color .15s ease, box-shadow .15s ease; }
.shop-section input:focus, .shop-section select:focus, .shop-section textarea:focus{ outline:none; border-color:var(--wine); box-shadow:0 0 0 4px rgba(120,29,38,0.10); }
.shop-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:12px; }
.shop-grid .shop-note-full{ grid-column:1 / -1; }
.shop-note-full p{ margin:-2px 0 0; }
.shop-radio, .shop-check{ display:flex; gap:10px; align-items:flex-start; font-weight:500 !important; font-size:13.5px !important; margin:6px 0 !important; cursor:pointer; line-height:1.5; }
.shop-radio input, .shop-check input{ margin-top:3px; accent-color:var(--wine); }
.muted{ font-size:13px; opacity:0.72; }
.shop-hint{ font-size:13px; color:var(--wine); font-weight:600; display:none; }
.track-tabs{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.track-tab{ cursor:pointer; margin:0 !important; }
.track-tab input{ display:none; }
.track-tab span{ display:inline-block; border:1px solid var(--line); border-radius:999px; padding:6px 14px; font-size:12.5px; font-weight:600; background:var(--card); color:var(--ink); }
.track-tab input:checked+span{ background:var(--wine); color:#fff; }
.level-list{ display:none; flex-direction:column; gap:8px; }
.level-list.active{ display:flex; }
.level-item{ display:flex !important; align-items:center; gap:12px; padding:12px 14px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md);
  font-weight:500 !important; margin:0 !important; cursor:pointer; transition:border-color .18s ease, background .18s ease; }
.level-item:hover{ border-color:var(--gold); }
.level-item:has(input:checked){ border-color:var(--wine); background:rgba(120,29,38,0.035); }
.level-item:has(input:checked){ border-color:var(--gold); background:linear-gradient(165deg, rgba(196,166,107,0.12), rgba(196,166,107,0.02)); }
.level-item input{ accent-color:var(--wine); }
.lvl-code{ font-size:10.5px; font-weight:700; letter-spacing:0.07em; text-transform:uppercase; color:var(--gold-text); min-width:72px; }
.lvl-title{ flex:1; font-family:'Fraunces', serif; font-weight:700; font-size:14.5px; }
.lvl-price{ font-family:'Fraunces', serif; font-weight:700; font-size:17px; color:var(--wine); }
.design-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(170px,1fr)); gap:12px; }
.design-card{ cursor:pointer; background:var(--card); border:1.5px solid var(--line); border-radius:var(--radius-md); padding:10px; text-align:center; margin:0 !important; font-weight:500 !important; box-shadow:var(--shadow-sm); }
.design-card:has(input:checked){ border-color:var(--wine); box-shadow:0 0 0 4px rgba(120,29,38,0.10); }
.design-card input{ display:none; }
.design-preview{ display:flex; flex-direction:column; justify-content:center; align-items:center; gap:6px; aspect-ratio:1.414; border-radius:8px; margin-bottom:8px; font-family:'Fraunces', serif; }
.dp-title{ font-weight:700; font-size:13px; }
.dp-code{ font-family:monospace; font-size:10px; padding:3px 6px; border-radius:4px; background:rgba(255,255,255,.85); color:var(--wine); }
.design-1 .design-preview{ background:var(--wine); color:var(--gold); box-shadow:inset 0 0 0 4px var(--wine), inset 0 0 0 5px var(--gold); }
.design-2 .design-preview{ background:#fff; color:var(--ink); border:1px solid var(--line); border-left:6px solid var(--wine); }
.design-3 .design-preview{ background:linear-gradient(#C4A66B 0 22%, #fbf7ef 22%); color:var(--wine); }
.design-name{ display:block; font-family:'Fraunces', serif; font-weight:700; font-size:14px; }
.design-desc{ display:block; font-size:12px; opacity:0.7; }
.shop-summary{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-md); padding:14px 16px; margin-top:16px; }
.shop-summary ul{ list-style:none; margin:0; padding:0; font-size:13.5px; }
.shop-summary li{ display:flex; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px dashed var(--line); }
.shop-total{ font-size:15px; margin:10px 0 0; }
.shop-total strong{ font-family:'Fraunces', serif; color:var(--wine); font-size:22px; }
.shop-btn{ display:inline-flex; align-items:center; justify-content:center; margin-top:14px; font-family:'Work Sans', sans-serif; font-weight:700; font-size:14.5px; background:linear-gradient(135deg, var(--wine), var(--wine-2));
  color:#fff; border:none; padding:14px 28px; border-radius:var(--radius-pill); cursor:pointer; letter-spacing:0.01em; text-decoration:none; box-shadow:0 1px 2px rgba(74,17,25,0.25); transition:filter .18s ease; }
.shop-btn:hover{ filter:brightness(0.93); }
.shop-btn-outline{ background:transparent; color:var(--wine); border:1.5px solid var(--line); box-shadow:none; font-weight:600; }
.shop-alert{ padding:12px 16px; border-radius:var(--radius-sm); font-size:13.5px; font-weight:600; margin:0 0 16px; }
.shop-alert.error{ background:rgba(120,29,38,0.06); color:var(--wine); border:1px solid rgba(120,29,38,0.18); }
.shop-alert.success{ background:rgba(47,125,70,0.08); color:var(--sage); border:1px solid rgba(47,125,70,0.2); }
.badge{ display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; }
.badge.paid{ background:rgba(47,125,70,0.1); color:var(--sage); } .badge.pending{ background:rgba(196,166,107,0.18); color:var(--gold-text); } .badge.cancelled{ background:rgba(120,29,38,0.08); color:var(--wine); }
.pay-items{ list-style:none; padding:0; margin:0; }
.pay-items li{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px dashed var(--line); font-size:13.5px; }
@media (max-width:620px){
  .shop-frame .panel{ padding:22px 18px; }
  .shop-title{ font-size:28px; }
  .shop-section{ padding:18px 16px; }
  /* větší písmo pro čitelnost na mobilu */
  .shop-lead{ font-size:16px; line-height:1.6; }
  .shop-section h2{ font-size:17.5px; }
  .shop-section label{ font-size:14.5px; }
  .shop-section input, .shop-section select, .shop-section textarea{ font-size:16px; }
  .level-item{ font-size:15.5px; padding:14px 12px; gap:10px; }
  .lvl-code{ font-size:12px; white-space:nowrap; }
  .lvl-title{ line-height:1.35; }
  .lvl-price{ font-size:16px; white-space:nowrap; }
  .track-tab span{ font-size:14.5px; }
  .design-name{ font-size:15px; }
  .design-desc{ font-size:13px; }
  .shop-summary li, .pay-items li{ font-size:15px; }
  .shop-total{ font-size:16px; }
  .shop-btn{ font-size:15.5px; padding:14px 24px; }
  .muted, .shop-note-full p{ font-size:14px; line-height:1.6; }
  .shop-check span{ font-size:14px; line-height:1.55; }
  .shop-alert{ font-size:14.5px; }
}

/* panel bez horního barevného proužku (v aplikaci ho zakrývá hero obrázek, tady by vyčníval ze zaoblených rohů) */
.shop-frame .panel::before{ display:none; }

/* neplatný slevový kód: důvod přímo u pole, ne jen obecná hláška nahoře */
.shop-form input.is-bad{ border-color:#b3261e; }
.shop-discount-bad{ margin:-4px 0 10px; font-size:13px; color:#b3261e; }
.shop-discount-bad a{ color:#b3261e; text-decoration:underline; }

/* stav objednávky: nedokončená platba – zaplatit znovu / zrušit objednávku */
.pay-sub{ margin:14px 0 6px; font-size:17px; }
.pay-actions{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:14px 0 4px; }
.pay-actions form{ margin:0; }
.pay-checked{ font-size:12.5px; margin:6px 0 0; }
@media (max-width:620px){
  .pay-actions{ flex-direction:column; align-items:stretch; }
  .pay-actions .shop-btn{ width:100%; text-align:center; }
}
