/*
Theme Name: Nebbia
Theme URI: https://nebbia.com
Description: Prémiové fitness oblečenie — vlastná téma pre Nebbia WooCommerce obchod.
Version: 1.0.0
Author: Nebbia
Text Domain: nebbia
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
*/

/* ═══ Font diacritic spacing fix ═══
   Helvetica Neue LT Pro Md (500) má glyphs s diakritikou čo vizuálne presahujú
   advance width. letter-spacing kompenzuje overlap. */
.product-card__name,
.product-card__name *,
.pdp-buy__title,
.pdp-look__name,
.section-head__title,
.section-head__line,
.nb-sign__title,
.set-step__name {
  letter-spacing: 0.025em;
}

/* ═══ Lang switcher ═══ */
.nb-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}
.nb-lang-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  font-family: var(--font, sans-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-radius: 2px;
  transition:
    color 150ms,
    background 150ms;
}
.nb-lang-switcher__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.nb-lang-switcher__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.pdp .nb-lang-switcher__link {
  color: rgba(0, 0, 0, 0.4);
}
.pdp .nb-lang-switcher__link:hover {
  color: var(--nb-black);
  background: rgba(0, 0, 0, 0.06);
}
.pdp .nb-lang-switcher__link.is-active {
  color: var(--nb-black);
  background: rgba(0, 0, 0, 0.1);
}

/* ═══ Header logo — global ═══ */
.site-header__logo {
  height: 18px !important;
  width: auto;
}
.site-header__logo--mark {
  display: none !important;
}

/* Homepage compact */
.home .site-header.hdr-compact .site-header__logo--full {
  display: none !important;
}
.home .site-header.hdr-compact .site-header__logo--mark {
  display: block !important;
  height: 58px !important;
}

/* PDP compact + hidden */
.pdp .site-header.hdr-compact .site-header__logo--full {
  display: none !important;
}
.pdp .site-header.hdr-compact .site-header__logo--mark {
  display: block !important;
  height: 44px !important;
}

/* ═══ PDP — WooCommerce form styling ═══ */
.pdp-buy__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

/* Add to cart button */
.pdp-buy__form .single_add_to_cart_button,
.pdp-buy__form button.button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--control-h, 44px);
  padding: 0 24px;
  font-family: var(--font, sans-serif);
  font-size: var(--fs-kicker, 10px);
  font-weight: var(--w-medium, 500);
  letter-spacing: var(--tracking-caps, 0.2em);
  text-transform: uppercase;
  background: var(--nb-black, #0e0f11);
  color: var(--nb-white, #fff);
  border: 1.5px solid var(--nb-black, #0e0f11);
  border-radius: 0;
  cursor: pointer;
  transition:
    background 150ms,
    color 150ms;
}
.pdp-buy__form .single_add_to_cart_button:hover,
.pdp-buy__form button.button[type="submit"]:hover {
  background: var(--nb-antracit, #43454c);
  border-color: var(--nb-antracit, #43454c);
}

/* Quantity */
.pdp-buy__form .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border, #dbdcde);
}
.pdp-buy__form .quantity input[type="number"] {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 0;
  font-family: var(--font, sans-serif);
  font-size: 14px;
  -moz-appearance: textfield;
}
.pdp-buy__form .quantity input::-webkit-inner-spin-button,
.pdp-buy__form .quantity input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Variation table */
.pdp-buy__form .variations {
  width: 100%;
  border: 0;
  margin-bottom: var(--space-3, 12px);
}
.pdp-buy__form .variations td {
  display: block;
  padding: 0 0 var(--space-2, 8px);
}
.pdp-buy__form .variations td.label {
  padding-bottom: var(--space-1, 4px);
}
.pdp-buy__form .variations td.label label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: var(--w-heavy, 800);
  color: var(--nb-black);
}
.pdp-buy__form .variations select {
  width: 100%;
  height: var(--control-h, 44px);
  border: 1px solid var(--border, #dbdcde);
  border-radius: 0;
  font-family: var(--font, sans-serif);
  font-size: 13px;
  padding: 0 12px;
  background: var(--nb-white);
  color: var(--nb-black);
}
.pdp-buy__form .reset_variations {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: var(--space-1, 4px);
}

/* WC variation price */
.pdp-buy__form .woocommerce-variation-price {
  margin-bottom: var(--space-2, 8px);
}


/* Mini-cart drawer */
.nb-minicart.is-open {
  transform: translateX(0) !important;
}
.nb-minicart {
  display: flex;
  flex-direction: column;
}
.nb-minicart__body {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.nb-minicart__items {
  flex: 1 1 auto;
}
.nb-minicart__rec {
  flex: 0 0 auto;
  border-top: 1px solid var(--border, #dbdcde);
  padding: var(--space-4, 16px) var(--space-5, 24px);
}
.nb-minicart__rec-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nb-minicart__rec-rail::-webkit-scrollbar {
  display: none;
}
.nb-minicart__foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--border, #dbdcde);
  padding: var(--space-5, 24px);
  background: var(--nb-white, #fff);
}
.nb-minicart__actions .nb-btn {
  border-radius: var(--radius-pill, 999px);
}
.nb-minicart__empty {
  padding: var(--space-8, 64px) var(--space-5, 24px);
  text-align: center;
  color: var(--fg-muted, #939597);
}
.nb-minicart__item--bundle { border-bottom: 0; }
.nb-minicart__bundle-children {
  padding: 0 var(--space-5, 24px) var(--space-3, 12px) calc(60px + var(--space-5, 24px));
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border, #dbdcde);
}
.nb-minicart__child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-muted, #939597);
  line-height: 1.3;
}
.nb-minicart__child-thumb {
  width: 36px; height: 48px;
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-product, #f0f0f0);
}
.nb-minicart__child-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-minicart__child-name { font-weight: 400; color: var(--fg, #1d1d1b); }
.nb-minicart__child-attr { white-space: nowrap; }

/* ═══ Live search ═══ */
.nb-search__grid.is-loading { opacity: 0.4; pointer-events: none; transition: opacity 150ms; }
.nb-search__empty {
  padding: var(--space-5, 24px) 0;
  text-align: center; color: var(--fg-muted, #939597);
  font-size: 14px;
}

/* ═══ PDP — Notify me button + OOS info ═══ */
.nb-btn--dark {
  background: var(--nb-black); color: var(--nb-white);
  border-color: var(--nb-black);
}
.nb-btn--dark:hover { background: var(--nb-antracit); border-color: var(--nb-antracit); }
.nb-sizes__oos-info {
  font-size: 12px; color: var(--fg-muted, #939597);
  margin-top: 8px; line-height: 1.4;
}

/* ═══ Set stepper (product bundle) — from design ═══ */
.pdp-buy__flags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pdp-buy__flag--sale {
  background: var(--nb-red, #ee302d);
  color: #fff;
  border-color: var(--nb-red);
}
.pdp-buy__price--sale del {
  text-decoration: line-through;
}
.pdp-buy__price--sale del .woocommerce-Price-amount {
  color: var(--fg-muted, #939597);
  font-weight: var(--w-regular, 400);
  font-size: 14px;
}
.pdp-buy__price--sale ins {
  text-decoration: none;
}
.pdp-buy__price--sale ins .woocommerce-Price-amount {
  color: var(--nb-red, #ee302d);
  font-weight: var(--w-bold, 700);
  font-size: 18px;
}

.pdp-set__sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-secondary);
  max-width: 46ch;
  text-wrap: pretty;
}
.pdp-set__price {
  flex-wrap: wrap;
}
/* ── Bundle step overrides (base rules in product-set.css) ── */
.set-step.nb-bundle-done .set-step__chosen {
  color: var(--state-success);
  font-weight: var(--w-medium);
}
.set-step.nb-bundle-done .set-step__pick {
  border-color: var(--border);
  color: var(--fg-secondary);
}
.set-step.is-open .set-step__pick {
  background: var(--nb-off-white);
}
.set-step__toggle:hover .set-step__pick {
  background: var(--nb-black);
  color: var(--nb-white);
}
.set-sizes .nb-sizes__head {
  margin-bottom: 10px;
}
.set-sizes .nb-sizes__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.set-sizes .nb-size__box,
.set-sizes [data-nb-size-btn] {
  min-width: 54px; display: inline-flex; align-items: center; justify-content: center;
  height: var(--tap-min, 44px); padding: 0 12px; box-sizing: border-box;
  border: 1px solid var(--border); cursor: pointer;
  font-family: var(--font); font-weight: var(--w-medium); font-size: 13px;
  background: var(--nb-white); color: var(--nb-black);
  transition: border-color 150ms, background 150ms, color 150ms;
}
.set-sizes [data-nb-size-btn]:hover { border-color: var(--nb-black); }
.set-sizes [data-nb-size-btn].is-active { background: var(--nb-black); color: var(--nb-white); border-color: var(--nb-black); }
.set-sizes [data-nb-size-btn].nb-size--out {
  color: var(--fg-muted); cursor: not-allowed; background: var(--nb-off-white);
  position: relative; overflow: hidden;
}
.set-sizes [data-nb-size-btn].nb-size--out::after {
  content: ''; position: absolute; left: -10%; right: -10%; top: 50%;
  height: 1px; background: var(--nb-grey-50, #939597); transform: rotate(-18deg);
}
.set-sizes .nb-sizes__note {
  margin-top: 10px;
}
.set-sizes .nb-sizes__note[data-set-error] {
  display: none;
}
.set-step.is-invalid .set-sizes .nb-sizes__note[data-set-error] {
  display: block;
}
.pdp-set__summary {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pdp-set__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-set__progress-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
}
.pdp-set__progress-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-secondary);
  text-transform: uppercase;
}
.pdp-set__progress-label strong {
  color: var(--nb-black);
}
.pdp-set__progress-hint {
  font-size: 12px;
  color: var(--nb-red);
}
.pdp-set__progress-track {
  height: 3px;
  background: var(--nb-grey-15);
  position: relative;
  overflow: hidden;
}
.pdp-set__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--nb-black);
  transition: width var(--dur) var(--ease);
}
.pdp-set__summary .pdp-buy__actions {
  margin-top: 2px;
}
.pdp-set__partial {
  width: 100%;
}
.pdp-set__summary .pdp-buy__wish {
  align-self: center;
}
[data-set-add][disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.ctl-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: var(--sw, #ccc);
  transition:
    border-color 150ms,
    transform 150ms;
}
.ctl-swatch:hover {
  transform: scale(1.1);
}
.ctl-swatch.is-active {
  border-color: var(--nb-black);
}
/* ═══ YITH Bundle — accordion step design ═══ */
.pdp-buy__form--bundle { margin-top: var(--space-4); }
.pdp-buy__form--bundle .yith-wcpb-bundle-form { display: flex; flex-direction: column; }

/* Items wrapper */
.pdp-buy__form--bundle .yith-wcpb-product-bundled-items {
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  margin: 0 !important; padding: 0 !important;
  border-top: 1px solid var(--border) !important;
}

/* Each bundled item — accordion step */
.pdp-buy__form--bundle .set-step {
  display: block !important;
  padding: 0 !important; margin: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important; border-radius: 0 !important;
  background: transparent !important;
}

/* Variations table hidden (custom buttons used) */
.pdp-buy__form--bundle table.variations { display: none !important; }

/* Hide variation price/stock inside item */
.pdp-buy__form--bundle .single_variation_wrap { display: none !important; }
.pdp-buy__form--bundle .yith-wcpb-product-bundled-item-data__quantity { display: none !important; }
.pdp-buy__form--bundle > .cart > .quantity { display: none !important; }

/* Hide default YITH add to cart button */
.pdp-buy__form--bundle .yith-wcpb-add-to-cart-button,
.pdp-buy__form--bundle > .cart > button[type="submit"] {
  display: none !important;
}

/* Optional item checkbox */
.nb-bundle-optional__label {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: var(--fg-secondary, #636466);
  user-select: none;
}
.nb-bundle-optional__check { accent-color: var(--nb-black); width: 16px; height: 16px; margin: 0; }
.nb-bundle-optional__check:disabled { cursor: not-allowed; }
.nb-bundle-optional__label:has(:disabled) { color: var(--fg-muted, #939597); cursor: not-allowed; }

/* OOS optional item */
.nb-bundle-oos { opacity: 0.45; }
.nb-bundle-oos .set-step__panel { display: none !important; }

/* Optional items — hide size grid until checkbox is checked */
.set-step[data-optional]:not(.nb-bundle-oos) .yith-wcpb-product-bundled-item-data__variations_form {
  display: none !important;
}
.set-step[data-optional].nb-optional-active .yith-wcpb-product-bundled-item-data__variations_form {
  display: block !important;
}

/* Summary buttons */
.pdp-set__summary .nb-btn--primary { border-radius: var(--radius-pill, 999px); width: 100%; }
.pdp-set__summary .nb-btn--ghost { border-radius: var(--radius-pill, 999px); width: 100%; }

@media (max-width: 768px) {
  .set-step__toggle { grid-template-columns: 40px 1fr auto; gap: 10px; }
  .set-step__thumb { width: 40px; }
  .set-step__pick { grid-column: 3 / 4; justify-self: end; padding: 7px 12px; }
  .set-step__inner { padding-left: 6px; }
}

.nb-rec {
  flex: 0 0 auto;
  width: 110px;
}
.nb-rec__thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-product, #f0f0f0);
}
.nb-rec__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nb-rec__add {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nb-black, #0e0f11);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: background 150ms;
}
.nb-rec__add:hover {
  background: var(--nb-black);
  color: var(--nb-white);
}
.nb-rec__add.is-done {
  background: var(--nb-black);
  color: var(--nb-white);
}
.nb-rec__name {
  font-size: 11px;
  margin: 6px 0 2px;
  line-height: 1.3;
}
.nb-rec__price {
  font-size: 11px;
  font-weight: var(--w-bold, 700);
}

/* Hide price suffix (incl. VAT) — B2BKing adds it inline */
.woocommerce-price-suffix {
  display: none !important;
}

/* PDP video in gallery */
.pdp-gallery__cell--video {
  background: #000;
}
.pdp-gallery__cell--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Size chart modal */
.nb-size-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 15, 17, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.nb-size-chart-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nb-size-chart-modal img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.nb-size-chart-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Mega menu promo links — inherit design styles */
.nb-mega__promo a {
  font-family: var(--font, sans-serif);
  font-weight: var(--w-medium, 500);
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--nb-black, #0e0f11);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}
.nb-mega__promo a:hover {
  opacity: 0.5;
  transform: translateX(3px);
}

/* Mega menu links list */
.nb-mega__links a {
  color: var(--nb-black, #0e0f11);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 150ms ease;
}
.nb-mega__links a:hover {
  opacity: 0.6;
}

/* Mega menu explore links */
.nb-mega__explore a {
  color: var(--nb-black, #0e0f11);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 150ms ease;
}
.nb-mega__explore a:hover {
  opacity: 0.6;
}

/* ═══ Pages ═══ */
body:not(.home):not(.pdp) main {
  padding-top: var(--space-4, 16px);
}
.pdp main,
.pdp .pdp-main {
  padding-top: 0;
}

.nb-page {
  padding: var(--space-9, 96px) 0;
}
.nb-page__inner {
  max-width: var(--container, 1440px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 32px);
}

/* ═══ Sign Grid Block (nb-sign-grid) ═══ */
.nb-sign-grid {
  display: grid;
  gap: var(--space-3, 12px);
}
.nb-sign-grid--3col { grid-template-columns: repeat(3, 1fr); }
.nb-sign-grid--4col { grid-template-columns: repeat(4, 1fr); }
.nb-sign-grid--5col { grid-template-columns: repeat(5, 1fr); }
.nb-sign-grid--6col { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1023px) {
  .nb-sign-grid--5col,
  .nb-sign-grid--6col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .nb-sign-grid--3col,
  .nb-sign-grid--4col,
  .nb-sign-grid--5col,
  .nb-sign-grid--6col { grid-template-columns: repeat(2, 1fr); }
}

.nb-sign {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--nb-white, #fff);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.nb-sign__media {
  position: absolute;
  inset: 0;
}
.nb-sign__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease, cubic-bezier(0.25, 0, 0, 1));
}
.nb-sign:hover .nb-sign__img {
  transform: scale(1.04);
}
.nb-sign__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,15,17,.72) 0%, rgba(14,15,17,.28) 45%, transparent 80%);
  pointer-events: none;
}
.nb-sign__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5, 24px);
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}
.nb-sign__title {
  font-family: var(--font, sans-serif);
  font-weight: var(--w-heavy, 800);
  font-size: clamp(13px, 1.3vw, 20px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}
.nb-sign__desc {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}
.nb-sign__cta {
  font-size: 10px;
  font-weight: var(--w-medium, 500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  opacity: .85;
  transition: opacity var(--dur, 200ms) var(--ease);
}
.nb-sign__cta .arr {
  transition: transform var(--dur, 200ms) var(--ease);
}
.nb-sign:hover .nb-sign__cta {
  opacity: 1;
}
.nb-sign:hover .nb-sign__cta .arr {
  transform: translateX(4px);
}
@media (max-width: 680px) {
  .nb-sign__body { padding: var(--space-4, 16px); }
  .nb-sign__desc { display: none; }
}

/* Shop archive */
.nb-shop {
  padding: var(--space-7, 48px) 0;
}
.nb-shop__inner {
  max-width: var(--container, 1440px);
  margin: 0 auto;
  padding: 0 var(--container-pad, 32px);
}
.nb-shop__title {
  font-family: var(--font, sans-serif);
  font-weight: var(--w-heavy, 800);
  font-size: clamp(24px, 3vw, 36px);
  text-transform: uppercase;
  letter-spacing: var(--tracking-headline, -0.025em);
  margin: 0 0 var(--space-6, 32px);
}
