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

/* Shared content width — match header / breadcrumbs / mockup (1440 + 24px) */
body:not(#index) .columns-container.container,
body:not(#index) #wrapper > .columns-container {
  max-width: var(--nmd-max, 1440px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Notifications strip uses Bootstrap .container — keep same edges */
body:not(#index) #notifications > .container {
  max-width: var(--nmd-max, 1440px);
  padding-left: 24px;
  padding-right: 24px;
}

/* Kill Hummingbird white sticky .header if it ever wraps again */
body:not(#index) #header.header:not(.nmd-inner-header) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none;
}

.nmd-inner-header {
  position: sticky;
  top: 0;
  z-index: 1021;
  background: var(--nmd-purple, #5b3fc8);
  color: #fff;
  box-shadow: 0 2px 16px rgba(91, 63, 200, 0.18);
  width: 100%;
  max-width: 100vw;
}
.nmd-inner-header__inner {
  max-width: var(--nmd-max);
  margin: 0 auto;
  padding: 0.65rem 24px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nmd-inner-header__logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.nmd-inner-header__logo img {
  height: 52px;
  width: auto;
  display: block;
}
.nmd-inner-header__search {
  position: relative;
  flex: 1;
  max-width: 560px;
  display: block;
}
.nmd-inner-header__search input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  padding: 0 44px 0 16px;
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nmd-inner-header__search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.nmd-inner-header__search input:focus {
  border-color: rgba(0, 200, 232, 0.55);
  background: rgba(255, 255, 255, 0.14);
}
.nmd-inner-header__search button {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--nmd-cyan, #00c8e8);
  cursor: pointer;
}
.nmd-inner-header__nav { display: flex; gap: 1rem; font-size: .9rem; font-weight: 600; margin-left: auto; }
.nmd-inner-header__nav a { color: rgba(255,255,255,.9); text-decoration: none; }

/* Same icon set as homepage intro — static in header bar */
.nmd-inner-header__actions.nmd-intro__actions {
  position: static;
  top: auto;
  right: auto;
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
  gap: 22px;
  column-gap: 22px;
  flex-shrink: 0;
}
.nmd-inner-header__actions .nmd-intro__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s ease;
  position: relative;
}
.nmd-inner-header__actions .nmd-intro__action:hover { opacity: .7; }
.nmd-inner-header__actions .nmd-intro__cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--nmd-cyan, #00c8e8);
  color: var(--nmd-dark, #1a1c2e);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
}

/* Secondary category nav — mockup row 2 */
.nmd-inner-header__cats {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nmd-inner-header__cats-inner {
  max-width: var(--nmd-max, 1440px);
  margin: 0 auto;
  padding: 0 24px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nmd-inner-header__cats-inner::-webkit-scrollbar {
  display: none;
}

.nmd-inner-header__cat {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nmd-inner-header__cat:hover {
  color: var(--nmd-cyan, #00c8e8);
}

.nmd-inner-header__cat.is-active {
  color: var(--nmd-cyan, #00c8e8);
  font-weight: 600;
  border-bottom-color: var(--nmd-cyan, #00c8e8);
}

@media (max-width: 991px) {
  .nmd-inner-header__search { max-width: none; }
  .nmd-inner-header__actions.nmd-intro__actions {
    gap: 18px;
    column-gap: 18px;
  }
  .nmd-inner-header__cats-inner {
    gap: 22px;
  }
}

/* Breadcrumbs — Kategorie mockup */
.nmd-breadcrumbs {
  background: #fff;
  border-bottom: 1px solid var(--nmd-hero-gray, #d5d7e4);
}

.nmd-breadcrumbs__inner {
  max-width: var(--nmd-max, 1440px);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: 13px;
  color: var(--nmd-muted, #6b6d8a);
}

.nmd-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nmd-breadcrumbs a {
  color: var(--nmd-muted, #6b6d8a);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nmd-breadcrumbs a:hover {
  color: var(--nmd-purple, #5b3fc8);
}

.nmd-breadcrumbs__sep {
  flex-shrink: 0;
  color: var(--nmd-muted, #6b6d8a);
  opacity: 0.85;
}

.nmd-breadcrumbs__current {
  color: var(--nmd-dark, #1a1c2e);
  font-weight: 600;
}

/* Category hero — full-bleed band; inner 1440 aligns with header/breadcrumb boxes */
.nmd-cat-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--nmd-purple, #5b3fc8) 0%, #3d2990 100%);
  padding: 36px 0;
  color: #fff;
}

.nmd-cat-hero__inner {
  max-width: var(--nmd-max, 1440px);
  margin: 0 auto;
  padding: 0 24px;
}

.nmd-cat-hero__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.nmd-cat-hero__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
  color: var(--nmd-cyan, #00c8e8);
  line-height: 0;
}

.nmd-cat-hero__icon .nmd-lucide-icon,
.nmd-cat-hero__icon svg {
  display: block;
  color: var(--nmd-cyan, #00c8e8);
  stroke: currentColor;
}

.nmd-cat-hero__titles {
  min-width: 0;
}

.nmd-cat-hero__title {
  margin: 0;
  color: #fff;
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.nmd-cat-hero__meta {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.nmd-cat-hero__desc {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: 14px;
  line-height: 1.65;
}

.nmd-cat-hero__desc p {
  margin: 0 0 0.5em;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.nmd-cat-hero__desc p:last-child {
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .nmd-cat-hero {
    padding: 28px 0;
  }
  .nmd-cat-hero__title {
    font-size: 22px;
  }
  .nmd-cat-hero__title-row {
    align-items: flex-start;
  }
}

/* Generic / CMS page hero — full-bleed like category hero */
.nmd-page-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--nmd-purple, #5b3fc8) 0%, #3d2990 100%);
  color: #fff;
  padding: 36px 0;
}

.nmd-page-hero__inner {
  max-width: var(--nmd-max, 1440px);
  margin: 0 auto;
  padding: 0 24px;
}

.nmd-page-hero__title,
.nmd-page-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.nmd-page-hero__meta {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.nmd-page-hero__desc,
.nmd-page-hero p {
  margin: 12px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 575px) {
  .nmd-page-hero {
    padding: 28px 0;
  }
  .nmd-page-hero__title,
  .nmd-page-hero h1 {
    font-size: 22px;
  }
}

/* Product cards on listing */
#products .product,
.products .product {
  background: #fff;
  border: 1px solid var(--nmd-hero-gray);
  border-radius: var(--nmd-radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
#products .product:hover,
.products .product:hover {
  box-shadow: 0 12px 28px rgba(91,63,200,.12);
  transform: translateY(-2px);
}
