:root {
    --dm-navy: #172b4d;
    --dm-ink: #18212f;
    --dm-muted: #75808f;
    --dm-orange: #ef9228;
    --dm-orange-soft: #fff2e3;
    --dm-surface: #f6f7f9;
    --dm-line: #e8ebef;
    --dm-white: #ffffff;
}

.dm-promotions {
    margin-block: 24px 32px;
}

.dm-promo-section-badge,
.dm-promo-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--dm-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.dm-promotion-card {
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(242, 145, 27, .32) !important;
    box-shadow: 0 12px 28px rgba(242, 145, 27, .12) !important;
}

.dm-promotion-card .dz-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.dm-promotion-card .title,
.dm-promotion-card .dm-promo-time {
    margin: 0;
}

.dm-promo-time {
    color: #667085;
    font-size: 13px;
}

.dm-promo-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dm-promo-prices del,
.dm-product-promo-price del {
    color: #8a94a6;
    font-size: .82em;
    font-weight: 600;
}

.dm-promo-prices strong,
.dm-product-promo-price #price_curent {
    color: var(--dm-orange);
}

.dm-product-promo-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
}

.dm-promo-notice {
    padding: 12px 14px;
    border: 1px solid rgba(242, 145, 27, .28);
    border-radius: 12px;
    background: rgba(242, 145, 27, .08);
    color: #6d470c;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    background: var(--dm-surface);
    color: var(--dm-ink);
}

main, .main-content {
    flex: 1 0 auto;
}

#preloader {
    display: none !important;
}

.page-wrapper {
    width: min(100%, 760px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--dm-white);
    box-shadow: 0 0 60px rgba(23, 43, 77, .08);
    display: flex;           
    flex-direction: column;
    overflow-x: clip;
}

.page-content.bg-white {
    background: var(--dm-surface) !important;
    padding-bottom: 24px !important;  /* smanjeno sa 110px */
    flex: 1 0 auto;                   /* DODATI: gura footer na dno ako ima malo sadržaja */
}

.page-content>.container {
    width: 100%;
    max-width: 720px;
    padding-inline: 18px;
}

.dz-nav-floting {
    position: static;
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    padding: 0 !important;
    background: var(--dm-white);
    border: 0;
    backdrop-filter: none;
}

.dz-nav-floting .header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 720px;
    min-height: 94px;
    margin: 0 auto;
    padding: 12px 18px !important;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--dm-line);
    backdrop-filter: blur(16px);
    box-shadow: none;
    border: 0;
}

.header-content {
    align-items: center;
}

.header-content .left-content {
    flex: 1;
    min-width: 0;
}

.header-content .info {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 7px;
}

.dm-venue-identity {
    min-width: 0;
}

.dm-venue-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 1px solid var(--dm-line);
    border-radius: 14px;
    background: white;
    padding: 4px;
}

.dm-welcome-label {
    display: block;
    color: var(--dm-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dm-venue-identity h3 {
    max-width: 185px;
    overflow: hidden;
    color: var(--dm-navy);
    font-size: 1.8em !important;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#jezik_id {
    width: auto;
    min-width: 92px;
    height: 32px;
    padding: 4px 30px 4px 10px;
    border: 1px solid var(--dm-line);
    border-radius: 999px;
    background-color: var(--dm-surface);
    color: var(--dm-ink);
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}

.right-content {
    gap: 12px !important;
}
.floating-actions-container {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    right: auto !important;
    left: 50% !important;
    width: min(100%, 760px);
    min-height: 82px;
    transform: translateX(-50%);
    justify-content: flex-end;
    padding: 13px 18px max(13px, env(safe-area-inset-bottom));
    background: var(--dm-navy);
    box-shadow: 0 -10px 30px rgba(23, 43, 77, .2);
    z-index: 6000100 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    pointer-events: none !important; /* osigurava da prazan prostor kontejnera ne blokira klikove ispod */
}

.dm-orders-button {
    position: relative;
    pointer-events: auto;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    background: transparent;
    color: var(--dm-white) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.dm-orders-button i {
    font-size: 19px;
}

.floating-cart-btn {
    position: relative !important;
    pointer-events: auto !important; /* vraća klik na samo dugme */
    right: auto !important;
    bottom: auto !important;
    display: flex !important;
    width: auto !important;
    height: 54px !important;
    min-width: 140px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--dm-orange) !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(239, 146, 40, .4) !important;
    cursor: pointer;
}

.floating-cart-btn::before {
    content: "Korpa";
    font-size: 16px;
    font-weight: 800;
    order: 2;
}

.floating-cart-btn svg {
    width: 23px;
    height: 23px;
    order: 1;
}

.floating-cart-btn svg path {
    stroke: white !important;
}

.floating-cart-btn .notification-badge {
    position: absolute !important;
    top: -9px;
    right: -5px;
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 99px;
    border: 2px solid white;
    background: #dc3545 !important;
    color: white !important;
    font-size: 12px;
}

.dm-action-badge {
    position: absolute;
    top: -10px;
    right: -6px;
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding: 0 6px;
    border: 2px solid white;
    border-radius: 99px;
    background: #dc3545;
    color: white;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}


.dm-orders-empty {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--dm-line);
    border-radius: 50%;
    color: var(--dm-navy);
}

.dm-order-strip {
    position: fixed;
    z-index: 105;
    left: 50%;
    top: 102px;
    width: min(calc(100% - 28px), 692px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #f6d4ac;
    border-radius: 14px;
    background: #fff9f2;
    color: var(--dm-ink);
    font-size: 12px;
    box-shadow: 0 8px 25px rgba(23, 43, 77, .09);
}

.dm-order-pulse {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--dm-orange);
    box-shadow: 0 0 0 5px rgba(239, 146, 40, .14);
}

.dm-order-count {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--dm-orange-soft);
    color: var(--dm-orange);
    font-weight: 850;
}

.dm-order-link {
    margin-left: auto;
    color: var(--dm-orange);
    font-weight: 800;
}

.dm-menu-intro {
    padding: 34px 2px 22px;
}

.dm-menu-intro span {
    color: var(--dm-orange);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.dm-menu-intro h1 {
    margin: 7px 0 8px;
    color: var(--dm-navy);
    font-size: clamp(30px, 8vw, 44px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.03;
}

.dm-menu-intro p {
    max-width: 520px;
    margin: 0;
    color: var(--dm-muted);
    font-size: 14px;
    line-height: 1.55;
}

.search-box {
    margin: 4px 0 22px;
}

.search-box .input-group {
    overflow: hidden;
    border: 1px solid var(--dm-line) !important;
    border-radius: 16px !important;
    background: white;
    box-shadow: none !important;
}

.search-box .form-control,
.search-box .input-group-text {
    height: 54px;
    border: 0 !important;
    background: transparent !important;
}

.search-box .form-control {
    padding-left: 17px;
    font-size: 14px;
}

.overlay-swiper1 {
    margin: 0 0 28px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.overlay-swiper1 .swiper-wrapper {
    gap: 12px;
}

.overlay-swiper1 .swiper-slide {
    width: 170px !important;
}

.dz-card-overlay.style-1 {
    overflow: hidden;
    border: 1px solid var(--dm-line);
    border-radius: 20px;
    background: white !important;
    box-shadow: none !important;
}

.dz-card-overlay.style-1::after {
    display: none !important;
}

.dz-card-overlay.style-1 .dz-media {
    height: 145px;
    background: #f0f1f3;
}

.dz-card-overlay.style-1 .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dz-card-overlay.style-1 .dz-info {
    position: static !important;
    padding: 13px 14px 15px !important;
    background: white !important;
}

.dz-card-overlay.style-1 .title {
    margin-bottom: 7px;
}

.dz-card-overlay.style-1 .title a {
    display: block;
    overflow: hidden;
    color: var(--dm-ink) !important;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dz-card-overlay.style-1 .dz-price {
    color: var(--dm-orange) !important;
    font-size: 16px;
    font-weight: 800;
}

.dz-card-overlay.style-1 .dz-price::after,
.featured-list .dz-price::after {
    content: " " attr(data-currency);
}

.title-bar {
    margin: 26px 0 13px !important;
}

.title-bar .title {
    color: var(--dm-navy);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.title-bar>a img {
    max-width: 78px;
    max-height: 72px;
    object-fit: contain;
}

.categories-swiper {
    margin-bottom: 26px !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.categories-swiper .swiper-wrapper {
    gap: 9px;
}

.categories-swiper .swiper-slide {
    width: auto !important;
}

.dz-categories-bx {
    display: flex;
    min-width: 166px;
    height: 68px;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 8px;
    border: 1px solid var(--dm-line);
    border-radius: 999px;
    background: white;
    box-shadow: none !important;
}

.dz-categories-bx .icon-bx {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--dm-orange-soft);
}

.dz-categories-bx .icon-bx img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

.dz-categories-bx .dz-content .title {
    margin: 0;
    white-space: nowrap;
}

.dz-categories-bx .dz-content .title a {
    color: var(--dm-ink);
    font-size: 1.3em;
    font-weight: 700;
}

.dz-categories-bx .menus {
    display: none;
}

.featured-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.featured-list>li {
    margin: 0 !important;
}

.featured-list .dz-card.list {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    min-height: 172px;
    max-height: 172px;
    overflow: hidden;
    border: 1px solid var(--dm-line);
    border-radius: 18px;
    background: white;
    box-shadow: none !important;
}

.featured-list .dz-card.list .dz-media {
    width: 152px !important;
    min-width: 152px !important;
    max-width: 152px !important;
    height: 152px !important;
    margin: 10px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #fff;
}

.featured-list .dz-card.list .dz-media img {
    width: 152px !important;
    height: 152px !important;
    object-fit: cover;
}

.featured-list .dz-card.list .dz-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 14px 18px !important;
}

.featured-list .dz-card.list .title {
    margin-bottom: 14px;
}

.featured-list .dz-card.list .title a {
    color: var(--dm-ink);
    font-size: 1.2em;
    font-weight: 750;
}

.featured-list .dz-card.list .dz-meta {
    margin: 0;
}

.featured-list .dz-card.list .dz-price {
    color: var(--dm-orange) !important;
    font-size: 17px;
    font-weight: 850;
}

.profile-area {
    margin-top: 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.profile-area .author-bx .name {
    color: var(--dm-navy);
}

.profile-area .widget_getintuch {
    color: var(--dm-muted);
}

.pwa-modal .modal-content,
.swal2-popup {
    border-radius: 22px !important;
}

/* Unutrašnji ekrani: kategorija, artikal, korpa i checkout */
.btn-primary,
.btn-success {
    background-color: var(--dm-orange) !important;
    border-color: var(--dm-orange) !important;
    color: white !important;
    box-shadow: none !important;
}

.btn-outline-primary {
    border-color: var(--dm-orange) !important;
    color: var(--dm-orange) !important;
}

.text-primary {
    color: var(--dm-orange) !important;
}

.page-content .page-content {
    padding-bottom: 28px !important;
    background: var(--dm-surface) !important;
}

body:has(.footer-fixed-btn) .floating-actions-container {
    bottom: max(174px, calc(env(safe-area-inset-bottom) + 174px)) !important;
}

/* Lokalni Laravel debug bar je fiksiran preko dna ekrana; u produkciji
   ovog elementa nema, a tokom razvoja korpa ostaje dostupna iznad njega. */
body:has(.phpdebugbar):not(:has(.footer-fixed-btn)) .floating-actions-container {
    bottom: 0 !important;
}

body:has(.phpdebugbar):has(.footer-fixed-btn) .floating-actions-container {
    bottom: max(270px, calc(env(safe-area-inset-bottom) + 270px)) !important;
}

.product-add-to-cart {
    margin-top: 30px;
    padding: 0 0 18px;
}

.product-add-to-cart .btn {
    min-height: 56px;
    border-radius: 18px !important;
    background: var(--dm-orange) !important;
    border-color: var(--dm-orange) !important;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(239, 146, 40, .22) !important;
}

.dz-product-preview {
    overflow: hidden;
    margin: 18px;
    border-radius: 26px;
    background: #eef0f3 !important;
}

.dz-product-preview .dz-media {
    min-height: 330px;
}

.dz-product-preview .dz-media img {
    width: 100%;
    height: 360px;
    padding: 18px;
    object-fit: contain !important;
}

.dz-product-detail {
    margin-top: -34px;
    padding: 28px 22px 120px;
    border-radius: 30px 30px 0 0;
    background: white;
    box-shadow: 0 -8px 30px rgba(23, 43, 77, .06);
}

.dz-product-detail .detail-content .title {
    color: var(--dm-navy);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.dz-product-detail .price {
    color: var(--dm-orange) !important;
    font-size: 18px;
    font-weight: 850;
}

.dz-product-detail .description p {
    font-size: 1.2em;
    color: var(--dm-muted);
    line-height: 1.65;
}

.dz-product-detail .form-control {
    min-height: 50px;
    border: 1px solid var(--dm-line);
    border-radius: 14px;
    box-shadow: none;
}

.dodaci-section {
    padding: 18px;
    border: 1px solid var(--dm-line);
    border-radius: 18px;
    background: var(--dm-surface);
}

.form-check-input:checked {
    background-color: var(--dm-orange);
    border-color: var(--dm-orange);
}



.footer.fixed,
.footer-fixed-btn {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 760px;
    z-index: 1000 !important;
    padding: 18px max(18px, env(safe-area-inset-bottom));
    border: 0 !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 -10px 30px rgba(23, 43, 77, .08);
}

.footer.fixed .btn,
.footer-fixed-btn .btn {
    min-height: 54px;
    border-radius: 999px !important;
    font-size: 15px;
    font-weight: 800;
}

.dz-total-area {
    margin: 18px 0 14px;
    padding: 18px 20px !important;
    border: 1px solid var(--dm-line);
    border-radius: 18px;
    box-shadow: none !important;
}

.dz-total-area .name {
    color: var(--dm-muted);
}

.dz-total-area .prize {
    color: var(--dm-navy);
    font-size: 22px;
    font-weight: 850;
}

.dz-flex-box {
    display: grid;
    gap: 12px;
}

.dz-cart-list {
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--dm-line) !important;
    border-radius: 18px !important;
    background: white !important;
    box-shadow: none !important;
}

.dz-cart-list .dz-media {
    overflow: hidden;
    border-radius: 14px !important;
    background: #eef0f2;
}

.dz-cart-list .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dz-cart-list .title a {
    color: var(--dm-ink);
    font-weight: 750;
}

.dz-cart-list .dz-price {
    color: var(--dm-orange) !important;
    font-weight: 850;
}

.dz-remove {
    color: #a65044 !important;
    font-size: 12px;
}

.footer-fixed-btn .btn {
    background: var(--dm-orange) !important;
    border-color: var(--dm-orange) !important;
}

.dm-powered-by {
    padding: 24px 18px 105px;
    text-align: center;
    color: var(--dm-muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dm-powered-by strong {
    display: block;
    margin-top: 4px;
    color: var(--dm-navy);
    font-size: 15px;
    letter-spacing: -.03em;
    text-transform: none;
}

.dm-powered-by strong span {
    color: var(--dm-orange);
}

@media (max-width: 480px) {
    /* Razvojni toolbar na telefonu prekriva aplikacijsku donju navigaciju. */
    .phpdebugbar {
        display: none !important;
    }

    .page-wrapper {
        box-shadow: none;
    }

    .dz-nav-floting .header {
        min-height: 88px;
        padding-inline: 14px !important;
    }

    .dm-venue-logo {
        width: 72px;
        height: 72px;
    }

    .dm-venue-identity h3 {
        max-width: 180px;
        font-size: 1.8em !important;
    }

    .dm-menu-intro {
        padding-top: 28px;
    }

    .floating-cart-btn {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .floating-actions-container {
        right: auto !important;
        gap: 8px !important;
        padding-inline: 12px !important;
    }

    .dm-orders-button,
    .floating-cart-btn {
        min-height: 52px;
        padding-inline: 15px !important;
        font-size: 13px;
    }

    .featured-list .dz-card.list {
        grid-template-columns: 116px minmax(0, 1fr);
        min-height: 132px;
    }

    .featured-list .dz-card.list .dz-media,
    .featured-list .dz-card.list .dz-media img {
        width: 116px !important;
        height: 132px !important;
    }

    .featured-list .dz-card.list .dz-media {
        min-width: 116px !important;
        max-width: 116px !important;
        margin: 0 !important;
        background: #fff !important;
    }

    .featured-list .dz-card.list .dz-content {
        min-width: 0;
        padding: 12px 14px !important;
    }

    .featured-list .dz-card.list .title a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
