/* =========================================================================
   VinnyDarček – components.css
   ========================================================================= */

/* Tlačidlá */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--burgundy); color: #fff; }
.btn--primary:hover { background: var(--burgundy-700); }
.btn--gold { background: var(--gold); color: var(--burgundy-700); }
.btn--gold:hover { background: #c39f2e; }
.btn--ghost { background: #fff; color: var(--burgundy); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--sm { padding: 9px 14px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* Odznaky */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 6px; color: #fff; background: var(--burgundy);
}
.badge.is-bestseller { background: var(--gold); color: var(--burgundy-700); }
.badge.is-new { background: var(--success); }
.badge.is-sale { background: var(--error); }
.badge.is-occasion { background: var(--burgundy); }
.badge.is-recipient { background: #8a5a72; }
.badge.is-corp { background: #3f5168; }

/* Mriežka produktov / kategórií */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(1, 1fr); }

/* Karta produktu */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media img.card__placeholder { object-fit: contain; padding: 8%; }
.card__media .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.badge--corner { left: auto; right: 10px; top: 10px; }
.card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 16px; line-height: 1.25; margin: 0; }
.card__title a:hover { color: var(--gold); }
.card__subtitle { font-size: 13px; color: var(--ink-soft); margin: 0; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }

/* Cena */
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price__now { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--burgundy); }
.price__old { font-size: 13px; color: #a99; text-decoration: line-through; }

/* Kategória – dlaždica */
.cat-tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); border: 1px solid var(--border); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile img.card__placeholder { object-fit: contain; padding: 12%; }
.cat-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(40,12,18,.78));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 17px;
}
.cat-tile:hover .cat-tile__label { background: linear-gradient(180deg, transparent, rgba(40,12,18,.9)); }

/* Trust pás */
.trust { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust__grid { display: grid; gap: 18px; padding: 26px 0; grid-template-columns: repeat(2, 1fr); }
.trust__item { display: flex; gap: 12px; align-items: flex-start; }
.trust__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--cream); border: 1px solid var(--gold-soft); }
.trust__title { font-weight: 600; font-size: 14px; margin: 0 0 2px; color: var(--ink); }
.trust__text { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* Recenzie */
.reviews { display: grid; gap: 16px; grid-template-columns: 1fr; }
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.review__stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.review__text { margin: 8px 0 12px; }
.review__meta { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.review__verified { color: var(--success); font-weight: 600; }

/* FAQ */
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; color: var(--burgundy);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; color: var(--gold); line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 18px 16px; color: var(--ink-soft); }
.faq__answer p { margin: 0; }

/* Drobčeky */
.breadcrumbs { background: var(--cream); border-bottom: 1px solid var(--border); font-size: 13px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; margin: 0; color: var(--ink-soft); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--gold); }
.breadcrumbs a:hover { color: var(--burgundy); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* Mobilný drawer */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20,8,12,.5); }
.drawer__panel {
  position: absolute; top: 0; left: 0; height: 100%; width: min(86vw, 340px);
  background: var(--page); padding: 16px; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: drawerIn .2s ease;
}
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--burgundy); }
.drawer__cta { display: block; text-align: center; background: var(--burgundy); color: #fff; font-weight: 600; padding: 12px; border-radius: 999px; margin-bottom: 18px; }
.drawer__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 16px 0 6px; }
.drawer__list { list-style: none; padding: 0; margin: 0; }
.drawer__list li a { display: block; padding: 11px 8px; border-radius: var(--r-sm); border-bottom: 1px solid var(--border); }
.drawer__list li a:hover { background: var(--cream); color: var(--burgundy); }
.drawer__list--minor li a { border-bottom: 0; color: var(--ink-soft); }

/* Sticky mobilné CTA (pre product/editor stránky – pripravené) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  background: #fff; border-top: 1px solid var(--border); padding: 10px var(--gutter);
  box-shadow: 0 -6px 20px rgba(60,25,20,.10);
}
.sticky-cta__inner { display: flex; align-items: center; gap: 12px; max-width: var(--container); margin-inline: auto; }
.sticky-cta .price { flex: none; }
.sticky-cta .btn { flex: 1; }

/* Search suggest položky (renderované JS) */
.suggest__item { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink); }
.suggest__item:hover { background: var(--cream); color: var(--burgundy); }

/* Detail produktu */
.product__grid { display: grid; gap: 26px; }
.product__media .hero__frame { max-width: 460px; margin-inline: auto; }
.product__title { font-size: clamp(24px, 4vw, 34px); margin-bottom: 6px; }
.product__subtitle { color: var(--ink-soft); margin-bottom: 14px; }
.product__price { margin: 8px 0 18px; }
.product__price .price__now { font-size: 26px; }
.product__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; }
.variant-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.variant input { position: absolute; opacity: 0; }
.variant span { display: inline-block; padding: 9px 15px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; cursor: pointer; }
.variant input:checked + span { border-color: var(--burgundy); background: var(--cream); color: var(--burgundy); font-weight: 600; }
.variant input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.product__delivery { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--ok { background: var(--success); }
.dot--no { background: var(--error); }
.product__actions { margin-bottom: 16px; }
.product__benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.product__benefits li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-soft); }
.product__benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.product__desc { margin-top: 36px; }

@media (min-width: 900px) {
  .product__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; }
  .sticky-cta.is-visible { display: none; }
}
