/* Produkty - ProBlock | Zámková dlažba (zoznam + podstranka produktu) */

.products-page {
    min-height: 60vh;
    padding: 2rem 1rem;
    background: #fff;
}

/* ----- Zoznam (products-new.html) ----- */
.products-section {
    max-width: 1200px;
    margin: 0 auto;
}

.products-section-inner {
    padding: 0 0.5rem;
}

.products-section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.products-section-lead {
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Záložky Naše produkty / Produkty partnerov */
.dlazba-category-tabs {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.dlazba-category-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dlazba-category-tabs-nav li {
    margin: 0;
}

.dlazba-category-tab {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.dlazba-category-tab:hover {
    color: #1a1a1a;
}

.dlazba-category-tab.active {
    color: #1a1a1a;
    border-bottom-color: #2563eb;
}

.dlazba-category-panel {
    display: none;
    padding: 0;
}

.dlazba-category-panel.active {
    display: block;
}

.dlazba-panel-lead {
    margin-bottom: 1.5rem;
}

.partners-products-wrapper {
    margin-top: 0.5rem;
}

.partner-block {
    margin-bottom: 2.5rem;
}

.partner-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.partners-placeholder {
    color: #64748b;
    font-style: italic;
    padding: 2rem 0;
}

/* Mriežka kariet – responzívna (1–2–3–4–5 stĺpcov) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.75rem;
    }
}

.product-card-wrapper {
    margin: 0;
}

.product-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #1a1a1a;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.product-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.product-card-image-wrap {
    display: block;
    aspect-ratio: 1;
    background: #f1f5f9;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-name {
    display: block;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Štítok Novinka */
.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #eab308;
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    z-index: 1;
}

/* ----- Podstranka produktu (product.html) ----- */
.product-detail-page {
    padding: 2rem 1rem 4rem;
}

.product-detail {
    max-width: 900px;
    margin: 0 auto;
}

.product-detail-back {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-detail-back:hover {
    text-decoration: underline;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 640px) {
    .product-detail-content {
        grid-template-columns: 360px 1fr;
    }
}

.product-detail-image-wrap {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.product-detail-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-detail-body {
    min-width: 0;
}

.product-detail-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-detail-cta {
    margin: 0;
}

.btn-product {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.btn-product:first-child {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.btn-product:first-child:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-product-secondary {
    background: #f1f5f9;
    color: #1a1a1a;
}

.btn-product-secondary:hover {
    background: #e2e8f0;
}

.product-not-found {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1rem;
}

.product-not-found h1 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.product-back-link {
    color: #2563eb;
    text-decoration: none;
}

.product-back-link:hover {
    text-decoration: underline;
}

/* ----- Ďalšie typy zámkových dlažieb (dole na podstranke produktu) ----- */
.other-dlazby {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem 0.5rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.other-dlazby-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

.other-dlazby-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 500px) {
    .other-dlazby-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 700px) {
    .other-dlazby-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1000px) {
    .other-dlazby-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

.other-dlazby-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #1a1a1a;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.other-dlazby-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.other-dlazby-card-image-wrap {
    display: block;
    aspect-ratio: 1;
    background: #f1f5f9;
    overflow: hidden;
}

.other-dlazby-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.other-dlazby-card-name {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== Responzívny dizajn – mobilné zariadenia (zámkové dlažby + betónové tvárnice) ========== */
@media (max-width: 768px) {
    .products-page {
        padding: 1.25rem 0.75rem 2.5rem;
    }

    .products-section-inner {
        padding: 0 0.25rem;
    }

    .products-section-title {
        font-size: clamp(1.4rem, 5vw, 1.75rem);
        margin-bottom: 0.35rem;
    }

    .products-section-lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .dlazba-category-tabs {
        margin-bottom: 1rem;
    }

    .dlazba-category-tab {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }

    .products-grid {
        gap: 1rem;
    }

    .product-card-name {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .partner-block-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .other-dlazby {
        margin-top: 2rem;
        padding: 1.5rem 0.25rem 1rem;
    }

    .other-dlazby-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .other-dlazby-grid {
        gap: 0.875rem;
    }

    .other-dlazby-card-name {
        padding: 0.6rem 0.875rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-page {
        padding: 1rem 0.5rem 2rem;
    }

    .products-section-title {
        font-size: 1.35rem;
    }

    .dlazba-category-tabs-nav {
        gap: 0.15rem;
    }

    .dlazba-category-tab {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .product-card-image-wrap {
        aspect-ratio: 4/3;
    }

    .product-card-name {
        font-size: 0.875rem;
    }

    .product-card-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }

    .other-dlazby-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
