/* ============================================================
   ITS Natura — Dizajn sistem
   Estetika: minimalistička, luksuzna, švajcarska apoteka
   ============================================================ */

/* --- 1. CSS varijable (paleta boja) --- */
:root {
    --bg-main: #FFFFFF;
    --bg-surface: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #374151;
    --accent-trust: #047857;
    --accent-trust-dark: #065F46;
    --accent-trust-soft: #ECFDF5;
    --border-color: #D1D5DB;

    --font-sans: 'Inter', -apple-system, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 4px 14px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 20px 50px rgba(17, 24, 39, 0.14);

    --container-max: 1180px;
    --header-height: 72px;
}

/* --- 2. Reset & baza --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding-block: 72px; }
.section--surface { background: var(--bg-surface); }

.section-head { max-width: 560px; margin-bottom: 40px; }
.section-head__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-trust);
    margin-bottom: 10px;
}
.section-head__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.section-head__subtitle { color: var(--text-secondary); margin-top: 12px; font-size: 17px; }

/* --- 3. Dugmad --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.btn--primary { background: var(--accent-trust); color: #fff; box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28); }
.btn--primary:hover { background: var(--accent-trust-dark); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--outline { border: 1.5px solid var(--border-color); color: var(--text-primary); background: #fff; }
.btn--outline:hover { border-color: var(--accent-trust); color: var(--accent-trust); }

.btn--light { background: #fff; color: var(--text-primary); box-shadow: var(--shadow-md); }
.btn--light:hover { transform: translateY(-1px); }

.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--disabled, .btn--disabled:hover { background: #E5E7EB; color: #9CA3AF; box-shadow: none; cursor: not-allowed; transform: none; }

.icon-button {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
}
.icon-button:hover { background: var(--bg-surface); color: var(--text-primary); }

/* --- 4. Zaglavlje --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(36px);
    
}
.site-header__inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { display: inline-flex; align-items: center; letter-spacing: -0.02em; }
.logo__img { height: 40px; width: auto; display: block; }
.logo--footer .logo__img { height: 48px; }

.main-nav { display: flex; gap: 6px; }
.main-nav__link {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--text-secondary);
    transition: color 0.2s ease, background 0.2s ease;
}
.main-nav__link:hover { color: var(--text-primary); background: var(--bg-surface); }
.main-nav__link.is-active { color: var(--accent-trust); background: var(--accent-trust-soft); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.header-phone:hover { color: var(--accent-trust); }

.header-ai {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #047857;
    color: #fff;
    font-size: 14px; font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.header-ai:hover { background: #065F46; box-shadow: var(--shadow-md); }

.cart-button {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cart-button:hover { border-color: var(--accent-trust); box-shadow: var(--shadow-md); }
.cart-button__badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 20px; height: 20px;
    padding-inline: 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-trust);
    color: #fff;
    font-size: 11.5px; font-weight: 700;
    border-radius: 999px;
    border: 2px solid #fff;
}
.cart-button__badge.is-empty { display: none; }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    align-items: center; justify-content: center;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.menu-toggle:hover { border-color: var(--accent-trust); box-shadow: var(--shadow-md); }
.menu-toggle svg { display: block; }
.menu-toggle__close { display: none; }
.menu-toggle.is-open .menu-toggle__open { display: none; }
.menu-toggle.is-open .menu-toggle__close { display: block; }

/* --- 6. Hero sekcija --- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 50% 9%, rgba(5, 150, 105, 0.36), transparent 60%),
        var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    padding-block: 84px;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}
.hero__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-trust); }
.hero__title {
    margin-top: 22px;
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.hero__title em { font-style: normal; color: var(--accent-trust); }
.hero__subtitle {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 480px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust {
    display: flex; flex-wrap: wrap; gap: 26px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.hero__trust-item { display: flex; align-items: center; gap: 12px; }
.hero__trust-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--accent-trust-soft);
    color: var(--accent-trust);
    flex-shrink: 0;
}
.hero__trust-label { font-size: 13px; color: var(--text-secondary); line-height: 1.35; }
.hero__trust-label strong { display: block; color: var(--text-primary); font-size: 14px; font-weight: 700; }

.hero__media { position: relative; display: flex; justify-content: center; }
.hero__media-card {
    width: min(100%, 460px);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}
.hero__media-visual { position: relative; width: 100%; }
.hero__product-badge {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
}
.hero__product-badge--top { top: 8%; left: 2%; }
.hero__product-badge--top {
    background: var(--accent-trust);
    border-color: var(--accent-trust);
    color: #FFFFFF;
}
.hero__product-badge--top .hero__product-badge-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}
.hero__product-badge--top strong { color: #FFFFFF; }
.hero__product-badge--top span { color: #FFFFFF; font-weight: 700; }
.hero__product-badge--bottom { bottom: 8%; right: 2%; }
.hero__product-badge-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--accent-trust-soft);
    color: var(--accent-trust);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero__product-badge strong { display: block; font-size: 14px; font-weight: 700; }
.hero__product-badge span { font-size: 12.5px; color: var(--text-secondary); }
.hero__image-wrap {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.hero__image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.hero__buy {
    width: 100%;
    padding: 24px;
    background: #fff;
}
.hero__buy .product-detail__price { margin-top: 0; }
.hero__buy-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}
.hero__buy .product-detail__actions { margin-top: 20px; flex-wrap: nowrap; }
.hero__buy .product-detail__actions .btn { flex: 1 1 auto; padding-inline: 14px; }
.hero__buy .quantity-input { flex-shrink: 0; }
.hero__buy .btn--primary { background: #fff; color: var(--accent-trust); box-shadow: none; border: 1.5px solid var(--accent-trust); }
.hero__buy .btn--primary:hover { background: var(--accent-trust-soft); transform: translateY(-1px); }
.hero__buy .btn--outline { background: var(--accent-trust); color: #fff; border: 1.5px solid var(--accent-trust); box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28); }
.hero__buy .btn--outline:hover { background: var(--accent-trust-dark); color: #fff; border-color: var(--accent-trust-dark); transform: translateY(-1px); }

/* --- 7. Filter kategorije (chips) --- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
    padding: 11px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: #fff;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--accent-trust); color: var(--accent-trust); }
.filter-chip.is-active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}
.filter-chip .htmx-indicator,
.htmx-indicator { opacity: 0; transition: opacity 0.2s ease; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; }

/* --- 8. Mreža proizvoda --- */
#product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
#product-grid:empty::after {
    content: "Učitavanje proizvoda…";
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
}
.grid-loading { grid-column: 1 / -1; text-align: center; color: var(--text-secondary); padding: 32px 0; }
.grid-loading.hidden { display: none; }

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: block;
    overflow: hidden;
}
.product-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__image { transform: scale(1.04); }

.product-image-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
    color: var(--accent-trust);
}
.product-image-fallback span { font-size: 44px; font-weight: 800; letter-spacing: 0.04em; opacity: 0.85; }

.product-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.product-card__badge--out { background: #FEF2F2; color: #DC2626; }
.product-card__badge--low { background: #FFFBEB; color: #D97706; }
.product-card__badge--promo { background: var(--accent-trust); color: #fff; }
.product-card__badge--almasist {
    left: auto;
    right: 12px;
    background: #fff;
    color: var(--accent-trust);
    border: 1px solid var(--accent-trust);
    box-shadow: var(--shadow-sm);
}
.product-card__pricing { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.product-card__old-price { font-size: 13px; font-weight: 600; color: #9CA3AF; text-decoration: line-through; }

.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.product-card__category { font-size: 12px; font-weight: 600; color: var(--accent-trust); letter-spacing: 0.06em; text-transform: uppercase; }
.product-card__title { margin-top: 6px; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.product-card__title a:hover { color: var(--accent-trust); }
.product-card__benefit { margin-top: 8px; color: var(--text-secondary); font-size: 13.5px; flex: 1; }
.product-card__footer {
    margin-top: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.product-card__price { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

/* --- 9. Sekcija poverenja (usluge) --- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.trust-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.25s ease;
}
.trust-card:hover { box-shadow: var(--shadow-md); }
.trust-card__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--accent-trust-soft);
    color: var(--accent-trust);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.trust-card__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.trust-card__text { font-size: 14px; color: var(--text-secondary); }

/* --- 10. Stranica proizvoda --- */
.product-page { padding-block: 48px 80px; }
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.product-detail__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
}
.product-detail__media .product-image-fallback { aspect-ratio: 1 / 1; }
.product-detail__info {
    position: relative;
    max-width: 560px;
}
.product-detail__qr {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-detail__qr:hover { border-color: var(--accent-trust); box-shadow: 0 4px 14px rgba(0,0,0,0.09); }
.product-detail__qr-code { display: block; line-height: 0; }
.product-detail__qr-code img { display: block; }
.product-detail__qr-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    text-align: center;
    text-transform: uppercase;
}
.product-detail__category {
    font-size: 13px; font-weight: 600; color: var(--accent-trust);
    letter-spacing: 0.08em; text-transform: uppercase;
}
.product-detail__title { margin-top: 8px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.product-detail__benefit { margin-top: 14px; font-size: 17px; color: var(--text-secondary); }
.product-detail__price { margin-top: 22px; font-size: 30px; font-weight: 800; color: var(--accent-trust-dark); }
.product-detail__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.meta-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--accent-trust-soft);
    color: var(--accent-trust-dark);
}
.meta-chip--warn { background: #FFFBEB; color: #D97706; }
.meta-chip--danger { background: #FEF2F2; color: #DC2626; }
.meta-chip--promo { background: var(--accent-trust); color: #fff; }
.product-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.quantity-input {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    padding: 4px 6px;
}
.quantity-input button {
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 18px; font-weight: 600;
    color: var(--text-primary);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.quantity-input button:hover { background: var(--bg-surface); }
.quantity-input input {
    width: 52px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    border: none; outline: none;
    background: transparent;
    -moz-appearance: textfield;
}
.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-detail__desc { margin-top: 26px; color: var(--text-secondary); line-height: 1.75; }
.product-detail__desc h4 { color: var(--text-primary); font-size: 15px; margin-bottom: 6px; }

.qr-admin {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.qr-admin__preview {
    width: 132px;
    height: 132px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    padding: 6px;
}
.qr-admin__preview img { display: block; max-width: 100%; height: auto; }
.qr-admin__info { flex: 1 1 200px; min-width: 180px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Tabovi */
.tabs { margin-top: 34px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.tabs__btn {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.tabs__btn:hover { color: var(--text-primary); }
.tabs__btn.is-active { color: var(--accent-trust); border-bottom-color: var(--accent-trust); }
.tabs__panel {
    padding: 26px 4px 8px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    min-height: 120px;
}
.tabs__panel-loading { color: var(--text-secondary); font-size: 14px; }

/* --- 11. Sliding cart --- */
.drawer-overlay, .modal-overlay, .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(3px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.drawer-overlay.is-open, .modal-overlay.is-open, .menu-overlay.is-open { opacity: 1; pointer-events: auto; }
#cookie-overlay { z-index: 140; }

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(440px, 92vw);
    background: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(17, 24, 39, 0.18);
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}
.cart-drawer__title { font-size: 19px; font-weight: 700; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-drawer__loading, .checkout-modal__loading { color: var(--text-secondary); font-size: 14.5px; }

.cart-empty { text-align: center; padding: 40px 12px; color: var(--text-secondary); }
.cart-empty__icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
}
.cart-empty__title { font-weight: 700; color: var(--text-primary); font-size: 16px; }
.cart-empty__text { font-size: 14px; margin-top: 6px; }

.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    position: relative;
}
.cart-item__media { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #fff; }
.cart-item__media .product-image-fallback { font-size: 18px; }
.cart-item__title { font-size: 14px; font-weight: 700; line-height: 1.3; padding-right: 22px; }
.cart-item__title a:hover { color: var(--accent-trust); }
.cart-item__price { font-size: 14px; font-weight: 800; color: var(--accent-trust-dark); margin-top: 4px; }
.cart-item__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-item__remove {
    position: absolute; top: 8px; right: 8px;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}
.cart-item__remove:hover { background: #FEF2F2; color: #DC2626; }
.qty-stepper { display: inline-flex; align-items: center; gap: 2px; }
.qty-stepper button {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: background 0.15s ease;
}
.qty-stepper button:hover { background: var(--accent-trust-soft); border-color: var(--accent-trust); }
.qty-stepper span { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }

.cart-summary {
    border-top: 1px solid var(--border-color);
    padding: 18px 0 6px;
    margin-top: 6px;
}
.cart-summary__row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--text-secondary); padding: 5px 0; }
.cart-summary__row--total { font-size: 18px; font-weight: 800; color: var(--text-primary); padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--border-color); }
.cart-summary__free { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--accent-trust-soft); color: var(--accent-trust-dark); font-size: 13px; font-weight: 600; }
.cart-drawer__footer { padding: 18px 24px 24px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 10px; }

/* --- 11b. Mobilni meni --- */
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 86vw);
    background: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(17, 24, 39, 0.18);
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.mobile-menu__link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 16px; font-weight: 600;
    color: var(--text-primary);
    transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu__link:hover { background: var(--bg-surface); }
.mobile-menu__link.is-active { color: var(--accent-trust); background: var(--accent-trust-soft); }
.mobile-menu__foot {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-menu__phone, .mobile-menu__ai {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu__phone { color: var(--text-primary); }
.mobile-menu__phone:hover { background: var(--bg-surface); color: var(--accent-trust); }
.mobile-menu__ai { background: #047857; color: #fff; }
.mobile-menu__ai:hover { background: #065F46; }

/* --- 12. Checkout modal & forma --- */
.checkout-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(0.97);
    width: min(520px, 94vw);
    max-height: 88dvh;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 110;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s ease;
}
.checkout-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.checkout-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}
.checkout-modal__title { font-size: 19px; font-weight: 700; }
.checkout-modal__body { overflow-y: auto; padding: 22px 24px 26px; }

.checkout-summary {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
}
.checkout-summary--inline { flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
.checkout-summary__label { font-size: 13.5px; color: var(--text-secondary); }
.checkout-summary__value { font-size: 18px; font-weight: 800; }

/* Stavka proizvoda u rezimeu plaćanja */
.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.checkout-item__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.checkout-item__title { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.checkout-item__meta { font-size: 12.5px; color: var(--text-secondary); }
.checkout-item__price { font-size: 15px; font-weight: 800; color: var(--accent-trust-dark); white-space: nowrap; }

/* Redovi rezimea */
.checkout-summary__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-secondary); padding: 2px 0; }
.checkout-summary__row--total {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}
.checkout-summary__row--total span:last-child { color: var(--accent-trust-dark); }

.form-field { margin-bottom: 14px; }
.form-field__label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-field__label span { color: #DC2626; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus { border-color: var(--accent-trust); box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12); }
textarea.form-control { resize: vertical; min-height: 84px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.payment-option {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-weight: 600;
    font-size: 14.5px;
}
.payment-option:hover { border-color: var(--accent-trust); }
.payment-option:has(input:checked) { border-color: var(--accent-trust); background: var(--accent-trust-soft); }
.payment-option input { accent-color: var(--accent-trust); width: 17px; height: 17px; }
.payment-option small { display: block; font-weight: 400; color: var(--text-secondary); font-size: 12.5px; margin-top: 2px; }

.form-error {
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 13.5px;
    font-weight: 500;
}

/* Poruka "Hvala na porudžbini" */
.checkout-success { text-align: center; padding: 22px 6px 8px; }
.checkout-success__icon {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-trust-soft);
    color: var(--accent-trust);
    display: flex; align-items: center; justify-content: center;
}
.checkout-success__title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.checkout-success__text { margin-top: 10px; color: var(--text-secondary); font-size: 15px; max-width: 360px; margin-inline: auto; }
.checkout-success__number {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 14px;
}

/* --- 13. Footer --- */
.site-footer { background: var(--text-primary); color: #D1D5DB; margin-top: 40px; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 40px;
    padding-block: 56px;
}
.site-footer__brand .logo__img { height: 48px; }
.site-footer__about { margin-top: 16px; font-size: 14px; line-height: 1.7; max-width: 320px; }
.site-footer__heading { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.site-footer__list li { margin-bottom: 10px; }
.site-footer__list a { font-size: 14px; transition: color 0.2s ease; }
.site-footer__list a:hover { color: var(--accent-trust); }
.site-footer__list .site-footer__link {
    font-size: 14px;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    transition: color 0.2s ease;
}
.site-footer__list .site-footer__link:hover { color: var(--accent-trust); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 20px; font-size: 13px; color: #9CA3AF; }

/* --- 14. Bedževi i mali elementi --- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px; font-weight: 700;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-gray   { background: #F3F4F6; color: #4B5563; }
.badge-blue   { background: #EFF6FF; color: #2563EB; }
.badge-green  { background: #ECFDF5; color: #047857; }
.badge-red    { background: #FEF2F2; color: #DC2626; }

/* Toast obaveštenje */
.toast {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translate(-50%, 20px);
    z-index: 200;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--text-primary);
    color: #fff;
    font-size: 14.5px; font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex; align-items: center; gap: 10px;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--success svg { color: var(--accent-trust); }
.toast--error { background: #DC2626; }

/* --- 15. Admin panel --- */
.admin-body { background: var(--bg-surface); }
.admin-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100dvh;
}
.admin-sidebar {
    background: var(--text-primary);
    color: #D1D5DB;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 8px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 8px; }
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
.admin-sidebar .logo__mark, .admin-sidebar .logo__name { color: #fff; }
.admin-sidebar .logo__name { color: var(--accent-trust); }
.admin-sidebar__label {
    margin-top: 26px;
    padding-inline: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B7280;
}
.admin-sysstatus {
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
}
.admin-sysstatus__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.admin-sysstatus__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
    flex-shrink: 0;
}
.admin-sysstatus__dot--red { background: #EF4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.2); }
.admin-sysstatus__dot--yellow { background: #EAB308; box-shadow: 0 0 0 4px rgba(234,179,8,0.2); }
.admin-sysstatus__dot--blink { animation: sysstatus-blink 1s ease-in-out infinite; }
@keyframes sysstatus-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
.admin-sysstatus__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
}
.admin-sysstatus__pct {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #22C55E;
}
.admin-sysstatus__pct--red { color: #EF4444; }
.admin-sysstatus__pct--yellow { color: #EAB308; }
.admin-sysstatus__pct--green { color: #22C55E; }
.admin-sysstatus__pct--muted { color: #6B7280; }
.admin-sysstatus__row dd.admin-sysstatus__pct--green { color: #22C55E; font-weight: 600; }
.admin-sysstatus__row dd.admin-sysstatus__pct--yellow { color: #EAB308; font-weight: 600; }
.admin-sysstatus__row dd.admin-sysstatus__pct--red { color: #EF4444; font-weight: 600; }
.admin-sysstatus__row dd.admin-sysstatus__pct--muted { color: #6B7280; }
.admin-sysstatus__row dd.admin-sysstatus__ping--green { color: #22C55E; font-weight: 600; }
.admin-sysstatus__row dd.admin-sysstatus__ping--yellow { color: #EAB308; font-weight: 600; }
.admin-sysstatus__row dd.admin-sysstatus__ping--red { color: #EF4444; font-weight: 600; }
.admin-sysstatus__row dd.admin-sysstatus__ping--muted { color: #6B7280; }
.admin-sysstatus__rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}
.admin-sysstatus__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    line-height: 1.3;
}
.admin-sysstatus__row dt {
    color: #9CA3AF;
    white-space: nowrap;
}
.admin-sysstatus__row dd {
    color: #E5E7EB;
    text-align: right;
    word-break: break-word;
    margin: 0;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.admin-nav__item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: #D1D5DB;
    width: 100%;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-nav__item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.admin-nav__item.is-active { background: var(--accent-trust); color: #fff; }
.admin-nav__item svg { flex-shrink: 0; }
.admin-sidebar__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font-size: 13.5px; }
.admin-user__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-trust);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    flex-shrink: 0;
}
.admin-logout {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px; font-weight: 600;
    color: #FCA5A5;
    transition: background 0.2s ease;
}
.admin-logout:hover { background: rgba(220, 38, 38, 0.15); }

.admin-main { padding: 32px 36px 48px; max-width: 1320px; }
.admin-main__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-main__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.admin-main__subtitle { color: var(--text-secondary); font-size: 14.5px; margin-top: 4px; }

/* KPI kartice */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.kpi-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}
.kpi-card::after {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-trust);
}
.kpi-card--warn::after { background: #F59E0B; }
.kpi-card--danger::after { background: #DC2626; }
.kpi-card__label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.kpi-card__value { margin-top: 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.kpi-card__hint { margin-top: 6px; font-size: 12.5px; color: var(--text-secondary); }
.kpi-card__icon {
    position: absolute; top: 20px; right: 20px;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--accent-trust-soft);
    color: var(--accent-trust);
    display: inline-flex; align-items: center; justify-content: center;
}

/* Admin kartica (panel) */
.panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.panel__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.panel__title { font-size: 17px; font-weight: 700; }
.panel__subtitle { font-size: 13.5px; color: var(--text-secondary); margin-top: 3px; }

/* Grafik */
.chart { position: relative; }
.chart__legend { display: flex; gap: 18px; margin-bottom: 14px; font-size: 13px; color: var(--text-secondary); }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart__legend i.i-sales { background: var(--accent-trust); }
.chart__legend i.i-orders { background: #93C5FD; }
.chart-svg { width: 100%; height: auto; display: block; }

/* Admin tabele */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.admin-table thead { background: var(--bg-surface); }
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}
.admin-table td { padding: 13px 16px; border-top: 1px solid var(--border-color); vertical-align: middle; }
.admin-table tbody tr { transition: background 0.15s ease; }
.admin-table tbody tr:hover { background: var(--bg-surface); }
.admin-table__thumb {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--bg-surface);
}
.admin-table__thumb-fallback {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--accent-trust-soft);
    color: var(--accent-trust);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.admin-table .cell-strong { font-weight: 700; color: var(--text-primary); }
.admin-table .cell-nowrap { white-space: nowrap; }
.admin-table .cell-total { font-weight: 800; color: var(--accent-trust-dark); }
.admin-table .stock-low { color: #DC2626; font-weight: 700; }
.admin-table .stock-ok { color: var(--text-secondary); }

/* Status dropdown (HTMX PATCH) */
.status-select {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}
.status-select:focus { border-color: var(--accent-trust); }

/* Toolbar (pretraga/filter) */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; align-items: center; }
.search-input {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
    padding: 11px 16px 11px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 14px center;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input:focus { border-color: var(--accent-trust); box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12); }
.toolbar .select-control {
    padding: 11px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    outline: none;
    cursor: pointer;
}
.toolbar .select-control:focus { border-color: var(--accent-trust); }

/* Admin modal (forma proizvoda) */
.admin-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(3px);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.admin-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.admin-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: min(680px, 96vw);
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}
.admin-modal-overlay.is-open .admin-modal { transform: translateY(0) scale(1); }
.admin-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid var(--border-color);
}
.admin-modal__title { font-size: 18px; font-weight: 700; }
.admin-modal__body { overflow-y: auto; padding: 24px 26px; }
.admin-modal__footer { padding: 16px 26px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }

/* Upload slike */
.image-upload { display: flex; gap: 16px; align-items: flex-start; }
.image-upload__preview {
    width: 96px; height: 96px;
    border-radius: 14px;
    border: 1.5px dashed var(--border-color);
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.image-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.image-upload__hint { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }

/* Login stranica */
.login-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(700px 400px at 85% 10%, rgba(5, 150, 105, 0.1), transparent 60%),
        var(--bg-surface);
}
.login-card {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 36px 36px 32px;
}
.login-card__logo { display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.login-card__title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.login-card__subtitle { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 6px; margin-bottom: 26px; }
.login-error {
    padding: 12px 16px;
    border-radius: 10px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* --- 16. Responsive --- */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 56px; text-align: center; }
    .hero__subtitle { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__trust { justify-content: center; }
    .hero__media { order: -1; }
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .product-detail__info { max-width: none; }
    .product-detail__title { padding-right: 118px; }
    .product-detail__qr { top: 2px; right: 2px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .admin-sidebar__label, .admin-sidebar__foot { display: none; }
    .admin-nav { flex-direction: row; margin-top: 0; flex-wrap: wrap; }
    .admin-main { padding: 24px 18px 40px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .container { padding-inline: 16px; }
    .section { padding-block: 48px; }

    .site-header__inner { gap: 12px; }
    .site-header__actions { gap: 8px; }
    .logo__img { height: 34px; }
    .header-phone { display: none; }
    .header-ai span { display: none; }
    .header-ai { padding: 10px; }

    .hero__inner { gap: 28px; padding-block: 36px; }
    .hero__title { font-size: clamp(30px, 8vw, 40px); }
    .hero__subtitle { font-size: 16px; }
    .hero__trust { gap: 18px; margin-top: 28px; padding-top: 24px; }
    .hero__product-badge--top { top: 4%; left: 3%; padding: 10px 14px; gap: 10px; }
    .hero__product-badge-icon { width: 30px; height: 30px; }
    .hero__buy { padding: 18px; }
    .product-detail__actions { flex-direction: column; align-items: stretch; }
    .product-detail__actions .quantity-input { align-self: flex-start; }
    .product-detail__actions .btn { width: 100%; }
    .hero__buy .quantity-input { width: 100%; justify-content: center; align-self: stretch; }

    .section-head { margin-bottom: 28px; }
    .section-head__title { font-size: clamp(24px, 7vw, 30px); }

    .product-detail__title { padding-right: 104px; font-size: clamp(26px, 6.5vw, 32px); }
    .product-detail__qr { padding: 6px; }
    .product-detail__qr-code img { width: 54px; height: 54px; }
    .product-detail__qr-label { font-size: 9px; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
    .filter-bar { gap: 8px; }
    #product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .product-card__footer { flex-direction: column; align-items: stretch; }
    .product-card__btn { width: 100%; }
}

@media (max-width: 360px) {
    .header-ai { display: none; }
    .logo__img { height: 30px; }
    #product-grid { grid-template-columns: 1fr; }
}

/* --- 17. Animacije --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.hero__eyebrow { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.12s; }
.hero__subtitle { animation-delay: 0.2s; }
.hero__actions { animation-delay: 0.28s; }

.hidden { display: none !important; }

/* --- 19. Blog / Zdravstveni problemi --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-surface); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__category {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-trust-soft);
    color: var(--accent-trust-dark);
    font-size: 12.5px; font-weight: 700;
}
.blog-card__title { font-size: 19px; font-weight: 800; line-height: 1.35; }
.blog-card__title a:hover { color: var(--accent-trust); }
.blog-card__excerpt { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; }
.blog-card__meta { font-size: 13px; color: var(--text-secondary); }
.blog-card__link {
    margin-top: auto;
    font-size: 14px; font-weight: 700; color: var(--accent-trust);
    display: inline-flex; align-items: center; gap: 6px;
}
.blog-card__link:hover { color: var(--accent-trust-dark); }

.blog-article__hero { padding: 28px 0 24px; border-bottom: 1px solid var(--border-color); margin-bottom: 26px; }
.blog-article__hero h1 { font-size: 34px; font-weight: 800; line-height: 1.25; margin-top: 12px; }
.blog-article__meta { font-size: 13.5px; color: var(--text-secondary); margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.blog-article__body { display: grid; gap: 18px; }
.blog-article__body h2 { font-size: 22px; font-weight: 800; margin-top: 14px; }
.blog-article__body h3 { font-size: 17px; font-weight: 700; margin-top: 8px; }
.blog-article__body p { font-size: 15px; line-height: 1.75; }
.blog-article__body ul { padding-left: 20px; display: grid; gap: 8px; }
.blog-article__body ul li { font-size: 15px; line-height: 1.7; list-style: disc; }
.blog-article__note {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-box {
    margin-top: 28px;
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    background: var(--accent-trust-soft);
    border: 1px solid var(--accent-trust);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.cta-box__title { font-size: 18px; font-weight: 800; }
.cta-box__text { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

.faq-item { border-bottom: 1px solid var(--border-color); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item__q { font-size: 16px; font-weight: 700; }
.faq-item__a { font-size: 14.5px; color: var(--text-secondary); margin-top: 6px; line-height: 1.7; }

/* --- 18. Cookies consent --- */
.cookie-consent[hidden], .cookie-modal[hidden], .modal-overlay[hidden] { display: none !important; }
.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 130;
    padding: 22px 26px;
    animation: cookieSlideUp 0.35s ease both;
}
.cookie-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-consent__content { flex: 1 1 320px; }
.cookie-consent__title { font-size: 16px; font-weight: 800; }
.cookie-consent__text { font-size: 13.5px; color: var(--text-secondary); margin-top: 4px; }
.cookie-consent__text a { color: var(--accent-trust); font-weight: 600; }
.cookie-consent__text a:hover { text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-consent__actions .btn { padding: 11px 18px; font-size: 13.5px; }

.cookie-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(0.97);
    width: min(520px, 94vw);
    max-height: 88dvh;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s ease;
}
.cookie-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.cookie-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}
.cookie-modal__title { font-size: 19px; font-weight: 700; }
.cookie-modal__body { overflow-y: auto; padding: 20px 24px 8px; }
.cookie-modal__intro { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.cookie-modal__footer {
    padding: 16px 24px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
}
.cookie-option__title { font-size: 15px; font-weight: 700; }
.cookie-option__desc { font-size: 13.5px; color: var(--text-secondary); margin-top: 3px; }
.cookie-option--locked { opacity: 0.75; }

.cookie-switch { position: relative; display: inline-block; flex-shrink: 0; margin-top: 2px; }
.cookie-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-switch__track {
    display: block;
    width: 46px; height: 26px;
    border-radius: 999px;
    background: #D1D5DB;
    transition: background 0.2s ease;
    position: relative;
}
.cookie-switch__track::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}
.cookie-switch input:checked + .cookie-switch__track { background: var(--accent-trust); }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-switch__track { opacity: 0.6; cursor: not-allowed; }
.cookie-switch input:focus-visible + .cookie-switch__track { box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12); }

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 560px) {
    .cookie-consent { bottom: 10px; padding: 18px 20px; }
    .cookie-consent__actions .btn { width: 100%; }
    .cookie-modal__footer .btn { flex: 1; }
}

/* --- 18. AI Asistent � floating widget --- */
.ai-widget { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.ai-widget__launcher {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #047857; color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease, background 0.2s ease;
}
.ai-widget__launcher:hover { background: #065F46; transform: translateY(-2px); }
.ai-widget__icon-close { display: none; }
.ai-widget.is-open .ai-widget__icon-open { display: none; }
.ai-widget.is-open .ai-widget__icon-close { display: block; }

.ai-widget__panel {
    position: absolute; right: 0; bottom: 72px;
    width: 380px; max-width: calc(100vw - 40px);
    height: 540px; max-height: calc(100vh - 110px);
    background: #fff; border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
}
.ai-widget__header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: #047857; color: #fff;
}
.ai-widget__avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.18);
}
.ai-widget__title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.ai-widget__status { font-size: 12px; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.ai-widget__status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #6EE7B7; display: inline-block;
}
.ai-widget__close {
    margin-left: auto; color: #fff; opacity: 0.9;
    width: 32px; height: 32px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 8px;
}
.ai-widget__close:hover { background: rgba(255,255,255,0.15); }

.ai-widget__messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    background: var(--bg-surface);
}
.ai-msg {
    max-width: 84%; padding: 10px 14px;
    border-radius: 14px; font-size: 14px; line-height: 1.5;
    white-space: pre-wrap; word-wrap: break-word;
}
.ai-msg--bot {
    align-self: flex-start;
    background: #fff; border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}
.ai-msg--user {
    align-self: flex-end;
    background: #047857; color: #fff;
    border-bottom-right-radius: 4px;
}
.ai-msg--typing { color: var(--text-secondary); font-style: italic; }

.ai-widget__input-wrap {
    display: flex; align-items: flex-end; gap: 8px;
    padding: 12px; border-top: 1px solid var(--border-color);
    background: #fff;
}
.ai-widget__input {
    flex: 1; resize: none; border: 1px solid var(--border-color);
    border-radius: 12px; padding: 10px 14px; font-size: 14px;
    max-height: 96px; outline: none;
}
.ai-widget__input:focus { border-color: #047857; }
.ai-widget__send {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
    background: #047857; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.ai-widget__send:hover { background: #065F46; }
.ai-widget__send:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 560px) {
    .ai-widget__panel { width: calc(100vw - 32px); right: 0; }
}
