/**
 * NM-D Theme
 * Author: Paweł Nosko
 * Company: Design Cart
 * Website: https://www.designcart.pl
 */

/* ── Stack: Nowości + Bestsellery = 100vh jak makieta ── */
.nmd-products-stack {
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: #f0f1f8;
}
.nmd-products-stack__divider {
  height: 1px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
}

/* ── Carousel section row ── */
.nmd-carousel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  margin: 0;
  background: #eef0f8;
}
.nmd-carousel--news {
  clip-path: polygon(0% 0%, calc(100% - 48px) 0%, 100% 48px, 100% 100%, 0% 100%);
}

/* Left panel */
.nmd-carousel__panel {
  width: 28%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2.5rem;
  margin: 24px 0;
  background: #fff;
  clip-path: polygon(0% 0%, 90% 0%, 100% 10%, 100% 100%, 0% 100%);
  box-sizing: border-box;
}
.nmd-carousel--flush .nmd-carousel__panel {
  margin: 0;
}
.nmd-carousel--panel-dark .nmd-carousel__panel {
  background: #5b3fc8;
  color: #fff;
}
.nmd-carousel__panel-inner {
  max-width: 100%;
}
.nmd-carousel__bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.nmd-carousel__bar--purple { background: #5b3fc8; }
.nmd-carousel__bar--cyan { background: #00c8e8; }

.nmd-carousel__panel h2 {
  margin: 0 0 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(22px, 2.4vw, 34px);
  color: #1a1c2e;
}
.nmd-carousel--panel-dark .nmd-carousel__panel h2 { color: #fff; }

.nmd-carousel__panel p {
  margin: 0 0 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #6b6d8a;
}
.nmd-carousel--panel-dark .nmd-carousel__panel p {
  color: rgba(255, 255, 255, 0.7);
}

.nmd-carousel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nmd-carousel__cta:hover { opacity: 0.9; color: #fff !important; }
.nmd-carousel__cta--purple { background: #5b3fc8; }
.nmd-carousel__cta--cyan { background: #00c8e8; color: #fff !important; }

/* Right stage */
.nmd-carousel__stage {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #eef0f8;
  overflow: hidden;
}
.nmd-carousel__viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.5rem 0;
  overflow: hidden;
  min-height: 0;
}
.nmd-carousel--strip .nmd-carousel__viewport {
  padding-bottom: 0;
}
.nmd-carousel__grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  transition: transform 0.35s ease;
  will-change: transform;
}
.nmd-carousel__grid > .nmd-pcard {
  min-height: 0;
}
.nmd-carousel__empty {
  color: #6b6d8a;
  font-size: 0.9rem;
  margin: 0;
  padding: 1rem 0;
}

/* Empty-state alert — brand colors, centered */
.nmd-carousel__stage--empty {
  display: flex;
  flex-direction: column;
}
.nmd-carousel__stage--empty .nmd-carousel__viewport {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 2rem 1.5rem !important;
  box-sizing: border-box;
}
.nmd-carousel__alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 440px;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 1.15rem 1.4rem;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 10px 28px rgba(26, 28, 46, 0.1);
  text-align: left;
}
.nmd-carousel__alert--purple {
  background: rgba(91, 63, 200, 0.12);
  border: 1px solid rgba(91, 63, 200, 0.32);
  color: #5b3fc8;
}
.nmd-carousel__alert--cyan {
  background: rgba(0, 200, 232, 0.16);
  border: 1px solid rgba(0, 200, 232, 0.4);
  color: #087a8a;
}
.nmd-carousel__alert-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nmd-carousel__alert--purple .nmd-carousel__alert-icon {
  background: #5b3fc8;
  color: #fff;
}
.nmd-carousel__alert--cyan .nmd-carousel__alert-icon {
  background: #00c8e8;
  color: #1a1c2e;
}
.nmd-carousel__alert-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
}

/* Controls */
.nmd-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
  flex-shrink: 0;
}
.nmd-carousel__arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
  background: rgba(26, 28, 46, 0.1);
  color: #6b6d8a;
}
.nmd-carousel__arrow.is-active {
  background: #5b3fc8;
  color: #fff;
  opacity: 1;
}
.nmd-carousel--bestsellers .nmd-carousel__arrow.is-active {
  background: #00c8e8;
  color: #fff;
}
.nmd-carousel__arrow:disabled {
  opacity: 0.5;
  cursor: default;
}
.nmd-carousel__dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.nmd-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(26, 28, 46, 0.18);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.nmd-carousel__dot.is-active {
  width: 20px;
  background: #5b3fc8;
}
.nmd-carousel--bestsellers .nmd-carousel__dot.is-active {
  background: #00c8e8;
}

/* Bottom purple accent strip (bestsellers) */
.nmd-carousel__strip {
  height: 40px;
  flex-shrink: 0;
  background: #5b3fc8;
  clip-path: polygon(0% 0%, 5% 100%, 0% 100%);
}

/* ── Product card ── */
.nmd-pcard {
  --nmd-pcard-accent: #5b3fc8;
  --nmd-pcard-accent-rgb: 91, 63, 200;
  background: #fff;
  border: 1px solid rgba(26, 28, 46, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-width: 0;
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.22s ease;
}
.nmd-pcard--cyan {
  --nmd-pcard-accent: #00c8e8;
  --nmd-pcard-accent-rgb: 0, 200, 232;
}
.nmd-pcard:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--nmd-pcard-accent-rgb), 0.28);
  box-shadow:
    0 16px 40px rgba(var(--nmd-pcard-accent-rgb), 0.14),
    0 4px 12px rgba(26, 28, 46, 0.06);
}

.nmd-pcard__media-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 130px;
  background: #fff;
  overflow: hidden;
}
.nmd-pcard__media-wrap.thumbnail-container {
  background: #fff;
  padding: 0;
}
.nmd-pcard__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  text-decoration: none;
}
.nmd-pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nmd-pcard:hover .nmd-pcard__media img {
  transform: scale(1.04);
}

.nmd-pcard__flags {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.nmd-pcard__flag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--nmd-pcard-accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}
.nmd-pcard__flag--discount {
  background: #e5484d;
}
.nmd-pcard__flag--new {
  background: var(--nmd-cyan, #00c8e8);
}

.nmd-pcard__body {
  padding: 0.95rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}

.nmd-pcard__cat {
  margin: 0 0 0.4rem;
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(var(--nmd-pcard-accent-rgb), 0.1);
  color: var(--nmd-pcard-accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.nmd-pcard__name {
  margin: 0 0 0.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #1a1c2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  flex-shrink: 0;
}
.nmd-pcard__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nmd-pcard__name a:hover {
  color: var(--nmd-pcard-accent);
}

.nmd-pcard__meta {
  margin: 0 0 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #6b6d8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.nmd-pcard__desc {
  margin: 0 0 0.65rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #6b6d8a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nmd-pcard__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(26, 28, 46, 0.07);
  flex-shrink: 0;
}

.nmd-pcard__prices {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.nmd-pcard__regular {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #6b6d8a;
  text-decoration: line-through;
  line-height: 1;
}

.nmd-pcard__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nmd-pcard-accent);
  white-space: nowrap;
  line-height: 1.15;
}

.nmd-pcard__buy-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nmd-pcard__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--nmd-pcard-accent);
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(var(--nmd-pcard-accent-rgb), 0.28);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.nmd-pcard__buy:hover {
  filter: brightness(1.06);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--nmd-pcard-accent-rgb), 0.36);
  text-decoration: none;
}
.nmd-pcard__buy:active {
  transform: translateY(0);
}
.nmd-pcard__buy:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  filter: none;
}

/* Spacing after intro — clear visual break before stack */
.nmd-home > .nmd-intro {
  margin-bottom: 0;
}
.nmd-home > .nmd-products-stack {
  margin-top: 0;
}

/* Product page carousels — same cards as homepage, auto height (no clipping) */
.nmd-carousel--page {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0;
  margin: 0 0 1.75rem;
  clip-path: none !important;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26, 28, 46, 0.08);
  background: #eef0f8;
  align-items: stretch;
}

.nmd-carousel--page .nmd-carousel__panel {
  margin: 0;
  clip-path: polygon(0% 0%, 92% 0%, 100% 8%, 100% 100%, 0% 100%);
}

.nmd-carousel--page .nmd-carousel__stage {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  height: auto;
}

.nmd-carousel--page .nmd-carousel__viewport {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 1.35rem 1.35rem 0;
  justify-content: flex-start;
}

.nmd-carousel--page .nmd-carousel__controls {
  padding: 0.85rem 1.35rem 1.15rem;
}

.nmd-carousel--page .nmd-pcard {
  height: auto;
}

.nmd-carousel--page .nmd-pcard__media-wrap {
  height: 130px;
}

/* Homepage stack: same 130px media, keep stage clip for slide */
.nmd-products-stack .nmd-pcard {
  height: auto;
  max-height: 100%;
}
.nmd-products-stack .nmd-pcard__media-wrap {
  height: 130px;
}

body#product #footer-product-list,
body.page-product #footer-product-list,
body#product .product-footer,
body.page-product .product-footer {
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .nmd-products-stack {
    height: auto;
    min-height: 0;
  }
  .nmd-carousel {
    flex-direction: column;
    clip-path: none !important;
    min-height: auto;
  }
  .nmd-carousel__panel {
    width: 100%;
    min-width: 0;
    margin: 0;
    clip-path: none;
    padding: 2rem 1.5rem 1rem;
  }
  .nmd-carousel--page .nmd-carousel__panel {
    clip-path: none;
  }
  .nmd-carousel__viewport { padding: 1rem 1rem 0; }
}
@media (max-width: 560px) {
  .nmd-carousel__controls { padding-bottom: 1rem; }
  .nmd-pcard__name {
    font-size: 0.85rem;
    min-height: 0;
  }
  .nmd-pcard__price {
    font-size: 0.95rem;
  }
}
/* 1786371644 */
/* 1786372660 */
/* bust 1786373010 */
/* bust 1787139600 */
/* bust 1787140800 */



/* bust 1787217651 */
