/* Textilový outlet — len pre /sk/outlet. Tokeny a tlačidlá sú z bjk.css. */

/* .o-form a .o-fs majú display:grid, ktorý by inak prebil atribút hidden */
.o-form [hidden], .o-form[hidden], #o-print-fs[hidden] { display: none !important; }

.o-top .bjk-section__head { margin-bottom: 32px; }
.o-back { margin: 0 0 20px; font-weight: 600; }

/* ---------------------------------------------------------------- mriežka */
.o-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ---------------------------------------------------------------- karta */
.o-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.o-card__media { background: var(--background-soft); }
.o-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.o-card__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; line-height: 1.3; margin: 0; }
.o-card__title a { color: var(--text-primary); }
.o-card__title a:hover { color: var(--bjk-purple); }
.o-card__anot { margin: 0; font-size: 15px; color: var(--text-muted); }
.o-card__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: auto; padding-top: 8px; }
.o-more { font-weight: 700; font-size: 15px; }

.o-card.is-sold .o-card__media img { filter: grayscale(.85); opacity: .7; }

/* detail: leták vľavo, údaje vpravo */
.o-card--big { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.o-card--big .o-card__body { padding: 36px 40px; gap: 16px; }
.o-card--big .o-card__title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); }
@media (max-width: 860px) {
    .o-card--big { grid-template-columns: 1fr; }
    .o-card--big .o-card__body { padding: 24px; }
}

/* ---------------------------------------------------------------- leták a lupa */
.o-zoom { position: relative; display: block; cursor: zoom-in; }
.o-zoom img { display: block; width: 100%; height: auto; }
.o-zoom__hint {
    position: absolute; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, .72); color: #fff;
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
}
.o-zoom__hint svg { width: 16px; height: 16px; }
.o-zoom:focus-visible { outline: 3px solid var(--bjk-purple); outline-offset: -3px; }

/* ---------------------------------------------------------------- stav */
.o-status {
    align-self: flex-start;
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.o-status--check { background: var(--bjk-light-purple); color: var(--bjk-purple-dark); }
.o-status--sold  { background: #3a3a3a; color: #fff; }

/* ---------------------------------------------------------------- ceny */
.o-prices { display: grid; gap: 4px; }
.o-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 16px; }
.o-price span { color: var(--text-primary); }
.o-price--main strong { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; color: var(--bjk-purple); }
.o-price--old { font-size: 14px; color: var(--text-muted); }
.o-price--old span { color: var(--text-muted); }

/* ---------------------------------------------------------------- farby, veľkosti */
.o-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 15px; }
.o-specs dt { font-weight: 700; }
.o-specs dd { margin: 0; }
.o-colorlist { margin: 0; padding: 0; list-style: none; }
.o-notes p { margin: 0 0 6px; font-size: 15px; }

/* ---------------------------------------------------------------- info boxy */
.o-info { margin: 0 0 12px; padding-left: 1.2em; }
.o-info li { margin-bottom: 8px; }
.o-soldnote { margin-bottom: 24px; }

/* ---------------------------------------------------------------- formulár */
#dopyt:focus { outline: none; }
.o-form { display: grid; gap: 26px; }
.o-fs { margin: 0; padding: 24px; border: 1px solid #e4d6e7; border-radius: var(--radius); background: #fff; display: grid; gap: 16px; }
.o-fs legend { padding: 0 8px; font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; }
.o-field { display: grid; gap: 6px; }
.o-field label { font-weight: 600; font-size: 15px; }
.o-opt { font-weight: 400; color: var(--text-muted); }
.o-help { margin: 0; font-size: 14px; color: var(--text-muted); }
.o-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.o-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.o-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--bjk-purple); flex: none; }
.o-form select.bjk-input { appearance: auto; }
.o-form select:disabled { background: #f3f3f3; color: var(--text-muted); }
.o-form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 2px rgba(179, 38, 30, .15); }
.o-form :focus-visible { outline: 3px solid var(--bjk-purple); outline-offset: 2px; }

.o-row { padding: 16px; border-radius: var(--radius-sm); background: var(--background-soft); }
.o-row + .o-row { margin-top: 14px; }
.o-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.o-row__title { margin: 0; font-weight: 800; font-family: var(--font-heading); font-size: 15px; }
.o-row__rm { background: none; border: 0; padding: 4px 6px; color: #9b2226; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.o-row__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.o-field--slug, .o-field--color, .o-field--print { grid-column: span 3; }
.o-field--size { grid-column: span 2; }
.o-field--qty  { grid-column: span 1; }
.o-row__price { margin: 8px 0 0; font-size: 14px; text-align: right; min-height: 1.4em; }
.o-total { margin: 0; text-align: right; font-size: 17px; }
.o-total strong { font-family: var(--font-heading); font-size: 1.3rem; color: var(--bjk-purple); }
.o-after { margin: -10px 0 0; text-align: center; font-style: italic; }
.o-done p { margin: 6px 0 0; }
.o-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#o-errors ul { margin: 6px 0 0; padding-left: 1.2em; }
#o-errors a { color: inherit; text-decoration: underline; }

@media (max-width: 860px) {
    .o-row__grid { grid-template-columns: 1fr 1fr; }
    .o-field--color, .o-field--size, .o-field--qty { grid-column: span 1; }
    .o-field--slug, .o-field--print { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .o-grid2 { grid-template-columns: 1fr; }
    .o-fs { padding: 18px 14px; }
    .o-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- lightbox */
.o-dialog { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 96vh; overflow: visible; }
.o-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.o-dialog img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.o-dialog__close {
    position: absolute; top: -14px; right: -14px;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: #fff; color: #000;
    font-size: 28px; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow);
}
.o-dialog__close:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }
@media (max-width: 560px) { .o-dialog__close { top: 6px; right: 6px; } }

@media (forced-colors: active) {
    .o-status, .o-fs, .o-card { border: 1px solid CanvasText; }
}

/* odkazy v bežnom texte musia byť rozlíšiteľné aj bez farby (WCAG 1.4.1) */
.o-help a, .o-info a, .o-top p a:not(.bjk-btn), #dopyt + section p a, .o-soldnote a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- podklady a priebeh */
.o-filelist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.o-filelist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: var(--background-soft); border-radius: var(--radius-sm); font-size: 15px; overflow-wrap: anywhere; }
.o-filelist .o-filelist__sum { background: none; padding: 0 2px; color: var(--text-muted); font-size: 14px; }
.o-progress { display: grid; gap: 6px; }
.o-progress__track { height: 12px; background: #eadcec; border-radius: 999px; overflow: hidden; }
.o-progress__bar { height: 100%; width: 0; background: var(--bjk-purple); transition: width .2s linear; }
.o-again { margin-top: 12px; }

/* náhľad letáku v položke dopytu + prázdny dopyt */
.o-row__head { gap: 12px; }
.o-row__thumb { flex: none; display: block; line-height: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.o-row__thumb img { width: 56px; height: 75px; object-fit: cover; background: #fff; }
.o-row__thumb[hidden] { display: none; }
.o-row__thumb:focus-visible { outline: 3px solid var(--bjk-purple); outline-offset: 2px; }
.o-row__title { flex: 1; }
.o-empty { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 10px 0 20px; }
.o-empty[hidden] { display: none; }

/* ---------------------------------------------------------------- 12. 11.: širší dopyt, info karty */
.o-wrap { max-width: 1240px; }
.o-form-head { margin-bottom: 40px; }

/* formulár: na širokej obrazovke vľavo položky, vpravo kontakt a odoslanie */
.o-form__main, .o-form__side { display: grid; gap: 26px; align-content: start; min-width: 0; }
@media (min-width: 1080px) {
    .o-form { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; gap: 28px; }
    .o-form__full { grid-column: 1 / -1; }
    .o-grid2--side { grid-template-columns: 1fr; gap: 12px; }
}
.o-row { border: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.o-row.is-new { animation: o-flash 1.8s var(--ease); }
@keyframes o-flash {
    0%, 40% { border-color: var(--bjk-purple); box-shadow: 0 0 0 4px rgba(129, 41, 144, .18); }
    100%    { border-color: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .o-row.is-new { animation: none; border-color: var(--bjk-purple); } }

/* dôležité informácie a doručenie: karty s ikonou */
.o-facts__h { text-align: center; margin: 0 0 28px; }
.o-facts {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.o-facts--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.o-fact {
    display: grid; grid-template-columns: 44px 1fr; gap: 12px 14px; align-content: start;
    padding: 20px 20px 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.o-fact__icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--bjk-light-purple); color: var(--bjk-purple);
}
.o-fact__icon svg { width: 22px; height: 22px; }
.o-fact__t { font-family: var(--font-heading); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; align-self: center; }
.o-fact__d { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.o-fact__d a { text-decoration: underline; text-underline-offset: 2px; }
.bjk-section--soft .o-fact { border-color: #ececec; }
@media (forced-colors: active) { .o-fact { border: 1px solid CanvasText; } }

/* súhlas s novinkami */
.o-check--consent { font-size: 15px; color: var(--text-secondary); }

/* prílohy ponuky (veľkostná tabuľka v PDF) */
.o-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.o-docs a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.o-docs svg { width: 20px; height: 20px; flex: none; }
.o-docs small { font-weight: 400; color: var(--text-muted); font-size: 13px; }

/* náhľad prílohy (veľkostná tabuľka) — klik zväčší v lightboxe ako leták */
.o-pics { display: flex; flex-wrap: wrap; gap: 14px; }
.o-pic { display: flex; align-items: center; gap: 14px; margin: 0; }
.o-pic .o-zoom { width: 132px; flex: none; border: 1px solid var(--border-color, #e5e1ea); border-radius: 10px; overflow: hidden; background: #fff; }
.o-pic .o-zoom__hint { font-size: 12px; padding: 4px 8px; right: 6px; bottom: 6px; }
.o-pic figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.o-pic figcaption a { font-size: 14px; font-weight: 700; }
.o-card--big .o-pic .o-zoom { width: 210px; }

/* ================================================================ cenník: detail produktu
   /sk/cennik/{slug} (pages/sk/cennik_detail.php) používa kartu outletu, toto sú doplnky. */
.c-card .o-card__media { display: flex; align-items: flex-start; }
.c-card .o-card__media .o-zoom { width: 100%; }
.c-features { margin: 0; padding-left: 1.2em; font-size: 15px; }
.c-features li { margin-bottom: 4px; }

.c-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px;
}
.c-tile a {
    display: flex; flex-direction: column; gap: 4px; height: 100%;
    padding: 0 0 14px; background: #fff;
    border: 1px solid #ececec; border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; color: var(--text-primary);
    transition: transform .2s ease;
}
.c-tile a:hover, .c-tile a:focus-visible { transform: translateY(-3px); text-decoration: none; }
.c-tile a:focus-visible { outline: 3px solid var(--bjk-purple); outline-offset: 2px; }
.c-tile__img { display: block; aspect-ratio: 3 / 4; background: var(--background-soft); margin-bottom: 8px; }
.c-tile__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.c-tile strong, .c-tile__anot, .c-tile__price { padding: 0 14px; }
.c-tile strong { font-family: var(--font-heading); font-size: 15px; line-height: 1.3; }
.c-tile__anot { font-size: 13px; color: var(--text-muted); }
.c-tile__price { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--bjk-purple); }
.c-all { margin: 24px 0 0; text-align: center; }

/* formulár dopytu: riadok produktu z cenníka */
.o-row__note { margin: 0; font-size: 14px; color: var(--text-muted); }
