/**
 * assets/css/archive-product.css — Ogrodowy Raj Oferta
 * Styl archiwum / katalogu produktów (archive-or_produkt.php)
 * Czyste CSS — zero zależności od Tailwind, Bootstrap ani innych frameworków.
 */

/* ── Reset / box-sizing ───────────────────────────────────── */
.or-archive *,
.or-archive *::before,
.or-archive *::after {
    box-sizing: border-box;
}

.or-archive img {
    display: block;
    max-width: 100%;
}

.or-archive a {
    text-decoration: none;
    color: inherit;
}

/* ── Hero ─────────────────────────────────────────────────── */
.or-archive-hero {
    background: #2b5e2b;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.or-archive-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, .06), transparent 65%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.or-archive-hero-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

.or-archive-hero-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 14px;
}

.or-archive-hero-kicker::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, .35);
    border-radius: 2px;
}

.or-archive-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1.05;
    margin: 0 0 12px;
}

.or-archive-hero-title em {
    font-style: italic;
    color: rgba(255, 255, 255, .5);
}

.or-archive-hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, .6);
    max-width: 520px;
    line-height: 1.65;
    margin: 0;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.or-breadcrumb {
    background: #f0ebe1;
    border-bottom: 1px solid #ddd5c5;
    padding: 12px 0;
}

.or-breadcrumb-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #7a8c7e;
    font-weight: 600;
    flex-wrap: wrap;
}

.or-breadcrumb-inner a {
    color: #2b5e2b;
}

.or-breadcrumb-inner a:hover {
    opacity: .7;
}

.or-breadcrumb-sep {
    opacity: .4;
}

/* ── Layout ───────────────────────────────────────────────── */
.or-archive-wrap {
    background: #faf7f2;
    min-height: 100vh;
}

.or-archive-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 40px 48px 80px;
}

.or-archive-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.or-archive-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.or-filter-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0ebe1;
    overflow: hidden;
}

.or-filter-card-head {
    padding: 14px 20px;
    border-bottom: 1px solid #f0ebe1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #7a8c7e;
}

.or-filter-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.or-filter-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #3a4a3e;
    transition: background .15s, color .15s;
}

.or-filter-nav a:hover,
.or-filter-nav a.active {
    background: #eef6ec;
    color: #2b5e2b;
}

.or-filter-nav-count {
    font-size: 12px;
    font-weight: 700;
    color: #b8c8bc;
}

.or-filter-nav a.active .or-filter-nav-count {
    color: #2b5e2b;
}

.or-sidebar-cta {
    background: #2b5e2b;
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

.or-sidebar-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, .08), transparent 65%);
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.or-sidebar-cta-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.or-sidebar-cta-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.55;
    margin-bottom: 16px;
}

.or-sidebar-cta-btn {
    display: block;
    text-align: center;
    padding: 10px 20px;
    background: #fff;
    color: #2b5e2b;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: background .15s;
}

.or-sidebar-cta-btn:hover {
    background: #eef6ec;
}

/* ── Produkty — główna treść ──────────────────────────────── */
.or-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.or-products-count {
    font-size: 14px;
    color: #7a8c7e;
    font-weight: 600;
}

.or-products-count strong {
    color: #17201a;
}

/* ── Siatka produktów ─────────────────────────────────────── */
.or-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Karta produktu ───────────────────────────────────────── */
.or-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: box-shadow .3s, transform .3s, border-color .3s;
}

.or-product-card:hover {
    box-shadow: 0 24px 60px rgba(23, 32, 26, .13);
    transform: translateY(-6px);
    border-color: rgba(43, 94, 43, .1);
}

.or-product-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: #f0ebe1;
}

.or-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.or-product-card:hover .or-product-card-img img {
    transform: scale(1.05);
}

.or-product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #ddd5c5;
}

/* Dostępność badge na zdjęciu */
.or-avail-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.or-avail-badge.in-stock {
    background: rgba(255, 255, 255, .92);
    color: #2b5e2b;
}

.or-avail-badge.on-order {
    background: rgba(255, 255, 255, .92);
    color: #d4820a;
}

/* Hover overlay */
.or-product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 26, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

.or-product-card:hover .or-product-card-overlay {
    background: rgba(23, 32, 26, .38);
}

.or-product-card-overlay-label {
    background: #fff;
    color: #17201a;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s;
}

.or-product-card:hover .or-product-card-overlay-label {
    opacity: 1;
    transform: translateY(0);
}

/* Body karty */
.or-product-card-body {
    padding: 20px;
}

.or-product-card-cat {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #3d7c3a;
    margin-bottom: 6px;
}

.or-product-card-title {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: #17201a;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.or-product-card-title a {
    transition: color .15s;
}

.or-product-card-title a:hover {
    color: #2b5e2b;
}

.or-product-card-excerpt {
    font-size: 13px;
    color: #7a8c7e;
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.or-product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0ebe1;
}

.or-product-card-price {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #17201a;
    letter-spacing: -.02em;
    line-height: 1;
}

.or-product-card-price-empty {
    font-size: 13px;
    color: #7a8c7e;
    font-weight: 600;
}

.or-product-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2b5e2b;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    transition: background .2s, transform .2s;
}

.or-product-card-btn:hover {
    background: #d4820a;
    transform: scale(1.12) rotate(12deg);
}

/* ── Brak produktów ───────────────────────────────────────── */
.or-no-products {
    text-align: center;
    padding: 80px 20px;
    color: #7a8c7e;
}

.or-no-products-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.or-no-products-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #17201a;
    margin-bottom: 8px;
}

.or-no-products-desc {
    font-size: 15px;
    margin-bottom: 24px;
}

.or-no-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: #2b5e2b;
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s;
}

.or-no-products-btn:hover {
    background: #3d7c3a;
}

/* ── Paginacja ────────────────────────────────────────────── */
.or-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.or-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
}

.or-pagination .page-numbers li a,
.or-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    border: 1px solid #f0ebe1;
    color: #3a4a3e;
    transition: all .15s;
}

.or-pagination .page-numbers li a:hover {
    background: #eef6ec;
    border-color: #2b5e2b;
    color: #2b5e2b;
}

.or-pagination .page-numbers li span.current {
    background: #2b5e2b;
    border-color: #2b5e2b;
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .or-archive-layout {
        grid-template-columns: 1fr;
    }

    .or-archive-sidebar {
        position: static;
    }

    .or-archive-container {
        padding: 24px 24px 60px;
    }

    .or-archive-hero-inner,
    .or-breadcrumb-inner {
        padding: 0 24px;
    }

    .or-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .or-filter-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 8px;
        gap: 4px;
    }

    .or-filter-nav a {
        padding: 6px 14px;
        border-radius: 50px;
        border: 1px solid #f0ebe1;
    }

    .or-filter-nav a.active {
        border-color: #2b5e2b;
    }
}

@media (max-width: 640px) {
    .or-products-grid {
        grid-template-columns: 1fr;
    }

    .or-archive-hero {
        padding: 36px 0;
    }
}