/* naradovna.sk – úpravy vzhľadu, dávka 1 (14. 11. 2026). Zdroj: review e-shopu (WCAG 2.2, Baymard, NN/g). */
:root { --nd-green: #007a01; --nd-green-dark: #005f01; --nd-red: #d0150a; }

/* 1) Nákupné tlačidlá: jedna farba všade (zoznam, detail, košík, objednávka), biely text s kontrastom 5,5 : 1 */
.btn-conversion, .btn-cart, .add-to-cart-button {
  background-color: var(--nd-green) !important; border-color: var(--nd-green) !important; color: #fff !important;
}
.btn-conversion:hover, .btn-conversion:focus, .btn-cart:hover, .btn-cart:focus,
.add-to-cart-button:hover, .add-to-cart-button:focus {
  background-color: var(--nd-green-dark) !important; border-color: var(--nd-green-dark) !important;
}

/* 2) Čitateľnejšie farby textu (kontrast ≥ 4,5 : 1) */
.availability-label[style*="009901"], span[style*="009901"], .delivery-time [style*="009901"] { color: var(--nd-green) !important; }
.breadcrumbs a, .filters-wrapper h4 span, .box-categories .active > a, .shp-tab.active a { color: var(--nd-red) !important; }
.flag.flag-tip { color: #1b2200 !important; }
.search .btn-default, .search-form .btn, button.btn-search { background-color: var(--nd-red) !important; border-color: var(--nd-red) !important; }

/* 3) Popis produktu: zarovnaný vľavo (bez veľkých medzier medzi slovami), riadok max. ~75 znakov */
#description .basic-description, #description .basic-description p, #description .basic-description li { text-align: left !important; }
#description .basic-description p, #description .basic-description ul, #description .basic-description ol { max-width: 75ch; }

/* 4) Detail produktu na počítači: bez bočného stromu kategórií – produkt na celú šírku */
@media (min-width: 992px) {
  .type-detail .sidebar.sidebar-left { display: none !important; }
  .type-detail .content-wrapper > .content.narrow { width: 100% !important; max-width: none !important; float: none !important; margin-left: 0 !important; }
  /* kategórie dostupné cez tlačidlo pri drobčekoch */
  .type-detail .breadcrumbs-wrapper { display: flex; align-items: center; gap: 16px; position: relative;
    /* lišta je cez celú šírku – tlačidlo a drobčeky zarovnať k obsahu (široký kontajner šablóny 1394 px) */
    padding-left: max(16px, calc((100% - 1394px) / 2)) !important; padding-right: max(16px, calc((100% - 1394px) / 2)) !important; }
  .type-detail .breadcrumbs-wrapper .breadcrumbs { margin: 0 !important; width: auto !important; max-width: none !important; flex: 1 1 auto; min-width: 0; }
  .nd-cat { position: relative; flex: 0 0 auto; }
  .nd-cat-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 0; border-radius: 4px; background: #3c3c44; color: #fff;
    font: inherit; font-weight: 700; cursor: pointer; }
  .nd-cat-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .nd-cat-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
  .nd-cat-btn:hover { background: #24242e; }
  .nd-cat-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 340px; max-height: 70vh; overflow: auto;
    background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
  .nd-cat-panel .box-categories { margin: 0 !important; }
}
.nd-cat-panel[hidden] { display: none !important; }

/* 5) Mobil: na detaile skôr cena a „Pridať do košíka“, väčší text popisu */
@media (max-width: 767px) {
  .type-detail .h1, .type-detail h1 { font-size: 22px !important; line-height: 1.25 !important; }
  /* drobčeky: len o úroveň vyššie (Merkur pred odkaz sám dáva šípku späť) */
  .type-detail .breadcrumbs > span { display: none !important; }
  .type-detail .breadcrumbs > span:nth-last-child(2) { display: inline-block !important; }
  .type-detail .breadcrumbs-wrapper { margin-bottom: 8px !important; }
  /* menšie medzery medzi fotkou, dostupnosťou a cenou */
  .type-detail .p-detail-info { margin-bottom: 8px !important; }
  .type-detail .p-image { margin-bottom: 10px !important; }
  .type-detail .p-image-wrapper { margin-bottom: 12px !important; }
  .type-detail .p-info-wrapper .buy-box { margin-top: 8px !important; padding-top: 12px !important; }
  #description .basic-description, #description .basic-description p, #description .basic-description li { font-size: 16px !important; line-height: 1.55 !important; }
  /* karty produktov: názov na 3 riadky, aby bolo vidieť typ a výkon */
  .products .p .name { display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 3 !important;
    height: 60px !important; max-height: 60px !important; overflow: hidden !important; }
}

/* 6) Karty produktov: interný kód dodávateľa (MC_…, PC_…) zákazníkovi nič nehovorí */
.products .p .p-code { display: none !important; }

/* 7) Prístupnosť: viditeľný fokus, „Prejsť na obsah“, väčšie bodky sliderov */
.query-input:focus-visible, .search input:focus-visible, a.cart-count:focus-visible, .btn:focus-visible {
  outline: 2px solid #1f6fd1 !important; outline-offset: 2px;
}
.skip-link.sr-only:focus, .skip-link.sr-only:focus-visible {
  position: fixed !important; top: 8px; left: 8px; width: auto !important; height: auto !important; clip: auto !important; margin: 0;
  padding: 10px 14px; background: #fff; color: #111; z-index: 100000; outline: 2px solid #1f6fd1;
}
.slick-dots li button { width: 24px !important; height: 24px !important; }

/* 8) Objednávka: vyplnené polia tmavým textom (dnes sivé ako prázdne), väčšie „×“ v košíku */
.ordering-process input.form-control, .ordering-process select.form-control, .ordering-process textarea.form-control { color: #24242e !important; }
.ordering-process select.form-control:disabled { color: #555 !important; }
.ordering-process form[action*="deleteCartItem"] button { min-width: 32px; min-height: 32px; }
.nd-hint[hidden] { display: none !important; }
.nd-hint { display: block; margin-top: 4px; font-size: 13px; color: #555; }
.nd-hint button { background: none; border: 0; padding: 0; color: var(--nd-red); text-decoration: underline; cursor: pointer; font: inherit; }

/* 9) Pätička: nastavenia cookies a prevádzkovateľ */
.nd-footer-extra { display: block; margin-top: 10px; font-size: 13px; opacity: .85; }
.nd-footer-extra a { color: inherit; text-decoration: underline; }

/* 10) Stránka 404: rýchle odkazy */
.nd-404 { margin: 24px 0; display: grid; gap: 12px; }
.nd-404 ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.nd-404 li a { display: inline-block; padding: 8px 14px; border: 1px solid #ccc; border-radius: 30px; color: #24242e; }

@media (prefers-reduced-motion: reduce) { .slick-track { transition: none !important; } }

/* 11) Mobil: lepiaca lišta „cena + Do košíka“ na detaile produktu */
.nd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.nd-sticky[hidden] { display: none !important; }
.nd-sticky-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nd-sticky-price { font-weight: 700; font-size: 20px; color: #24242e; white-space: nowrap; }
.nd-sticky-avail { font-size: 12.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-sticky-btn { flex: 0 0 auto; display: inline-flex !important; align-items: center; justify-content: center; height: auto !important; min-height: 48px; line-height: 1.2 !important; margin: 0 !important; padding: 12px 26px !important; border-radius: 30px; font-weight: 700; }
body.nd-has-sticky { padding-bottom: 72px; }
@media (min-width: 768px) { .nd-sticky { display: none !important; } body.nd-has-sticky { padding-bottom: 0; } }
