: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;
}

.product-video{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#0b0d12}
.product-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-unavailable{margin:0;padding:40px 16px;text-align:center;color:var(--muted);background:var(--surface-soft,#f5f6f8);border-radius:14px}
.product-description{color:#344054;font-size:16px;line-height:1.75;max-width:900px;white-space:normal}

.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}}

/* Public storefront header */
.public-header{align-items:center;backdrop-filter:blur(14px);background:rgba(255,255,255,.94);border-bottom:1px solid color-mix(in srgb,var(--line),transparent 15%);box-shadow:0 8px 24px rgba(21,25,34,.06);display:grid;grid-template-columns:1fr auto 1fr;height:68px;padding:0 24px;position:sticky;top:0;z-index:50}
.public-header-logo{align-items:center;display:flex;height:58px;justify-content:center;max-width:240px;text-decoration:none}
.public-header-logo img{display:block;max-height:46px;max-width:220px;object-fit:contain}
.public-header-logo strong{color:var(--ink);font-size:21px;letter-spacing:-.03em}
.public-header-action{align-items:center;background:transparent;border:0;color:var(--ink);display:inline-flex;font:inherit;font-size:13px;font-weight:800;gap:7px;padding:10px;text-decoration:none}
.public-header-action svg{fill:none;height:25px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;width:25px}
.menu-toggle{appearance:none;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:var(--ink)!important;cursor:pointer;justify-self:start;outline:0;padding:9px!important}
.menu-toggle span{display:none}
.menu-toggle:hover,.menu-toggle:active,.menu-toggle:focus{background:#fff!important;box-shadow:none!important;color:var(--ink)!important;transform:none!important}
.menu-toggle:focus-visible{outline:2px solid var(--line);outline-offset:2px}
.cart-action{justify-self:end;position:relative}
.cart-count{align-items:center;background:var(--accent);border:2px solid #fff;border-radius:999px;color:#fff;display:flex;font-size:10px;height:20px;justify-content:center;line-height:1;min-width:20px;padding:0 4px;position:absolute;right:0;top:1px}
.category-drawer-backdrop{background:rgba(15,23,42,.42);inset:0;opacity:0;pointer-events:none;position:fixed;transition:opacity .2s ease;z-index:60}
.category-drawer{background:var(--surface);box-shadow:18px 0 48px rgba(15,23,42,.18);height:100%;left:0;max-width:88vw;overflow-y:auto;padding:18px;position:fixed;top:0;transform:translateX(-105%);transition:transform .25s ease;width:360px;z-index:61}
.category-drawer-head{align-items:center;border-bottom:1px solid var(--line);display:flex;font-size:20px;justify-content:space-between;padding:7px 4px 18px}
.category-drawer-head button{align-items:center;background:var(--bg);border:0;border-radius:999px;color:var(--ink);cursor:pointer;display:flex;font-size:26px;height:38px;justify-content:center;line-height:1;width:38px}
.category-drawer nav{display:grid;padding-top:12px}
.category-drawer nav a{align-items:center;border-bottom:1px solid color-mix(in srgb,var(--line),transparent 35%);display:flex;font-weight:750;justify-content:space-between;padding:15px 8px;text-decoration:none}
.category-drawer nav a span{color:var(--muted);font-size:22px}
.categories-open{overflow:hidden}
.categories-open .category-drawer{transform:translateX(0)}
.categories-open .category-drawer-backdrop{opacity:1;pointer-events:auto}
.theme-logo-setting{align-items:start;display:grid;gap:20px;grid-template-columns:minmax(0,1fr) auto}
.theme-logo-setting small{color:var(--muted);display:block;margin-top:6px}
.theme-logo-current{align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:12px;display:flex;gap:16px;padding:12px}
.theme-logo-current img{max-height:54px;max-width:180px;object-fit:contain}
@media(max-width:600px){.public-header{height:60px;padding:0 10px}.public-header-logo{height:52px;max-width:170px}.public-header-logo img{max-height:40px;max-width:160px}.public-header-action{padding:7px}.public-header-action span{display:none}.public-header-action svg{height:26px;width:26px}.cart-count{right:-1px;top:-1px}.theme-logo-setting{grid-template-columns:1fr}.theme-logo-current{align-items:flex-start;flex-direction:column}}
.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}
.mobile-main-image.is-placeholder{background:#f6f8fb;max-height:540px;object-fit:contain}
.product-card-media img.is-placeholder{background:#f6f8fb;opacity:.9;padding:22px}
.mobile-summary .simple-cart-add{align-items:end;background:#f8fafc;border:1px solid var(--line);border-radius:16px;gap:12px;grid-template-columns:92px minmax(0,1fr);margin-top:20px;padding:16px}
.mobile-summary .simple-cart-add .price-block{grid-column:1/-1}
.mobile-summary .simple-cart-add .price{font-size:clamp(30px,4vw,42px);line-height:1;margin:0}
.simple-quantity{color:var(--muted);display:grid;font-size:10px;font-weight:850;gap:5px;letter-spacing:.06em;text-transform:uppercase}
.simple-quantity input{background:#fff;border:1px solid var(--line);border-radius:10px;font-size:16px;font-weight:800;height:50px;min-height:50px;padding:8px;text-align:center;width:100%}
.mobile-summary .simple-add-button{border-radius:10px;font-size:15px;min-height:50px;width:100%}
.mobile-summary .product-single-quantity{display:block}.mobile-summary .product-single-quantity .purchase-buttons{width:100%}
.mobile-summary .simple-cart-add{grid-template-columns:1fr}.mobile-summary .simple-cart-add .simple-add-button{grid-column:1/-1}
@media(max-width:700px){
    .mobile-summary .cart-add{grid-template-columns:76px minmax(0,1fr)}
    .mobile-summary .simple-cart-add{grid-template-columns:1fr;padding:13px}
    .mobile-summary .simple-cart-add .price-block{grid-column:1/-1}
    .mobile-summary .simple-cart-add .price{font-size:31px}
}
.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}}
.product-card{background:#fff;border-radius:16px;overflow:hidden;padding-bottom:14px}
.product-card .product-card-category{color:#667085;font-size:11px;letter-spacing:.06em;margin:13px 16px 0;text-transform:uppercase}

/* Modern storefront home */
.storefront-hero{align-items:center;background:linear-gradient(135deg,#0f172a 0%,#17233d 58%,color-mix(in srgb,var(--accent),#17233d 70%) 100%);border-radius:28px;color:#fff;display:grid;gap:36px;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);min-height:470px;overflow:hidden;padding:clamp(34px,6vw,76px);position:relative}
.storefront-hero:before{background:radial-gradient(circle,rgba(255,255,255,.12),transparent 68%);content:"";height:440px;position:absolute;right:-80px;top:-160px;width:440px}
.storefront-hero-copy{position:relative;z-index:2}.storefront-hero .eyebrow{color:#fff;opacity:.72}.storefront-hero h1{font-size:clamp(40px,5.7vw,72px);letter-spacing:-.055em;line-height:.98;margin:10px 0 22px;max-width:760px}.storefront-hero h1 span{color:color-mix(in srgb,var(--accent),#fff 20%)}.storefront-hero-copy>p:not(.eyebrow){color:#d6deeb;font-size:clamp(16px,1.8vw,20px);line-height:1.6;max-width:610px}
.storefront-hero-actions{align-items:center;display:flex;flex-wrap:wrap;gap:24px;margin-top:30px}.storefront-hero-actions .button{background:#fff;color:#101828;padding:15px 23px}.storefront-text-link{color:#fff;font-weight:800;text-decoration:none}.storefront-text-link span,.storefront-section-heading>a span{display:inline-block;margin-left:5px;transition:transform .18s ease}.storefront-text-link:hover span,.storefront-section-heading>a:hover span{transform:translateX(4px)}
.storefront-hero-art{height:330px;position:relative}.hero-products-image{filter:drop-shadow(0 28px 28px rgba(0,0,0,.42));height:390px;object-fit:contain;position:absolute;right:-15px;top:-32px;width:330px;z-index:2}.hero-orbit{border:1px solid rgba(255,255,255,.18);border-radius:50%;position:absolute}.hero-orbit-one{height:290px;right:5px;top:20px;width:290px}.hero-orbit-two{height:210px;right:45px;top:60px;width:210px}
.storefront-categories,.storefront-product-section{margin-top:clamp(42px,6vw,76px)}.storefront-section-heading{align-items:end;display:flex;justify-content:space-between;margin-bottom:22px}.storefront-section-heading h2{font-size:clamp(27px,3.3vw,40px);letter-spacing:-.035em;margin:4px 0 0}.storefront-section-heading .eyebrow{margin:0}.storefront-section-heading>a{color:var(--ink);font-weight:800;text-decoration:none}
.category-showcase{display:grid;gap:14px;grid-template-columns:repeat(5,minmax(0,1fr))}.category-showcase-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;color:var(--ink);display:flex;flex-direction:column;min-height:210px;padding:22px;position:relative;text-decoration:none;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.category-showcase-card:hover{border-color:color-mix(in srgb,var(--accent),var(--line) 35%);box-shadow:0 22px 48px rgba(15,23,42,.1);transform:translateY(-4px)}.category-showcase-icon{align-items:center;background:color-mix(in srgb,var(--accent),transparent 90%);border-radius:16px;color:var(--accent);display:flex;height:62px;justify-content:center;width:62px}.category-showcase-icon svg{fill:none;height:34px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7;width:34px}.category-showcase-copy{display:grid;gap:7px;margin-top:auto}.category-showcase-copy strong{font-size:18px}.category-showcase-copy small{color:var(--muted);line-height:1.4}.category-showcase-arrow{font-size:21px;position:absolute;right:20px;top:20px}
.storefront-product-row{display:grid;gap:18px;grid-template-columns:repeat(4,minmax(0,1fr))}.storefront-product-row .product-card{margin:0}
.mobile-home-categories{display:none}
@media(max-width:980px){.category-showcase{grid-template-columns:repeat(3,minmax(0,1fr))}.storefront-hero{grid-template-columns:1fr}.storefront-hero-art{display:none}.storefront-product-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
    .storefront-hero{border-radius:20px;min-height:400px;padding:34px 22px}
    .storefront-hero h1{font-size:42px}
    .storefront-hero-actions{align-items:flex-start;flex-direction:column;gap:18px}
    .category-showcase{display:flex;margin-left:-16px;margin-right:-16px;overflow-x:auto;padding:2px 16px 18px;scroll-snap-type:x mandatory}
    .category-showcase-card{flex:0 0 72vw;min-height:180px;scroll-snap-align:start}
    .storefront-section-heading{align-items:center}
    .storefront-section-heading>a{font-size:13px}
    .storefront-product-row{display:flex;gap:13px;margin-left:-16px;margin-right:-16px;overflow-x:auto;padding:3px 16px 22px;scroll-padding-left:16px;scroll-snap-type:x mandatory}
    .storefront-product-row .product-card{border-radius:18px;box-shadow:0 10px 26px rgba(15,23,42,.08);flex:0 0 68vw;padding-bottom:13px;scroll-snap-align:start}
    .storefront-product-row .product-card-media{aspect-ratio:1/1;background:linear-gradient(145deg,#fff,#f7f8fb);min-height:0;padding:8px}
    .storefront-product-row .product-card-media img{height:100%;max-height:none;padding:5px;transform:scale(1.04)}
    .storefront-product-row .product-card-category{font-size:9px;letter-spacing:.075em;margin:11px 13px 0}
    .storefront-product-row .product-card h2{font-size:15px;line-height:1.25;margin:5px 13px 0;min-height:38px}
    .storefront-product-row .product-card-price{font-size:20px;margin:9px 13px 0}
    .storefront-product-row .product-card .product-card-installment{font-size:10px;line-height:1.3;margin:4px 13px 0}
    .storefront-product-row .product-card-details{background:var(--ink);border-radius:10px;color:#fff;font-size:11px;margin:11px 13px 0;min-height:36px;padding:9px 12px;width:calc(100% - 26px)}
    .storefront-product-row .product-card-flags{left:9px;top:9px}
    .storefront-product-row .product-card-flags span{border-radius:5px;font-size:9px;padding:5px 6px}
}
.product-card h2{font-size:18px;line-height:1.25;margin:5px 16px 0;min-height:0}
.product-card .product-card-price{color:var(--ink);font-size:22px;line-height:1.15;margin:9px 16px 0}
.product-card .product-card-installment{font-size:12px;line-height:1.25;margin:5px 16px 0}
.product-card .product-card-details{align-items:center;display:flex;justify-content:center;margin:16px 16px 0;min-height:44px;width:calc(100% - 32px)}
@media(max-width:600px){.product-card{border-radius:13px;padding-bottom:10px}.product-card .product-card-category{font-size:9px;margin:9px 10px 0}.product-card h2{font-size:14px;line-height:1.22;margin:4px 10px 0;min-height:34px}.product-card .product-card-price{font-size:17px;margin:7px 10px 0}.product-card .product-card-installment{font-size:10px;margin:4px 10px 0}.product-card .product-card-details{font-size:11px;margin:12px 10px 0;min-height:39px;width:calc(100% - 20px)}}

/* Premium mobile homepage concept */
@media(max-width:650px){
    body:has(.storefront-hero){background:#f3f3f1}
    body:has(.storefront-hero) .public-header{background:rgba(255,255,255,.88);border-bottom-color:rgba(15,23,42,.06);box-shadow:none}
    body:has(.storefront-hero) .shell{padding-left:12px;padding-right:12px;padding-top:12px}
    .storefront-hero{background:linear-gradient(145deg,#080a0e 0%,#151922 56%,#251310 100%);border-radius:26px;display:block;isolation:isolate;min-height:590px;padding:38px 24px;position:relative}
    .storefront-hero:before{background:radial-gradient(circle,color-mix(in srgb,var(--accent),transparent 45%),transparent 66%);height:390px;opacity:.6;right:-150px;top:-85px;width:390px}
    .storefront-hero:after{background:linear-gradient(180deg,transparent,rgba(8,10,14,.76));bottom:0;content:"";height:180px;inset-inline:0;position:absolute;z-index:1}
    .storefront-hero-copy{max-width:335px;position:static}.storefront-hero-copy>h1,.storefront-hero-copy>p{position:relative;z-index:3}
    .storefront-hero .eyebrow{align-items:center;display:flex;font-size:10px;font-weight:850;gap:8px;letter-spacing:.16em;opacity:.82;text-transform:uppercase}
    .storefront-hero .eyebrow:before{background:#f15a29;border-radius:50%;box-shadow:0 0 0 5px rgba(241,90,41,.14);content:"";height:7px;width:7px}
    .storefront-hero h1{font-size:clamp(42px,12.5vw,55px);letter-spacing:-.065em;line-height:.92;margin:18px 0 20px}
    .storefront-hero h1 span{color:#f15a29}
    .storefront-hero-copy>p:not(.eyebrow){color:#aeb7c6;font-size:14px;line-height:1.55;max-width:285px}
    .storefront-hero-actions{align-items:center;bottom:27px;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto;left:24px;margin:0;position:absolute;right:24px;z-index:4}
    .storefront-hero-actions .button{align-items:center;background:#f15a29;border-radius:14px;color:#fff;display:flex;font-size:13px;justify-content:center;min-height:50px;padding:12px 15px}
    .storefront-text-link{align-items:center;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);border-radius:14px;display:flex;font-size:0;height:50px;justify-content:center;width:50px}
    .storefront-text-link span{font-size:20px;margin:0}
    .storefront-hero-art{bottom:62px;display:block;height:250px;opacity:.96;position:absolute;right:-16px;width:270px;z-index:0}
    .hero-products-image{filter:drop-shadow(0 22px 22px rgba(0,0,0,.48));height:270px;right:1px;top:-6px;width:225px}
    .hero-orbit-one{height:240px;right:0;top:3px;width:240px}.hero-orbit-two{height:170px;right:35px;top:38px;width:170px}
    .mobile-home-categories{display:flex;gap:9px;margin:12px -12px 0;overflow-x:auto;padding:4px 12px 12px;scrollbar-width:none}
    .mobile-home-categories::-webkit-scrollbar{display:none}
    .mobile-home-categories a{align-items:center;background:#fff;border:1px solid rgba(15,23,42,.06);border-radius:999px;color:#171a21;display:flex;flex:0 0 auto;font-size:12px;font-weight:800;gap:8px;padding:9px 14px;text-decoration:none}
    .mobile-home-categories a span{align-items:center;background:#111318;border-radius:50%;color:#fff;display:flex;font-size:8px;height:22px;justify-content:center;width:22px}
    .storefront-product-section{margin-top:38px}
    .storefront-section-heading{margin-bottom:14px;padding:0 2px}
    .storefront-section-heading h2{font-size:27px;letter-spacing:-.045em}
    .storefront-section-heading>a{align-items:center;background:#fff;border-radius:999px;display:flex;font-size:10px;gap:2px;padding:8px 10px}
    .storefront-product-row{gap:12px;margin-left:-12px;margin-right:-12px;padding:4px 12px 24px;scroll-padding-left:12px}
    .storefront-product-row .product-card{border:0;border-radius:20px;box-shadow:0 12px 34px rgba(15,23,42,.075);flex-basis:72vw}
    .storefront-product-row .product-card-media{background:#f8f8f7;border-bottom:1px solid #f0f1f2}
    .storefront-product-row .product-card-media img{transform:scale(1.08)}
    .storefront-product-row .product-card-details{background:#111318;border-radius:12px}
    body:has(.storefront-hero) .public-footer{margin-top:28px}
}

/* Modern shop catalog */
.shop-catalog{--catalog-orange:#f15a29}.shop-catalog-hero{align-items:end;background:linear-gradient(135deg,#0a0c10 0%,#171b23 62%,#2b1510 100%);border-radius:28px;color:#fff;display:grid;gap:34px;grid-template-columns:minmax(0,1fr) auto;min-height:330px;overflow:hidden;padding:clamp(34px,5vw,62px);position:relative}.shop-catalog-hero:after{background:radial-gradient(circle,rgba(241,90,41,.3),transparent 68%);content:"";height:360px;position:absolute;right:-100px;top:-170px;width:360px}.shop-catalog-copy{position:relative;z-index:1}.shop-catalog-copy .eyebrow{color:#f15a29;margin:0}.shop-catalog-copy h1{font-size:clamp(42px,6vw,76px);letter-spacing:-.06em;line-height:.92;margin:13px 0 20px}.shop-catalog-copy h1 span{color:#f15a29}.shop-catalog-copy>p:last-child{color:#b8c0cd;font-size:16px;line-height:1.55;margin:0;max-width:560px}.shop-catalog-stat{align-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:20px;display:grid;min-width:165px;padding:21px;position:relative;z-index:1}.shop-catalog-stat strong{color:#f15a29;font-size:43px;letter-spacing:-.05em;line-height:1}.shop-catalog-stat span{font-size:15px;font-weight:850;margin-top:5px}.shop-catalog-stat small{color:#98a2b3;margin-top:3px}.shop-category-chips{display:flex;gap:9px;margin:16px 0 20px;overflow-x:auto;padding:2px 1px 7px;scrollbar-width:none}.shop-category-chips::-webkit-scrollbar{display:none}.shop-category-chips a{background:#fff;border:1px solid var(--line);border-radius:999px;color:#344054;flex:0 0 auto;font-size:12px;font-weight:800;padding:10px 16px;text-decoration:none;transition:.18s}.shop-category-chips a:hover,.shop-category-chips a.is-active{background:#111318;border-color:#111318;color:#fff}.shop-tools{align-items:start;display:grid;gap:12px;grid-template-columns:minmax(320px,.8fr) minmax(430px,1.2fr);margin-bottom:42px}.shop-search{align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:48px 1fr auto;min-height:60px;padding:5px 9px 5px 2px}.shop-search:focus-within{border-color:#f15a29;box-shadow:0 0 0 4px rgba(241,90,41,.1)}.shop-search svg{fill:none;height:23px;justify-self:center;stroke:#667085;stroke-linecap:round;stroke-width:1.8;width:23px}.shop-search input{border:0;box-shadow:none!important;font-size:15px;min-height:48px;outline:0;padding:8px 3px}.shop-search kbd{background:#f2f4f7;border:1px solid #e4e7ec;border-radius:7px;color:#667085;font-family:inherit;font-size:10px;padding:5px 7px}.shop-catalog .shop-filter-drawer{border-radius:16px;margin:0}.shop-catalog .shop-filter-drawer>summary{min-height:60px;padding:12px 16px}.shop-catalog .shop-filter-drawer .filter-bar{align-items:end;background:#fafafa;display:grid;gap:13px;grid-template-columns:repeat(5,minmax(0,1fr));padding:18px}.shop-catalog .filter-bar>label:not(.check-row){color:#667085;display:grid;font-size:10px;font-weight:850;gap:6px;letter-spacing:.06em;text-transform:uppercase}.shop-catalog .filter-bar select,.shop-catalog .filter-bar input[type=number]{background:#fff;border-radius:10px;font-size:12px;height:45px;min-width:0;width:100%}.shop-catalog .filter-bar .check-row{align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;display:flex;font-size:12px;font-weight:750;gap:8px;height:45px;padding:0 11px}.shop-catalog .filter-bar .check-row input{accent-color:#f15a29;height:17px;min-height:0;padding:0;width:17px}.shop-catalog .filter-bar button{min-height:45px}.shop-clear-filters{align-items:center;color:#d92d20;display:flex;font-size:12px;font-weight:800;justify-content:center;min-height:45px}.shop-results-head{align-items:end;display:flex;justify-content:space-between;margin-bottom:18px}.shop-results-head .eyebrow{margin:0 0 5px}.shop-results-head h2{font-size:clamp(28px,3.5vw,42px);letter-spacing:-.045em;margin:0}.shop-results-head>span{background:#fff;border:1px solid var(--line);border-radius:999px;color:#667085;font-size:11px;font-weight:800;padding:8px 12px}.shop-catalog .product-grid{gap:20px;margin-top:0}.shop-catalog .product-card{border:1px solid rgba(16,24,40,.07);border-radius:20px;box-shadow:0 8px 26px rgba(16,24,40,.055);padding-bottom:16px}.shop-catalog .product-card-media{background:linear-gradient(145deg,#fafafa,#f4f5f6);border-bottom:1px solid #f0f1f2}.shop-catalog .product-card-media img{transition:transform .25s ease}.shop-catalog .product-card:hover .product-card-media img{transform:scale(1.045)}.shop-catalog .product-card-details{background:#111318;border-radius:11px;color:#fff}.shop-catalog .product-card-details:hover{background:#f15a29}.shop-catalog .public-no-results{grid-column:1/-1}
@media(max-width:950px){.shop-tools{grid-template-columns:1fr}.shop-catalog .shop-filter-drawer .filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){body:has(.shop-catalog){background:#f3f3f1}.shop-catalog-hero{border-radius:23px;display:block;min-height:300px;padding:31px 22px}.shop-catalog-copy h1{font-size:45px;margin-top:16px}.shop-catalog-copy>p:last-child{font-size:13px;max-width:270px}.shop-catalog-stat{bottom:20px;display:flex;gap:7px;min-width:0;padding:9px 12px;position:absolute;right:18px}.shop-catalog-stat strong{font-size:20px}.shop-catalog-stat span{font-size:10px;margin:0}.shop-catalog-stat small{display:none}.shop-category-chips{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.shop-category-chips a{font-size:11px;padding:9px 13px}.shop-tools{margin-bottom:32px}.shop-search{border-radius:14px;min-height:56px}.shop-search kbd{display:none}.shop-catalog .shop-filter-drawer>summary small{display:none}.shop-catalog .shop-filter-drawer .filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px}.shop-catalog .filter-bar .check-row,.shop-catalog .filter-bar button,.shop-clear-filters{grid-column:span 1}.shop-results-head{margin-bottom:14px}.shop-results-head h2{font-size:27px}.shop-results-head>span{font-size:9px}.shop-catalog .product-grid{gap:10px}.shop-catalog .product-card{border-radius:16px;padding-bottom:11px}.shop-catalog .product-card-details{border-radius:9px}.shop-catalog .product-card:hover{transform:none}}
@media(max-width:390px){.shop-catalog-hero{min-height:315px}.shop-catalog-copy h1{font-size:40px}.shop-catalog .shop-filter-drawer .filter-bar{grid-template-columns:1fr}.shop-catalog .filter-bar .check-row,.shop-catalog .filter-bar button,.shop-clear-filters{grid-column:1}}

/* Public footer */
.cart-page{margin:0 auto;max-width:1180px}.cart-page-head{align-items:flex-end;display:flex;justify-content:space-between;margin-bottom:30px}.cart-page-head .eyebrow{margin:0 0 7px}.cart-page-head h1{font-size:clamp(38px,5vw,62px);letter-spacing:-.05em;line-height:1;margin:0}.cart-page-head>div>p:last-child{color:var(--muted);margin:11px 0 0}.cart-back-link{align-items:center;color:var(--ink);display:flex;font-weight:800;gap:8px;text-decoration:none}.cart-back-link span{color:var(--accent);font-size:22px}.cart-layout{align-items:start;display:grid;gap:28px;grid-template-columns:minmax(0,1fr) 350px}.cart-items{display:grid;gap:14px}.cart-item{align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;display:grid;gap:20px;grid-template-columns:128px minmax(0,1fr) auto auto;padding:16px 20px 16px 16px}.cart-item-image{align-items:center;aspect-ratio:1;background:#f7f8fa;border-radius:14px;display:flex;justify-content:center;overflow:hidden}.cart-item-image img{height:100%;object-fit:contain;padding:8px;width:100%}.cart-item-info{min-width:0}.cart-item-label{color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.1em;margin:0 0 5px;text-transform:uppercase}.cart-item-info h2{font-size:18px;line-height:1.3;margin:0}.cart-item-info h2 a{color:var(--ink);text-decoration:none}.cart-item-variant{background:#f2f4f7;border-radius:999px;color:#475467;display:inline-block;font-size:11px;font-weight:750;margin-top:9px;padding:5px 9px}.cart-item-unit{color:var(--muted);display:block;font-size:12px;margin-top:8px}.cart-item-actions{align-items:center;display:flex;flex-direction:column;gap:7px}.cart-item-actions>label{color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.cart-quantity{align-items:center;border:1px solid var(--line);border-radius:10px;display:grid;grid-template-columns:34px 42px 34px;overflow:hidden}.cart-quantity button{background:#f8fafc;border:0;border-radius:0;box-shadow:none;color:var(--ink);font-size:20px;min-height:38px;padding:0}.cart-quantity button:hover{background:#eef1f5;color:var(--ink);transform:none}.cart-quantity input{appearance:textfield;border:0;font:inherit;font-weight:850;height:38px;min-width:0;padding:0;text-align:center;width:42px}.cart-quantity input::-webkit-inner-spin-button{appearance:none}.cart-remove{background:none;border:0;box-shadow:none;color:#d92d20;font-size:11px;min-height:0;padding:2px;text-decoration:underline;text-underline-offset:2px}.cart-remove:hover{background:none;color:#b42318;transform:none}.cart-item-total{min-width:112px;text-align:right}.cart-item-total small{color:var(--muted);display:block;font-size:11px;margin-bottom:4px}.cart-item-total strong{font-size:19px;white-space:nowrap}.cart-update{background:#fff;border:1px solid var(--line);box-shadow:none;color:var(--ink);justify-self:end}.cart-update:hover{background:#f8fafc;color:var(--ink)}.cart-summary{background:#0d1117;border-radius:22px;color:#fff;padding:28px;position:sticky;top:92px}.cart-summary .eyebrow{color:#f15a29;margin:0}.cart-summary h2{font-size:29px;margin:6px 0 25px}.cart-summary-row{align-items:center;border-top:1px solid rgba(255,255,255,.1);color:#cbd5e1;display:flex;font-size:13px;justify-content:space-between;padding:14px 0}.cart-summary-row strong{color:#fff}.cart-summary-total{align-items:flex-end;border-top:1px solid rgba(255,255,255,.2);display:flex;justify-content:space-between;margin-top:4px;padding-top:22px}.cart-summary-total span{font-size:14px}.cart-summary-total strong{color:#f15a29;font-size:25px;white-space:nowrap}.cart-checkout{align-items:center;display:flex;justify-content:space-between;margin-top:25px;min-height:54px;width:100%}.cart-summary-note{color:#98a2b3;font-size:11px;line-height:1.5;margin:13px 0 0;text-align:center}.cart-empty{align-items:center;background:#fff;border:1px solid var(--line);border-radius:24px;display:flex;flex-direction:column;padding:clamp(45px,8vw,90px) 20px;text-align:center}.cart-empty-icon{align-items:center;background:color-mix(in srgb,var(--accent),transparent 90%);border-radius:50%;color:var(--accent);display:flex;height:74px;justify-content:center;width:74px}.cart-empty-icon svg{fill:none;height:34px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7;width:34px}.cart-empty h2{font-size:28px;margin:20px 0 8px}.cart-empty p{color:var(--muted);margin:0 0 23px;max-width:440px}
@media(max-width:900px){.cart-layout{grid-template-columns:1fr}.cart-summary{position:static}.cart-item{grid-template-columns:110px minmax(0,1fr) auto}.cart-item-total{grid-column:2;grid-row:2;text-align:left}.cart-item-total small{display:inline;margin-right:6px}.cart-item-actions{grid-column:3;grid-row:1/3}}
@media(max-width:600px){.cart-page-head{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:22px}.cart-page-head h1{font-size:42px}.cart-item{align-items:start;border-radius:16px;gap:12px;grid-template-columns:86px minmax(0,1fr);padding:12px}.cart-item-image{grid-row:1/3}.cart-item-info h2{font-size:15px}.cart-item-label{display:none}.cart-item-variant{font-size:10px;margin-top:6px}.cart-item-unit{font-size:10px;margin-top:6px}.cart-item-actions{align-items:flex-start;flex-direction:row;grid-column:2;grid-row:2}.cart-item-actions>label{display:none}.cart-remove{align-self:center;margin-left:3px}.cart-item-total{border-top:1px solid var(--line);display:flex;grid-column:1/-1;grid-row:3;justify-content:space-between;min-width:0;padding-top:11px;text-align:left;width:100%}.cart-item-total small{font-size:12px;margin:0}.cart-item-total strong{font-size:17px}.cart-update{justify-self:stretch;width:100%}.cart-summary{border-radius:18px;padding:23px 20px}.cart-summary-total strong{font-size:23px}.cart-empty{border-radius:18px}.cart-empty h2{font-size:23px}}

.public-footer{background:#080808;color:#fff;margin-top:clamp(52px,7vw,92px);padding:28px max(20px,calc((100vw - 1180px)/2))}
.public-footer-inner{align-items:center;display:flex;gap:32px;justify-content:space-between;margin:0 auto;max-width:1180px}
.public-footer-logo{background:#fff;border-radius:10px;display:flex;flex:0 0 auto;overflow:hidden;padding:7px 10px;text-decoration:none}
.public-footer-logo img{display:block;height:54px;max-width:190px;object-fit:contain;width:auto}
.public-footer-logo strong{color:#f04a32;font-size:20px;letter-spacing:.06em;padding:8px 5px}
.public-footer p{font-size:clamp(13px,1.5vw,16px);font-weight:650;letter-spacing:.025em;line-height:1.7;margin:0;text-align:right}
.public-footer p strong{color:#f15a29}.public-footer p span{color:#fff}
@media(max-width:700px){.public-footer{padding-bottom:26px;padding-top:26px}.public-footer-inner{align-items:flex-start;flex-direction:column;gap:18px}.public-footer-logo img{height:45px;max-width:160px}.public-footer p{text-align:left}.public-footer p span{display:block}.public-footer p span[aria-hidden]{display:none}}
