/* Colori Creativi — paleta smetanová / káva / zlatá (dle brand redesignu CRM) */
:root {
  --cream: #f4efe7;
  --paper: #fbf8f3;
  --coffee: #2b2118;
  --coffee-soft: #5c4a38;
  --gold: #c2a363;
  --gold-dark: #6f5426; /* 6.2:1 na smetanové — WCAG AA (dřív #8a6d3b = 4.24, FAIL) */
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: "Nunito Sans", sans-serif;
  background: var(--cream);
  color: var(--coffee);
  line-height: 1.55;
}
h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 600; }
a { color: var(--gold-dark); text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }

.top {
  display: flex; align-items: center; gap: 28px;
  background: var(--coffee); color: var(--cream);
  padding: 16px 28px;
}
.brand { color: var(--cream); font-family: "Fraunces", serif; font-size: 20px; letter-spacing: 2px; }
.brand span { color: var(--gold); }
.top nav { display: flex; gap: 20px; flex: 1; }
.top nav a { color: var(--cream); opacity: .85; font-size: 14px; }
.top nav a:hover { opacity: 1; }
.cart-link { color: var(--gold); font-weight: 700; }
.cart-link b { background: var(--gold); color: var(--coffee); border-radius: 10px; padding: 1px 8px; margin-left: 4px; }

.hero { text-align: center; padding: 46px 0 30px; }
.hero h1 { font-size: 40px; margin-bottom: 12px; }
.hero p { color: var(--coffee-soft); max-width: 560px; margin: 0 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0 10px; }
.chip { background: var(--paper); border: 1px solid #d8cebd; border-radius: 20px;
        padding: 7px 16px; font-size: 14px; font-weight: 600; color: var(--coffee); }
.chip small { color: var(--coffee-soft); font-weight: 400; }
.chip:hover, .chip.active { background: var(--coffee); color: var(--cream); border-color: var(--coffee); }
.chip.active small, .chip:hover small { color: var(--gold); }
.cat-section { margin-top: 34px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.cat-head h2 { font-size: 26px; }
.cat-all { font-weight: 700; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 26px; }
.card { background: var(--paper); border-radius: 10px; overflow: hidden; position: relative;
        box-shadow: 0 1px 4px rgba(43,33,24,.09); transition: transform .15s; color: var(--coffee); }
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 1; background: #e9e2d6; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { padding: 12px 14px 0; font-size: 17px; }
.card .sub { padding: 4px 14px 0; font-size: 13px; color: var(--coffee-soft); }
.card .price { padding: 8px 14px 14px; font-weight: 700; color: var(--gold-dark); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--coffee);
         font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; z-index: 1; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 20px; }
.product-img img { width: 100%; border-radius: 10px; }
.product-info h1 { font-size: 30px; }
.product-info .sub { color: var(--coffee-soft); margin: 8px 0 18px; }
.product-info form { display: grid; gap: 12px; background: var(--paper); padding: 18px; border-radius: 10px; }
.product-info label { font-size: 14px; font-weight: 600; display: grid; gap: 4px; }
select, input[type=text], input[type=email], input[type=number] {
  padding: 9px 10px; border: 1px solid #d8cebd; border-radius: 6px; font: inherit; background: #fff;
  width: 100%; max-width: 100%; box-sizing: border-box; /* dlouhé názvy variant nesmí roztáhnout mobil */
}
.product-info form, .product-info label { min-width: 0; }
/* --- výběr variant: pilulky + vzorník odstínů --- */
fieldset.pick { border: 0; padding: 0; margin: 0; }
fieldset.pick legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: flex; flex-direction: column; align-items: center; gap: 2px;
             border: 2px solid #d8cebd; border-radius: 8px; padding: 8px 16px;
             background: #fff; cursor: pointer; min-width: 74px; }
.pill b { font-size: 15px; }
.pill small { color: var(--coffee-soft); font-size: 12px; }
.pill input:checked + span { border-color: var(--coffee); background: var(--cream);
                             box-shadow: 0 0 0 1px var(--coffee); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
            gap: 10px; }
.swatch-l { display: flex; flex-direction: column; align-items: center; gap: 4px;
            cursor: pointer; text-align: center; }
.swatch-l input { position: absolute; opacity: 0; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #d8cebd;
          box-shadow: inset 0 0 0 2px #fff; }
.swatch-none { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #eee 6px, #eee 8px); }
.swatch-l input:checked ~ .swatch { border-color: var(--coffee);
          box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--coffee); }
.swatch-l input:focus-visible ~ .swatch { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.swatch-l small { font-size: 11px; color: var(--coffee-soft); line-height: 1.2;
                  max-width: 74px; }
.picked { font-size: 14px; margin-top: 8px; }
.buy-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
           border-top: 1px solid #eadfce; padding-top: 14px; }
.buy-row .qty { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.buy-row .qty input { width: 72px; }
.big-price { font-family: "Fraunces", serif; font-size: 26px; font-weight: 600;
             color: var(--gold-dark); margin-left: auto; }
.vat-note { margin-top: 6px; text-align: right; }

.desc { margin-top: 22px; font-size: 15px; color: var(--coffee-soft);
        overflow-wrap: anywhere; }
.desc img { max-width: 100%; height: auto; }
.desc table { display: block; max-width: 100%; overflow-x: auto; }
.video-slot { margin-top: 22px; padding: 14px; border: 1px dashed var(--gold); border-radius: 10px; }
.note { font-size: 13px; color: var(--coffee-soft); }

.btn { display: inline-block; background: var(--coffee); color: var(--cream); border: 0;
       padding: 12px 26px; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--gold-dark); }
button.link { background: none; border: 0; color: var(--gold-dark); cursor: pointer; font: inherit; text-decoration: underline; }

table.cart { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 10px; margin: 18px 0; }
table.cart td { padding: 12px 14px; border-bottom: 1px solid #eadfce; vertical-align: middle; }
table.cart .thumb img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
table.cart .right, .right { text-align: right; float: none; }
table.cart tr.total td { font-weight: 700; border-bottom: 0; }

.checkout { display: grid; grid-template-columns: 3fr 2fr; gap: 30px; margin-top: 18px; }
.checkout-form { display: grid; gap: 10px; background: var(--paper); padding: 20px; border-radius: 10px; }
.checkout-form h3 { margin-top: 8px; }
.checkout-form label { font-size: 14px; font-weight: 600; display: grid; gap: 4px; }
.checkout-form .radio { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.summary { background: var(--paper); padding: 20px; border-radius: 10px; height: fit-content; }
.summary p { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin: 6px 0; }
.summary .total { font-weight: 700; border-top: 1px solid #eadfce; padding-top: 10px; }

.demo-pay, .thanks { max-width: 640px; margin: 30px auto; background: var(--paper); padding: 28px; border-radius: 10px; }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 6px 0; border-bottom: 1px dashed #eadfce; font-size: 14px; }
.timeline span { color: var(--coffee-soft); font-size: 12px; margin-right: 10px; }

footer { text-align: center; padding: 26px; color: var(--coffee-soft); font-size: 13px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--cream);
              font-size: 24px; cursor: pointer; padding: 4px 8px; }

@media (max-width: 760px) {
  .product, .checkout { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: block; order: 2; margin-left: auto; }
  .cart-link { order: 3; }
  nav.main { display: none; flex-basis: 100%; flex-direction: column; gap: 10px; order: 4; }
  nav.main.open { display: flex; }
}
