/* Obsah eshopu. Hlavicka a paticka jsou v layout.css (vytazeno z respektgym.cz).
   Hero, boxy a karty jsou prevzate ze stranky /vsechny-produkty/. */

:root {
  --rg-red: #e63946;
  --rg-red-dark: #d62839;
  --rg-violet: #667eea;
  --rg-text: #333;
  --rg-muted: #666;
  --rg-line: #e6e6e6;
  --rg-ok: #1a7f4b;
  --rg-error: #b3261e;
}

[hidden] { display: none !important; }

.rg-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- zahlavi stranek (sablona HashOne, stejne jako produkt na respektgym.cz) ---------- */
.hs-main-header { padding: 140px 0 70px; margin-bottom: 50px; position: relative; }
.hs-main-header::after { content: ""; position: absolute; inset: 0; background: url("img/overlay.png"); }
.hs-main-header > .hs-container { position: relative; z-index: 9; }
.hs-main-title {
  margin: 0 0 15px; font-family: "Roboto Condensed", sans-serif; font-weight: 400; text-transform: uppercase;
  color: #fff; text-align: center; font-size: 36px; letter-spacing: 1px; line-height: 1.2;
}
@media screen and (max-width: 768px) {
  .hs-main-header { padding: 120px 0 40px; }
}

/* ---------- uvod (stejne jako /vsechny-produkty/) ---------- */
.rg-catalog { font-size: 16px; line-height: 1.6; max-width: 1120px; margin: 0 auto; padding-top: 100px; }
.rg-hero {
  background: linear-gradient(135deg, #e63946 0%, #667eea 100%);
  padding: 80px 20px;
  margin-bottom: 60px;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
}
.rg-hero__inner { max-width: 1200px; margin: 0 auto; text-align: center; color: #fff; }
.rg-hero h1 {
  font-family: "Roboto", sans-serif; font-size: 3em; font-weight: 700; margin: 0 0 20px;
  color: #fff; text-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
}
.rg-hero p {
  font-family: Georgia, serif; font-size: 1.3em; max-width: 700px; margin: 0 auto;
  opacity: .95; line-height: 1.6; color: #fff;
}
.rg-boxes {
  max-width: 1200px; margin: 0 auto 60px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.rg-box {
  background: #fff; padding: 30px; border-radius: 15px; text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .08); transition: transform .3s ease, box-shadow .3s ease;
}
.rg-box:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(230, 57, 70, .15); }
.rg-box__icon { font-size: 3em; margin-bottom: 15px; line-height: 1.8; }
.rg-box h3 { font-family: "Roboto", sans-serif; color: var(--rg-red); margin: 0 0 10px; font-size: 1.3em; }
.rg-box p { font-family: Georgia, serif; color: var(--rg-muted); line-height: 1.6; margin: 0 0 15px; }
.rg-products-head { max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; text-align: center; }
.rg-products-head h2 {
  font-family: "Roboto", sans-serif; color: var(--rg-text); font-size: 2.2em; margin: 0 0 15px;
  position: relative; display: inline-block;
}
.rg-products-head h2 span {
  display: block; width: 80px; height: 4px; margin: 15px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, #e63946, #667eea);
}
.rg-products-head p { font-family: Georgia, serif; color: var(--rg-muted); font-size: 1.1em; margin: 20px 0 0; }

/* ---------- karty produktu ---------- */
.rg-grid {
  list-style: none; margin: 0 auto; padding: 0 20px 80px; max-width: 1200px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.rg-card {
  background: #fff; border-radius: 20px; overflow: hidden; border: 2px solid transparent;
  box-shadow: 0 5px 25px rgba(0, 0, 0, .08); transition: all .4s ease;
  display: flex; flex-direction: column; margin: 0;
}
.rg-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(230, 57, 70, .15); border-color: var(--rg-red); }
.rg-card__link { display: block; color: inherit; flex: 1; text-decoration: none; }
.rg-card__image { display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.rg-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.rg-card:hover .rg-card__image img { transform: scale(1.05); }
.rg-card__title {
  font-family: "Roboto", sans-serif !important; font-size: 19px !important; color: var(--rg-text) !important;
  margin: 20px 15px 10px !important; font-weight: 600 !important; line-height: 1.3 !important;
}
.rg-card__price {
  display: block; font-family: "Roboto", sans-serif; color: var(--rg-red);
  font-size: 1.4em; font-weight: 700; margin: 10px 15px;
}
.rg-card__button {
  display: block; box-sizing: border-box; width: calc(100% - 30px); margin: 15px; padding: 14px 30px;
  background: linear-gradient(135deg, #e63946 0%, #d62839 100%); color: #fff; border: 0; border-radius: 10px;
  font-family: "Roboto", sans-serif; font-weight: 600; font-size: 1em; line-height: 1.3; text-align: left;
  text-transform: uppercase; letter-spacing: .5px; cursor: pointer; transition: all .3s ease;
}
.rg-card__button:hover, .rg-card__button:focus-visible {
  background: linear-gradient(135deg, #667eea 0%, #5568d3 100%); color: #fff;
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102, 126, 234, .3);
}
.rg-card--soldout .rg-card__image img { opacity: .55; }
.rg-card--soldout .rg-card__button { background: #8a8a8a; }

@media (min-width: 769px) and (max-width: 1199px) {
  .rg-grid { gap: 25px; }
}
@media (max-width: 768px) {
  .rg-catalog { padding-top: 40px; }
  .rg-hero { padding: 50px 16px; margin-bottom: 40px; border-radius: 0 0 30px 30px; }
  .rg-hero h1 { font-size: 2em; }
  .rg-hero p { font-size: 1.1em; }
  .rg-boxes { padding: 0; }
  .rg-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 0 60px; }
  .rg-products-head { padding: 30px 0 0; }
  .rg-products-head h2 { font-size: 1.8em; }
}
@media (max-width: 480px) {
  .rg-grid { grid-template-columns: 1fr; }
}

/* ---------- spolecne ---------- */
.woocommerce-breadcrumb { position: relative; color: #fff; text-align: center; font-size: 13px; }
.woocommerce-breadcrumb a { color: #fff; }
.rg-page { max-width: 1000px; margin: 0 auto; padding-bottom: 70px; color: var(--rg-text); }
.rg-button {
  display: inline-block; box-sizing: border-box; padding: 13px 26px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #e63946 0%, #d62839 100%); color: #fff;
  font-family: "Roboto", sans-serif; font-weight: 600; font-size: 1em; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .5px; cursor: pointer; text-align: center; transition: all .3s ease;
}
.rg-button:hover, .rg-button:focus-visible { background: linear-gradient(135deg, #667eea 0%, #5568d3 100%); color: #fff; }
.rg-button:disabled { background: #bdbdbd; cursor: not-allowed; }
.rg-button[aria-busy="true"] { cursor: progress; opacity: .85; }
.rg-button--ghost { background: #fff; color: var(--rg-red-dark); border: 2px solid var(--rg-red); padding: 11px 22px; }
.rg-button--wide { display: block; width: 100%; }
.rg-button--big { padding: 16px 20px; font-size: 1.05em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rg-violet); outline-offset: 2px;
}
.rg-page input[type="text"], .rg-page input[type="email"], .rg-page input[type="tel"], .rg-page input:not([type]),
.rg-page input[type="number"], .rg-page select, .rg-page textarea {
  width: 100%; box-sizing: border-box; padding: 11px 12px; min-height: 46px; font-size: 16px; line-height: 1.3;
  border: 1px solid #b5b5b5; border-radius: 8px; background: #fff; color: var(--rg-text);
}
.rg-page input[aria-invalid="true"] { border-color: var(--rg-error); border-width: 2px; }
.rg-page label { font-weight: 600; display: block; margin-bottom: 4px; }
.rg-error, .rg-field-error { color: var(--rg-error); font-size: 14px; margin: 6px 0 0; font-weight: 600; }
.rg-ok { color: var(--rg-ok); font-size: 14px; margin: 6px 0 0; font-weight: 600; }
.rg-small { font-size: 13px; color: var(--rg-muted); margin: 10px 0 0; line-height: 1.5; }
.rg-notice { padding: 14px 16px; border-radius: 8px; background: #f4f4f4; margin: 0 0 20px; }
.rg-notice--warn { background: #fff4e0; }
.rg-notice--error { background: #fdecea; color: var(--rg-error); font-weight: 600; }
.rg-empty { text-align: center; padding: 50px 0; font-size: 1.1em; }
.rg-loading { text-align: center; padding: 50px 0; color: var(--rg-muted); }
.rg-honey { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- produkt ---------- */
.rg-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.rg-gallery__main { background: #fff; }
.rg-gallery__main img { width: 100%; height: auto; display: block; }
.rg-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.rg-thumb { padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; opacity: .6; transition: opacity .2s; }
.rg-thumb.is-active, .rg-thumb:hover { opacity: 1; }
.rg-thumb.is-active { border-color: var(--rg-red); }
.rg-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.rg-summary__title { font-family: "Roboto Condensed", sans-serif; font-size: 26px; font-weight: 400; margin: 0 0 18px; text-align: center; color: var(--rg-text); }
.rg-summary__price { font-family: Arial, sans-serif; font-size: 30px; font-weight: 700; color: var(--rg-red); text-align: center; margin: 0 0 22px; line-height: 1.2; }
.rg-summary__short { margin-bottom: 18px; }
.rg-field { margin-bottom: 14px; }
.rg-buy__row { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.rg-qty { width: 78px !important; text-align: center; flex: 0 0 auto; }
.rg-buy__submit { flex: 1; border-radius: 30px; }
.rg-stock { min-height: 1.4em; margin: 0 0 10px; color: var(--rg-ok); font-weight: 600; font-size: 14px; }
.rg-stock--out { color: var(--rg-error); }
.rg-tab { margin-top: 50px; }
.rg-tab__tabs { border-bottom: 1px solid var(--rg-line); margin-bottom: 20px; }
.rg-tab__tab {
  display: inline-block; padding: 8px 14px; background: var(--rg-red); color: #fff;
  font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.rg-tab h2, .rg-related h2 { font-family: "Roboto Condensed", sans-serif; font-size: 22px; margin: 0 0 16px; color: var(--rg-text); }
.rg-faq { margin-top: 40px; }
.rg-faq details { border-bottom: 1px solid var(--rg-line); padding: 10px 0; }

.rg-faq details p { margin: 8px 0 4px; }
.rg-related { margin-top: 50px; }
.rg-grid--small { padding: 0; }

@media (max-width: 768px) {
  .rg-product { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- kosik ---------- */
.rg-cart-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.rg-cart-table th { text-align: left; font-size: 13px; padding: 10px 8px; border-bottom: 2px solid var(--rg-line); }
.rg-cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--rg-line); vertical-align: middle; }
.rg-cart-img { width: 72px; }
.rg-cart-img img { width: 64px; height: 64px; object-fit: cover; display: block; border-radius: 6px; }
.rg-cart-name a { color: var(--rg-red-dark); font-weight: 600; }
.rg-cart-name small { display: block; color: var(--rg-muted); }
.rg-remove { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--rg-red-dark); padding: 8px 12px; }
.rg-cart-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.rg-coupon__row { display: flex; gap: 10px; }
.rg-coupon__row .rg-button { flex: 0 0 auto; white-space: nowrap; }
.rg-totals__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rg-line); }
.rg-totals__row--total { font-size: 1.25em; border-bottom: 0; padding-top: 12px; }
.rg-totals__note { color: var(--rg-muted); font-size: 14px; padding: 8px 0 14px; }

@media (max-width: 680px) {
  .rg-cart-table thead { display: none; }
  .rg-cart-table, .rg-cart-table tbody { display: block; }
  .rg-cart-table tr {
    display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 10px;
    padding: 14px 0; border-bottom: 1px solid var(--rg-line); position: relative;
  }
  .rg-cart-table td { display: block; border: 0; padding: 2px 0; }
  .rg-cart-table td.rg-cart-img { grid-row: 1 / span 3; }
  .rg-cart-table td.rg-cart-name { grid-column: 2 / 4; padding-right: 34px; }
  .rg-cart-table td[data-label="Cena"] { display: none; }
  .rg-cart-table td:last-child { position: absolute; top: 8px; right: 0; }
  .rg-cart-bottom { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- pokladna ---------- */
.rg-checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.rg-fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.rg-fieldset legend, .rg-checkout__side h2, .rg-order-summary h2, .rg-downloads h2 {
  font-family: "Roboto Condensed", sans-serif; font-size: 21px; font-weight: 400; margin: 0 0 14px; padding: 0; color: var(--rg-text);
}
.rg-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.rg-field--wide { grid-column: 1 / -1; }
.rg-choices { display: grid; gap: 10px; }
.rg-page label.rg-choice {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin: 0; font-weight: 400;
  border: 1px solid #b5b5b5; border-radius: 10px; cursor: pointer;
}
.rg-choice:has(input:checked) { border-color: var(--rg-red); box-shadow: inset 0 0 0 1px var(--rg-red); }
.rg-choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--rg-red); }
.rg-choice__text { flex: 1; }
.rg-choice__text small { display: block; color: var(--rg-muted); line-height: 1.4; }
.rg-choice__price { font-weight: 700; white-space: nowrap; }
.rg-free-note { color: var(--rg-ok); font-weight: 600; }
.rg-details summary, .rg-faq summary { cursor: pointer; font-weight: 600; padding: 6px 0; list-style: none; }
.rg-details summary::-webkit-details-marker, .rg-faq summary::-webkit-details-marker { display: none; }
.rg-details summary::before, .rg-faq summary::before { content: "+"; display: inline-block; width: 18px; color: var(--rg-red-dark); font-weight: 700; }
.rg-details[open] summary::before, .rg-faq details[open] summary::before { content: "−"; }
.rg-details[open] summary { margin-bottom: 10px; }
.rg-checkout__side { background: #fafafa; border-radius: 16px; padding: 22px; position: sticky; top: 16px; }
.rg-summary-lines { list-style: none; margin: 0 0 16px; padding: 0; }
.rg-summary-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--rg-line); margin: 0; }
.rg-summary-lines strong { white-space: nowrap; }
.rg-coupon--side { margin-bottom: 16px; }
.rg-legal { margin: 18px 0 6px; }
.rg-page label.rg-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.45; margin: 10px 0 0; cursor: pointer; }
.rg-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rg-red); }
.rg-newsletter-consent { margin: 14px 0 16px; padding-top: 12px; border-top: 1px solid var(--rg-line); }

@media (max-width: 860px) {
  .rg-checkout { grid-template-columns: 1fr; }
  .rg-checkout__side { position: static; }
}
@media (max-width: 480px) {
  .rg-field-grid { grid-template-columns: 1fr; }
}

/* ---------- objednavka ---------- */
.rg-order-state { margin-bottom: 26px; }
.rg-order-state h2 { font-family: "Roboto Condensed", sans-serif; font-size: 26px; font-weight: 400; margin: 0 0 8px; color: var(--rg-text); }
.rg-order-state p { margin: 0; }
.rg-order-state--ok { background: #e8f6ee; padding: 18px 20px; border-radius: 12px; }
.rg-order-state--bad { background: #fdecea; padding: 18px 20px; border-radius: 12px; }
.rg-pay { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; background: #fafafa; border-radius: 16px; padding: 24px; margin-bottom: 30px; }
.rg-pay__qr { flex: 0 0 240px; }
.rg-pay__qr svg { width: 100%; height: auto; display: block; background: #fff; }
.rg-pay__info { flex: 1 1 280px; }
.rg-pay__info h2 { font-family: "Roboto Condensed", sans-serif; font-size: 22px; font-weight: 400; margin: 0 0 10px; color: var(--rg-text); }
.rg-pay__list { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 12px 0; }
.rg-pay__list dt { color: var(--rg-muted); }
.rg-pay__list dd { margin: 0; font-weight: 700; }
.rg-pay__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.rg-downloads { margin-bottom: 30px; }
.rg-downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rg-downloads li { margin: 0; }
.rg-order-summary { margin-bottom: 18px; }
[data-order] > .rg-small { margin-bottom: 18px; }

/* ---------- plovouci kosik a hlaska ---------- */
.rg-cart-float {
  position: fixed; right: 20px; bottom: 66px; z-index: 50; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 30px; background: var(--rg-red); color: #fff; font-weight: 700;
  font-family: "Roboto", Arial, sans-serif; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.rg-cart-float:hover, .rg-cart-float:focus-visible { background: var(--rg-red-dark); color: #fff; }
.rg-cart-count { background: #fff; color: var(--rg-red-dark); border-radius: 20px; min-width: 22px; padding: 0 6px; text-align: center; font-size: 14px; line-height: 22px; }
.rg-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
  background: #14161e; color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
}
.rg-toast a { color: #abd0b8; text-decoration: underline; margin-left: 6px; }
