/* WINE4YOU prázdný košík ?v=1
   Platí jen na /kosik/, když je košík prázdný (body.w4y-is-empty-cart
   přidává w4y-kosik-prazdny.js). Na ostatních stránkách a v plném košíku
   se neprojeví. w4y-vzhled.css, w4y-pokladna.css ani w4y-404.css nemění. */

body.w4y-is-empty-cart {
  --w4y-ec-red: var(--w4y-red, #6a1315);
  --w4y-ec-red-h: var(--w4y-red-h, #883c3c);
  --w4y-ec-ink: var(--w4y-ink, #3a2a26);
  --w4y-ec-soft: var(--w4y-soft, #5a4540);
  --w4y-ec-muted: var(--w4y-muted, #8a7772);
  --w4y-ec-line: var(--w4y-line, #eee4df);
  --w4y-ec-cream: var(--w4y-cream, #fffaf6);
  --w4y-ec-panel: var(--w4y-panel, #f6eee8);
  --w4y-ec-font: var(--w4y-font, "PT Sans", sans-serif);
  --w4y-ec-head: var(--w4y-font-head, "PT Serif", serif);
  --w4y-ec-r: var(--w4y-r, 8px);
  --w4y-ec-r-md: var(--w4y-r-md, 12px);
  --w4y-ec-r-lg: var(--w4y-r-lg, 16px);
  --w4y-ec-pill: var(--w4y-r-pill, 999px);
  --w4y-ec-shadow: var(--w4y-shadow, 0 2px 6px rgba(58, 42, 38, .06), 0 10px 28px rgba(58, 42, 38, .10));
  --w4y-ec-shadow-card: var(--w4y-shadow-card, 0 2px 6px rgba(60, 30, 30, .06), 0 8px 24px rgba(60, 30, 30, .08));
  --w4y-ec-shadow-card-h: var(--w4y-shadow-card-h, 0 4px 12px rgba(60, 30, 30, .10), 0 16px 36px rgba(60, 30, 30, .16));
  --w4y-ec-shadow-cta: var(--w4y-shadow-cta, 0 4px 12px rgba(106, 19, 21, .22));
  --w4y-ec-shadow-focus: var(--w4y-shadow-focus, 0 0 0 3px rgba(106, 19, 21, .2));
}

body.w4y-is-empty-cart [data-w4y-empty-hidden] {
  display: none !important;
}

/* Původní obří mezera .strong-title (7.5rem) a nativní bloky schované JS.
   Levý/pravý sloupec pokladny po přesunu karty pomoci uvolnit. */
body.w4y-is-empty-cart #order-left:empty,
body.w4y-is-empty-cart #order-right:empty {
  display: none !important;
}

.w4y-empty {
  font-family: var(--w4y-ec-font);
  color: var(--w4y-ec-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  clear: both;
  width: 100%;
  margin: 0 0 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 20.5rem);
  grid-template-areas:
    "hero help"
    "tiles tiles";
  gap: 1.35rem 1.6rem;
  align-items: start;
}
.w4y-empty-hero { grid-area: hero; }
.w4y-empty-aside { grid-area: help; }
.w4y-empty-section { grid-area: tiles; }


.w4y-empty a {
  color: var(--w4y-ec-red);
  text-decoration: none;
}

.w4y-empty img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

.w4y-empty-main {
  min-width: 0;
}

.w4y-empty-hero {
  background: var(--w4y-ec-cream);
  border-radius: 18px;
  box-shadow: var(--w4y-ec-shadow);
  padding: 1.85rem 2rem 1.7rem;
}

body.w4y-is-empty-cart .w4y-empty h1,
.w4y-empty h1 {
  font-family: var(--w4y-ec-head);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  color: var(--w4y-ec-red);
  letter-spacing: 0;
  text-transform: none !important;
  margin: 0 0 .7rem;
}

.w4y-empty-lead {
  margin: 0 0 1.25rem;
  max-width: 38em;
  color: var(--w4y-ec-soft);
  font-size: 1.05rem;
}

.w4y-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 1.2rem;
}

.w4y-empty-btn {
  display: inline-block;
  background: var(--w4y-ec-red);
  color: #fff !important;
  border: 0;
  border-radius: var(--w4y-ec-pill);
  padding: .72rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none !important;
  box-shadow: var(--w4y-ec-shadow-cta);
  cursor: pointer;
}

.w4y-empty-btn:hover {
  background: var(--w4y-ec-red-h);
  color: #fff !important;
}

.w4y-empty-search {
  display: flex;
  max-width: 36rem;
  background: #fff;
  border-radius: var(--w4y-ec-pill);
  box-shadow: var(--w4y-ec-shadow-card);
  border: 1px solid var(--w4y-ec-line);
  overflow: hidden;
}

.w4y-empty-search input[type="search"] {
  flex: 1 1 auto;
  border: 0 !important;
  padding: .85rem 1.2rem !important;
  font-size: 1rem !important;
  outline: none;
  background: transparent !important;
  color: var(--w4y-ec-ink);
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  font-family: inherit;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  letter-spacing: 0;
  text-transform: none !important;
}

.w4y-empty-search input[type="search"]::placeholder {
  color: var(--w4y-ec-muted);
}

.w4y-empty-search input[type="search"]:focus {
  box-shadow: none;
}

.w4y-empty-search:focus-within {
  box-shadow: var(--w4y-ec-shadow-focus), var(--w4y-ec-shadow-card);
}

.w4y-empty-search button {
  background: var(--w4y-ec-red);
  color: #fff;
  border: 0 !important;
  padding: .85rem 1.35rem !important;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  letter-spacing: 0;
  text-transform: none !important;
}

.w4y-empty-search button:hover {
  background: var(--w4y-ec-red-h);
}

.w4y-empty-section {
  margin-top: 0;
}

.w4y-empty-section h2 {
  font-family: var(--w4y-ec-head);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 .85rem;
  color: var(--w4y-ec-ink);
  text-transform: none !important;
  letter-spacing: 0;
}

.w4y-empty-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}

.w4y-empty-tile {
  background: #fff;
  border-radius: var(--w4y-ec-r-lg);
  box-shadow: var(--w4y-ec-shadow-card);
  padding: 1rem .7rem 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  color: var(--w4y-ec-ink) !important;
  min-height: 100%;
  transition: box-shadow .2s, transform .2s;
}

.w4y-empty-tile:hover {
  box-shadow: var(--w4y-ec-shadow-card-h);
  transform: translateY(-2px);
  color: var(--w4y-ec-ink) !important;
}

.w4y-empty-ico {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(58, 42, 38, .12), 0 2px 8px rgba(58, 42, 38, .08);
  background: var(--w4y-ec-panel);
  flex: 0 0 auto;
}

.w4y-empty-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w4y-empty-tile strong {
  font-family: var(--w4y-ec-head);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}

/* Karta „Potřebujete pomoc?“ zůstává nativní (w4y-pokladna ji už styluje
   jako .w4y-pomoc). Jen ji usadíme do pravého sloupce. */
.w4y-empty-aside {
  min-width: 0;
}

.w4y-empty-aside .w4y-pomoc,
.w4y-empty-aside fieldset.f-border,
.w4y-empty-aside fieldset.checkout-single-box {
  margin: 0 !important;
  width: 100%;
  float: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .w4y-empty-tile {
    transition: none;
  }
  .w4y-empty-tile:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .w4y-empty-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .w4y-empty {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "tiles"
      "help";
    margin-bottom: 1.6rem;
  }
  .w4y-empty-hero {
    padding: 1.35rem 1.15rem 1.2rem;
    border-radius: 14px;
  }
  body.w4y-is-empty-cart .w4y-empty h1,
  .w4y-empty h1 {
    font-size: 1.5rem;
  }
  .w4y-empty-lead {
    font-size: 1rem;
  }
  .w4y-empty-actions .w4y-empty-btn {
    width: 100%;
    text-align: center;
  }
  .w4y-empty-search {
    flex-direction: column;
    border-radius: 12px;
  }
  .w4y-empty-search button {
    border-radius: 0 0 12px 12px;
    padding: .85rem;
    width: 100%;
  }
  .w4y-empty-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
  }
  .w4y-empty-ico {
    width: 72px;
    height: 72px;
  }
}
