/* BS AUDIO Shop — ista vizuelna pozadina kao glavni sajt */
:root {
    --main: #ffcc00;
    --main-dim: #d4a800;
    --bg: #000;
    --card: rgba(18, 18, 18, 0.88);
    --card-border: rgba(255, 204, 0, 0.15);
    --text: #fff;
    --muted: rgba(255, 255, 255, 0.65);
    --danger: #ff6b6b;
    --ok: #6dff9a;
    --radius: 14px;
    --font: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.shop-shell {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 204, 0, 0.08), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.04), transparent 30%),
        linear-gradient(180deg, #060606 0%, #000 45%, #050505 100%);
    position: relative;
    overflow-x: hidden;
}

body.shop-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.22;
    animation: shopGridDrift 90s linear infinite;
}

@keyframes shopGridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 384px 384px, 384px 384px; }
}

body.shop-shell::after {
    content: "";
    position: fixed;
    inset: -25%;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(ellipse 45% 35% at 15% 25%, rgba(255, 204, 0, 0.09), transparent 55%),
        radial-gradient(ellipse 40% 40% at 88% 18%, rgba(255, 255, 255, 0.05), transparent 50%),
        radial-gradient(ellipse 35% 30% at 70% 85%, rgba(255, 204, 0, 0.05), transparent 55%),
        conic-gradient(from 120deg at 18% 55%, rgba(255,204,0,0.06), transparent 18%, rgba(255,255,255,0.035), transparent 38%, rgba(255,204,0,0.045), transparent 62%);
    filter: saturate(1.08);
    animation: shopOrbDrift 22s ease-in-out infinite alternate;
}

@keyframes shopOrbDrift {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(1.5%, -2%) rotate(6deg); opacity: 0.92; }
}

.shop-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* Nav */
.shop-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    margin: 0 -4px 28px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.shop-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.shop-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--main) 0%, var(--main-dim) 100%);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.shop-logo-text-col {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    text-align: left;
}
.shop-logo-audio {
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.shop-logo-travnik {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.shop-logo-shopline {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--main);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 5px;
}

.shop-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.shop-nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.shop-nav-links a:hover,
.shop-nav-links a.is-active {
    color: var(--main);
    background: rgba(255, 204, 0, 0.08);
}

.shop-nav-links a.shop-cart-link {
    color: var(--main);
    border: 1px solid rgba(255, 204, 0, 0.35);
}

.shop-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .shop-nav-toggle { display: block; }
    .shop-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .shop-nav-links.is-open { display: flex; }
}

/* Hero */
.shop-hero {
    text-align: center;
    padding: 48px 20px 40px;
    margin-bottom: 36px;
}

.shop-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.shop-hero h1 span { color: var(--main); }

.shop-hero p {
    margin: 0 auto;
    max-width: 560px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
}

.shop-hero p + p {
    margin-top: 14px;
}

.shop-hero-lead {
    max-width: 640px !important;
    font-size: 1.02rem !important;
}

.shop-hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-tagline-strip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: -8px 0 28px;
    padding: 12px 16px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
    background: rgba(255, 204, 0, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 10px;
}

.shop-tagline-strip i {
    color: var(--main);
    margin-top: 2px;
    flex-shrink: 0;
}

.shop-home-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 32px;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    font-size: 0.88rem;
}

.shop-home-jump-label {
    color: var(--muted);
    font-weight: 600;
}

.shop-home-jump a {
    color: var(--main);
    font-weight: 700;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 204, 0, 0.08);
}

.shop-home-jump a:hover {
    background: rgba(255, 204, 0, 0.14);
}

/* Breadcrumb (Početna » Web trgovina » …) */
.shop-breadcrumb {
    font-size: 0.82rem;
    color: var(--muted);
    margin: -6px 0 20px;
    line-height: 1.5;
}

.shop-breadcrumb a {
    color: var(--main);
    font-weight: 600;
    text-decoration: none;
}

.shop-breadcrumb a:hover {
    text-decoration: underline;
}

.shop-breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}

.shop-breadcrumb-sep {
    opacity: 0.45;
    margin: 0 2px;
}

.shop-page-h1 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 900;
}

.shop-catalog-lead {
    color: var(--muted);
    line-height: 1.65;
    max-width: 720px;
    margin: -6px 0 28px;
    font-size: 0.95rem;
}

.shop-catalog-lead a {
    color: var(--main);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-catalog-block {
    margin-bottom: 40px;
}

.shop-catalog-block:last-of-type {
    margin-bottom: 8px;
}

.shop-catalog-block-title {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--main);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.shop-cat-grid--catalog {
    margin-bottom: 0;
}

.mono {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* Kategorija — toolbar (sort / grid-list) */
.shop-cat-head {
    align-items: flex-start;
}

.shop-cat-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.shop-cat-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.shop-cat-toolbar-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.shop-cat-toolbar select {
    background: #111;
    color: var(--text);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    min-width: 200px;
}

.shop-cat-count {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 600;
}

.shop-card-excerpt {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    margin: 0 0 10px;
    flex: 1;
}

.shop-price-on-request {
    color: var(--main);
    font-weight: 800;
    font-size: 1.05rem;
}

.shop-price-big.shop-price-on-request {
    font-size: 1.5rem;
}

.shop-card-actions--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.shop-card-add-form {
    margin: 0;
}

.shop-card-add-form button {
    width: 100%;
}

.shop-btn-disabled {
    opacity: 0.45;
    pointer-events: none;
    text-align: center;
    font-size: 0.82rem;
    padding: 10px 12px;
}

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

.shop-card--list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.shop-card--list .shop-card-img {
    width: min(200px, 38%);
    flex-shrink: 0;
    aspect-ratio: 1;
}

.shop-card--list .shop-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .shop-card--list {
        flex-direction: column;
    }
    .shop-card--list .shop-card-img {
        width: 100%;
        aspect-ratio: 4/3;
    }
    .shop-card-actions--split {
        grid-template-columns: 1fr;
    }
}

.shop-trust {
    margin-bottom: 40px;
}

.shop-trust-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.shop-trust-grid li {
    margin: 0;
    padding: 20px 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.shop-trust-grid i {
    font-size: 1.35rem;
    color: var(--main);
    margin-bottom: 10px;
    display: block;
}

.shop-trust-grid strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.shop-trust-grid span {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.45;
}

.shop-trust-grid a {
    color: var(--main);
    font-weight: 600;
}

.shop-muted-block {
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.55;
}

.shop-muted-block a {
    color: var(--main);
    font-weight: 600;
}

.shop-cat-meta {
    font-size: 0.78rem !important;
}

.shop-empty-home {
    padding: 28px 22px;
    margin-bottom: 40px;
    text-align: center;
    background: var(--card);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius);
    color: var(--muted);
}

.shop-empty-home p {
    margin: 0 0 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.shop-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.shop-how {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--card-border);
}

.shop-how h2 {
    margin: 0 0 18px;
    font-size: 1.35rem;
    font-weight: 800;
}

.shop-how-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: shophow;
}

.shop-how-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--muted);
    line-height: 1.5;
}

.shop-how-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 204, 0, 0.15);
    color: var(--main);
    font-weight: 800;
    font-size: 0.85rem;
}

.shop-how-steps a {
    color: var(--main);
    font-weight: 600;
}

/* Section */
.shop-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--main);
    font-weight: 800;
    margin: 0 0 8px;
}

.shop-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.shop-section-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.shop-section-head a {
    color: var(--main);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Category grid */
.shop-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.shop-cat-card {
    display: block;
    padding: 24px 20px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.shop-cat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 204, 0, 0.45);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.shop-cat-card i {
    font-size: 1.6rem;
    color: var(--main);
    margin-bottom: 12px;
    display: block;
}

.shop-cat-card strong {
    font-size: 1.05rem;
    display: block;
}

.shop-cat-card span {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 6px;
    display: block;
}

/* Product grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.shop-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 204, 0, 0.35);
}

.shop-card-img {
    aspect-ratio: 4/3;
    background: #111;
    overflow: hidden;
}

.shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-body .shop-cat {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--main);
    font-weight: 700;
    margin-bottom: 6px;
}

.shop-card-body h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.shop-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.shop-card-body h3 a:hover { color: var(--main); }

.shop-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--main);
    margin-top: auto;
}

.shop-card-actions {
    margin-top: 12px;
}

/* Buttons */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: filter 0.15s, transform 0.15s;
}

.shop-btn-primary {
    background: linear-gradient(145deg, var(--main) 0%, var(--main-dim) 100%);
    color: #111;
}

.shop-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.shop-btn-ghost {
    background: transparent;
    color: var(--main);
    border: 2px solid rgba(255, 204, 0, 0.45);
}

.shop-btn-ghost:hover { background: rgba(255, 204, 0, 0.1); }

.shop-btn-block { width: 100%; }

.shop-btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.5);
}

/* Forms */
.shop-form {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-form label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--muted);
}

.shop-form input,
.shop-form textarea,
.shop-form select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(0,0,0,0.45);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.shop-form input:focus,
.shop-form textarea:focus,
.shop-form select:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.shop-form-wide { max-width: 640px; }

/* Product detail */
.shop-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 800px) {
    .shop-product-layout { grid-template-columns: 1fr; }
}

.shop-product-gallery {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.shop-product-gallery img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.shop-product-info h1 {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
}

.shop-product-info .shop-price-big {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--main);
    margin-bottom: 20px;
}

.shop-desc {
    color: var(--muted);
    line-height: 1.65;
    white-space: pre-wrap;
    margin-bottom: 24px;
}

.shop-stock {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.shop-stock.ok { color: var(--ok); }
.shop-stock.no { color: var(--danger); }

/* Cart table */
.shop-table-wrap {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.shop-table th,
.shop-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.shop-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.shop-table tr:last-child td { border-bottom: 0; }

.shop-qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-qty-form input[type="number"] {
    width: 64px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: #111;
    color: var(--text);
}

.shop-summary {
    margin-top: 24px;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    max-width: 400px;
    margin-left: auto;
}

.shop-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
}

.shop-summary-row span:last-child { color: var(--main); }

/* Flash */
.shop-flash {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.shop-flash-err {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: #ffb4b4;
}

.shop-flash-ok {
    background: rgba(109, 255, 154, 0.1);
    border: 1px solid rgba(109, 255, 154, 0.35);
    color: var(--ok);
}

/* Footer */
.shop-footer {
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.shop-footer a { color: var(--main); font-weight: 600; }

.shop-footer-note {
    max-width: 560px;
    margin: 14px auto 0;
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.92;
}

.shop-legal {
    max-width: 640px;
    margin: 0 auto 40px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.shop-legal h2 {
    color: var(--text);
    font-size: 1.05rem;
    margin: 28px 0 10px;
}

.shop-legal p { margin: 0 0 12px; }

/* Install box */
.shop-install {
    max-width: 480px;
    margin: 60px auto;
    padding: 32px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
}

.shop-install h1 { margin-top: 0; }

/* Admin */
.shop-admin-bar {
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.35);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.shop-admin-bar a {
    color: var(--main);
    font-weight: 700;
    text-decoration: none;
}

.shop-admin-table input[type="text"],
.shop-admin-table input[type="number"],
.shop-admin-table select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: #111;
    color: var(--text);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-ok { background: rgba(109, 255, 154, 0.15); color: var(--ok); }
.badge-warn { background: rgba(255, 204, 0, 0.15); color: var(--main); }
