/* ================================================
   KOMBA SHOP - Premium Digital Product Store
   ================================================ */

/* ── Shop Hero ── */
.shop-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(22, 163, 74, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(234, 88, 12, 0.04) 0%, transparent 50%);
    animation: shopHeroPulse 8s ease-in-out infinite alternate;
}

@keyframes shopHeroPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.05) rotate(2deg);
    }
}

.shop-hero .container {
    position: relative;
    z-index: 1;
}

.shop-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(22, 163, 74, 0.05));
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: #166534;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.shop-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.15;
}

.shop-hero p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Shop Hero Note ── */
.shop-hero-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.shop-hero-note svg {
    flex-shrink: 0;
    color: #94a3b8;
}

/* ── Shop Hero Steps ── */
.shop-hero-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.shop-hero-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.shop-hero-step:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.shop-hero-step strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.shop-hero-step > span:last-child {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.shop-hero-step-arrow {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: #cbd5e1;
    padding: 0 8px;
    font-weight: 700;
}


/* ── Shop Content ── */
.shop-content {
    padding: 40px 0 80px;
    background: #f8f9fb;
    min-height: 400px;
}

/* ── Category Tabs ── */
.shop-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.shop-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.shop-tab:hover {
    color: #1e293b;
    border-color: #6366f1;
    background: #f0f0ff;
}

.shop-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

.tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.shop-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Shop Layout ── */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* ── Sidebar ── */
.shop-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
    transition: color 0.2s;
}

.filter-checkbox:hover {
    color: #6366f1;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.filter-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.filter-checkbox input:checked+.checkmark {
    background: #6366f1;
    border-color: #6366f1;
}

.filter-checkbox input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #334155;
    background: #f8fafc;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-clear {
    display: block;
    text-align: center;
    padding: 10px;
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    margin-top: 16px;
}

.filter-clear:hover {
    background: #f0f0ff;
}

/* ── Product Grid ── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
    font-size: 1.1rem;
}

/* ── Product Card ── */
.product-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.5s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.18s; }
.product-card:nth-child(5) { animation-delay: 0.24s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-card.featured {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.02), #fff 60px);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #fff;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-badge.unique {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.product-badge.demo {
    background: rgba(255, 255, 255, 0.9);
    color: #6366f1;
    top: auto;
    bottom: 12px;
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    /* Opisy gotowych serwisow sa dluzsze niz opisy szablonow, bo trzeba
       w nich uczciwie powiedziec, na jakim etapie jest projekt. Bez
       przyciecia jedna karta rozpychala siatke na kilkakrotnosc
       pozostalych. Pelny tekst jest na stronie produktu. */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Feature Tags ── */
.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    min-height: 32px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    transform: translateY(-1px);
}

.feature-tag.industry {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-color: #f59e0b;
    font-weight: 700;
}

.feature-tag.industry::before {
    content: '★';
    font-size: 0.7rem;
}

.feature-tag.large {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ── Pricing in Card ── */
.product-card-pricing {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.price-line.deployment .price-value {
    color: #6366f1;
}

.price-brutto {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

/* ── Card CTA ── */
.product-card-cta {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    display: flex;
    gap: 8px;
}

.product-card-cta .btn {
    flex: 1;
    font-size: 0.9rem;
}

.product-card-cta .btn-demo {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 2px solid #6366f1;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.25s;
    background: rgba(99, 102, 241, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.product-card-cta .btn-demo:hover {
    border-color: #4f46e5;
    color: #fff;
    background: #6366f1;
}

/* ================================================
   PRODUCT DETAIL PAGE
   ================================================ */

.product-breadcrumb {
    padding: 100px 0 16px;
    background: #f8f9fb;
}

.product-breadcrumb a {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.product-breadcrumb a:hover {
    opacity: 0.7;
}

/* ── Product Hero ── */
.product-hero {
    padding: 0 0 40px;
    background: #f8f9fb;
}

.product-hero-header {
    margin-bottom: 32px;
}

.product-hero-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-short-desc {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    max-width: 700px;
}

.product-hero-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: start;
}

.product-hero-image-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Demo Button (under image) */
.btn-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-demo:hover {
    background: linear-gradient(135deg, #312e81, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* Buy Product (solid indigo) */
.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary-outline:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.product-details {
    padding: 48px 0;
    background: #f8f9fb;
}

.product-details-desc.full-width {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #6366f1;
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}

.product-details-desc h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-details-desc h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #6366f1, #818cf8);
    border-radius: 2px;
}

/* Rich HTML description content */
.product-description-content {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.8;
}

.product-description-content p {
    margin-bottom: 16px;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

.product-description-content .product-lead {
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.7;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 2px solid #eef2ff;
}

.product-description-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 36px 0 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-description-content h3:first-child {
    margin-top: 0;
    background: none;
    padding: 0;
    font-size: 1.3rem;
}

.product-description-content h3::before {
    content: '✦';
    color: #6366f1;
    font-size: 0.85rem;
}

.product-description-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 8px;
    padding: 10px 14px;
    background: #fafbff;
    border-left: 3px solid #818cf8;
    border-radius: 0 8px 8px 0;
}

.product-description-content h4+p {
    padding-left: 14px;
    color: #475569;
}

.product-description-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    gap: 4px;
}

.product-description-content ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.6;
    color: #334155;
}

.product-description-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 700;
    font-size: 1rem;
}

.product-description-content ul li strong {
    color: #1e293b;
    font-weight: 600;
}

.product-description-content .desc-tech-note {
    font-size: 0.88rem;
    color: #475569;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 3px solid #6366f1;
    margin-top: 20px;
}

.product-hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    aspect-ratio: 4/3;
}

.product-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
}

.product-hero-info {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.product-category-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin-bottom: 12px;
}

.product-hero-info h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-full-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 28px;
}

.product-features-list {
    margin-bottom: 24px;
}

.product-features-list h3,
.product-tech h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features-list h3::before {
    content: '✦';
    color: #6366f1;
    font-size: 0.9rem;
}

.product-tech h3::before {
    content: '⚡';
    font-size: 0.9rem;
}

.product-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-details-desc.full-width .product-tech {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 0;
}

/* ── Tech Badges ── */
.product-tech {
    margin-bottom: 28px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    min-width: 80px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    background: #1e293b;
    color: #e2e8f0;
    transition: transform 0.2s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
}

/* Per-technology colors */
.tech-badge[data-tech="php"] {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
}

.tech-badge[data-tech="html"] {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
}

.tech-badge[data-tech="css"] {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
}

.tech-badge[data-tech="js"],
.tech-badge[data-tech="javascript"] {
    background: linear-gradient(135deg, #ca8a04, #facc15);
    color: #1e293b;
}

.tech-badge[data-tech="mysql"] {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
    color: #fff;
}

.tech-badge[data-tech="wordpress"] {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
}

.tech-badge[data-tech="json"] {
    background: linear-gradient(135deg, #059669, #34d399);
    color: #fff;
}

/* ── Unique Notice ── */
.product-unique-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.4;
}

.product-unique-notice svg {
    flex-shrink: 0;
    color: #d97706;
}

/* ── Purchase Options ── */
.product-purchase-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
}

.purchase-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.3s;
}

.purchase-option:hover {
    border-color: #c7d2fe;
}

.purchase-option.highlighted {
    border: 2px solid #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.01));
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
    order: -1;
}

.purchase-option.highlighted::before {
    content: '★ Polecamy';
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.purchase-option-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.purchase-option-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    width: 100%;
}

.highlighted .purchase-option-header h4 {
    font-size: 1.1rem;
}

.purchase-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #6366f1;
}

.highlighted .purchase-price {
    font-size: 1.5rem;
}

.purchase-price small {
    font-size: 0.65em;
    font-weight: 500;
    color: #94a3b8;
}

.purchase-price-brutto {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

.purchase-note {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 4px;
    margin-top: 12px;
    line-height: 1.4;
}

.purchase-note-extra {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 18px;
    font-style: italic;
    line-height: 1.3;
}

.highlighted .purchase-note {
    margin-bottom: 12px;
}

.purchase-scope {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.purchase-scope li {
    font-size: 0.82rem;
    color: #475569;
    padding: 3px 0 3px 20px;
    position: relative;
    line-height: 1.4;
}

.purchase-scope li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid #6366f1;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.04);
}

.btn-outline:hover {
    border-color: #4f46e5;
    color: #fff;
    background: #6366f1;
}

/* ── Product Gallery ── */
.product-gallery-section {
    padding: 60px 0;
    background: #fff;
}

.product-gallery-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 32px;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: #f1f5f9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* ── Related Products ── */
.shop-related {
    padding: 60px 0 80px;
    background: #f8f9fb;
}

.shop-related h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.related-card-image {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: #f1f5f9;
    margin-bottom: 12px;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.related-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6366f1;
}

/* ── Bottom CTA ── */
.shop-bottom-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff7ed 100%);
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.shop-bottom-cta h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.shop-bottom-cta p {
    color: #475569;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .filter-group {
        margin-bottom: 0;
        flex: 1;
        min-width: 180px;
    }

    .product-hero-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-hero-image {
        aspect-ratio: 16/9;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .shop-hero {
        padding: 120px 0 40px;
    }

    .shop-hero-steps {
        flex-direction: column;
        gap: 0;
    }

    .shop-hero-step-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }

    .shop-tabs {
        gap: 6px;
    }

    .shop-tab {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        flex-direction: column;
    }

    .purchase-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
/* ── Negocjacja ceny ──────────────────────────────────────────────
   Włączana przełącznikiem NEGOTIATION_ENABLED w .env. Cały blok siedzi
   pod panelem zakupu, więc dziedziczy jego szerokość i odstępy. */
/* Oferta czasowa — data, po ktorej pozycja znika ze sklepu.
   Ton ostrzegawczy, ale bez krzyku: to informacja, nie alarm. */
.price-until {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 1rem 0 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--warning, #b26a00);
}
.price-until svg { flex: none; }

.price-nego {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color, #d9d9d9);
}
.price-nego-badge {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .7rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted, #6b7c93);
}
.price-nego-badge svg { flex: none; }

.price-nego-form {
    margin-top: 1rem;
    display: grid;
    gap: .45rem;
}
/* display:grid wygrywa z domyslnym [hidden]{display:none}, wiec
   ukrycie trzeba powtorzyc jawnie — inaczej formularz stoi otwarty. */
.price-nego-form[hidden] { display: none; }
.price-nego-form h4 { margin: 0; font-size: 1rem; }
.price-nego-intro {
    margin: 0 0 .5rem;
    font-size: .85rem;
    line-height: 1.55;
    color: var(--text-muted, #6b7c93);
}
.price-nego-form label {
    font-size: .82rem;
    font-weight: 600;
    margin-top: .3rem;
}
.price-nego-form input,
.price-nego-form textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--border-color, #d9d9d9);
    border-radius: 4px;
    font: inherit;
    font-size: .92rem;
}
.price-nego-form textarea { resize: vertical; min-height: 68px; }

.price-nego-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: .7rem;
}
.price-nego-actions .btn-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: .88rem;
    color: var(--text-muted, #6b7c93);
    cursor: pointer;
    text-decoration: underline;
}

.price-nego-msg { margin: .6rem 0 0; font-size: .87rem; line-height: 1.5; }
.price-nego-msg:empty { display: none; }
.price-nego-msg.is-ok { color: #2e7d46; }
.price-nego-msg.is-error { color: #b23c2a; }

/* Pułapka na boty — poza ekranem, ale nie display:none,
   bo część botów pomija pola całkowicie ukryte. */
.price-nego-trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ── Promocja: obniżka z najniższą ceną z 30 dni ──────────────────
   Informacja o najniższej cenie jest obowiązkowa przy każdej ogłoszonej
   obniżce, więc nie ma tu wariantu "ukryj" — jest częścią bloku ceny. */
.promo-box { display: grid; gap: .3rem; }
.promo-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
}
.promo-old {
    text-decoration: line-through;
    color: var(--text-muted, #6b7c93);
    font-size: .95rem;
}
.promo-new {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--danger, #b23c2a);
}
.promo-badge {
    background: var(--danger, #b23c2a);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: .12rem .45rem;
    border-radius: 3px;
}
.promo-lowest {
    margin: 0;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--text-muted, #6b7c93);
}
.promo-until {
    margin: 0;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted, #6b7c93);
}

/* Karta w sklepie: przekreślona cena obok promocyjnej.
   Pełna informacja o najniższej cenie z 30 dni jest na stronie produktu —
   na karcie nie ma na nią miejsca, a obniżka i tak prowadzi do tej strony. */
.price-was { text-decoration: line-through; color: var(--text-muted, #6b7c93); font-size: .85em; }
.price-value.is-promo { color: var(--danger, #b23c2a); font-weight: 700; }

/* Karta sprzedanej strony (stock=0): zamiast panelu zakupu — komunikat i wyjścia.
   Patrz product.php ($isSold). */
.product-sold-box { background: var(--color-bg-card, #1a1a1a); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg, 16px); padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.product-sold-title { font-size: 1.25rem; margin: 0; color: var(--color-text-heading, #fff); }
.product-sold-text { margin: 0; color: var(--color-text-secondary, #b3b3b3); line-height: 1.55; }

/* ── FAQ sklepu (faq-sklep.php) ── */
.shop-faq { padding: 3rem 0; }
.shop-faq h2 { text-align: center; margin-bottom: 1.5rem; }
.shop-faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .6rem; }
.shop-faq-item { background: var(--color-bg-card, #fff); border: 1px solid var(--color-border, rgba(0,0,0,.08)); border-radius: var(--radius-lg, 12px); padding: 0 1.1rem; }
.shop-faq-item summary { cursor: pointer; font-weight: 600; padding: .95rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.shop-faq-item summary::-webkit-details-marker { display: none; }
.shop-faq-item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--color-accent-primary, #16A34A); flex-shrink: 0; }
.shop-faq-item[open] summary::after { content: "–"; }
.shop-faq-item p { margin: 0 0 1rem; color: var(--color-text-secondary, #64748B); line-height: 1.6; }

/* ── Pasek zaufania pod przyciskami zakupu ── */
.trust-row { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .85rem; color: var(--color-text-secondary, #64748B); }
.trust-row li { display: inline-flex; align-items: center; gap: .35rem; }
.trust-row li::before { content: "✓"; color: var(--color-accent-primary, #16A34A); font-weight: 700; }

/* ── Linki do landingów branżowych pod hero sklepu ── */
.branze-row { padding: 1.1rem 0 0; }
.branze-row-inner { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.branze-row-label { font-size: .85rem; color: var(--color-text-secondary, #64748B); margin-right: .3rem; }
.branze-row a { font-size: .85rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--color-border, rgba(0,0,0,.1)); background: var(--color-bg-card, #fff); color: inherit; text-decoration: none; white-space: nowrap; }
.branze-row a:hover, .branze-row a.active { border-color: var(--color-accent-primary, #16A34A); color: var(--color-accent-primary, #16A34A); }
.branze-row a small { opacity: .65; margin-left: .25rem; }

/* ── Landing branżowy: akapity wstępu i link do poradnika ── */
.shop-hero-intro { max-width: 760px; margin: 0 auto 1.5rem; text-align: left; }
.shop-hero-intro p { margin: 0 0 .8rem; }
.shop-hero-guide { display: inline-block; margin-top: .4rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
