:root {
    --bg:#07111a;
    --panel:#0f1b25;
    --panel2:#121f2a;
    --line:#253440;
    --text:#f4f7f8;
    --muted:#93a0aa;
    --accent:#f47a12;
    --green:#32bd78;
    --red:#e85b50
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:radial-gradient(circle at 50% 0,#142b3d,#091620 48%);
    color:var(--text)
}
a {
    color:inherit;
    text-decoration:none
}
.no-scroll {
    overflow:hidden
}
.site-header {
    border-bottom:1px solid rgba(255,255,255,.07);
    background:#050e15
}
.nav-shell {
    width:min(1380px,calc(100% - 40px));
    min-height:72px;
    margin:auto;
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:22px
}
.brand {
    font-size:27px;
    font-weight:950
}
.brand span {
    color:var(--accent)
}
.back-link {
    color:#b4bfc6;
    font-size:13px;
    font-weight:800
}
.admin-link {
    justify-self:end;
    padding:10px 15px;
    border:1px solid #2b3944;
    border-radius:9px;
    color:#c5cdd2
}
.product-shell {
    width:min(1380px,calc(100% - 40px));
    margin:auto;
    padding:32px 0 72px
}
.breadcrumbs {
    display:flex;
    gap:10px;
    margin-bottom:24px;
    color:#73818b;
    font-size:12px
}
.product-grid {
    display:grid;
    grid-template-columns:1.08fr .92fr;
    gap:28px
}
.product-media,.product-info,.description-section {
    border:1px solid var(--line);
    border-radius:18px;
    background:linear-gradient(180deg,var(--panel2),var(--panel));
    overflow:hidden
}
.gallery-stage {
    position:relative
}
.image-button {
    position:relative;
    width:100%;
    height:560px;
    padding:0;
    border:0;
    background:#0b151d;
    cursor:zoom-in
}
.image-button img {
    width:100%;
    height:100%;
    object-fit:contain
}
.zoom-hint {
    position:absolute;
    right:18px;
    bottom:18px;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.18);
    border-radius:50%;
    background:rgba(5,12,18,.72);
    font-size:23px
}
.gallery-nav,.lightbox-nav {
    position:absolute;
    top:50%;
    z-index:4;
    transform:translateY(-50%);
    width:44px;
    height:54px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:10px;
    background:rgba(5,12,18,.8);
    color:#fff;
    font-size:34px;
    cursor:pointer
}
.gallery-nav.prev,.lightbox-nav.prev {
    left:14px
}
.gallery-nav.next,.lightbox-nav.next {
    right:14px
}
.thumb-strip {
    display:flex;
    gap:10px;
    padding:14px;
    overflow:auto;
    border-top:1px solid var(--line)
}
.thumb-button {
    flex:0 0 84px;
    height:68px;
    padding:3px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#0a141c;
    cursor:pointer
}
.thumb-button.active {
    border-color:var(--accent)
}
.thumb-button img {
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:6px
}
.image-placeholder {
    min-height:560px;
    display:grid;
    place-content:center;
    text-align:center
}
.product-info {
    padding:48px;
    display:flex;
    flex-direction:column;
    align-items:flex-start
}
.featured-badge {
    padding:8px 10px;
    border-radius:7px;
    background:var(--accent);
    font-size:11px;
    font-weight:900
}
.category {
    margin:22px 0 10px;
    color:var(--accent);
    font-size:12px;
    font-weight:950;
    letter-spacing:1.6px;
    text-transform:uppercase
}
.product-info h1 {
    margin:0;
    font-size:clamp(36px,4vw,58px);
    line-height:1.07
}
.product-status {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin-top:22px
}
.product-status span {
    padding:8px 11px;
    border-radius:8px;
    border:1px solid var(--line);
    font-size:12px;
    font-weight:900
}
.product-status .stock.available {
    color:#79dca6;
    border-color:rgba(50,189,120,.4)
}
.product-status .stock.unavailable {
    color:#ff9188;
    border-color:rgba(232,91,80,.4)
}
.product-status small {
    color:var(--muted)
}
.price-box {
    width:100%;
    margin-top:30px;
    padding:22px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    align-items:center
}
.price-box strong {
    color:var(--accent);
    font-size:30px
}
.viber-button {
    width:100%;
    margin-top:24px;
    padding:16px 18px;
    border-radius:11px;
    background:#665cac;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:900
}
.viber-button small {
    opacity:.8
}
.viber-button.disabled {
    pointer-events:none;
    filter:grayscale(1);
    opacity:.45
}
.out-note {
    color:#d4a29e;
    font-size:13px;
    line-height:1.6
}
.description-section {
    margin-top:28px;
    padding:34px 40px
}
.section-label {
    color:var(--accent);
    font-size:12px;
    font-weight:950;
    text-transform:uppercase
}
.description-text {
    color:#b4bfc6;
    line-height:1.8
}
.site-footer {
    padding:30px;
    text-align:center;
    border-top:1px solid #1e2c36;
    background:#050d13;
    color:#72808a
}
.lightbox {
    position:fixed;
    z-index:100;
    inset:0;
    display:grid;
    place-items:center;
    padding:50px;
    background:rgba(0,0,0,.94)
}
.lightbox[hidden] {
    display:none
}
.lightbox img {
    max-width:90vw;
    max-height:88vh;
    object-fit:contain
}
.lightbox>button:first-child {
    position:absolute;
    top:20px;
    right:25px;
    border:0;
    background:none;
    color:#fff;
    font-size:42px;
    cursor:pointer
}
@media(max-width:900px) {
    .product-grid {
        grid-template-columns:1fr
    }
    .nav-shell {
        grid-template-columns:1fr auto
    }
    .back-link {
        grid-row:2;
        grid-column:1/-1;
        padding-bottom:12px
    }
    .product-info {
        padding:34px
    }
}
@media(max-width:560px) {
    .product-shell,.nav-shell {
        width:calc(100% - 24px)
    }
    .image-button {
        height:340px
    }
    .product-info {
        padding:25px
    }
    .description-section {
        padding:25px
    }
    .viber-button {
        align-items:flex-start;
        flex-direction:column;
        gap:5px
    }
}
.viber-button {
    display:none!important
}
.viber-contact {
    width:100%;
    margin-top:24px;
    padding:18px;
    border:1px solid #3b435e;
    border-radius:11px;
    background:linear-gradient(135deg,#171b31,#111827);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px
}
.viber-contact div {
    display:flex;
    flex-direction:column;
    gap:5px
}
.viber-contact span {
    color:#aeb5ca;
    font-size:12px
}
.viber-contact strong {
    font-size:20px;
    letter-spacing:.6px
}
.viber-contact button {
    padding:11px 14px;
    border:1px solid #665cac;
    border-radius:9px;
    background:#665cac;
    color:#fff;
    font-weight:900;
    cursor:pointer
}
.viber-contact button:hover {
    filter:brightness(1.1)
}
.copy-message {
    min-height:18px;
    margin:8px 0 0;
    color:#79dca6;
    font-size:12px
}
.price-box strong {
    font-variant-numeric:tabular-nums
}
@media(max-width:560px) {
    .viber-contact {
        align-items:stretch;
        flex-direction:column
    }
    .viber-contact button {
        width:100%
    }
}

/* Naglašeniji i pregledniji detalji oglasa */
.back-link {
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:10px 15px;
    border:1px solid #344652;
    border-radius:9px;
    background:#0b1821;
    color:#edf3f5;
    transition:.2s;
}

.back-link span {
    color:var(--accent);
    font-size:17px;
}

.back-link:hover {
    border-color:var(--accent);
    transform:translateX(-2px);
}

.product-info {
    background:linear-gradient(150deg,#142633 0%,#0e1a24 62%,#101d27 100%);
}

.product-info h1 {
    text-shadow:0 6px 25px rgba(0,0,0,.22);
}

.product-status .condition.new {
    color:#7ce2aa;
    border-color:rgba(49,189,120,.5);
    background:rgba(49,189,120,.1);
}

.product-status .condition.used {
    color:#ffd278;
    border-color:rgba(228,168,56,.5);
    background:rgba(228,168,56,.1);
}

.price-box {
    margin-top:28px;
    padding:21px 18px;
    border:1px solid #314451;
    border-radius:12px;
    background:linear-gradient(135deg,#0a1720,#122531);
}

.price-box span {
    color:#b8c5cc;
    font-weight:750;
}

.purchase-contact {
    width:100%;
    margin-top:20px;
    padding:17px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    border:1px solid #504a7b;
    border-radius:12px;
    background:linear-gradient(135deg,#1a1c34,#11192b);
}

.contact-heading {
    display:flex;
    align-items:center;
    gap:12px;
}

.contact-icon {
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#665cac;
    color:#fff;
    font-weight:950;
}

.contact-heading > div {
    display:grid;
    gap:4px;
}

.contact-heading span {
    color:#aeb5ca;
    font-size:11px;
}

.contact-heading strong {
    font-size:20px;
    letter-spacing:.6px;
}

.purchase-contact button {
    min-width:145px;
    padding:11px 14px;
    border:1px solid #776ec0;
    border-radius:9px;
    background:#665cac;
    color:#fff;
    font-weight:900;
    cursor:pointer;
    transition:.2s;
}

.purchase-contact button.copied {
    border-color:#2a8958;
    background:#19643f;
}

.purchase-note {
    width:100%;
    margin-top:14px;
    padding:16px 17px;
    border:1px solid #334753;
    border-left:4px solid var(--accent);
    border-radius:10px;
    background:#0a1720;
}

.purchase-note strong {
    color:#fff;
}

.purchase-note p {
    margin:8px 0 0;
    color:#aebbc3;
    font-size:13px;
    line-height:1.65;
}

.description-section {
    background:linear-gradient(180deg,#12232f,#0d1922);
}
