:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --dark: #111827;
  --muted: #6b7280;
  --accent: #f59e0b;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(17,24,39,.08);
}
body { background: var(--bg); color: var(--dark); font-family: Inter, system-ui, -apple-system, sans-serif; }
.topbar { background: linear-gradient(90deg, #f59e0b, #fbbf24); text-align: center; padding: .85rem; font-weight: 700; }
.main-nav { box-shadow: 0 8px 24px rgba(17,24,39,.04); }
.site-logo { height: 54px; width: auto; }
.footer-logo { height: 52px; width: auto; }
.search-input { border-radius: 999px; padding: .9rem 1.1rem; border: 1px solid var(--line); }
.hero-section { padding: 3.5rem 0 2rem; }
.hero-shell, .summary-card, .product-card, .filter-card, .detail-image-card, .auth-card, .cart-item, .admin-stat, .success-box, .buy-box, .description-box, .category-card, .info-card, .category-photo-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.hero-shell { padding: 1.5rem; }
.hero-card { padding: 1rem; border-radius: 24px; background: #f8fafc; border: 1px solid var(--line); }
.hero-photo { width: 100%; aspect-ratio: 19.5 / 9; object-fit: cover; border-radius: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); }
.hero-points div { background: #fff; border: 1px solid var(--line); padding: .75rem 1rem; border-radius: 999px; }
.mini-stat, .admin-stat { padding: 1.2rem; background: #fff; border-radius: 24px; border: 1px solid var(--line); }
.mini-stat strong, .admin-stat strong { display: block; font-size: 1.25rem; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.category-photo-card { display: block; overflow: hidden; position: relative; min-height: 280px; }
.category-photo-card {
  display: block;
  overflow: hidden;
  position: relative;
  height: 360px;
}

.category-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
  transform: scale(1.0) translateY(0px);
}
.category-photo-overlay { position: absolute; inset: auto 0 0 0; padding: 1.35rem; color: #fff; background: linear-gradient(180deg, transparent 0%, rgba(17,24,39,.72) 58%, rgba(17,24,39,.92) 100%); }
.category-photo-overlay h5 {
  display: inline-block;
  margin: 0;
  padding: .28rem .62rem;
  border-radius: 13px;
  background: rgba(17,24,39,.34);
  font-size: 1.22rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.72);
}
.category-photo-overlay p {
  display: none;
}

.product-card { overflow: hidden; transition: .2s ease; }
.product-card:hover, .category-photo-card:hover, .info-card:hover { transform: translateY(-4px); }
.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f8f8fb, #eceef5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.discount-badge { position: absolute; top: 14px; left: 14px; background: #111827; color: #fff; border-radius: 999px; padding: .4rem .8rem; font-size: .8rem; }
.product-title { min-height: 3rem; }
.old-price { text-decoration: line-through; color: var(--muted); font-size: .95rem; }
.sticky-filters { position: sticky; top: 100px; padding: 1.4rem; }
.detail-image-card { padding: 1rem; }
.detail-image { width: 100%; max-height: 620px; object-fit: cover; border-radius: 22px; aspect-ratio: 19.5 / 9; }
.info-pills { display: flex; flex-wrap: wrap; gap: .8rem; }
.info-pills span { padding: .7rem 1rem; background: #fff8e7; border-radius: 999px; }
.buy-box, .description-box, .cart-item, .summary-card, .success-box, .auth-card, .info-card { padding: 1.5rem; }
.summary-row, .mini-cart-line { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.summary-row.total { font-size: 1.1rem; font-weight: 700; border-bottom: 0; }
.auth-card { max-width: 720px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links li { margin-bottom: .45rem; }
.table > :not(caption) > * > * { padding: .95rem .75rem; }
.qr-image { max-width: 280px; width: 100%; }
.affiliate-hero { background: linear-gradient(135deg, #fff8e7, #ffffff); }
@media (max-width: 991px) {
  .hero-section { padding-top: 2rem; }
  .sticky-filters { position: static; }
  .site-logo { height: 42px; }
}
.product-gallery {
  width: 100%;
}

.detail-image-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 20px;
}

.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.product-thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.2s ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-thumb:hover,
.product-thumb.active {
  border-color: #111;
  transform: translateY(-2px);
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card .product-image,
.product-card img {
  width: 100%;
}


.product-card .card-body,
.product-card .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .btn,
.product-card .detail-btn {
  margin-top: auto;
}

/* Footer - kontakt a sociální sítě */
.footer .footer-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer .footer-links a:hover {
  color: #ff4b00;
  transform: translateX(3px);
}

.footer .footer-links i {
  color: #ff4b00 !important;
  min-width: 22px;
}

.footer h6 {
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-logo {
  max-height: 45px;
  width: auto;
}

@media (max-width: 991px) {
  .footer {
    text-align: left;
  }

  .footer .row {
    row-gap: 28px;
  }
}

/* Homepage trust + reviews carousel */
.homepage-trust-section,
.homepage-reviews-section {
  scroll-margin-top: 90px;
}

.trust-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #fff8e7;
  border: 1px solid rgba(245, 158, 11, .24);
  color: #92400e;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.trust-card,
.review-card,
.reviews-panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border-radius: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.trust-card::after {
  content: "";
  position: absolute;
  inset: auto -35px -45px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .08);
  pointer-events: none;
}

.trust-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 24, 39, .12);
  box-shadow: 0 22px 55px rgba(17, 24, 39, .10);
}

.trust-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-size: 1.28rem;
}

.trust-card h3,
.review-card h3 {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -.01em;
}

.trust-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.reviews-panel {
  padding: 1.5rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, .10), transparent 32%),
    #ffffff;
}

.reviews-header {
  align-items: center;
  gap: 1rem;
}

.reviews-summary {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 165px;
  padding: .85rem 1rem;
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 22px;
  background: rgba(255, 248, 231, .82);
  text-align: right;
}

.reviews-summary-score {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: .15rem;
  color: var(--dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}

.reviews-summary-score span:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0;
}

.reviews-summary-stars {
  margin-top: .35rem;
  color: #f59e0b;
  font-size: .82rem;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
}

.reviews-summary-count {
  margin-top: .28rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.reviews-next-button {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .16);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.reviews-next-button:hover,
.reviews-next-button:focus-visible {
  background: #000;
  transform: translateX(2px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, .22);
}

.reviews-next-button i {
  line-height: 1;
  font-size: 1.15rem;
}

.reviews-carousel-viewport {
  overflow: hidden;
  margin: 0 -.2rem;
  padding: .15rem .2rem .35rem;
}

.reviews-track {
  display: flex;
  gap: 1rem;
  transition: transform .45s ease;
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  max-width: calc((100% - 2rem) / 3);
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.review-stars {
  margin-bottom: .9rem;
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.review-card p {
  flex: 1;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.review-author strong {
  color: var(--dark);
  font-size: .95rem;
}

.review-author span {
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 767px) {
  .homepage-trust-section {
    padding-top: 2rem !important;
  }

  .reviews-panel {
    padding: 1.1rem;
    border-radius: 24px;
  }

  .reviews-header {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    flex-wrap: wrap;
  }

  .reviews-header > div:first-child {
    flex: 1 1 100%;
  }

  .reviews-header h2 {
    font-size: 1.35rem;
  }

  .reviews-summary {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    padding: .75rem .85rem;
    text-align: left;
  }

  .reviews-summary-score {
    justify-content: flex-start;
    font-size: 1.55rem;
  }

  .reviews-summary-stars,
  .reviews-summary-count {
    font-size: .78rem;
  }

  .reviews-next-button {
    width: 42px;
    height: 42px;
    margin-left: auto;
  }

  .reviews-track {
    gap: .9rem;
  }

  .review-card {
    flex-basis: 100%;
    max-width: 100%;
    min-height: 230px;
  }
}

