:root {
    color-scheme: light;
    --bg: #f7f8fb;
    --surface: #ffffff;
    --ink: #172033;
    --muted: #667085;
    --line: #d9dee8;
    --accent: #13715b;
    --accent-dark: #0e5545;
    --danger-bg: #fff2f0;
    --danger: #b42318;
    --success-bg: #ecfdf3;
    --success: #067647;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.topbar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 32px;
}

.brand {
    color: var(--accent-dark);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.topbar nav {
    display: flex;
    gap: 18px;
}

.topbar nav a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.shell {
    margin: 0 auto;
    max-width: 1120px;
    padding: 56px 24px;
}

.hero,
.panel,
.auth-card,
.admin-head,
.stat-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px;
}

.hero h1,
.panel h1,
.auth-card h1,
.admin-head h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.hero p,
.panel p,
.admin-head p {
    color: var(--muted);
    max-width: 680px;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.actions {
    margin-top: 24px;
}

.button,
button {
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    text-decoration: none;
}

.button:hover,
button:hover {
    background: var(--accent-dark);
}

.button-secondary {
    background: #eef2f6;
    color: var(--ink);
}

.button-secondary:hover {
    background: #dfe5ec;
}

.grid,
.stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.grid h2,
.panel h2 {
    font-size: 20px;
    margin: 0 0 8px;
}

.grid p,
.panel p {
    color: var(--muted);
    margin: 0;
}

.auth-card {
    margin: 0 auto;
    max-width: 460px;
}

.form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.form label {
    color: var(--muted);
    display: grid;
    font-weight: 700;
    gap: 8px;
}

.form input {
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
}

.notice {
    border-radius: 6px;
    font-weight: 700;
    margin: 18px 0 0;
    padding: 12px 14px;
}

.notice-error {
    background: var(--danger-bg);
    color: var(--danger);
}

.notice-success {
    background: var(--success-bg);
    color: var(--success);
}

.admin-head {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-grid article span {
    color: var(--accent-dark);
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.stat-grid article p {
    color: var(--muted);
    font-weight: 700;
    margin: 10px 0 0;
}

.muted-panel {
    margin-top: 24px;
}

.phase-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.phase-card {
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: 44px 1fr;
    padding: 22px;
}

.phase-marker span {
    align-items: center;
    background: #eef2f6;
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.phase-done .phase-marker span {
    background: var(--success-bg);
    color: var(--success);
}

.phase-next {
    border-color: var(--accent);
}

.phase-next .phase-marker span {
    background: #e6f4ef;
    color: var(--accent-dark);
}

.phase-title-row {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.phase-title-row h2 {
    font-size: 20px;
    margin: 0;
}

.phase-body ul {
    color: var(--muted);
    margin: 12px 0 0;
    padding-left: 20px;
}

.phase-body li + li {
    margin-top: 6px;
}

.status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
    white-space: nowrap;
}

.status-done {
    background: var(--success-bg);
    color: var(--success);
}

.status-next {
    background: #e6f4ef;
    color: var(--accent-dark);
}

.status-todo {
    background: #eef2f6;
    color: var(--muted);
}

.table-panel,
.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 24px;
    overflow-x: auto;
    padding: 24px;
}

.data-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

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

.table-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.button-small,
.button-danger {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    text-decoration: none;
}

.button-small {
    background: #eef2f6;
    color: var(--ink);
}

.button-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.form-wide {
    max-width: 680px;
}

.form select,
.form input[type="number"] {
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
}

.check-row {
    align-items: center;
    color: var(--ink) !important;
    display: flex !important;
    font-weight: 700;
    gap: 10px !important;
}

.check-row input {
    height: 18px;
    width: 18px;
}

.empty-state {
    color: var(--muted);
    font-weight: 700;
    margin: 0;
}

@media (max-width: 760px) {
    .topbar {
        padding: 0 18px;
    }

    .shell {
        padding: 32px 16px;
    }

    .grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .phase-card {
        grid-template-columns: 1fr;
    }

    .phase-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    padding: 10px 12px;
}

.thumb {
    border-radius: 6px;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    max-width: 180px;
}

.import-gallery-preview {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    margin: 14px 0 18px;
    max-width: 760px;
}

.import-gallery-preview img {
    aspect-ratio: 1 / 1;
    background: #f4f6f8;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.filter-bar,
.inline-form,
.cart-add,
.total-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.filter-bar select,
.filter-bar input,
.inline-form select,
.cart-add input,
.qty {
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    min-height: 42px;
    padding: 8px 10px;
}

.filter-bar .check-row {
    min-height: 42px;
}

.admin-product-filters {
    align-items: flex-end;
}

.admin-product-filters input[type="search"] {
    min-width: 220px;
}

.product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.product-card-media {
    aspect-ratio: 4 / 3;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 6px;
    position: relative;
}

.product-card-media img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    width: 100%;
}

.product-card-flags {
    display: grid;
    gap: 6px;
    left: 10px;
    position: absolute;
    top: 10px;
    z-index: 2;
}

.product-card-flags span {
    background: #e6007e;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 8px;
    text-transform: uppercase;
    width: fit-content;
}

.product-card h2 {
    font-size: 20px;
    line-height: 1.2;
    margin: 8px 0 8px;
}

.product-card p {
    color: var(--muted);
}

.product-card-category,
.product-card-brand {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 14px 0 0;
    text-transform: uppercase;
}

.product-card-brand {
    margin-top: 0;
}

.product-card-price {
    color: var(--ink);
    display: block;
    font-size: 22px;
    margin-top: 10px;
}

.product-card-details {
    margin-top: auto;
    width: fit-content;
}

.product-detail {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 28px;
}

.product-detail img {
    border-radius: 8px;
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.price {
    color: var(--accent-dark);
    display: block;
    font-size: 30px;
    margin: 14px 0;
}

.attrs {
    color: var(--muted);
    padding-left: 20px;
}

@media (max-width: 760px) {
    .product-grid,
    .product-detail {
        grid-template-columns: 1fr;
    }
}
.mobile-hero {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 30px;
}

.product-card small {
    color: var(--accent-dark);
    display: block;
    font-weight: 700;
    margin: 8px 0 14px;
}

.variant-editor {
    display: grid;
    gap: 12px;
    overflow-x: auto;
}

.variant-builder {
    display: grid;
    gap: 18px;
}

.variant-builder h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.variant-table input {
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    min-height: 38px;
    min-width: 110px;
    padding: 8px 10px;
    width: 100%;
}

.variant-table input[type="color"] {
    cursor: pointer;
    min-width: 54px;
    padding: 3px;
    width: 64px;
}

.mobile-product {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    padding: 28px;
}

.mobile-gallery {
    position: relative;
}

.badges {
    display: grid;
    gap: 6px;
    left: 12px;
    position: absolute;
    top: 12px;
    z-index: 2;
}

.badges span {
    background: #1f2937;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 8px;
    width: fit-content;
}

.badges span:nth-child(2),
.badges span:nth-child(3) {
    background: #40c878;
}

.mobile-main-image {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    width: 100%;
}

.mobile-thumbs {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.mobile-thumbs img {
    background: #f4f6f8;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    height: 110px;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.mobile-thumbs img:hover {
    border-color: var(--accent);
}

.mobile-thumbs.large img {
    height: 180px;
}

.mobile-summary h1 {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.05;
    margin: 0 0 14px;
}

.product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.product-flags span {
    background: #e6007e;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 9px;
}

.installment-box {
    background: #f3f4f6;
    border-left: 4px solid #e6007e;
    border-radius: 8px;
    margin: 18px 0;
    padding: 20px;
}

.installment-box span,
.installment-box small {
    color: var(--muted);
    display: block;
    font-weight: 700;
}

.installment-box strong {
    color: #1f232b;
    display: block;
    font-size: 34px;
    line-height: 1.1;
    margin: 8px 0;
}

.price-block {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 4px;
}

.price-block del {
    color: var(--muted);
    font-size: 18px;
}

.option-block {
    margin-top: 18px;
}

.swatches,
.memory-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.swatch {
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #667085;
    height: 36px;
    min-height: 36px;
    padding: 0;
    width: 36px;
}

.swatch.is-active {
    box-shadow: 0 0 0 2px var(--ink);
}

.memory-option {
    background: #fff;
    border: 1px solid var(--ink);
    color: var(--ink);
    min-height: 42px;
}

.memory-option.is-active {
    background: var(--ink);
    color: #fff;
}

.tabs {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 24px;
    padding: 24px;
}

.tabs > input {
    display: none;
}

.tab-labels {
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 22px;
    margin-bottom: 20px;
}

.tab-labels label {
    cursor: pointer;
    font-weight: 700;
    padding: 0 0 12px;
}

.tab-content {
    display: none;
}

#tab-opis:checked ~ .opis,
#tab-spec:checked ~ .spec,
#tab-galerija:checked ~ .galerija {
    display: block;
}

.spec-table {
    border-collapse: collapse;
    width: 100%;
}

.spec-table th,
.spec-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
}

.spec-table th {
    width: 220px;
}

.help-text {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 900px) {
    .mobile-product,
    .mobile-hero {
        grid-template-columns: 1fr;
    }

    .mobile-product,
    .mobile-hero {
        display: grid;
    }
}
.detail-label {
    background: #e6007e;
    color: #fff;
    display: inline-flex;
    font-size: 20px;
    font-weight: 700;
    margin: -24px 0 24px -24px;
    padding: 10px 18px;
}

.simple-spec-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simple-spec-group h3 {
    color: #e6007e;
    font-size: 21px;
    margin: 0 0 12px;
}

.simple-spec-group table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
}

.simple-spec-group th,
.simple-spec-group td {
    background: #f3f3f3;
    border-bottom: 1px solid #fff;
    padding: 11px 10px;
    text-align: left;
    vertical-align: top;
}

.simple-spec-group th {
    background: #e9e9e9;
    font-weight: 400;
    width: 34%;
}

.simple-spec-group tr:first-child th {
    border-top-left-radius: 6px;
}

.simple-spec-group tr:first-child td {
    border-top-right-radius: 6px;
}

.simple-spec-group tr:last-child th {
    border-bottom-left-radius: 6px;
}

.simple-spec-group tr:last-child td {
    border-bottom-right-radius: 6px;
}

@media (max-width: 760px) {
    .simple-spec-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern theme layer */
body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 360px),
        var(--bg);
    color: var(--ink);
    font-family: var(--font-main);
    min-width: 320px;
}

img {
    max-width: 100%;
}

.topbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 15%);
    box-shadow: 0 10px 30px rgba(21, 25, 34, .05);
    gap: 20px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    gap: 10px;
    min-height: 64px;
    white-space: nowrap;
}

.brand::before {
    background: linear-gradient(135deg, var(--accent), var(--shop-accent));
    border-radius: 10px;
    content: "";
    height: 30px;
    width: 30px;
}

.topbar nav {
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.topbar nav a {
    border-radius: 999px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 14px;
    padding: 9px 12px;
}

.topbar nav a:hover {
    background: color-mix(in srgb, var(--accent), transparent 90%);
    color: var(--accent-dark);
}

.shell {
    max-width: 1240px;
    padding: 34px 22px 56px;
}

.hero,
.panel,
.auth-card,
.admin-head,
.grid article,
.stat-grid article,
.phase-card,
.tabs,
.mobile-product,
.form-panel,
.table-panel,
.mobile-hero,
.filter-bar {
    border-color: color-mix(in srgb, var(--line), transparent 12%);
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(21, 25, 34, .06);
}

.admin-head,
.mobile-hero {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent), transparent 84%), transparent 330px),
        var(--surface);
}

.hero h1,
.panel h1,
.auth-card h1,
.admin-head h1,
.mobile-hero h1,
.mobile-summary h1 {
    color: var(--ink);
    letter-spacing: 0;
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 0;
}

.button,
button,
.button-small,
.product-card-details {
    background: var(--accent);
    border-radius: calc(var(--radius) - 2px);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--accent), transparent 76%);
    color: #fff;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button:hover,
button:hover,
.button-small:hover,
.product-card-details:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.button-secondary {
    background: color-mix(in srgb, var(--ink), transparent 92%);
    color: var(--ink);
    box-shadow: none;
}

.button-secondary:hover {
    background: color-mix(in srgb, var(--ink), transparent 86%);
}

input,
select,
textarea,
.form input,
.filter-bar input,
.filter-bar select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 2px);
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    outline: none;
    padding: 10px 12px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent), transparent 86%);
}

.mobile-hero {
    align-items: center;
    background-color: var(--surface);
    border: 1px solid var(--line);
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr auto;
    margin-bottom: 22px;
    padding: 30px;
}

.mobile-hero h1 {
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.02;
    margin: 0 0 12px;
}

.filter-bar {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(140px, 1fr)) repeat(2, minmax(118px, .7fr)) auto;
    margin: 0 0 22px;
    padding: 16px;
}

.check-row {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    white-space: nowrap;
}

.check-row input {
    min-height: auto;
}

.product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(21, 25, 34, .06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 0 0 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
    border-color: color-mix(in srgb, var(--accent), var(--line) 35%);
    box-shadow: 0 24px 54px rgba(21, 25, 34, .1);
    transform: translateY(-3px);
}

.product-card-media {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 240px;
    padding: 20px;
    position: relative;
}

.product-card-media img {
    aspect-ratio: 1 / 1;
    height: 210px;
    object-fit: contain;
    width: 100%;
}

.product-card-flags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    left: 12px;
    position: absolute;
    top: 12px;
}

.product-card-flags span,
.product-flags span {
    background: var(--accent);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 9px;
}

.product-card-flags span:nth-child(2),
.product-flags span:nth-child(2) {
    background: var(--shop-accent);
}

.product-card-category,
.product-card-brand,
.product-card-installment {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 14px 16px 0;
    text-transform: uppercase;
}

.product-card h2 {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
    margin: 8px 16px 0;
    min-height: 46px;
}

.product-card-price {
    color: var(--accent);
    font-size: 22px;
    margin: 14px 16px 0;
}

.product-card-installment {
    color: var(--shop-accent);
    display: block;
    font-size: 13px;
    margin-top: 8px;
    text-transform: none;
}

.product-card-details {
    align-self: stretch;
    margin: auto 16px 0;
    text-align: center;
}

.mobile-product {
    align-items: start;
    background: var(--surface);
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
    padding: 26px;
}

.mobile-gallery {
    background: #fff;
    border-radius: var(--radius);
}

.mobile-main-image {
    background: #fff;
    border-radius: var(--radius);
    max-height: 620px;
    padding: 16px;
}

.mobile-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mobile-thumbs img {
    background: #fff;
    border-radius: calc(var(--radius) - 2px);
}

.mobile-summary {
    min-width: 0;
}

.mobile-summary h1 {
    font-size: clamp(32px, 4vw, 50px);
}

.installment-box {
    background: color-mix(in srgb, var(--accent), transparent 93%);
    border-left-color: var(--accent);
    border-radius: var(--radius);
}

.installment-box strong,
.price {
    color: var(--accent);
}

.swatch,
.memory-option {
    box-shadow: none;
    transform: none;
}

.swatch {
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--line), 0 8px 18px rgba(21, 25, 34, .12);
}

.swatch.is-active {
    box-shadow: 0 0 0 2px var(--accent), 0 10px 20px rgba(21, 25, 34, .14);
}

.memory-option {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: none;
}

.memory-option.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.cart-add {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 92px 1fr;
}

.mobile-gallery {
    min-width: 0;
}

.mobile-thumbs {
    display: flex;
    gap: 12px;
    grid-template-columns: none;
    margin-top: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.mobile-thumbs img {
    aspect-ratio: 1 / 1;
    flex: 0 0 108px;
    height: 108px;
    object-fit: contain;
    padding: 10px;
    scroll-snap-align: start;
}

.mobile-thumbs.large {
    display: flex;
}

.mobile-thumbs.large img {
    flex-basis: 150px;
    height: 150px;
}

.option-block b {
    color: var(--ink);
    display: block;
    font-size: 14px;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.option-block b span {
    color: var(--muted);
    font-weight: 800;
    margin-left: 4px;
    text-transform: none;
}

.swatches,
.memory-options {
    gap: 10px;
}

.swatch {
    height: 40px;
    min-height: 40px;
    position: relative;
    width: 40px;
}

.swatch::after {
    border: 2px solid #fff;
    border-radius: 999px;
    content: "";
    inset: 3px;
    position: absolute;
}

.memory-option {
    border-color: var(--ink);
    border-radius: 2px;
    font-size: 14px;
    min-height: 46px;
    padding: 10px 14px;
}

.tabs {
    background: var(--surface);
}

.tab-labels {
    gap: 6px;
    overflow-x: auto;
}

.tab-labels label {
    border-radius: 999px;
    color: var(--muted);
    flex: 0 0 auto;
    padding: 10px 14px;
}

#tab-opis:checked ~ .tab-labels label[for="tab-opis"],
#tab-spec:checked ~ .tab-labels label[for="tab-spec"],
#tab-galerija:checked ~ .tab-labels label[for="tab-galerija"] {
    background: var(--accent);
    color: #fff;
}

.detail-label,
.simple-spec-group h3 {
    color: var(--accent);
}

.detail-label {
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 calc(var(--radius) - 2px) 0;
}

.simple-spec-group th {
    background: color-mix(in srgb, var(--ink), transparent 92%);
}

.simple-spec-group td {
    background: color-mix(in srgb, var(--ink), transparent 96%);
}

.theme-form {
    display: grid;
    gap: 24px;
}

.theme-form h2 {
    margin: 0 0 14px;
}

.theme-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-grid label {
    color: var(--muted);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.theme-grid input[type="color"] {
    cursor: pointer;
    height: 48px;
    padding: 4px;
}

.theme-preview {
    max-width: 320px;
}

.theme-phone-preview {
    background:
        linear-gradient(90deg, #161a21 0 48%, #2c323d 48% 52%, #f5f7fa 52%),
        linear-gradient(135deg, var(--accent), var(--shop-accent));
    border-radius: 28px;
    box-shadow: inset 0 0 0 8px #1d222b;
    height: 210px;
    width: 128px;
}

.table-panel {
    overflow-x: auto;
}

.data-table {
    min-width: 920px;
}

.data-table th:last-child,
.data-table td:last-child {
    min-width: 170px;
    width: 170px;
}

.table-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

.table-actions .button-small,
.table-actions button {
    box-shadow: none;
    color: #fff;
    min-height: 38px;
    padding: 8px 12px;
}

.table-actions .button-small:hover,
.table-actions button:hover {
    box-shadow: none;
}

.table-actions .button-danger {
    background: #fff1f2;
    color: #b42318;
}

.table-actions .button-danger:hover {
    background: #ffe4e6;
    color: #991b1b;
}

.bulk-actions {
    display: inline-flex;
    margin: 0 8px 14px 0;
}

.bulk-actions button {
    box-shadow: none;
}

.product-editor-panel {
    padding: 0;
}

.product-editor-form {
    display: block;
}

.editor-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) 360px;
    padding: 22px;
}

.editor-main,
.editor-side {
    display: grid;
    gap: 18px;
}

.editor-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(21, 25, 34, .05);
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 20px;
}

.editor-sticky {
    position: sticky;
    top: 96px;
}

.editor-card-head {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px 1fr;
}

.editor-card-head > span {
    align-items: center;
    background: color-mix(in srgb, var(--accent), transparent 88%);
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.editor-card h2,
.editor-card h3 {
    color: var(--ink);
    line-height: 1.15;
    margin: 0;
}

.editor-card-head p {
    color: var(--muted);
    margin: 5px 0 0;
}

.editor-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-grid.one-column {
    grid-template-columns: 1fr;
}

.product-editor-form label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
}

.product-editor-form input,
.product-editor-form select,
.product-editor-form textarea {
    width: 100%;
}

.product-editor-form textarea {
    min-height: 110px;
    resize: vertical;
}

.editor-check {
    align-items: center;
    background: color-mix(in srgb, var(--ink), transparent 96%);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 2px);
    color: var(--ink) !important;
    display: flex !important;
    padding: 12px;
}

.editor-check input {
    width: auto;
}

.variant-builder {
    display: grid;
    gap: 18px;
}

.variant-builder section {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 2px);
    overflow: visible;
    padding: 14px;
}

.variant-section-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.variant-table {
    min-width: 0;
    table-layout: fixed;
}

.variant-table th:last-child,
.variant-table td:last-child {
    min-width: 52px;
    width: 52px;
}

.variant-table .button-danger {
    min-height: 36px;
    padding: 8px 11px;
}

.variant-table input,
.variant-table select {
    min-width: 0;
}

.memory-variant-table th:nth-child(1),
.memory-variant-table td:nth-child(1) {
    width: 155px;
}

.memory-variant-table th:nth-child(2),
.memory-variant-table td:nth-child(2),
.memory-variant-table th:nth-child(3),
.memory-variant-table td:nth-child(3) {
    width: 120px;
}

.memory-variant-table th:nth-child(4),
.memory-variant-table td:nth-child(4) {
    width: 86px;
}

.editor-submit {
    justify-self: start;
    min-height: 44px;
    padding-inline: 22px;
    width: auto;
}

.image-preview-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-preview-grid .preview {
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 2px);
    height: auto;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.live-filter button[type="submit"] {
    position: relative;
}

@media (max-width: 1100px) {
    .filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .editor-sticky {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding: 0 16px 12px;
    }

    .topbar nav {
        max-width: 100%;
        padding-bottom: 2px;
        width: 100%;
    }

    .shell {
        padding: 20px 14px 42px;
    }

    .admin-head,
    .mobile-hero {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .admin-head {
        display: grid;
    }

    .grid,
    .stat-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-product {
        grid-template-columns: 1fr;
        padding: 16px;
    }

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

    .mobile-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .brand {
        min-height: 58px;
    }

    .topbar nav a {
        font-size: 13px;
        padding: 8px 10px;
    }

    .hero,
    .panel,
    .auth-card,
    .admin-head,
    .tabs,
    .form-panel,
    .mobile-hero {
        padding: 18px;
    }

    .grid,
    .stat-grid,
    .product-grid,
    .filter-bar,
    .theme-grid,
    .cart-add {
        grid-template-columns: 1fr;
    }

    .editor-layout {
        padding: 14px;
    }

    .editor-card {
        padding: 16px;
    }

    .variant-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .product-card-media {
        min-height: 220px;
    }

    .product-card h2 {
        min-height: auto;
    }

    .mobile-summary h1 {
        font-size: 30px;
    }

    .mobile-thumbs,
    .mobile-thumbs.large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mobile-thumbs img,
    .mobile-thumbs.large img {
        height: 92px;
    }

    .installment-box strong {
        font-size: 28px;
    }

    .tab-labels {
        margin-left: -6px;
        margin-right: -6px;
    }
}

/* Product gallery slider final override */
/* Product editor clarity pass */
body:has(.product-editor-panel) .shell{max-width:1500px;padding-top:24px}
body:has(.product-editor-panel) .admin-head{margin-bottom:18px;padding:22px 26px}
body:has(.product-editor-panel) .admin-head h1{font-size:clamp(28px,3vw,42px);margin-bottom:8px}
.product-editor-panel{background:transparent;border:0;box-shadow:none}
.editor-layout{align-items:start;gap:20px;grid-template-columns:minmax(0,1fr) 340px;padding:0}
.editor-main,.editor-side{gap:16px}
.editor-card{border-radius:16px;box-shadow:0 8px 26px rgba(17,24,39,.055);gap:20px;padding:24px}
.editor-card-head{border-bottom:1px solid #edf0f4;padding-bottom:16px}
.editor-card-head h2{font-size:20px}
.editor-card-head p{font-size:13px;line-height:1.45}
.editor-grid{gap:16px;grid-template-columns:repeat(12,minmax(0,1fr))}
.editor-grid>label{grid-column:span 6}
.editor-grid>label:nth-of-type(3),.editor-grid>label:nth-of-type(4),.editor-grid>label:nth-of-type(5){grid-column:span 4}
.editor-grid.one-column{display:grid;grid-template-columns:1fr}
.editor-grid.one-column>label{grid-column:auto}
.product-editor-form label{color:#475467;font-size:12px;gap:7px;letter-spacing:.01em}
.product-editor-form input,.product-editor-form select,.product-editor-form textarea{border-color:#d7dde7;border-radius:10px;min-height:46px}
.product-editor-form textarea[name="short_description"]{min-height:92px}
.product-editor-form textarea[name="description"]{min-height:180px}
.category-first{color:var(--accent-dark)!important}
.category-first select{background:color-mix(in srgb,var(--accent),transparent 96%);min-height:50px}
.import-card{padding:0}
.import-card summary{border:0;cursor:pointer;list-style:none;padding:20px 24px}
.import-card summary::-webkit-details-marker{display:none}
.import-card summary:after{align-items:center;background:#f2f4f7;border-radius:50%;content:'+';display:flex;font-size:20px;font-weight:800;height:34px;justify-content:center;margin-left:auto;width:34px}
.import-card[open] summary:after{content:'−'}
.import-card>.editor-grid{border-top:1px solid #edf0f4;margin:0;padding:20px 24px 24px}
.variant-builder{gap:16px}
.variant-builder section{background:#fbfcfe;border-color:#e3e7ee;border-radius:14px;padding:18px}
.variant-section-head{margin-bottom:14px}
.variant-section-head h3{font-size:16px}
.variant-table{border-collapse:separate;border-spacing:0 7px}
.variant-table thead th{background:transparent;border:0;color:#667085;font-size:11px;padding:0 8px 5px;text-transform:uppercase}
.variant-table tbody tr{background:#fff;box-shadow:0 0 0 1px #e4e8ef}
.variant-table tbody td{border:0;padding:8px}
.variant-table tbody td:first-child{border-radius:10px 0 0 10px}
.variant-table tbody td:last-child{border-radius:0 10px 10px 0}
.variant-table input,.variant-table select{min-height:42px}
.spec-builder{gap:16px}
.spec-group-card{background:#fbfcfe;border-color:#e3e7ee;padding:18px}
.spec-group-head{border-bottom:1px solid #e8ecf2;padding-bottom:12px}
.spec-group-name{background:transparent!important;border:0!important;box-shadow:none!important;font-size:17px!important;padding-left:0!important}
.spec-item-row{background:#fff;border:1px solid #e4e8ef;border-radius:11px;padding:10px}
.spec-item-row textarea{min-height:48px!important}
.editor-side{position:sticky;top:18px}
.editor-sticky{position:static}
.editor-side .editor-card{padding:20px}
.editor-side .editor-card-head{padding-bottom:13px}
#basePriceFields{border:1px solid #e2e7ee;padding:14px}
#basePriceFields.is-overridden{opacity:.62}
.image-preview-grid{gap:7px;grid-template-columns:repeat(4,minmax(0,1fr))}
.image-preview-grid .preview{padding:4px}
.gallery-count{background:#f2f4f7;border-radius:8px;color:#667085;display:block;font-size:11px;padding:9px 10px}
.editor-submit{box-shadow:0 12px 28px color-mix(in srgb,var(--accent),transparent 70%);font-size:15px;min-height:52px;width:100%}
@media(max-width:1200px){.editor-layout{grid-template-columns:1fr}.editor-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:static}.editor-submit{grid-column:1/-1}.image-preview-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){
 body:has(.product-editor-panel) .shell{padding:12px 10px 90px}
 body:has(.product-editor-panel) .admin-head{padding:18px}
 .editor-card{padding:16px}.editor-card-head{gap:10px;grid-template-columns:30px 1fr}
 .editor-grid,.editor-grid.one-column{grid-template-columns:1fr}.editor-grid>label,.editor-grid>label:nth-of-type(n){grid-column:1}
 .editor-side{grid-template-columns:1fr}.image-preview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .import-card summary{padding:16px}.import-card>.editor-grid{padding:16px}
 .variant-builder section{padding:12px;overflow:visible}.variant-table{display:block;min-width:0!important}.variant-table thead{display:none}.variant-table tbody{display:grid;gap:12px}.variant-table tbody tr{border-radius:12px;display:grid;padding:11px}.variant-table tbody td{align-items:center;display:grid;gap:4px;grid-template-columns:92px 1fr;padding:5px}.variant-table tbody td:before{color:#667085;content:attr(data-label);font-size:10px;font-weight:900;text-transform:uppercase}.variant-table tbody td:last-child{width:auto}.variant-table .button-danger{justify-self:end}
 .spec-group-head,.spec-item-row{grid-template-columns:1fr}.spec-item-row .button-danger{justify-self:end}
 .editor-submit{bottom:10px;left:10px;position:fixed;width:calc(100% - 20px)}
}
/* GSM editor and installment configuration */
.category-first select { border: 2px solid color-mix(in srgb,var(--accent),transparent 55%); font-size: 16px; font-weight: 800; }
.spec-builder,.installment-options-public { display:grid; gap:14px; }
.spec-group-card,.installment-plan-card { background:linear-gradient(145deg,#fff,#f8fafc); border:1px solid var(--line); border-radius:14px; padding:16px; }
.spec-group-head,.plan-head,.rate-option { align-items:center; display:grid; gap:12px; grid-template-columns:minmax(180px,1fr) auto; margin-bottom:12px; }
.spec-group-name { font-size:16px; font-weight:900; }
.spec-items { display:grid; gap:10px; }
.spec-item-row { align-items:start; display:grid; gap:10px; grid-template-columns:minmax(150px,.35fr) minmax(260px,1fr) 42px; }
.spec-item-row textarea { min-height:48px; }
.installment-admin form,.rate-options { display:grid; gap:16px; }
.plan-head { grid-template-columns:minmax(220px,1fr) auto auto; }
.rate-option { background:#f1f5f9; border-radius:12px; grid-template-columns:140px 180px minmax(220px,1fr) 42px; padding:12px; }
.rate-example { color:var(--muted); font-size:13px; font-weight:700; }
.switch-row { align-items:center; display:flex!important; gap:8px; }
.switch-row input { width:auto; }
.installment-product-options { border-top:1px solid var(--line); display:grid; gap:9px; padding-top:14px; }
.installment-product-options p { color:var(--muted); margin:0; }
#basePriceFields { display:grid; gap:14px; transition:.2s ease; }
#basePriceFields.is-overridden { background:#eef1f5; border-radius:12px; opacity:.48; padding:12px; }
#basePriceFields.is-overridden:after { color:var(--ink); content:'Cijena se automatski određuje prema memoriji'; font-size:12px; font-weight:900; }
.price-rule-note { color:var(--muted); line-height:1.4; }
.installment-options-public { grid-template-columns:repeat(2,minmax(0,1fr)); }
.installment-options-public .installment-box { margin:0; }
[hidden] { display:none!important; }
@media(max-width:700px){
 .editor-layout{padding:10px}.editor-card{border-radius:14px;padding:14px}.editor-card-head{grid-template-columns:30px 1fr}
 .spec-group-head,.plan-head,.rate-option,.spec-item-row{grid-template-columns:1fr}
 .spec-item-row .button-danger,.rate-option .button-danger{justify-self:end}
 .variant-builder section{overflow-x:auto;padding:10px}.variant-table{min-width:620px}
 .installment-options-public{grid-template-columns:1fr}
 .editor-submit{bottom:12px;position:sticky;width:100%;z-index:5}
}
.mobile-gallery .mobile-thumbs,
.tabs .mobile-thumbs.large {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.mobile-gallery .mobile-thumbs::-webkit-scrollbar,
.tabs .mobile-thumbs.large::-webkit-scrollbar {
    display: none;
}

.mobile-gallery .mobile-thumbs img {
    flex: 0 0 108px;
    height: 108px;
}

.tabs .mobile-thumbs.large img {
    flex: 0 0 150px;
    height: 150px;
}

@media (max-width: 560px) {
    .mobile-gallery .mobile-thumbs img {
        flex-basis: 92px;
        height: 92px;
    }

    .tabs .mobile-thumbs.large img {
        flex-basis: 118px;
        height: 118px;
    }
}

/* Final product editor layout overrides */
body:has(.product-editor-panel) .shell{max-width:1500px}
.product-editor-panel .editor-layout{padding:0;grid-template-columns:minmax(0,1fr) 340px}
.product-editor-panel .editor-grid{grid-template-columns:repeat(12,minmax(0,1fr))}
.product-editor-panel .editor-grid>label{grid-column:span 6}
.product-editor-panel .editor-grid>label:nth-of-type(3),.product-editor-panel .editor-grid>label:nth-of-type(4),.product-editor-panel .editor-grid>label:nth-of-type(5){grid-column:span 4}
.product-editor-panel .editor-grid.one-column{grid-template-columns:1fr}
.product-editor-panel .editor-grid.one-column>label{grid-column:1}
.product-editor-panel .editor-side{position:sticky;top:18px}
.product-editor-panel .import-card{padding:0}
.product-editor-panel .image-preview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1200px){.product-editor-panel .editor-layout{grid-template-columns:1fr}.product-editor-panel .editor-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:static}.product-editor-panel .editor-submit{grid-column:1/-1}.product-editor-panel .image-preview-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:760px){.product-editor-panel .editor-grid,.product-editor-panel .editor-grid.one-column{grid-template-columns:1fr}.product-editor-panel .editor-grid>label,.product-editor-panel .editor-grid>label:nth-of-type(n){grid-column:1}.product-editor-panel .editor-side{grid-template-columns:1fr}.product-editor-panel .variant-builder section{overflow:visible}.product-editor-panel .variant-table{display:block;min-width:0!important}.product-editor-panel .variant-table thead{display:none}.product-editor-panel .variant-table tbody{display:grid;gap:12px}.product-editor-panel .variant-table tbody tr{border-radius:12px;display:grid;padding:11px}.product-editor-panel .variant-table tbody td{align-items:center;display:grid;gap:4px;grid-template-columns:92px 1fr;padding:5px;width:auto!important}.product-editor-panel .variant-table tbody td:before{color:#667085;content:attr(data-label);font-size:10px;font-weight:900;text-transform:uppercase}.product-editor-panel .editor-submit{bottom:10px;left:10px;position:fixed;width:calc(100% - 20px);z-index:20}}
/* Editor specification and sales sidebar refinement */
.product-editor-panel .spec-builder{display:grid;gap:18px}
.product-editor-panel .spec-group-card{background:#f8fafc;border:1px solid #dfe5ed;border-radius:14px;box-shadow:none;padding:18px}
.product-editor-panel .spec-group-head{align-items:end;border-bottom:1px solid #dfe5ed;display:grid;gap:14px;grid-template-columns:minmax(0,1fr) auto;margin:0 0 14px;padding:0 0 14px}
.product-editor-panel .spec-group-head label{color:var(--accent-dark)}
.product-editor-panel .spec-group-name{background:#fff!important;border:1px solid #cfd7e3!important;font-size:16px!important;font-weight:800;min-height:48px;padding:10px 12px!important}
.product-editor-panel .spec-items{display:grid;gap:10px}
.product-editor-panel .spec-item-row{align-items:end;background:#fff;border:1px solid #e0e6ee;border-radius:12px;display:grid;gap:12px;grid-template-columns:minmax(160px,.38fr) minmax(280px,1fr) 42px;padding:12px}
.product-editor-panel .spec-item-row label{gap:5px}
.product-editor-panel .spec-item-row label>span,.product-editor-panel .spec-group-head label>span{color:#667085;font-size:10px;font-weight:900;text-transform:uppercase}
.product-editor-panel .spec-item-row textarea{height:46px;min-height:46px!important;resize:vertical}
.product-editor-panel .add-spec{margin-top:12px}
.product-editor-panel #addSpecGroup{justify-self:start}
.product-editor-panel .editor-side-fields{display:grid;gap:14px}
.product-editor-panel .side-section{background:#f8fafc;border:1px solid #e1e6ed;border-radius:12px;display:grid;gap:10px;padding:13px}
.product-editor-panel .side-section h3{color:#344054;font-size:12px;letter-spacing:.06em;margin:0;text-transform:uppercase}
.product-editor-panel .side-two-columns{display:grid;gap:10px;grid-template-columns:1fr}
.product-editor-panel .installment-product-options{border-top:0;padding-top:13px}
.product-editor-panel .installment-product-options p{font-size:12px}
.product-editor-panel #basePriceFields{background:#fff;border:0;padding:0}
.product-editor-panel #basePriceFields.is-overridden{background:#eef2f6;padding:10px}
.product-editor-panel .editor-check{background:#fff;min-height:46px;padding:10px 12px}
@media(max-width:760px){.product-editor-panel .spec-group-head,.product-editor-panel .spec-item-row{grid-template-columns:1fr}.product-editor-panel .spec-group-head .button-danger,.product-editor-panel .spec-item-row .button-danger{justify-self:end}}
.product-editor-panel .spec-builder:empty:before{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;color:#667085;content:'Nema unesenih specifikacija. Klikni „Dodaj naslov“.';padding:22px;text-align:center}
.product-editor-panel .spec-group-actions{align-items:center;display:flex;gap:8px}
.product-editor-panel .spec-group-actions .button-small{box-shadow:none;white-space:nowrap}
.product-editor-panel .spec-group-actions .remove-group{font-size:20px;min-height:42px;padding:7px 13px}
.product-editor-panel .spec-item-row>.button-danger{font-size:19px;min-height:42px;padding:7px 12px}
@media(max-width:760px){.product-editor-panel .spec-group-actions{justify-content:space-between;width:100%}.product-editor-panel .spec-group-actions .add-spec{flex:1}}
.product-editor-panel .spec-group-head{grid-template-columns:minmax(0,1fr) auto}
.product-editor-panel .spec-item-row{display:grid;grid-template-columns:1fr}
.product-editor-panel .spec-item-head{align-items:end;display:grid;gap:12px;grid-template-columns:minmax(0,1fr) auto}
.product-editor-panel .spec-item-head .button-danger{font-size:20px;min-height:46px;padding:8px 14px}
.product-editor-panel .spec-description{width:100%}
.product-editor-panel .spec-description textarea{min-height:68px!important;width:100%}
@media(max-width:560px){.product-editor-panel .spec-group-head{align-items:stretch;grid-template-columns:1fr}.product-editor-panel .spec-group-actions{display:grid;grid-template-columns:1fr auto}.product-editor-panel .spec-item-head{grid-template-columns:minmax(0,1fr) 44px}}
/* Public/admin separation and dashboards */
.admin-quick-actions{display:grid;gap:14px;grid-template-columns:repeat(4,minmax(0,1fr));margin:20px 0}
.admin-quick-actions a{background:linear-gradient(145deg,#fff,#f8fafc);border:1px solid var(--line);border-radius:14px;display:grid;gap:5px;padding:18px;text-decoration:none;transition:.18s}
.admin-quick-actions a:hover{border-color:var(--accent);box-shadow:0 14px 30px rgba(21,25,34,.08);transform:translateY(-2px)}
.admin-quick-actions strong{color:var(--accent-dark);font-size:16px}.admin-quick-actions span{color:var(--muted);font-size:12px}
.dashboard-products{margin-top:20px;padding:0;overflow:hidden}
.dashboard-products-head{align-items:end;border-bottom:1px solid var(--line);display:grid;gap:20px;grid-template-columns:1fr minmax(300px,480px);padding:20px}
.dashboard-products-head h2{margin:0}.dashboard-live-search{display:grid;gap:6px}.dashboard-live-search span{color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase}
.dashboard-product-list{display:grid}.dashboard-product-row{align-items:center;border-bottom:1px solid #edf0f4;display:grid;gap:15px;grid-template-columns:minmax(240px,1fr) 160px 130px 90px;padding:14px 20px;text-decoration:none}
.dashboard-product-row:hover{background:#f8fafc}.dashboard-product-row div{display:grid}.dashboard-product-row div span{color:var(--muted);font-size:12px}.dashboard-product-row code{color:#667085}.dashboard-product-row b{text-align:right}.status-pill{border-radius:999px;font-size:11px;font-style:normal;font-weight:900;padding:6px 9px;text-align:center;text-transform:uppercase}.status-active{background:#dcfae6;color:#067647}.status-draft{background:#f2f4f7;color:#475467}.status-archived{background:#fee4e2;color:#b42318}
.public-search-panel{background:linear-gradient(135deg,var(--accent-dark),var(--accent));border-radius:18px;color:#fff;display:grid;gap:8px;margin:20px 0;padding:24px}.public-search-panel>label{font-size:22px;font-weight:900}.public-search-panel small{opacity:.8}.public-search-box{align-items:center;background:#fff;border-radius:13px;display:grid;grid-template-columns:44px 1fr;padding:4px}.public-search-box span{color:var(--accent);font-size:27px;text-align:center}.public-search-box input{border:0;box-shadow:none!important;font-size:17px;min-height:50px}
.public-no-results{background:#fff;border:1px dashed var(--line);border-radius:14px;padding:30px;text-align:center}
.public-info-page{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 45px rgba(21,25,34,.06);margin:auto;max-width:850px;padding:38px}.public-info-page h1{font-size:clamp(34px,5vw,58px);margin:0 0 14px}.public-info-form{display:grid;gap:14px;grid-template-columns:1fr auto;margin-top:25px}.public-info-form label{display:grid;gap:7px}.contact-cards{display:grid;gap:14px;grid-template-columns:repeat(2,1fr);margin-top:25px}.contact-cards article{background:#f8fafc;border-radius:13px;display:grid;gap:6px;padding:20px}
@media(max-width:900px){.admin-quick-actions{grid-template-columns:repeat(2,1fr)}.dashboard-products-head{grid-template-columns:1fr}.dashboard-product-row{grid-template-columns:1fr auto}.dashboard-product-row code,.dashboard-product-row em{display:none}.dashboard-product-row b{text-align:right}}
@media(max-width:560px){.admin-quick-actions{grid-template-columns:1fr}.public-search-panel{padding:18px}.public-info-form,.contact-cards{grid-template-columns:1fr}.dashboard-product-row{padding:13px}.topbar nav{gap:4px}}
.mobile-summary .installment-options-public{display:grid;grid-template-columns:1fr;width:100%}
.mobile-summary .installment-options-public .installment-box{box-sizing:border-box;width:100%}
.shop-filter-drawer{background:#fff;border:1px solid var(--line);border-radius:14px;margin:0 0 22px;overflow:hidden}
.shop-filter-drawer>summary{align-items:center;cursor:pointer;display:flex;gap:12px;list-style:none;padding:15px 18px;user-select:none}
.shop-filter-drawer>summary::-webkit-details-marker{display:none}
.shop-filter-drawer>summary span{color:var(--ink);font-size:15px;font-weight:900}
.shop-filter-drawer>summary small{color:var(--muted);flex:1}
.shop-filter-drawer>summary:after{align-items:center;background:color-mix(in srgb,var(--accent),transparent 90%);border-radius:50%;color:var(--accent);content:'+';display:flex;font-size:20px;font-weight:900;height:34px;justify-content:center;width:34px}
.shop-filter-drawer[open]>summary:after{content:'−'}
.shop-filter-drawer[open]>summary{border-bottom:1px solid var(--line)}
.shop-filter-drawer .filter-bar{border:0;border-radius:0;box-shadow:none;margin:0}
@media(max-width:560px){.shop-filter-drawer>summary small{display:none}}
/* Installment request flow */
.purchase-buttons{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.purchase-buttons>*{align-items:center;width:100%}.installment-request-button{background:#111827}.installment-request-button:hover{background:#000}
.installment-request-page{display:grid;gap:20px}.installment-request-hero{align-items:center;background:linear-gradient(135deg,#101828,#344054);border-radius:20px;color:#fff;display:grid;gap:24px;grid-template-columns:1fr auto;padding:34px}.installment-request-hero h1{font-size:clamp(36px,5vw,60px);margin:0}.installment-request-hero p{color:#d0d5dd}.request-device{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:15px;display:grid;gap:5px;min-width:280px;padding:20px}.request-device span{color:#d0d5dd}.request-device b{font-size:23px}
.installment-request-form{display:grid;gap:18px}.installment-request-form>section{background:#fff;border:1px solid var(--line);border-radius:16px;display:grid;gap:16px;padding:24px}.installment-request-form h2{margin:0}.request-form-grid,.request-summary-grid{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.installment-request-form label{color:#475467;display:grid;font-size:12px;font-weight:800;gap:7px}.installment-request-form label small{color:var(--muted);font-weight:500}.request-consent{align-items:start!important;background:#fff;border:1px solid var(--line);border-radius:14px;display:grid!important;font-size:13px!important;grid-template-columns:auto 1fr;padding:16px}.request-consent input{margin-top:2px;min-height:auto;width:auto}.request-submit{font-size:17px;min-height:56px}.request-summary-grid input[readonly]{background:#f2f4f7}
@media(max-width:800px){.purchase-buttons,.installment-request-hero,.request-form-grid,.request-summary-grid{grid-template-columns:1fr}.request-device{min-width:0}.installment-request-hero{padding:24px}.installment-request-form>section{padding:18px}}
.product-card .product-card-installment{box-sizing:border-box;color:var(--ink);display:block;left:auto;margin:8px 16px 0;padding:0;position:static;text-align:left;transform:none;width:auto}
.product-card .product-card-installment strong{color:#d92d20;font:inherit;font-weight:900}
.mobile-summary .cart-add{align-items:center;grid-template-columns:92px minmax(0,1fr)}
.mobile-summary .purchase-buttons{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;width:100%}
.mobile-summary .purchase-buttons .button,.mobile-summary .purchase-buttons button{align-items:center;display:flex;justify-content:center;margin:0;min-height:48px;width:100%}
@media(max-width:700px){.mobile-summary .cart-add{grid-template-columns:1fr}.mobile-summary .purchase-buttons{gap:14px;grid-template-columns:1fr}.mobile-summary .purchase-buttons .button,.mobile-summary .purchase-buttons button{min-height:50px}}
.mobile-summary .installment-box small{font-size:12px;font-weight:400;line-height:1.45}
.tabs .mobile-thumbs.large img{cursor:zoom-in}
.gallery-lightbox{align-items:center;background:rgba(9,14,24,.92);display:flex;inset:0;justify-content:center;padding:64px 24px 42px;position:fixed;z-index:9999}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox img{background:#fff;border-radius:14px;box-shadow:0 30px 90px rgba(0,0,0,.45);max-height:calc(100vh - 130px);max-width:min(100%,1100px);object-fit:contain}
.gallery-lightbox-close{align-items:center;background:#fff;border-radius:50%;box-shadow:none;color:#111827;display:flex;font-size:30px;height:46px;justify-content:center;min-height:46px;padding:0;position:absolute;right:22px;top:18px;width:46px}
.gallery-lightbox-close:hover{background:#f2f4f7;color:#000;transform:none}
.gallery-lightbox-caption{bottom:14px;color:#fff;font-size:13px;left:24px;position:absolute;right:24px;text-align:center}
body.lightbox-open{overflow:hidden}
@media(max-width:600px){.gallery-lightbox{padding:60px 12px 36px}.gallery-lightbox img{max-height:calc(100vh - 110px)}.gallery-lightbox-close{right:12px;top:10px}}
.product-card{cursor:pointer;position:relative;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.product-card-full-link{border-radius:inherit;inset:0;position:absolute;z-index:1}
.product-card-full-link:focus-visible{box-shadow:0 0 0 4px color-mix(in srgb,var(--accent),transparent 70%);outline:0}
.product-card:hover{border-color:color-mix(in srgb,var(--accent),transparent 45%);box-shadow:0 22px 48px rgba(21,25,34,.12);transform:translateY(-3px)}
.product-card .product-card-details{position:relative;z-index:2}
@media(max-width:600px){.product-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.product-card-media{min-height:155px}.product-card-media img{height:155px;padding:8px}.product-card-category,.product-card-brand{font-size:10px;margin-left:10px;margin-right:10px}.product-card h2{font-size:14px;line-height:1.25;margin-left:10px;margin-right:10px;min-height:35px}.product-card-price{font-size:17px;margin-left:10px;margin-right:10px}.product-card .product-card-installment{font-size:11px;margin-left:10px;margin-right:10px}.product-card-details{font-size:12px;margin-left:10px;margin-right:10px;min-height:40px;padding:9px 10px}.product-card-flags{left:7px;top:7px}.product-card-flags span{font-size:9px;padding:5px 6px}}
