/* ===================================================================
   nozi — redesign 2026: karta produktu
   Projekt: redesign/wiecej/Nozi - Stojak na winyle.dc.html
   Wymaga tokenow i komponentow z /css/redesign.css (:root --rd-*,
   .rd-container, .rd-heading, .section-head, .product-card, .faq__list).
   =================================================================== */

.rd.product-page { background: var(--rd-bg); }

/* ---------------- Okruszki ---------------- */
.rd .product-breadcrumbs {
    padding-top: 24px;
    font-size: 13.5px;
    color: var(--rd-muted-2);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.rd .product-breadcrumbs a { color: var(--rd-muted-2); }
.rd .product-breadcrumbs a:hover { color: var(--rd-text); }
.rd .product-breadcrumbs .breadcrumb-separator { color: var(--rd-muted-2); }
.rd .product-breadcrumbs .header-home:last-child { color: var(--rd-text); font-weight: 500; }

/* ---------------- Siatka: galeria + panel ---------------- */
.rd .product-main {
    display: grid;
    grid-template-columns: 58fr 42fr;
    gap: 56px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: 88px;
}

/* ---------------- Galeria ---------------- */
.rd .product-gallery { display: flex; flex-direction: column; gap: 14px; }
.rd .product-gallery__main {
    background: #ffffff;
    border: 1px solid rgba(35, 35, 35, 0.07);
    border-radius: var(--rd-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.rd .product-gallery__main a { display: block; width: 100%; height: 100%; }
.rd .product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.rd .product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.rd .product-gallery__thumb {
    display: block;
    background: #ffffff;
    border: 2px solid rgba(35, 35, 35, 0.08);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}
.rd .product-gallery__thumb:hover { border-color: var(--rd-dark); }
.rd .product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Panel zakupu ---------------- */
.rd .product-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 110px;
}
.rd .product-panel__head { display: flex; flex-direction: column; gap: 10px; }
.rd .product-badge {
    align-self: flex-start;
    background: var(--rd-dark);
    color: var(--rd-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}
.rd .product-panel h1 { font-size: 38px; line-height: 1.15; }
.rd .product-codes { font-size: 13px; color: var(--rd-muted-2); }
.rd .product-codes span { color: var(--rd-muted); font-weight: 500; }

.rd .product-lead { font-size: 16px; line-height: 1.65; color: var(--rd-text-body); margin: 0; }

.rd .product-highlights ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    color: var(--rd-text-soft);
}
.rd .product-highlights li { position: relative; padding-left: 26px; line-height: 1.5; }
.rd .product-highlights li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--rd-accent);
    font-weight: 700;
}

/* wymiary produktu */
.rd .product-dimensions {
    padding: 16px 18px;
    border: 1px solid var(--rd-line);
    border-radius: 16px;
    background: var(--rd-bg-alt);
}
.rd .product-dimensions__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.rd .product-dimensions__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rd-text-soft);
}
.rd .product-dimensions__unit {
    font-size: 12px;
    color: var(--rd-muted-2);
}
.rd .product-dimensions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}
.rd .product-dimensions__item {
    min-width: 0;
    padding: 0 14px;
}
.rd .product-dimensions__item:first-child { padding-left: 0; }
.rd .product-dimensions__item:last-child { padding-right: 0; }
.rd .product-dimensions__item + .product-dimensions__item { border-left: 1px solid var(--rd-line); }
.rd .product-dimensions dt { font-size: 12px; line-height: 1.3; color: var(--rd-muted); }
.rd .product-dimensions dd {
    margin: 5px 0 0;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--rd-text);
}
.rd .product-dimensions dd small { margin-left: 4px; font: inherit; font-size: 12px; color: var(--rd-muted); }

/* buybox (Vue) */
.rd .product-panel__buybox { display: flex; flex-direction: column; gap: 18px; }

.rd .product-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rd .product-panel__price {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--rd-text);
}
.rd .product-panel__price-old {
    font-size: 17px;
    color: var(--rd-muted-2);
    text-decoration: line-through;
}
.rd .product-price-note { font-size: 14px; color: var(--rd-muted); }

/* opcje produktu */
.rd .product-option { display: flex; flex-direction: column; gap: 8px; }
.rd .product-option__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rd-muted);
}
.rd .product-option select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23232323' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    border: 1px solid rgba(35, 35, 35, 0.2);
    border-radius: 999px;
    padding: 12px 44px 12px 20px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 15px;
    color: var(--rd-text);
    cursor: pointer;
    outline: none;
}
.rd .product-option select:focus { border-color: var(--rd-accent); }

/* ilosc + przycisk */
.rd .product-buy { display: flex; gap: 12px; align-items: stretch; }
.rd .product-qty {
    display: flex;
    align-items: center;
    border: 1px solid rgba(35, 35, 35, 0.2);
    border-radius: 999px;
    overflow: hidden;
}
.rd .product-qty__minus,
.rd .product-qty__plus {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 18px;
    font-size: 18px;
    color: var(--rd-text);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.rd .product-qty__minus:hover,
.rd .product-qty__plus:hover { background: var(--rd-bg-alt); }
.rd .product-qty__value { font-size: 16px; font-weight: 600; min-width: 24px; text-align: center; }
.rd .product-buy__btn {
    flex: 1;
    background: var(--rd-dark);
    color: var(--rd-light);
    border: none;
    border-radius: 999px;
    padding: 16px 32px;
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.rd .product-buy__btn:hover { background: #000000; }

.rd .product-availability {
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}
.rd .product-availability + .product-buy { margin-top: 14px; }
.rd .product-availability > span {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 4px;
}
.rd .product-availability > span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: currentColor;
    align-self: center;
    flex: 0 0 auto;
}
.rd .product-availability--low { color: #8a5d12; }
.rd .product-unavailable { font-size: 15px; font-weight: 700; }

/* meta: czas wysylki / koszt / stan */
.rd .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13.5px;
    color: var(--rd-muted);
    border-top: 1px solid var(--rd-line);
    padding-top: 18px;
}
.rd .product-meta strong { font-weight: 600; color: var(--rd-text-soft); }
.rd .product-meta__dot { color: var(--rd-muted-2); }

.rd .product-phone { font-size: 13.5px; color: var(--rd-muted); }
.rd .product-phone a { font-weight: 700; color: var(--rd-text); white-space: nowrap; }

/* ---------------- Sekcje tresci ---------------- */
.rd .product-content { padding-bottom: 24px; }
.rd .product-content__inner { max-width: 800px; margin: 0 auto; }

.rd .product-section-title { font-size: 30px; line-height: 1.2; margin: 56px 0 22px; }

.rd .product-content .content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--rd-text-body);
}
.rd .product-content .content h3,
.rd .product-content .content h2 {
    font-family: "Poppins", sans-serif;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--rd-text);
    margin: 1.8em 0 0.6em;
    text-transform: none;
}
.rd .product-content .content > h3:first-child,
.rd .product-content .content > h2:first-child { margin-top: 0; }
.rd .product-content .content p { margin: 0 0 1em; }
.rd .product-content .content img { max-width: 100%; height: auto; border-radius: var(--rd-radius); }
.rd .product-content .content ul { margin: 0 0 1em 1.2em; }
.rd .product-content .content li { margin-bottom: 0.4em; }

/* specyfikacja: tabela */
.rd .product-specs table,
.rd .product-specs table tr,
.rd .product-specs table thead,
.rd .product-specs table tbody { background: transparent; }
.rd .product-specs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rd .product-specs table td,
.rd .product-specs table th {
    border: 0;
    border-top: 1px solid var(--rd-line-strong);
    padding: 13px 10px;
    text-align: left;
    vertical-align: top;
}
.rd .product-specs table tr:last-child td,
.rd .product-specs table tr:last-child th { border-bottom: 1px solid var(--rd-line-strong); }
.rd .product-specs table td:first-child,
.rd .product-specs table th:first-child {
    font-weight: 600;
    color: var(--rd-text);
    width: 42%;
}

/* FAQ: style listy z redesign.css (.rd .faq__list); tu tylko odstep */
.rd .product-faq { margin-bottom: 8px; }

/* pliki do pobrania */
.rd .product-content .file-list { display: flex; flex-direction: column; margin: 0; }
.rd .product-content .file-list li { list-style: none; border-top: 1px solid var(--rd-line-strong); }
.rd .product-content .file-list li:last-child { border-bottom: 1px solid var(--rd-line-strong); }
.rd .product-content .file-list li a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rd-text);
}
.rd .product-content .file-list li a:hover { color: var(--rd-accent); }
.rd .product-content .file-list__extension { color: var(--rd-muted-2); font-weight: 400; }

/* ---------------- Polecamy rowniez ---------------- */
.rd .product-related {
    border-top: 1px solid var(--rd-line);
    padding-top: 88px;
    padding-bottom: 88px;
    margin-top: 48px;
}

/* ===================================================================
   Responsywność (breakpointy jak w redesign.css: 1080 / 900 / 640)
   =================================================================== */

@media (max-width: 1080px) {
    .rd .product-main { grid-template-columns: 1fr; gap: 32px; }
    .rd .product-panel { position: static; }
}

@media (max-width: 900px) {
    .rd .product-panel h1 { font-size: 32px; }
    .rd .product-main { padding-top: 24px; padding-bottom: 56px; }
    .rd .product-section-title { font-size: 26px; margin-top: 44px; }
    .rd .product-content .content h3,
    .rd .product-content .content h2 { font-size: 22px; }
    .rd .product-related { padding-top: 56px; padding-bottom: 56px; margin-top: 32px; }
}

@media (max-width: 640px) {
    .rd .product-gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .rd .product-buy { flex-direction: column; align-items: stretch; }
    .rd .product-qty { justify-content: center; }
    .rd .product-qty__minus,
    .rd .product-qty__plus { padding: 12px 24px; }
    .rd .product-buy__btn { text-align: center; }
    .rd .product-specs table td:first-child,
    .rd .product-specs table th:first-child { width: auto; }
    .rd .product-dimensions { padding: 14px; }
    .rd .product-dimensions__item { padding: 0 9px; }
    .rd .product-dimensions dt { font-size: 11px; }
    .rd .product-dimensions dd { font-size: 18px; }
}

/* ===================================================================
   Omnibus — najniższa cena z 30 dni przed obniżką (OMNIBUS-01)
   =================================================================== */

.rd .product-omnibus {
    font-size: 13px;
    line-height: 1.4;
    color: var(--rd-muted-2);
    margin-top: -6px;
}
