/* NatiDeco Shop — light pink / mint / cool grey theme */

:root {
  --nd-bg: #f3f1f4;
  --nd-surface: #fffbfe;
  --nd-ink: #2f3338;
  --nd-muted: #6b7280;
  --nd-accent: #5fad9e;
  --nd-accent-dark: #3d8a7c;
  --nd-pink: #f0c4d2;
  --nd-mint: #bfe3dc;
  --nd-border: #e5e1e8;
  --nd-hero: linear-gradient(135deg,  rgba(240, 196, 210, 0.45) 0%, #f5f2f6 48%, rgba(191, 227, 220, 0.5) 100%);
  --nd-page-bg: linear-gradient(160deg, #fdeef3 0%, #f3f1f4 42%, #e8f6f2 100%);
  --nd-btn: linear-gradient(135deg, #6bb8aa 0%, #5fad9e 55%, #4fa090 100%);
  --nd-btn-hover: linear-gradient(135deg, #5fad9e 0%, #4fa090 55%, #3d8a7c 100%);
  --nd-nav-bg: linear-gradient(180deg, rgba(255, 251, 254, 0.96) 0%, rgba(253, 242, 246, 0.92) 100%);
  --nd-footer-bg: linear-gradient(180deg, #f8f5f8 0%, #eef8f5 100%);
  --nd-shadow: 0 12px 32px rgba(47, 51, 56, 0.08);
  --nd-shadow-pink: 0 14px 36px rgba(240, 196, 210, 0.35);
  --nd-radius: 1rem;
  --nd-radius-lg: 1.35rem;
}

html {
  font-size: 16px;
}

body.nd-theme {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--nd-ink);
  background-color: var(--nd-bg);
  background-image: var(--nd-page-bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fallback if body class missing */
body:not(.nd-theme) {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--nd-ink);
  background: var(--nd-page-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .brand-font {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
  color: var(--nd-ink);
}

a {
  color: var(--nd-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--nd-accent);
}

/* ——— Shell ——— */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 3000;
  padding: 0.5rem 0.9rem;
  background: var(--nd-surface);
  color: var(--nd-ink);
  border-radius: 0.5rem;
  box-shadow: var(--nd-shadow);
}
.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid var(--nd-accent-dark);
  outline-offset: 2px;
}

.nd-header {
  z-index: 1020;
  background: var(--nd-nav-bg);
}

.nd-navbar {
  background: var(--nd-nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--nd-pink), var(--nd-border), var(--nd-mint)) 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.nd-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
}

.nd-search-form--mobile {
  flex: 1 0 100%;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.5rem;
  padding-bottom: 0.15rem;
  box-sizing: border-box;
}

.nd-search-form--mobile .form-control {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
}

.nd-search-form--mobile .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nd-navbar .navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.3rem;
  border: 1px solid var(--nd-border);
  background: var(--nd-surface);
}

.nd-navbar .navbar-toggler-icon {
  width: 1.35rem;
  height: 1.35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(47, 51, 56, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nd-search-form--desktop {
  max-width: 18rem;
}

@media (min-width: 992px) {
  .nd-nav-top {
    width: auto;
    flex: 0 0 auto;
  }

  .nd-navbar .navbar-toggler {
    display: none;
  }
}

.nd-navbar .navbar-brand {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--nd-ink) !important;
  background: linear-gradient(120deg, var(--nd-ink) 0%, #5a4a55 40%, var(--nd-accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  /* Fallback solid color if clip unsupported for full word */
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .nd-navbar .navbar-brand {
    color: transparent !important;
  }
}

.nd-navbar .nav-link {
  color: var(--nd-muted) !important;
  font-weight: 500;
  border-radius: 0.5rem;
  padding-inline: 0.65rem !important;
}
.nd-navbar .nav-link:hover,
.nd-navbar .nav-link.active {
  color: var(--nd-ink) !important;
  background: rgba(191, 227, 220, 0.35);
}

.nd-navbar .form-control {
  border-color: var(--nd-border);
  background: var(--nd-surface);
}
.nd-navbar .form-control:focus {
  border-color: var(--nd-accent);
  box-shadow: 0 0 0 0.2rem rgba(95, 173, 158, 0.22);
}

.cart-badge {
  background: var(--nd-btn);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.12rem 0.5rem;
  margin-left: 0.25rem;
  box-shadow: 0 2px 8px rgba(95, 173, 158, 0.35);
}

main {
  flex: 1;
}

.footer {
  margin-top: 3rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--nd-border);
  background: var(--nd-footer-bg);
  color: var(--nd-muted);
  font-size: 0.95rem;
}
.footer a {
  color: var(--nd-accent-dark);
}

.footer-links {
  max-width: 60rem;
  text-align: right;
}

@media (max-width: 575.98px) {
  .footer-links {
    text-align: center;
  }
}

body.has-cookie-banner {
  padding-bottom: 8.5rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: var(--nd-surface);
  border-top: 1px solid var(--nd-border);
  box-shadow: 0 -8px 24px rgba(47, 51, 56, 0.08);
  padding: 0.85rem 0;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.cookie-banner-text {
  flex: 1 1 16rem;
  font-size: 0.9rem;
  color: var(--nd-muted);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-doc {
  max-width: 46rem;
}

.legal-markdown table {
  width: 100%;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.legal-markdown td,
.legal-markdown th {
  border: 1px solid var(--nd-border);
  padding: 0.4rem 0.55rem;
  vertical-align: top;
}

.legal-doc-nav {
  border-top: 1px solid var(--nd-border);
  font-size: 0.9rem;
}

.legal-doc-nav a.is-current {
  font-weight: 600;
  color: var(--nd-ink);
}

.checkout-legal {
  border-top: 1px solid var(--nd-border);
  padding-top: 1rem;
}

/* ——— Hero ——— */

.hero {
  background: var(--nd-hero);
  border-radius: var(--nd-radius-lg);
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--nd-shadow-pink);
  position: relative;
  overflow: hidden;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* PromocjaHERO — desktop promo image panel (hidden on mobile via Bootstrap d-none d-lg-block) */
.promo-hero {
  position: relative;
  border-radius: var(--nd-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(61, 138, 124, 0.12);
  background: linear-gradient(145deg, #faf6f8, #eef8f5);
  aspect-ratio: 4 / 5;
  min-height: 16rem;
  max-height: 28rem;
}

.promo-hero-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
}

.promo-hero-slides {
  position: absolute;
  inset: 0;
}

.promo-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.promo-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.promo-hero-text {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1rem 1.15rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(30, 28, 32, 0.55) 100%
  );
  pointer-events: none;
}

.promo-hero-text--top {
  top: 0;
  background: linear-gradient(180deg, rgba(30, 28, 32, 0.6) 0%, transparent 100%);
}

.promo-hero-text--middle {
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 28, 32, 0.5);
  margin: 0 0.75rem;
  border-radius: 0.65rem;
  left: 0.75rem;
  right: 0.75rem;
  width: auto;
}

.promo-hero-text--bottom {
  bottom: 0;
}

.promo-hero-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.promo-hero-copy {
  font-size: 0.92rem;
  line-height: 1.4;
  opacity: 0.95;
}

.promo-hero-dots {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.35rem;
  pointer-events: none;
}

.promo-hero-text--bottom + .promo-hero-dots,
.promo-hero:has(.promo-hero-text--bottom) .promo-hero-dots {
  bottom: auto;
  top: 0.55rem;
}

.promo-hero-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.promo-hero-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.hero .text-muted {
  color: var(--nd-muted) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

@media (max-width: 575.98px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    margin: 0;
    text-align: center;
  }
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}
.section-title::after {
  content: "";
  display: block;
  margin-top: 0.35rem;
  width: 3rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nd-pink), var(--nd-mint));
}

/* ——— Product cards ——— */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.product-card-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card-raise {
  position: relative;
  z-index: 2;
}
.product-card:hover {
  box-shadow: var(--nd-shadow), 0 0 0 1px rgba(95, 173, 158, 0.15);
  transform: translateY(-3px);
  border-color: rgba(95, 173, 158, 0.35);
}

.product-card .img-wrap {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f5eef2 0%, #e8f4f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-btn {
  padding: 0;
  border: 2px solid var(--nd-border);
  border-radius: 0.5rem;
  background: transparent;
  overflow: hidden;
  width: 72px;
  height: 72px;
  cursor: pointer;
  line-height: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-thumb-btn:hover,
.product-thumb-btn:focus-visible {
  border-color: var(--nd-accent);
  outline: none;
}
.product-thumb-btn.is-active {
  border-color: var(--nd-accent-dark);
  box-shadow: 0 0 0 2px rgba(95, 173, 158, 0.35);
}

.product-card .placeholder-art {
  color: var(--nd-muted);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.25rem;
}

.product-card-kup {
  margin-top: auto;
  padding-top: 0.7rem;
}

.product-card .product-card-sold-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0.12em 0.4em;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--nd-muted);
  border: 1px solid rgba(74, 58, 62, 0.12);
  pointer-events: none;
}

.product-card-sold-note {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--nd-muted);
}

.price {
  font-weight: 700;
  color: var(--nd-accent-dark);
}
.price-compare {
  text-decoration: line-through;
  color: var(--nd-muted);
  font-size: 0.9rem;
  margin-left: 0.35rem;
}

/* Sold / made-to-order: historical price is indicative only */
.price-note-mto {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--nd-ink);
  background: linear-gradient(135deg, rgba(253, 232, 239, 0.85) 0%, rgba(217, 240, 234, 0.55) 100%);
  border: 1px solid var(--nd-border);
  border-left: 3px solid var(--nd-accent);
  border-radius: var(--nd-radius);
  padding: 0.75rem 0.9rem;
}

/* ——— Buttons ——— */

.btn-nd {
  background-image: var(--nd-btn);
  background-color: var(--nd-accent);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(95, 173, 158, 0.28);
}
.btn-nd:hover,
.btn-nd:focus {
  background-image: var(--nd-btn-hover);
  background-color: var(--nd-accent-dark);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(61, 138, 124, 0.32);
}
.btn-nd:active {
  background-image: var(--nd-btn-hover);
  color: #fff;
}

.btn-outline-nd {
  border: 1.5px solid var(--nd-accent);
  color: var(--nd-accent-dark);
  background: rgba(255, 251, 254, 0.55);
  font-weight: 600;
}
.btn-outline-nd:hover,
.btn-outline-nd:focus {
  background-image: var(--nd-btn);
  background-color: var(--nd-accent);
  border-color: transparent;
  color: #fff;
}

/* ——— Forms & surfaces ——— */

.form-control,
.form-select {
  border-color: var(--nd-border);
  background-color: var(--nd-surface);
  color: var(--nd-ink);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--nd-accent);
  box-shadow: 0 0 0 0.2rem rgba(95, 173, 158, 0.2);
}

.nd-panel,
.facet-panel,
.empty-state {
  background: var(--nd-surface) !important;
  border: 1px solid var(--nd-border) !important;
  border-radius: var(--nd-radius) !important;
  box-shadow: 0 4px 16px rgba(47, 51, 56, 0.04);
}

.facet-panel .form-check {
  margin-bottom: 0.2rem;
}
.facet-panel .form-check-label {
  cursor: pointer;
}

.catalog-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.catalog-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.catalog-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--nd-btn);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.catalog-browse {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .catalog-browse {
    margin-bottom: 0;
  }
}

.list-group-item {
  background: var(--nd-surface);
  border-color: var(--nd-border);
  color: var(--nd-ink);
}
.list-group-item-action:hover {
  background: linear-gradient(90deg, rgba(253, 238, 243, 0.9), rgba(232, 246, 242, 0.7));
  color: var(--nd-ink);
}
.list-group-item.active {
  background: var(--nd-btn) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(191, 227, 220, 0.12);
  --bs-table-hover-bg: rgba(240, 196, 210, 0.12);
  color: var(--nd-ink);
}
.table > :not(caption) > * > * {
  border-bottom-color: var(--nd-border);
}

.attr-table th {
  width: 35%;
  color: var(--nd-muted);
  font-weight: 500;
}

.card {
  background: var(--nd-surface);
  border-color: var(--nd-border);
  border-radius: var(--nd-radius);
}

/* ——— Alerts & badges ——— */

.alert-success {
  background: linear-gradient(135deg, #e8f6f2, #f0faf7);
  border-color: var(--nd-mint);
  color: #245a50;
}
.alert-danger {
  background: linear-gradient(135deg, #fdf0f4, #fce8ee);
  border-color: var(--nd-pink);
  color: #7a3048;
}

.badge-stock-out {
  background: linear-gradient(135deg, #d9899a, #c96b80);
  color: #fff;
}
.badge-stock-low {
  background: linear-gradient(135deg, #e6b86a, #d4a24a);
  color: #fff;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ——— Pagination ——— */

.pagination .page-link {
  color: var(--nd-accent-dark);
  border-color: var(--nd-border);
  background: var(--nd-surface);
}
.pagination .page-link:hover {
  background: rgba(191, 227, 220, 0.35);
  color: var(--nd-ink);
  border-color: var(--nd-mint);
}
.pagination .page-item.active .page-link {
  background: var(--nd-btn);
  border-color: transparent;
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: var(--nd-muted);
  background: rgba(243, 241, 244, 0.8);
}

.catalog-infinite-sentinel {
  height: 1px;
}

.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  counter-reset: checkout-step;
}

.checkout-steps li {
  counter-increment: checkout-step;
  flex: 1 1 5.5rem;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--nd-muted);
  text-align: center;
  position: relative;
}

.checkout-steps li::before {
  content: counter(checkout-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0 auto 0.3rem;
  border-radius: 999px;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  font-weight: 700;
  color: var(--nd-ink);
}

.checkout-steps li.is-active {
  color: var(--nd-ink);
  font-weight: 600;
}

.checkout-steps li.is-active::before {
  background: var(--nd-btn);
  border-color: transparent;
  color: #fff;
}

.checkout-steps li.is-done::before {
  background: var(--nd-mint);
  border-color: transparent;
}

.checkout-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.checkout-review dt {
  color: var(--nd-muted);
  font-weight: 500;
}

/* ——— Breadcrumb ——— */

.breadcrumb-item a {
  color: var(--nd-accent-dark);
}
.breadcrumb-item.active {
  color: var(--nd-muted);
}

/* ——— PDP gallery (no stretch / no dead white space under image) ——— */

.pdp-gallery {
  width: 100%;
  max-width: 100%;
  /* Do not stretch to match details column height */
  height: auto;
  align-self: start;
}

.pdp-gallery-main {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  background: linear-gradient(145deg, #faf6f8, #eef8f5);
  box-shadow: var(--nd-shadow);
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
}

.pdp-gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 32rem);
  object-fit: contain;
  background: linear-gradient(145deg, #faf6f8, #eef8f5);
}

.pdp-gallery-placeholder {
  cursor: default;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

/* Horizontal thumb strip — scroll on narrow screens so thumbs never cover title */
.pdp-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
  max-width: 100%;
}

.pdp-gallery-thumbs .product-thumb-btn {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
}

@media (max-width: 767.98px) {
  .pdp-gallery {
    margin-bottom: 0.5rem;
  }

  .pdp-gallery-main img {
    max-height: min(55vh, 22rem);
  }

  .pdp-gallery-thumbs .product-thumb-btn {
    width: 3.5rem;
    height: 3.5rem;
  }

  /* Keep details clearly below gallery (no visual collision with thumbs) */
  .pdp-details {
    clear: both;
    position: relative;
    z-index: 0;
    padding-top: 0.25rem;
  }
}

/* ——— Lightbox (most of the viewport) ——— */

.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.pdp-lightbox[hidden] {
  display: none !important;
}

.pdp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 28, 0.88);
  border: 0;
  cursor: zoom-out;
}

.pdp-lightbox-stage {
  position: relative;
  z-index: 1;
  width: min(96vw, 72rem);
  height: min(92vh, 56rem);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.pdp-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.pdp-lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 251, 254, 0.95);
  color: var(--nd-ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.pdp-lightbox-close:hover,
.pdp-lightbox-close:focus-visible {
  background: #fff;
  outline: 2px solid var(--nd-accent);
}

.pdp-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 251, 254, 0.95);
  color: var(--nd-ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: none; /* desktop only — mobile uses swipe */
  align-items: center;
  justify-content: center;
}

.pdp-lightbox-prev {
  left: 0.35rem;
}

.pdp-lightbox-next {
  right: 0.35rem;
}

.pdp-lightbox-counter {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.65);
  color: #fff;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .pdp-lightbox-nav {
    display: flex;
  }

  .pdp-lightbox-stage {
    width: min(94vw, 72rem);
    height: min(90vh, 56rem);
  }
}

body.pdp-lightbox-open {
  overflow: hidden;
}

/* ——— Contact map ——— */

.shop-map-frame {
  background: var(--nd-surface);
  min-height: 14rem;
}

.shop-map-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* ——— InPost Geowidget modal (checkout) ——— */

.inpost-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.inpost-modal[hidden] {
  display: none !important;
}

.inpost-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 28, 0.72);
}

.inpost-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 56rem);
  height: min(90vh, 40rem);
  background: var(--nd-surface);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.inpost-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--nd-border);
}

.inpost-modal-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.inpost-modal-body inpost-geowidget {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 20rem;
}

body.inpost-modal-open {
  overflow: hidden;
}

/* ——— O nas Markdown body ——— */

.about-markdown > p:first-of-type {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
}

.about-markdown h2,
.about-markdown h3,
.about-markdown h4 {
  margin-top: 1.35rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.about-markdown h2 {
  font-size: 1.15rem;
}

.about-markdown h3 {
  font-size: 1.05rem;
}

.about-markdown p {
  margin-bottom: 0.85rem;
}

.about-markdown ul,
.about-markdown ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.about-markdown li {
  margin-bottom: 0.35rem;
}

.about-markdown a {
  color: var(--nd-accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.about-markdown table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.about-markdown th,
.about-markdown td {
  border: 1px solid var(--nd-border);
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.opening-hours-md {
  margin-top: 0.25rem;
}

.opening-hours-md p {
  margin-bottom: 0.3rem;
}

.opening-hours-md p:last-child {
  margin-bottom: 0;
}

.opening-hours-md ul,
.opening-hours-md ol {
  margin: 0.15rem 0 0.3rem;
  padding-left: 1.2rem;
}

.opening-hours-md li {
  margin-bottom: 0.15rem;
}

.opening-hours-md table {
  width: auto;
  margin: 0.25rem 0 0;
  border-collapse: collapse;
}

.opening-hours-md th,
.opening-hours-md td {
  border: none;
  padding: 0.1rem 1rem 0.1rem 0;
  text-align: left;
  font-weight: 400;
}

/* ——— InPost searchable locker list (no Geowidget token) ——— */

[data-inpost-search-root] {
  z-index: 5;
}

.inpost-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 0.25rem);
  z-index: 20;
  max-height: 16rem;
  overflow: auto;
  background: var(--nd-surface);
  border: 1px solid var(--nd-border);
  border-radius: var(--nd-radius);
  box-shadow: var(--nd-shadow);
}

.inpost-search-item {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--nd-border);
}

.inpost-search-item:last-child {
  border-bottom: 0;
}

.inpost-search-item:hover,
.inpost-search-item.is-active {
  background: #eef8f5;
}

.inpost-search-code {
  font-weight: 600;
  letter-spacing: 0.02em;
}
