/* ==========================================================================
   DS Market – kamenná prodejna Slušovice (store.css)
   Styly pro obsahovou stránku /prodejna-2/. Vše je omezeno na .dsm-store,
   takže soubor lze bezpečně načítat globálně v hlavičce Shoptetu.
   Verze: 2026-09-24b (nová fotogalerie)
   ========================================================================== */

.dsm-store {
  --dsm-primary: #2e7d32;
  --dsm-primary-dark: #245f28;
  --dsm-primary-soft: #f3faf2;
  --dsm-primary-border: #d8ead4;
  --dsm-warm: #fff8e8;
  --dsm-warm-border: #f4d78e;
  --dsm-warm-soft: #fffaf0;
  --dsm-warm-soft-border: #f2dfaf;
  --dsm-accent: #f4b400;
  --dsm-blue: #eef7fd;
  --dsm-blue-border: #cde4f8;
  --dsm-blue-text: #195f8d;
  --dsm-text: #303630;
  --dsm-muted: #687068;
  --dsm-white: #ffffff;
  --dsm-border: #e1e7df;
  --dsm-surface: #f6f7f5;
  --dsm-gallery-ratio: 3 / 4;

  max-width: 1180px;
  margin: 0 auto;
  color: var(--dsm-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
}

.dsm-store *,
.dsm-store *::before,
.dsm-store *::after {
  box-sizing: border-box;
}

.dsm-store img {
  max-width: 100%;
  height: auto;
}

/* --- Typografie ---------------------------------------------------------- */

.dsm-store h2,
.dsm-store h3 {
  color: var(--dsm-primary-dark);
  line-height: 1.25;
}

.dsm-store h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3.7vw, 38px);
}

.dsm-store h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.dsm-store p {
  margin: 0 0 14px;
}

.dsm-store a {
  color: var(--dsm-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dsm-store a:hover {
  text-decoration-thickness: 2px;
}

.dsm-store a:focus-visible,
.dsm-store summary:focus-visible {
  outline: 3px solid var(--dsm-accent);
  outline-offset: 3px;
}

/* --- Úvod (hero) --------------------------------------------------------- */

.dsm-store__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.45fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin-bottom: 26px;
  padding: clamp(25px, 5vw, 52px);
  border: 1px solid var(--dsm-primary-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(46, 125, 50, 0.13), transparent 36%),
    linear-gradient(135deg, var(--dsm-primary-soft), var(--dsm-white));
}

.dsm-store__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--dsm-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dsm-store .dsm-store__hero-title {
  max-width: 820px;
  margin-bottom: 16px;
}

.dsm-store__lead {
  max-width: 860px;
  font-size: 18px;
}

.dsm-store__hero-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--dsm-primary);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.82);
}

.dsm-store__hero-actions,
.dsm-store__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* --- Tlačítka ------------------------------------------------------------ */

.dsm-store .dsm-store__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid var(--dsm-primary);
  border-radius: 9px;
  background: var(--dsm-primary);
  color: var(--dsm-white) !important;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dsm-store .dsm-store__button:hover {
  background: var(--dsm-primary-dark);
  transform: translateY(-1px);
}

.dsm-store .dsm-store__button--light {
  background: var(--dsm-white);
  color: var(--dsm-primary-dark) !important;
}

.dsm-store .dsm-store__button--light:hover {
  background: var(--dsm-primary-soft);
}

/* --- Ocenění ------------------------------------------------------------- */

.dsm-store__badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.dsm-store__badge {
  width: min(170px, 100%);
  max-height: 145px;
  object-fit: contain;
}

.dsm-store .dsm-store__badge-caption {
  margin: 10px 0 0;
  color: var(--dsm-muted);
  font-size: 13px;
}

/* --- Karty --------------------------------------------------------------- */

.dsm-store__quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 38px;
}

.dsm-store__quick-card,
.dsm-store__card {
  height: 100%;
  padding: 21px;
  border: 1px solid var(--dsm-border);
  border-radius: 14px;
  background: var(--dsm-white);
  box-shadow: 0 5px 20px rgba(35, 52, 35, 0.045);
}

.dsm-store__quick-card h3,
.dsm-store__card h3 {
  font-size: 19px;
}

.dsm-store__quick-card p:last-child,
.dsm-store__card p:last-child {
  margin-bottom: 0;
}

.dsm-store__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--dsm-primary-soft);
  font-size: 22px;
  line-height: 1;
}

.dsm-store__card--soft {
  border-color: var(--dsm-primary-border);
  background: var(--dsm-primary-soft);
}

.dsm-store__card--warm {
  border-color: var(--dsm-warm-soft-border);
  background: var(--dsm-warm-soft);
}

.dsm-store__card ul {
  margin: 10px 0 0;
  padding-left: 21px;
}

.dsm-store__card li + li {
  margin-top: 5px;
}

/* --- Sekce --------------------------------------------------------------- */

.dsm-store__section {
  margin: 38px 0;
}

.dsm-store .dsm-store__section-title {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 31px);
}

.dsm-store .dsm-store__section-intro {
  max-width: 900px;
  margin-bottom: 21px;
}

.dsm-store__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.dsm-store__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Upozornění (PKU) ---------------------------------------------------- */

.dsm-store__notice {
  margin: 34px 0;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--dsm-warm-border);
  border-left: 6px solid var(--dsm-accent);
  border-radius: 13px;
  background: var(--dsm-warm);
}

.dsm-store .dsm-store__notice h2 {
  margin-top: 0;
  font-size: clamp(23px, 3vw, 30px);
}

.dsm-store__notice p:last-child {
  margin-bottom: 0;
}

/* --- Nápoje s sebou ------------------------------------------------------ */

.dsm-store__drink {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid #eadfce;
  border-radius: 17px;
  background:
    radial-gradient(circle at top left, rgba(244, 180, 0, 0.09), transparent 35%),
    #fffaf3;
}

/* --- Kontakt a otevírací doba ------------------------------------------- */

.dsm-store__contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.dsm-store__contact-card {
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--dsm-border);
  border-radius: 16px;
  background: var(--dsm-white);
}

.dsm-store__contact-card address {
  margin-bottom: 18px;
  font-style: normal;
}

.dsm-store .dsm-store__contact-line {
  margin-bottom: 8px;
}

.dsm-store__hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.dsm-store__hours th,
.dsm-store__hours td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--dsm-border);
  text-align: left;
  vertical-align: top;
}

.dsm-store__hours th {
  width: 34%;
  color: var(--dsm-primary-dark);
  font-weight: 750;
}

.dsm-store__hours tr:last-child th,
.dsm-store__hours tr:last-child td {
  border-bottom: 0;
}

.dsm-store__hours-closed {
  color: var(--dsm-muted);
}

.dsm-store .dsm-store__small-note {
  margin-top: 14px;
  color: var(--dsm-muted);
  font-size: 14px;
}

/* --- Fotogalerie --------------------------------------------------------- */

.dsm-store__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

/* Varianta pro fotky na šířku: <div class="dsm-store__gallery dsm-store__gallery--landscape"> */
.dsm-store__gallery--landscape {
  --dsm-gallery-ratio: 4 / 3;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dsm-store .dsm-store__gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--dsm-border);
  border-radius: 13px;
  background: var(--dsm-surface);
  text-decoration: none;
}

/* Hlavní (větší) fotka – přes 2 sloupce a 2 řádky */
.dsm-store__gallery-item--featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: var(--dsm-gallery-ratio);
}

/* Fotka na výšku – přes 2 řádky */
.dsm-store__gallery-item--tall {
  grid-row: span 2;
}

.dsm-store__gallery img {
  display: block;
  width: 100%;
  aspect-ratio: var(--dsm-gallery-ratio);
  object-fit: cover;
  transition: transform 0.2s ease;
}

/* Velké a vysoké fotky vyplní plochu, kterou jim určí mřížka */
.dsm-store__gallery-item--featured img,
.dsm-store__gallery-item--tall img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.dsm-store__gallery-item:hover img {
  transform: scale(1.025);
}

/* Volitelný popisek přes spodní okraj fotky */
.dsm-store__gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(20, 34, 20, 0.72), transparent);
  color: var(--dsm-white);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

/* --- Mapa ---------------------------------------------------------------- */

.dsm-store__map-wrap {
  overflow: hidden;
  min-height: 390px;
  border: 1px solid var(--dsm-border);
  border-radius: 16px;
  background: #f3f5f2;
}

.dsm-store__map {
  display: block;
  width: 100%;
  height: 390px;
  border: 0;
}

/* --- Praktická informace ------------------------------------------------- */

.dsm-store__info {
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--dsm-blue-border);
  border-radius: 15px;
  background: var(--dsm-blue);
}

.dsm-store .dsm-store__info h2 {
  color: var(--dsm-blue-text);
}

.dsm-store__info p:last-child {
  margin-bottom: 0;
}

/* --- FAQ ----------------------------------------------------------------- */

.dsm-store__faq {
  display: grid;
  gap: 10px;
}

.dsm-store__faq details {
  border: 1px solid var(--dsm-border);
  border-radius: 12px;
  background: var(--dsm-white);
}

.dsm-store__faq summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  color: var(--dsm-primary-dark);
  font-weight: 750;
  list-style: none;
}

.dsm-store__faq summary::-webkit-details-marker {
  display: none;
}

.dsm-store__faq summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--dsm-primary);
  font-size: 23px;
  line-height: 1;
}

.dsm-store__faq details[open] summary::after {
  content: "\2212";
}

.dsm-store__faq-content {
  padding: 0 18px 17px;
}

.dsm-store__faq-content p:last-child {
  margin-bottom: 0;
}

/* --- Závěrečná výzva ----------------------------------------------------- */

.dsm-store__cta {
  margin-top: 40px;
  padding: clamp(27px, 5vw, 42px);
  border-radius: 18px;
  background:
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.11), transparent 38%),
    var(--dsm-primary-dark);
  color: var(--dsm-white);
  text-align: center;
}

.dsm-store .dsm-store__cta h2 {
  color: var(--dsm-white);
  font-size: clamp(25px, 3.5vw, 34px);
}

.dsm-store .dsm-store__cta p {
  max-width: 820px;
  margin: 0 auto 18px;
}

.dsm-store__cta .dsm-store__hero-actions {
  justify-content: center;
}

.dsm-store .dsm-store__cta .dsm-store__button {
  border-color: var(--dsm-white);
  background: var(--dsm-white);
  color: var(--dsm-primary-dark) !important;
}

.dsm-store .dsm-store__cta .dsm-store__button--outline {
  background: transparent;
  color: var(--dsm-white) !important;
}

.dsm-store .dsm-store__cta .dsm-store__button:hover {
  background: var(--dsm-primary-soft);
}

.dsm-store .dsm-store__cta .dsm-store__button--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Responzivita -------------------------------------------------------- */

@media (max-width: 900px) {
  .dsm-store__hero {
    grid-template-columns: 1fr;
  }

  .dsm-store__badge-wrap {
    min-height: 0;
  }

  .dsm-store__gallery-item--tall {
    grid-row: auto;
  }

  .dsm-store__gallery-item--tall img {
    position: static;
    height: auto;
    aspect-ratio: var(--dsm-gallery-ratio);
  }

  .dsm-store__quick-grid,
  .dsm-store__grid--three,
  .dsm-store__gallery,
  .dsm-store__gallery--landscape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dsm-store__grid,
  .dsm-store__grid--three,
  .dsm-store__contact-grid {
    grid-template-columns: 1fr;
  }

  .dsm-store__hero,
  .dsm-store__card,
  .dsm-store__contact-card,
  .dsm-store__drink,
  .dsm-store__info,
  .dsm-store__cta {
    border-radius: 12px;
  }
}

@media (max-width: 520px) {
  .dsm-store__quick-grid,
  .dsm-store__gallery,
  .dsm-store__gallery--landscape {
    grid-template-columns: 1fr;
  }

  .dsm-store__gallery-item--featured {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: auto;
  }

  .dsm-store__gallery-item--featured img {
    position: static;
    height: auto;
    aspect-ratio: var(--dsm-gallery-ratio);
  }

  .dsm-store .dsm-store__button {
    width: 100%;
  }

  .dsm-store__hero-actions,
  .dsm-store__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dsm-store__hours th,
  .dsm-store__hours td {
    display: block;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .dsm-store__hours th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .dsm-store__hours td {
    padding-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dsm-store .dsm-store__button,
  .dsm-store__gallery img {
    transition: none;
  }

  .dsm-store .dsm-store__button:hover,
  .dsm-store__gallery-item:hover img {
    transform: none;
  }
}