﻿/* =========================
   GLOBAL BACKGROUND
   ========================= */
.sp-bg {
    position: relative;
    background: #ffffff;
}

    .sp-bg::before {
        content: "";
        position: fixed;
        inset: 0;
        background: url("/images/pozad.jpg") repeat;
        opacity: 0.70;
        z-index: -2;
    }

    .sp-bg::after {
        content: "";
        position: fixed;
        inset: 0;
        background: linear-gradient( 180deg, rgba(255,255,255,.35), rgba(255,255,255,.35) );
        z-index: -1;
    }

/* =========================
   NAVBAR
   ========================= */
.sp-navbar {
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.75) !important;
    backdrop-filter: blur(10px);
}

.sp-brand {
    font-weight: 800;
    letter-spacing: -0.3px;
}

.navbar .nav-link {
    color: #212529;
    opacity: .92;
    font-weight: 600;
}

    .navbar .nav-link:hover {
        opacity: 1;
        color: #198754;
    }

.nav-link.active {
    font-weight: 700;
    color: #198754 !important;
}

/* =========================
   FOOTER
   ========================= */
.sp-footer {
    border-top: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
}

/* =========================
   HERO
   ========================= */
.sp-hero {
    position: relative;
    min-height: 360px;
    background: url("/images/hero.jpg") center/cover no-repeat;
    overflow: hidden;
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0,0,0,.55), rgba(0,0,0,.35) );
}

.sp-hero-inner {
    position: relative;
    z-index: 1;
    padding: 95px 0;
}

.sp-hero-title {
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
}

.sp-hero-subtitle {
    color: rgba(255,255,255,.90);
    font-size: 1.15rem;
    margin-bottom: 22px;
}

/* =========================
   SECTIONS
   ========================= */
.sp-section {
    margin: 26px 0;
}

/* =========================
   CARDS / SURFACES
   ========================= */
.sp-surface,
.sp-card,
.sp-card-shell,
.sp-table-shell,
.sp-form-shell,
.sp-toolbar,
.sp-api-card,
.sp-empty {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.sp-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .sp-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 32px rgba(0,0,0,.10);
    }

.sp-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.sp-card-body {
    padding: 16px;
}

.sp-card-title {
    font-weight: 900;
}

.sp-card-text {
    color: #6c757d;
}

/* =========================
   TABLE FIX (READABILITY)
   ========================= */
.table,
.table-responsive {
    background: rgba(255,255,255,0.92);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.06);
}

    .table thead th {
        background: rgba(255,255,255,0.96);
        font-weight: 800;
    }

    .table tbody td {
        background: rgba(255,255,255,0.78);
    }

    .table td:last-child,
    .table th:last-child {
        white-space: nowrap;
    }

/* =========================
   CTA FIX (BOTTOM IMAGE)
   ========================= */
.sp-cta {
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

    .sp-cta img {
        width: 100%;
        height: auto;
        display: block;
    }

/* =========================
   TYPO READABILITY
   ========================= */
h1, h2, h3, p, .lead {
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
    .sp-hero-inner {
        padding: 70px 0;
    }

    .sp-card-img {
        height: 145px;
    }
}
/* =========================
   HOME. "How it works" block (match the screenshot)
   ========================= */

/* Outer card */
.sp-surface .sp-how-title {
    font-weight: 800;
    margin-bottom: 14px;
}

/* Steps wrapper */
.sp-steps-v2 {
    display: grid;
    gap: 14px;
}

/* Each step card */
.sp-step-v2 {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 22px rgba(0,0,0,.05);
}

/* Icon box */
.sp-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(25,135,84,.10);
    border: 1px solid rgba(25,135,84,.20);
    flex: 0 0 auto;
}

    .sp-icon svg,
    .sp-icon img {
        width: 22px !important;
        height: 22px !important;
    }

/* Typography inside */
.sp-step-v2 h5 {
    margin: 0;
    font-weight: 900;
    line-height: 1.15;
}

.sp-step-v2 p {
    margin: 6px 0 0;
    color: #6c757d;
    line-height: 1.35;
}

/* Start Now button (full width, rounded, centered) */
.sp-cta-btn,
.sp-how-btn,
.sp-start-now,
.sp-steps-btn,
.sp-steps-v2 + a.btn,
.sp-steps-v2 + .btn {
    width: 100% !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-weight: 800 !important;
    margin-top: 10px !important;
    display: block !important;
}

/* In case the button is inside a wrapper */
.sp-steps-v2 + * {
    width: 100%;
}

/* =========================
   HOME. How it works – alignment fix
   ========================= */

/* Ensure the whole block is centered in its column */
.sp-surface {
    padding: 22px;
}

/* Steps wrapper aligned cleanly */
.sp-steps-v2 {
    margin-left: 0;
    margin-right: 0;
}

/* Each step fully aligned */
.sp-step-v2 {
    width: 100%;
    box-sizing: border-box;
}

/* Fix icon alignment (no visual jump) */
.sp-icon {
    margin-top: 2px;
}

/* Start Now button perfectly aligned with cards */
.sp-steps-v2 + a.btn,
.sp-steps-v2 + .btn,
.sp-start-now {
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* Safety: remove any accidental horizontal overflow */
.sp-surface * {
    max-width: 100%;
}
/* =========================
   SHOPPING ITEMS. Fix Bought checkbox + row highlight
   ========================= */

/* Make checkboxes always visible */
.table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #198754; /* green */
    cursor: pointer;
}

/* Center the Bought column */
.table td:nth-child(5),
.table th:nth-child(5) {
    text-align: center;
    vertical-align: middle;
}

/* Optional. When a row is marked as bought, make it green */
.table tr.is-bought td,
.table tr.bought td,
.table tr.sp-row-bought td {
    background: rgba(25,135,84,.12) !important;
}
