/* ==========================================================================
   ANASTASIA — e-shop 1:1 predloha, ČASŤ B
   design/eshop-1to1/b.css
   Detail produktu · Košík · Pokladňa · Mini-košík
   Navzdušuje sa na a.css (spoločný shell: lišta, hlavička, tlačítka, päta).
   ========================================================================== */

/* ---------- 1. Spoločné drobnosti ---------- */
.page--sub{padding-bottom:0}
.section-tight{padding:0 var(--pad) 64px}
.wrap{padding:0 var(--pad)}

.link-underline{
  font-size:14.5px;color:var(--gold-deep);text-decoration:underline;
  text-underline-offset:4px;background:none;border:0;cursor:pointer;padding:6px 2px;
}
.link-underline:hover{color:var(--ink)}

/* ---------- 2. Detail produktu ---------- */
.pdp{padding:0 var(--pad) 70px;position:relative}
.pdp__grid{
  display:grid;
  grid-template-columns:120px 448px minmax(0,1fr);
  column-gap:0;
  align-items:start;
}
.pdp__thumbs{display:flex;flex-direction:column;gap:16px;padding-right:18px}
.pdp__thumb{
  width:120px;height:120px;border-radius:14px;overflow:hidden;padding:0;
  background:var(--bg-soft);border:1px solid var(--line);cursor:pointer;
  transition:border-color .25s ease,box-shadow .25s ease;
}
.pdp__thumb img{width:100%;height:100%;object-fit:cover}
.pdp__thumb.is-active{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.pdp__thumb:hover{border-color:var(--gold)}

.pdp__main{
  position:relative;border-radius:16px;overflow:hidden;background:var(--bg-soft);
  aspect-ratio:3/4;margin-right:56px;
}
.pdp__main img{width:100%;height:100%;object-fit:cover;object-position:center}

.pdp__info{padding-top:6px}
.pdp__title{
  font-family:var(--serif);font-weight:300;font-size:46px;line-height:1.06;
  color:var(--ink);margin:0 0 12px;letter-spacing:.005em;
}
.pdp__sub{font-size:20px;line-height:1.45;color:var(--ink-soft);margin:0 0 22px;font-weight:300}
.pdp__pricerow{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.pdp__price{font-size:30px;font-weight:400;color:var(--ink);letter-spacing:.01em;white-space:nowrap}
.pdp__fav{
  width:44px;height:44px;display:grid;place-items:center;border-radius:50%;
  color:var(--gold-deep);border:1px solid transparent;background:none;cursor:pointer;
}
.pdp__fav svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.pdp__fav:hover{border-color:var(--line-2)}

.stock{display:flex;align-items:center;gap:8px;color:var(--rail);font-size:15px;margin-bottom:22px}
.stock svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.pdp__lead{font-size:16px;line-height:1.65;color:var(--body);margin:0 0 30px;max-width:47ch}
.pdp__lead p{margin:0 0 10px}
.pdp__lead p:last-child{margin-bottom:0}
.pdp__meta{font-size:13.5px;letter-spacing:.02em;color:var(--muted);margin:-6px 0 20px}

.benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:30px;max-width:640px}
.benefit{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.benefit__circle{
  width:78px;height:78px;border-radius:50%;border:1px solid var(--line-2);
  display:grid;place-items:center;color:var(--ink-soft);background:var(--white);
}
.benefit__circle svg{width:32px;height:32px;stroke:currentColor;fill:none;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.benefit span{font-size:13.5px;line-height:1.35;color:var(--ink-soft);max-width:15ch}

.pdp__buy{display:flex;align-items:stretch;gap:16px;margin-bottom:18px}
.qty-lg{
  display:inline-flex;align-items:stretch;border:1px solid var(--line-2);
  border-radius:var(--r-btn);background:var(--white);overflow:hidden;flex:0 0 auto;
}
.qty-lg button{
  width:52px;min-height:56px;display:grid;place-items:center;color:var(--ink-soft);
  font-size:19px;line-height:1;background:none;border:0;cursor:pointer;
}
.qty-lg button:hover{background:var(--bg-soft)}
.qty-lg span{
  min-width:52px;display:grid;place-items:center;font-size:17px;color:var(--ink);
  border-left:1px solid var(--line-2);border-right:1px solid var(--line-2);
}
.pdp__cta{flex:1;min-width:0}

.ship-note{display:flex;align-items:center;gap:10px;color:var(--body);font-size:14.5px}
.ship-note svg{width:20px;height:20px;stroke:var(--rail);fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* záložky */
.tabs{margin-top:56px;position:relative}
.tabs__row{display:flex;gap:10px;flex-wrap:wrap}
.tab{
  min-height:54px;padding:0 30px;border-radius:14px 14px 0 0;
  background:var(--bg-soft);color:var(--gold-deep);font-size:15.5px;cursor:pointer;
  border:1px solid transparent;border-bottom:0;transition:background .25s ease,color .25s ease;
}
.tab:hover{background:#EFE9DE}
.tab.is-active{
  background:var(--white);color:var(--ink);font-weight:500;
  border-color:var(--line);box-shadow:0 -6px 18px rgba(70,58,40,.04);
}
.tab-panel{
  background:var(--white);border:1px solid var(--line);border-radius:0 16px 16px 16px;
  padding:28px 32px 34px;margin-top:-1px;
}
.tab-panel p{margin:0 0 12px;font-size:16px;line-height:1.7;color:var(--body);max-width:72ch}
.tab-panel p:last-child{margin-bottom:0}
.tab-panel ul{max-width:72ch}
.tabs__deco{position:absolute;right:-10px;top:96px;width:210px;height:210px;opacity:.5;pointer-events:none}
.tabs__deco img{width:100%;height:100%;object-fit:contain}
.tab-panel strong{color:var(--ink);font-weight:500}
.tab-panel h2,.tab-panel h3{
  font-family:var(--sans);font-size:16px;font-weight:500;color:var(--ink);
  letter-spacing:.01em;margin:22px 0 10px;line-height:1.4;
}
.tab-panel h2:first-child,.tab-panel h3:first-child{margin-top:0}
.tab-panel ul{list-style:disc;padding-left:22px;margin:0 0 14px}
.tab-panel li{margin:5px 0;font-size:15.5px;line-height:1.6;color:var(--body)}

/* levandulový pás s 4 piktogramami */
.band{
  position:relative;background:var(--lav-soft);overflow:hidden;
  padding:34px var(--pad) 38px;
}
.band__inner{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);gap:24px;max-width:1180px;margin:0 auto}
.band-item{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.band-item svg{width:46px;height:46px;stroke:var(--lav);fill:none;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.band-item span{font-size:15px;line-height:1.4;color:var(--lav-dark);max-width:20ch}
.band .botanical{position:absolute;pointer-events:none;z-index:1;opacity:.55}
.band .botanical svg{width:100%;height:100%}
.band__sprig{position:absolute;pointer-events:none;z-index:1;opacity:.6;display:block}
.band__sprig img{width:100%;height:100%;object-fit:contain}
.band__sprig--l{left:-10px;bottom:-30px;width:150px;height:225px;transform:rotate(8deg)}
.band__sprig--r{right:-10px;bottom:-24px;width:150px;height:225px;transform:scaleX(-1) rotate(8deg)}

/* ---------- 3. Košík ---------- */
.cart{padding:0 var(--pad) 64px;position:relative}
.cart__layout{display:grid;grid-template-columns:minmax(0,1fr) 384px;gap:56px;align-items:start}
.cart__title{font-family:var(--serif);font-size:44px;font-weight:300;color:var(--ink);margin:0 0 26px}
.cart-row{
  display:grid;grid-template-columns:104px minmax(0,1fr) auto auto 44px;
  grid-template-areas:"img info price qty del";
  gap:24px;align-items:center;padding:24px 0;border-bottom:1px solid var(--line);
}
.cart-row:first-of-type{border-top:1px solid var(--line)}
.cart-row__img{
  grid-area:img;
  width:104px;height:104px;border-radius:12px;object-fit:cover;background:var(--bg-soft);
}
.cart-row__info{grid-area:info}
.cart-row__price{grid-area:price;font-size:18px;font-weight:500;color:var(--ink);white-space:nowrap}
.cart-row__qty{grid-area:qty}
.cart-row__del{grid-area:del}
.cart-row__name{font-size:16.5px;font-weight:500;color:var(--ink);margin:0 0 6px;line-height:1.3}
.cart-row__sub{font-size:14px;color:var(--muted);margin:0;line-height:1.45}
.cart-row__del{
  width:44px;height:44px;display:grid;place-items:center;color:var(--muted);background:none;border:0;cursor:pointer;border-radius:50%;
}
.cart-row__del svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.cart-row__del:hover{color:var(--ink);background:var(--bg-soft)}
.cart__clear{
  display:inline-flex;align-items:center;gap:10px;margin-top:26px;
  font-size:14.5px;color:var(--muted);background:none;border:0;cursor:pointer;
  text-decoration:underline;text-underline-offset:4px;padding:6px 0;
}
.cart__clear:hover{color:var(--ink)}
.cart__clear svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}

.summary{
  background:var(--white);border:1px solid var(--line);border-radius:18px;padding:28px 30px 30px;
  box-shadow:0 10px 30px rgba(70,58,40,.05);
}
.summary__title{font-size:16.5px;font-weight:500;color:var(--ink);margin:0 0 14px}
.promo{display:flex;gap:12px;margin-bottom:22px}
.promo input{
  flex:1;min-width:0;height:52px;padding:0 16px;border:1px solid var(--line-2);
  border-radius:12px;background:var(--white);font-size:15px;color:var(--ink-soft);outline:none;
}
.promo input::placeholder{color:var(--muted-2)}
.promo input:focus{border-color:var(--gold)}
.summary .promo .btn{min-height:52px;padding:0 24px;font-size:15px;width:auto;flex:0 0 auto}
.summary__row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:11px 0;font-size:16px;color:var(--ink-soft);
}
.summary__row .info{
  display:inline-flex;align-items:center;gap:7px;color:var(--body);
}
.summary__row .info svg{width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.summary__row b{font-weight:500;color:var(--ink)}
.summary__sep{height:1px;background:var(--line);margin:16px 0 18px}
.summary__total{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.summary__total span{display:block;font-family:var(--serif);font-size:30px;color:var(--ink);line-height:1.1}
.summary__total small{display:block;font-size:12.5px;color:var(--muted);margin-top:4px}
.summary__total b{font-size:30px;font-weight:400;color:var(--ink);white-space:nowrap}
.summary .btn{width:100%}
.summary__back{
  display:block;text-align:center;margin-top:18px;font-size:15px;color:var(--gold-deep);
  text-decoration:underline;text-underline-offset:4px;
}
.summary__back:hover{color:var(--ink)}

/* ---------- 4. Pokladňa ---------- */
.co{padding:0 var(--pad) 70px;position:relative}
.co__head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;flex-wrap:wrap;margin-bottom:22px}
.co__title{font-family:var(--serif);font-size:44px;font-weight:300;color:var(--ink);margin:0 0 28px}
.steps{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.step{display:flex;align-items:center;gap:11px}
.step__num{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  background:var(--bg-soft);color:var(--muted);font-size:15px;
}
.step.is-active .step__num{background:var(--lav);color:#fff}
.step span{font-size:15px;color:var(--muted)}
.step.is-active span{color:var(--ink)}
.co__layout{display:grid;grid-template-columns:minmax(0,1fr) 384px;gap:40px;align-items:start}
.co__col{display:flex;flex-direction:column;gap:24px}

.card{
  background:var(--white);border:1px solid var(--line);border-radius:18px;padding:28px 30px 30px;
  box-shadow:0 10px 30px rgba(70,58,40,.05);
}
.card__title{font-size:17px;font-weight:500;color:var(--ink);margin:0 0 20px}
.field{margin-bottom:16px}
.field:last-child{margin-bottom:0}
.field label{display:block;font-size:14px;color:var(--body);margin-bottom:8px}
.input,select.input{
  width:100%;height:52px;padding:0 16px;border:1px solid var(--line-2);border-radius:12px;
  background:var(--white);font-size:15px;color:var(--ink-soft);outline:none;
}
.input::placeholder{color:var(--muted-2)}
.input:focus{border-color:var(--gold)}
select.input{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A534A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px;padding-right:42px;
}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}

.radio-row{display:flex;align-items:center;gap:12px;cursor:pointer;padding:10px 0;font-size:16px;color:var(--ink-soft)}
.radio-row input{position:absolute;opacity:0;width:0;height:0}
.radio-dot{
  width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line-2);
  display:grid;place-items:center;flex:0 0 auto;background:var(--white);
}
.radio-row input:checked + .radio-dot{border-color:var(--lav);background:var(--lav)}
.radio-row input:checked + .radio-dot::after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}
.radio-row:hover .radio-dot{border-color:var(--lav)}
.pay-list{display:flex;flex-direction:column;gap:2px;margin-bottom:6px}
.pay-row{display:flex;align-items:center;justify-content:flex-start;gap:12px}
.pay-row > span:nth-child(3){white-space:nowrap}
.pay-logos{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
.pay-logos svg{height:16px;width:auto;display:block}

.co-summary .summary__row{padding:8px 0;font-size:15px}
.sum-item{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:9px 0}
.sum-item img{width:48px;height:48px;border-radius:10px;object-fit:cover;background:var(--bg-soft)}
.sum-item p{margin:0;font-size:14px;color:var(--ink);line-height:1.35}
.sum-item small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.sum-item b{font-size:14.5px;font-weight:400;color:var(--ink-soft);white-space:nowrap}

.check{display:flex;align-items:flex-start;gap:11px;margin:20px 0 22px;cursor:pointer;font-size:14.5px;color:var(--body);line-height:1.5}
.check input{position:absolute;opacity:0;width:0;height:0}
.check__box{
  width:21px;height:21px;border-radius:6px;border:1.5px solid var(--line-2);background:var(--white);
  flex:0 0 auto;display:grid;place-items:center;margin-top:1px;
}
.check input:checked + .check__box{background:var(--lav);border-color:var(--lav)}
.check__box svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.check input:checked + .check__box svg{opacity:1}
.check a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:3px}

.pay-btn{width:100%;font-size:16.5px}

/* ---------- 5. Mini-košík (drawer) ---------- */
.drawer-page{position:relative;min-height:100vh}
.drawer-page__bg{position:absolute;inset:0;overflow:hidden}
.drawer-page__bg img{width:100%;height:100%;object-fit:cover;object-position:38% 28%}
.drawer-page__bg::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(247,243,236,.94) 0%,rgba(247,243,236,.72) 34%,rgba(247,243,236,.18) 70%);
}
.drawer-page__copy{position:relative;z-index:2;padding:120px var(--pad) 60px;max-width:620px}
.drawer-page__copy h1{
  font-family:var(--serif);font-weight:300;font-size:clamp(38px,4.6vw,60px);line-height:1.05;
  color:var(--gold-deep);margin:0 0 22px;
}
.drawer-page__copy p{font-size:18px;line-height:1.55;color:var(--ink-soft);margin:0}

.drawer--wide{width:min(430px,92vw)}
/* mini-košík: množstvo vpravo od ceny (rovnaké markupy ako app.js) */
.drawer .cart-item{grid-template-columns:64px minmax(0,1fr) auto;align-items:center}
.drawer .cart-item__info{display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px}
.drawer .cart-item__name{flex:0 0 100%;margin-bottom:2px}
.drawer .cart-item__price{margin-top:0}
.drawer .qty{margin-top:0}
.drawer__foot .btn{font-size:16px}
.drawer__sum{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}
.drawer__sum span{font-size:17px;color:var(--ink)}
.drawer__sum strong{font-size:24px;font-weight:400;color:var(--ink)}
.drawer__note{font-size:13.5px;color:var(--muted);margin-top:14px;text-align:center}

/* ---------- 6. Mobil (do 1023 px) ---------- */
@media (max-width:1023px){
  .pdp{padding:0 16px 48px}
  .pdp__grid{grid-template-columns:1fr;gap:0}
  .pdp__main{order:1;margin-right:0;aspect-ratio:4/5;border-radius:14px}
  .pdp__thumbs{
    order:2;flex-direction:row;gap:10px;padding:14px 0 0;overflow-x:auto;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .pdp__thumbs::-webkit-scrollbar{display:none}
  .pdp__thumb{width:66px;height:66px;border-radius:10px;flex:0 0 auto}
  .pdp__info{order:3;padding-top:22px}
  .pdp__title{font-size:34px;margin-bottom:10px}
  .pdp__sub{font-size:17px;margin-bottom:18px}
  .pdp__price{font-size:26px}
  .pdp__lead{font-size:15.5px;margin-bottom:26px}
  .benefits{grid-template-columns:repeat(2,1fr);gap:20px 12px;margin-bottom:26px}
  .benefit__circle{width:70px;height:70px}
  .benefit__circle svg{width:28px;height:28px}
  .benefit span{font-size:13px}
  .pdp__buy{flex-direction:column;gap:12px}
  .qty-lg{width:100%}
  .qty-lg button{flex:1}
  .qty-lg span{flex:1}
  .pdp__cta{width:100%}
  .tabs{margin-top:40px}
  .tabs__row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .tabs__row::-webkit-scrollbar{display:none}
  .tab{flex:0 0 auto;padding:0 20px;font-size:14.5px}
  .tab-panel{padding:22px 20px 26px;border-radius:0 14px 14px 14px}
  .tab-panel p{font-size:15px}
  .band{padding:26px 16px 30px}
  .band__inner{grid-template-columns:repeat(2,1fr);gap:24px 12px}
  .band-item svg{width:40px;height:40px}
  .band-item span{font-size:13.5px}
  .band__sprig--l{width:100px;height:150px}
  .band__sprig--r{width:100px;height:150px}

  .cart{padding:0 16px 44px}
  .cart__layout{grid-template-columns:1fr;gap:28px}
  .cart__title{font-size:34px;margin-bottom:18px}
  .cart-row{
    grid-template-columns:84px minmax(0,1fr) auto;
    grid-template-areas:
      "img info del"
      "img price qty";
    gap:14px 16px;padding:18px 0;align-items:start;
  }
  .cart-row__img{width:84px;height:84px}
  .cart-row__name{font-size:15.5px;margin-bottom:4px}
  .cart-row__sub{font-size:13px}
  .cart-row__price{font-size:17px;justify-self:start;align-self:center}
  .cart-row__qty{justify-self:end;align-self:center}
  .qty-lg button{min-height:44px;width:44px}
  .qty-lg span{min-width:44px}
  .summary{padding:22px 20px 24px;border-radius:16px}
  .promo{flex-direction:column}
  .promo .btn{width:100%}
  .summary__total span{font-size:26px}
  .summary__total b{font-size:26px}
  .perks__inner{grid-template-columns:repeat(2,1fr);gap:18px 14px;padding:22px 16px}
  .perk{gap:10px}
  .perk svg{width:24px;height:24px}
  .perk span{font-size:13.5px}

  .co{padding:0 16px 48px}
  .co__head{gap:18px;margin-bottom:20px}
  .co__title{font-size:34px}
  .steps{gap:16px;width:100%;justify-content:space-between}
  .step{gap:8px}
  .step__num{width:32px;height:32px;font-size:14px}
  .step span{font-size:13.5px}
  .co__layout{grid-template-columns:1fr;gap:22px}
  .card{padding:22px 20px 24px;border-radius:16px}
  .field-row{grid-template-columns:1fr}
  .sum-item{grid-template-columns:44px minmax(0,1fr) auto}
  .sum-item img{width:44px;height:44px}

  .drawer--wide{width:100%;max-width:none;border-radius:0}
  .drawer-page__copy{padding:90px 20px 40px}
  .drawer-page__copy p{font-size:16px}
}

@media (max-width:420px){
  .benefits{grid-template-columns:repeat(2,1fr)}
  .perks__inner{grid-template-columns:1fr}
  .steps{flex-wrap:wrap;justify-content:flex-start}
}

@media (max-width:1180px){
  .tabs__deco{display:none}
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important}
}
