/* Products index (Proizvodi) — page-specific styles.
   Shared layout (header, footer, buttons, pill) from rssite.css. */

.products-page-hero {
    padding: 72px 0 56px;
}

.products-page-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.products-page-hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin: 18px 0 16px;
}

.products-page-hero p {
    color: var(--text-2);
    font-size: 17px;
    margin-bottom: 28px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
}

.hero-badges .badge svg {
    width: 14px;
    height: 14px;
    stroke: var(--blue-500);
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hero-visual-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.hero-visual-card.accent {
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.hvc-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-3);
    margin-bottom: 8px;
}

.hero-visual-card.accent .hvc-label {
    color: #A9BFDA;
}

.hvc-value {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-900);
}

.hero-visual-card.accent .hvc-value {
    color: #fff;
}

.hvc-sub {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 4px;
}

.hero-visual-card.accent .hvc-sub {
    color: #A9BFDA;
}

/* Diff */
.diff-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 56px;
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.diff-section h2 {
    font-size: 28px;
    margin-bottom: 14px;
}

.diff-section > div:first-child p {
    font-size: 15.5px;
    color: var(--text-2);
}

.diff-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-bottom: 10px;
}

.diff-header span {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-3);
    padding: 0 8px;
}

.diff-header span:first-child {
    padding-left: 0;
}

.diff-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.diff-row:first-of-type {
    border-top: 1px solid var(--line);
}

.diff-cell {
    font-size: 14px;
    padding: 0 8px;
}

.diff-cell:first-child {
    color: var(--text-3);
    padding-left: 0;
}

.diff-cell.yes {
    color: var(--navy-900);
    font-weight: 600;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    color: var(--text-2);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.filter-chip:hover {
    border-color: var(--navy-800);
}

.filter-chip.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

/* Products grid */
.products-section {
    padding-bottom: 96px;
}

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 16px 0 12px;
}

.section-head p {
    color: var(--text-2);
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    background: #fff;
}

.product-card:not(.product-card--soon):hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(11, 42, 74, .10);
    border-color: var(--blue-500);
}

.product-card--soon {
    opacity: .5;
    pointer-events: none;
}

.product-card-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.product-screen {
    aspect-ratio: 4 / 3;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.product-screen .browser-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: #F8F9FB;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
    z-index: 1;
}

.b-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.b-dot:nth-child(1) { background: #FF6058; }
.b-dot:nth-child(2) { background: #FFBD2E; }
.b-dot:nth-child(3) { background: #27C93F; }

.product-screen .screen-inner {
    position: absolute;
    inset: 0;
    top: 26px;
    background: linear-gradient(160deg, var(--navy-800), var(--blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    transition: transform .3s;
    overflow: hidden;
}

.product-screen .screen-inner.has-image {
    background: var(--surface);
}

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

.product-card:not(.product-card--soon):hover .screen-inner {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 36px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.product-badge.new {
    background: var(--blue-500);
    color: #fff;
}

.product-badge.soon {
    background: var(--surface);
    color: var(--text-2);
    border: 1px solid var(--line);
}

.product-body {
    padding: 22px 22px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-tag {
    display: inline-flex;
    width: fit-content;
    background: var(--surface);
    color: var(--text-2);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
}

.product-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.product-desc {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.55;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

.product-price .amount {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-900);
}

.product-price .amount-muted {
    color: var(--text-3);
}

.product-price .period {
    font-size: 12.5px;
    color: var(--text-3);
}

.product-actions {
    display: flex;
    gap: 10px;
    padding: 0 22px 26px;
}

.btn-card-primary {
    flex: 1;
    background: var(--navy-900);
    color: #fff;
    padding: 11px 16px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-card-primary:hover {
    background: var(--blue-600);
    color: #fff;
}

.btn-card-outline {
    padding: 10px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-card-outline:hover {
    border-color: var(--navy-800);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-2);
    padding: 24px 0;
}

/* Trust */
.trust-band {
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    padding: 52px 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 96px;
    position: relative;
    overflow: hidden;
}

.trust-band::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 108, 181, .4), transparent 70%);
}

.trust-item {
    position: relative;
    z-index: 1;
}

.trust-item b {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.trust-item span {
    font-size: 14px;
    color: #A9BFDA;
}

/* CTA */
.products-cta-band {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 96px;
}

.products-cta-band h2 {
    font-size: 26px;
    max-width: 440px;
}

.products-cta-band p {
    color: var(--text-2);
    font-size: 14.5px;
    margin-top: 8px;
    max-width: 440px;
}

.products-cta-band .cta-band-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

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

    .trust-band {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .products-page-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .products-page-hero h1 {
        font-size: 30px;
    }

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

    .diff-section {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 28px;
    }

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

    .trust-band {
        grid-template-columns: 1fr;
        padding: 36px 28px;
        gap: 24px;
    }

    .products-cta-band {
        flex-direction: column;
        padding: 36px 24px;
    }

    .products-cta-band .cta-band-actions {
        flex-direction: column;
        width: 100%;
    }

    .products-cta-band .cta-band-actions a {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .hero-visual {
        grid-template-columns: 1fr;
    }

    .products-page-hero h1 {
        font-size: 26px;
    }
}
