/**
 * assets/css/single-product.css — Ogrodowy Raj Oferta
 * Styl pojedynczego produktu (single-or_produkt.php)
 */

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

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

.or-single-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

/* ── 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;
    text-decoration: none;
}

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

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

/* ── Meta row ─────────────────────────────────────────────── */
.or-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.or-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #eef6ec;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #2b5e2b;
    text-decoration: none;
    transition: all .15s;
}

.or-cat-badge:hover {
    background: #2b5e2b;
    color: #fff;
}

.or-avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.or-avail-badge.in-stock {
    background: #eef6ec;
    color: #2b5e2b;
}

.or-avail-badge.on-order {
    background: #fdf3e1;
    color: #d4820a;
}

/* ── Tytuł i cena ─────────────────────────────────────────── */
.or-product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 900;
    color: #17201a;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0 0 20px;
}

.or-price-box {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: #fff;
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid #ddd5c5;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(23, 32, 26, .06);
}

.or-price-value {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 900;
    color: #2b5e2b;
    letter-spacing: -.04em;
    line-height: 1;
}

/* ── Zdjęcie główne ───────────────────────────────────────── */
.or-main-photo {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16 / 10;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(23, 32, 26, .1);
    background: #f0ebe1;
}

.or-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.or-main-photo:hover img {
    transform: scale(1.02);
}

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

.or-main-photo:hover .or-main-photo-overlay {
    background: rgba(23, 32, 26, .15);
}

.or-zoom-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    transform: scale(.7);
    transition: all .3s;
    box-shadow: 0 4px 20px rgba(23, 32, 26, .2);
}

.or-main-photo:hover .or-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* ── Galeria miniatur ─────────────────────────────────────── */
.or-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 32px;
}

.or-gallery-thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
}

.or-gallery-thumb.active,
.or-gallery-thumb:hover {
    border-color: #2b5e2b;
}

.or-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.or-gallery-thumb:hover img {
    transform: scale(1.1);
}

/* ── Opis produktu ────────────────────────────────────────── */
.or-desc-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f0ebe1;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(23, 32, 26, .05);
}

.or-desc-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #2b5e2b;
    margin-bottom: 20px;
}

.or-desc-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2.5px;
    background: #2b5e2b;
    border-radius: 2px;
}

.or-desc-content {
    font-size: 15.5px;
    color: #3a4a3e;
    line-height: 1.8;
}

.or-desc-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #17201a;
    margin: 24px 0 10px;
}

.or-desc-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #17201a;
    margin: 20px 0 8px;
}

.or-desc-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.or-desc-content ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 10px 0;
}

.or-desc-content li {
    margin-bottom: 4px;
}

.or-desc-content strong {
    color: #17201a;
    font-weight: 700;
}

.or-desc-content a {
    color: #2b5e2b;
    text-decoration: underline;
}

.or-desc-content p {
    margin-bottom: 12px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.or-sidebar {
    position: sticky;
    top: 96px;
}

.or-sidebar-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid #f0ebe1;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(23, 32, 26, .10);
}

.or-sidebar-header {
    background: #2b5e2b;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}

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

.or-sidebar-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 8px;
}

.or-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}

.or-sidebar-title em {
    font-style: italic;
    color: rgba(255, 255, 255, .6);
}

.or-sidebar-price-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 8px 16px;
}

.or-sidebar-price-label {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    font-weight: 600;
}

.or-sidebar-price-val {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.or-sidebar-avail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-bottom: 1px solid #f0ebe1;
    font-size: 13.5px;
    font-weight: 700;
}

.or-sidebar-avail.in-stock {
    color: #2b5e2b;
}

.or-sidebar-avail.on-order {
    color: #d4820a;
}

.or-sidebar-avail-icon {
    font-size: 20px;
}

.or-sidebar-form-wrap {
    padding: 24px 28px;
}

.or-sidebar-contact {
    border-top: 1px solid #f0ebe1;
    background: #faf7f2;
    padding: 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.or-sidebar-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #3a4a3e;
    text-decoration: none;
    transition: color .15s;
}

.or-sidebar-contact a:hover {
    color: #2b5e2b;
}

.or-sidebar-contact-icon {
    font-size: 18px;
}

.or-sidebar-back {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #7a8c7e;
    text-decoration: none;
    transition: color .15s;
}

.or-sidebar-back:hover {
    color: #2b5e2b;
}

/* ── Formularz kontaktowy ─────────────────────────────────── */
.or-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.or-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.or-form-field label {
    font-size: 11.5px;
    font-weight: 700;
    color: #3a4a3e;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.or-req {
    color: #e85d3a;
}

.or-opt {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #7a8c7e;
    font-size: 11px;
}

.or-form-field input[type=text],
.or-form-field input[type=email],
.or-form-field input[type=tel],
.or-form-field textarea {
    padding: 10px 13px;
    border: 1.5px solid #ddd5c5;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #17201a;
    background: #faf7f2;
    width: 100%;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
}

.or-form-field input:focus,
.or-form-field textarea:focus {
    border-color: #2b5e2b;
    box-shadow: 0 0 0 3px rgba(43, 94, 43, .1);
    background: #fff;
}

.or-form-field textarea {
    resize: vertical;
    min-height: 90px;
}

.or-checkbox-label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 12px;
    color: #7a8c7e;
    line-height: 1.5;
    font-weight: 500;
}

.or-checkbox-label input {
    margin-top: 3px;
    accent-color: #2b5e2b;
    flex-shrink: 0;
}

.or-checkbox-label a {
    color: #2b5e2b;
    text-decoration: underline;
}

.or-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    border-radius: 50px;
    background: #2b5e2b;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(43, 94, 43, .35);
    transition: all .2s;
}

.or-form-submit:hover {
    background: #3d7c3a;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(43, 94, 43, .4);
}

.or-form-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.or-form-note {
    font-size: 11px;
    color: #b8c8bc;
    text-align: center;
    margin-top: 4px;
}

.or-form-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.or-form-alert--error {
    background: #fdeee9;
    color: #b32d2e;
    border: 1px solid #f5c6c6;
}

.or-form-alert ul {
    margin: 6px 0 0 16px;
}

.or-form-success {
    text-align: center;
    padding: 16px 0;
}

.or-form-success-icon {
    font-size: 44px;
    margin-bottom: 10px;
}

.or-form-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #2b5e2b;
    margin-bottom: 6px;
}

.or-form-success-desc {
    font-size: 13px;
    color: #7a8c7e;
    line-height: 1.6;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.or-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .92);
    align-items: center;
    justify-content: center;
}

.or-lightbox.active {
    display: flex;
}

.or-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.or-lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

.or-lb-prev,
.or-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
    opacity: .7;
    transition: opacity .15s;
}

.or-lb-prev:hover,
.or-lb-next:hover {
    opacity: 1;
}

.or-lb-prev {
    left: 0;
}

.or-lb-next {
    right: 0;
}

/* ── CTA mobile ───────────────────────────────────────────── */
.or-mobile-cta {
    display: none;
}

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

    .or-sidebar {
        position: static;
    }

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

    .or-gallery-thumbs {
        grid-template-columns: repeat(5, 1fr);
    }

    .or-mobile-cta {
        display: block;
    }
}

@media (max-width: 640px) {
    .or-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .or-desc-card {
        padding: 24px 20px;
    }

    .or-sidebar-form-wrap {
        padding: 20px;
    }

    .or-breadcrumb-inner {
        padding: 0 20px;
    }
}