@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Lora:wght@300;400;500;600;700&display=swap');

/* ==========================
   CSS VARIJABLE (ROOT)
========================== */
:root {
    /* Crno-zlatna paleta */
    --crna: #0A0A0A;
    --tamno-siva: #1C1C1C;
    --zlatna: #D4AF37;
    --svetlo-zlatna: #F4D03F;
    --krem: #F5F5DC;
    
    /* Dodatne boje */
    --bela: #FFFFFF;
    --svetlo-siva: #F0F0F0;
    --srednje-siva: #999999;
    --tekst-siva: #333333;
}

/* ==========================
   RESET I FONT ZA CEO SAJT
========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bela);
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--crna);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--tamno-siva);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================
   HEADER I PROMO BAR
========================== */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: top 0.3s;
    width: 100%;
}

.promo-bar {
    width: 100%;
    background: var(--crna);
    color: var(--krem);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
}

.promo-left {
    position: absolute;
    left: 50px;
    top: 0;
    height: 50px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.promo-left select {
    background: var(--crna);
    color: var(--krem);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.promo-center {
    max-width: 60%;
    text-align: center;
}

.promo-center span {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(30px);
    transition: transform 0.5s, opacity 0.5s;
}

.promo-right {
    position: absolute;
    right: 20px;
    top: 0;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-icon {
    width: 24px;
    height: 24px;
}

.promo-hamburger {
    position: absolute;
    left: 10px;
    /* top: 12px;  <-- OVO IZBRISI */
    height: 50px; /* Mora biti ista visina kao promo-bar */
    display: flex;
    align-items: center; /* Centrira vertikalno tri crte */
    font-size: 20px;
    cursor: pointer;
    padding: 0 15px;
    z-index: 1000;
}


header {
    width: 100%;
    height: 80px;
    background: var(--bela);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--svetlo-siva);
    box-sizing: border-box;
}

#logoBtn {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 800;
    font-style: italic;
    color: var(--crna);
    text-transform: lowercase;
    letter-spacing: -2px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
    min-width: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    height: 100%;
}

nav ul li {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
}

nav ul li span {
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

nav ul li:hover span {
    border-bottom: 2px solid var(--zlatna);
}

.right-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 250px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 5px 10px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--crna);
    background: transparent;
}

.search-icon, .cart-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
}

.cart-icon {
    width: 25px;
    height: 25px;
    color: var(--crna);
}

.search-icon {
    width: 55px;
    height: 55px;
}

/* PANELI */
.left-panel {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: var(--bela);
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    transition: 0.4s;
    padding: 30px;
    z-index: 101;
}

.left-panel.active {
    left: 0;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--bela);
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transition: 0.4s;
    padding: 30px;
    z-index: 100;
}

.cart-panel.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 100;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================
   PROIZVODI
========================== */
.products-header {
    padding: 10px 0 0 60px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.products-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.products-icon {
    width: 60px;
}

/* ==========================
   FILTERI
========================== */
.filters-container {
    background: var(--bela);
    padding: 25px 0 10px 0; /* Gore 25px, dole 10px */
    margin: 0 0 0 60px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    max-width: calc(100% - 60px);
    font-size: 16px;
}

.filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter label {
    font-weight: 600;
    font-size: 16px;
}

.filter select {
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

.filter input[type="range"] {
    width: 220px;
    height: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -1px;
}

#filterCenaVal {
    font-weight: 600;
    font-size: 16px;
    min-width: 70px;
    text-align: center;
}

#applyFiltersBtn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: var(--crna);
    height: 15px;
    width: 15px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    background: var(--crna);
    height: 15px;
    width: 15px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    border-radius: 5px;
}

/* LISTA PROIZVODA */
.products-list-container {
    max-width: 1400px;
    margin: 0 20px 20px 60px;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
}

.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    background: var(--bela);
    padding: 20px;
    border-radius: 12px;
}

/* KARTICA PROIZVODA */
.product-item {
    flex: 0 0 calc(25% - 25px);
    background: var(--bela);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: .35s;
    border: 1px solid var(--svetlo-siva);
    cursor: default;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.05);
    border: none;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.product-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: .4s;
}

.product-item:hover img {
    transform: scale(1.07);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-item:not(.out-of-stock) .add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: rgba(0,0,0,0.5);
    color: var(--bela);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .35s ease;
}

.product-item:not(.out-of-stock) .product-image-wrapper:hover .add-to-cart {
    opacity: 1;
}

.product-image-wrapper:hover .add-to-cart {
    opacity: 1;
}

.add-to-cart .cart-icon-btn {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: url('slike/korpa.png') no-repeat center/contain;
}

/* BADGES */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
}

.badge {
    background: var(--bela);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.available {
    color: #1c8c4c;
}

.not-available {
    color: #c62828;
}

.product-item-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-item h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--tamno-siva);
    text-align: center;
    min-height: 50px;
    max-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 600;
}

.cena {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-top: 5px;
}

.product-item.out-of-stock {
    filter: brightness(0.85);
    pointer-events: auto;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: var(--bela);
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.product-badge.novo {
    background-color: #006400;
    color: var(--bela);
}

.product-badge.akcija {
    background-color: #c0392b;
    color: var(--bela);
}

.product-badge.popularno {
    background-color: var(--crna);
    color: var(--bela);
}

.product-badge.bestseller {
    background-color: var(--zlatna);
    color: var(--tekst-siva);
}

.product-badge.akcijaProc {
    background-color: #c0392b;
    color: var(--bela);
}

.product-image {
    position: relative;
}

#detailsBadge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 20;
    display: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

#detailsBadge.novo {
    background-color: #006400;
    color: var(--bela);
}

#detailsBadge.akcija {
    background-color: #c0392b;
    color: var(--bela);
}

#detailsBadge.popularno {
    background-color: var(--crna);
    color: var(--bela);
}

#detailsBadge.bestseller {
    background-color: var(--zlatna);
    color: var(--tekst-siva);
}

#detailsBadge.akcijaProc {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #c0392b;
    color: var(--bela);
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    z-index: 50;
}

.old-price {
    text-decoration: line-through;
    color: var(--srednje-siva);
    margin-right: 8px;
}

.new-price {
    color: #e53935;
    font-weight: bold;
}

/* ==========================
   FOOTER
========================== */
.site-footer {
    background: var(--crna);
    color: var(--krem);
    padding: 40px 20px 20px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1400px;
    margin: auto;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 200px;
    min-width: 180px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--krem);
}

.footer-column p,
.footer-column a {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--zlatna);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 10px 20px;
}

.quick-links a {
    color: #ddd;
    font-weight: 500;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.social-icons img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 10px;
    font-size: 13px;
    color: #aaa;
}

.sort-filter select {
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
}

/* ================= PAGINATION ================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination button {
    background-color: var(--crna);
    color: var(--bela);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.pagination button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background-color: #333;
}

.pagination #pageInfo {
    font-weight: 500;
    font-size: 16px;
    min-width: 30px;
    text-align: center;
}

/* KONTEJNER ZA DETALJE PROIZVODA */
.product-details-container {
    max-width: 1300px;
    margin: 10px auto 30px auto;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.product-image-column {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-in;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-column .thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.product-image-column .thumbnails img {
    flex: 1 1 0;
    max-width: 80px;
    min-width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border 0.2s ease;
}

.product-image-column .thumbnails img:hover,
.product-image-column .thumbnails img.active {
    border-color: #111;
}

.product-image-column .thumbnails img:hover {
    transform: scale(1.08);
}

.slide-clone {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.product-pol {
    font-size: 18px;
    font-weight: 600;
}

.product-stock {
    font-size: 16px;
    font-weight: 600;
}

.product-stock.available {
    color: #1c8c4c;
}

.product-stock.not-available {
    color: #c62828;
}

#detailsDescription {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
}

#detailsPrice {
    font-size: 28px;
    font-weight: 700;
    margin-top: 5px;
    text-align: right;
}

.product-back {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 40px;
}

.hidden {
    display: none !important;
}

.products-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-left: 60px;
}

.breadcrumb {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    gap: 5px;
    margin-left: 40px;
}

.breadcrumb span {
    cursor: pointer;
    color: var(--crna);
    text-decoration: none;
    padding-bottom: 2px;
    margin-bottom: 30px;
}

.breadcrumb span:last-child {
    font-weight: bold;
}

.breadcrumb span:not(:last-child)::after {
    margin: 0 5px;
    color: var(--crna);
}

.left-panel .close-left-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--tekst-siva);
    transition: color 0.2s;
}

.left-panel .close-left-panel:hover {
    transform: scale(1.1);
    color: var(--crna);
}

.left-panel h2 {
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 25px;
}

#leftPanelMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#leftPanelMenu ul > li {
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
}

#leftPanelMenu ul > li:last-child {
    border-bottom: none;
}

#leftPanelMenu ul > li span:hover {
    font-weight: 700;
    color: var(--zlatna);
    border-bottom: none;
}

#leftPanelMenu ul li .sub-menu {
    list-style: none;
    padding-left: 25px;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease, margin-top 0.5s ease;
}

#leftPanelMenu ul li:hover .sub-menu {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
    overflow: visible;
}

#leftPanelMenu ul li .sub-menu li {
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

#leftPanelMenu ul li .sub-menu li:last-child {
    border-bottom: none;
}

#leftPanelMenu ul li .sub-menu li span:hover {
    font-weight: 700;
    color: var(--zlatna);
    border-bottom: none;
}

#leftPanelMenu ul li span {
    font-family: 'Playfair Display', serif;
    transition: 0.3s;
}

#aboutus {
    color: var(--crna);
}

.why-us-text {
    color: var(--tekst-siva);
    font-size: 20px;
    line-height: 1.6;
    text-align: center;
    margin: 20px 0;
}

.about-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bela);
}

.about-container {
    max-width: 1200px;
    margin: auto;
}

.about-grid {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-box {
    flex: 1 1 300px;
    background: var(--bela);
    color: var(--crna);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--crna);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.about-box:hover {
    transform: translateY(-8px);
    background: var(--crna);
    color: var(--bela);
    border-color: var(--crna);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.about-box h3 {
    margin-bottom: 15px;
    font-weight: 700;
}
/* Menja boju naslova u zlatnu kada se pređe mišem preko kartice */
.about-box:hover h3 {
    color: var(--bela);
}

.elegantna-crta {
    width: 90%;
    height: 6px;
    margin: 40px auto 0 auto;
    background: linear-gradient(to right, transparent, var(--crna), transparent);
    border-radius: 50%;
    display: block;
    clear: both;
}

/* ============================== */
/* SEARCH RESULTS KONTEJNER */
/* ============================== */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f2f2f2;
    border-top: 1px solid #ddd;
    padding: 20px 40px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s ease;
    z-index: 500;
    display: none;
}

.search-results.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-results.closing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.search-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.search-results .product-item {
    flex: 0 0 190px;
    background: var(--bela);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.search-results .product-item .product-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end;
    padding: 5px 8px;
}

.search-results .product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.search-results .product-item:hover img {
    transform: scale(1.05);
}

.search-results .product-item h3 {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    margin: 8px 5px 5px 5px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results .product-item h3.long-title {
    font-size: 12px;
}

.search-results .product-item .cena {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px 0;
}

.search-results .old-price {
    text-decoration: line-through;
    color: var(--srednje-siva);
    margin-right: 8px;
    font-size: 14px;
}

.search-results .new-price {
    color: #e53935;
    font-weight: bold;
    font-size: 14px;
}

.search-results .product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.search-results .product-badge.novo {
    background-color: #006400;
    color: var(--bela);
}

.search-results .product-badge.akcija {
    background-color: #c0392b;
    color: var(--bela);
}

.search-results .product-badge.popularno {
    background-color: var(--crna);
    color: var(--bela);
}

.search-results .product-badge.bestseller {
    background-color: var(--zlatna);
    color: var(--tekst-siva);
}

.search-results .product-badge.akcijaProc {
    background-color: #c0392b;
    color: var(--bela);
    font-size: 10px;
    padding: 3px 8px;
}

.search-results .product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.search-results .product-item:hover .product-badge.akcijaProc {
    transform: scale(1.05);
    transition: transform 0.2s;
}

.specs-container {
    padding-top: 10px;
}

.specs-toggle {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.specs-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

#specsArrow,
#notesArrow {
    font-size: 24px;
    margin-left: 8px;
}

/* ===================== */
/* RELATED PRODUCTS */
/* ===================== */
.related-products {
    flex: 0 0 320px;
    position: relative;
    padding-left: 20px;
}

.related-products::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #b0b0b0;
    border-radius: 2px;
}

.related-products h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

#relatedContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    background: var(--bela);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    min-height: 120px;
}

.related-item:hover {
    border-color: #e5e5e5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.related-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.related-item:hover img {
    transform: scale(1.05);
}

.related-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.related-info strong {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
}

.related-cena {
    margin-top: auto;
    align-self: flex-end;
    text-align: right;
    font-size: 16px;
}

.related-info .old-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 5px;
    font-weight: 500;
    font-size: 14px;
}

.related-info .new-price {
    color: red;
    font-weight: bold;
    font-size: 14px;
}

.related-info .price {
    font-weight: bold;
}

.related-info .dostupno {
    color: green;
    font-weight: 600;
}

.related-info .nedostupno {
    color: #888;
}

.related-item:not(:last-child) {
    border-bottom: 1px solid #f2f2f2;
}

/* ===================== */
/* KORPA */
/* ===================== */
.cart-header {
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.cart-header h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    letter-spacing: -0.5px;
}

.close-cart {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--tekst-siva);
    padding: 0;
    transition: 0.2s;
    line-height: 1;
    z-index: 10;
}

.close-cart:hover {
    transform: scale(1.1);
}

.cart-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--crna);
    color: var(--bela);
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cart-items {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.cart-item:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
}

.cart-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f5f5f5;
}

.cart-info {
    flex: 1;
}

.cart-info h4 {
    font-size: 18px;
}

.cart-info .old-price {
    font-size: 14px !important;
    color: var(--srednje-siva);
}

.cart-info .new-price {
    font-size: 16px !important;
    font-weight: bold;
    color: #ff4d4d;
}

.cart-info .price {
    font-size: 16px;
    font-weight: bold;
    font-weight: 600;
    color: var(--tekst-siva);
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #666;
}

.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-qty input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-qty input {
    width: 45px;
    height: 30px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.25s ease;
    outline: none;
    padding: 0;
}

.cart-qty input:focus {
    border-color: var(--tekst-siva);
    background: var(--bela);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.cart-item button {
    background: transparent;
    border: none;
    color: #bbb;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item button:hover {
    color: #ff4d4d;
    transform: scale(1.1);
}

.cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--tekst-siva);
    font-weight: bold;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--crna);
    color: var(--bela);
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.checkout-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.checkout-btn:active {
    transform: scale(0.97);
}

/* ==========================================================================
   CHECKOUT KONTEJNER
   ========================================================================== */
#checkout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bela);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    display: none;
}

#checkout.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

#checkout h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ccc;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #ddd;
    color: var(--srednje-siva);
    transition: all 0.3s ease;
}

.progress-line {
    width: 100px;
    height: 2px;
    background: #eee;
    margin: 0 15px 25px 15px;
}

.progress-step.active .step-number {
    background: var(--crna);
    color: var(--bela);
    border-color: var(--crna);
}

.progress-step.active .step-label {
    color: var(--crna);
    font-weight: bold;
}

#checkout form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#checkout input,
#checkout select {
    height: 48px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    background: #f9f9f9;
    transition: all 0.25s ease;
}

#checkout input:focus {
    border-color: var(--crna);
    background: var(--bela);
    outline: none;
}

.checkout-fixed-method {
    grid-column: span 2;
    margin: 25px 0;
}

.elegant-method-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: var(--bela);
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.elegant-method-card:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: var(--bela);
}

.method-icon-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 70%;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.method-subtitle {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--srednje-siva);
    margin-bottom: 4px;
}

.method-main-title {
    font-size: 17px;
    color: #111;
    display: block;
    margin-bottom: 8px;
}

.method-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.method-price-tag {
    text-align: right;
    padding-left: 25px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 11px;
    color: var(--srednje-siva);
    text-transform: uppercase;
}

.price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--crna);
}

.delivery-time {
    font-size: 11px;
    font-weight: 700;
    color: #27ae60;
    margin-top: 5px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.checkout-grid-step2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

#customerSummary {
    padding: 25px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
}

#customerSummary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--crna);
    display: inline-block;
    padding-bottom: 5px;
}

.summary-data-row {
    display: flex;
    margin-bottom: 15px;
    gap: 15px;
}

.summary-data-label {
    font-weight: 700;
    color: #888;
    min-width: 80px;
    font-size: 13px;
    text-transform: uppercase;
}

.summary-data-value {
    color: #111;
    font-size: 15px;
    font-weight: 500;
}

.summary-box {
    background: var(--bela);
    padding: 25px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.order-info {
    flex: 1;
    font-size: 15px;
}

.order-price {
    font-weight: 700;
}

.order-item-summary {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-summary img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--tekst-siva);
    display: block;
}

.order-item-qty {
    font-size: 12px;
    color: #777;
}

.order-item-price {
    font-weight: 700;
    color: var(--crna);
    font-size: 15px;
}

.checkout-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.main-total {
    font-size: 24px;
    font-weight: 800;
    border-top: 2px solid var(--crna);
    padding-top: 15px;
    margin-top: 10px;
}

#checkout button {
    height: 50px;
    border-radius: 8px;
    border: none;
    background: var(--crna);
    color: var(--bela);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
}

#checkout button:hover {
    background: #333;
    transform: translateY(-2px);
}

#backToStep1 {
    background: #eee !important;
    color: var(--tekst-siva) !important;
}

.checkout-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    margin-top: 25px;
}

.checkout-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-next {
    background: var(--crna);
    color: var(--bela);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
}

.btn-prev {
    background: #eee;
    color: var(--tekst-siva);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 900px) {
    #checkout {
        margin: 20px;
        padding: 20px;
    }
    .checkout-grid, #checkout form {
        grid-template-columns: 1fr;
    }
    .checkout-actions {
        grid-template-columns: 1fr;
    }
    #checkout form button {
        grid-column: span 1;
    }
    .checkout-fixed-method {
        grid-column: span 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.promo-box input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.promo-box button {
    padding: 10px 15px;
    background: #111;
    color: var(--bela);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.promo-box button:hover {
    background: #333;
}

#promoMessage {
    font-size: 14px;
    margin-top: 5px;
}

/* ==========================
   BRAND INTRO
========================== */
.brand-intro {
    padding: 30px 20px 0px;
    background: var(--bela);
    display: flex;
    justify-content: center;
}

.brand-intro-container {
    max-width: 800px;
    text-align: center;
    min-height: 260px;
}

.brand-intro h2 {
    display: block;
    height: 40px;
    line-height: 40px;
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 600;
    opacity: 0;
    overflow: hidden;
}

.brand-intro h2.started {
    opacity: 1;
}

.typing-cursor::after {
    content: "";
    display: inline-block;
    width: 1.5px;
    height: 1.1em;
    background-color: var(--crna);
    margin-left: 3px;
    vertical-align: text-bottom;
}

.brand-intro p {
    opacity: 0;
    transform: translateY(10px);
    margin-bottom: 20px;
    min-height: 50px;
    font-size: 17px;
    line-height: 1.6;
}

.brand-intro p:last-of-type {
    margin-bottom: 0;
}

.brand-intro p.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

/* ==========================
   DEKORATIVNE SLIKE
========================= */
.decorative-images {
    display: block;
    padding: 20px 20px 30px;
    background: var(--bela);
    overflow: hidden;
    position: relative;
    animation: sliderFadeIn 1.5s ease-out forwards;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.image-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: scroll-right 50s linear infinite;
    padding: 10px 0;
}

.decorative-img {
    width: 280px;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
    position: relative;
    isolation: isolate;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.decorative-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
    border-radius: inherit;
}

.decorative-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.decorative-img:hover img {
    transform: scale(1.08);
}

@keyframes sliderFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-1770px);
    }
    100% {
        transform: translateX(0);
    }
}

body {
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden !important;
}

/* ==========================
   AUTH MODAL
========================== */
.auth-modal-window {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.auth-modal-content {
    background: var(--bela);
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease-out;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 10vh;
    margin-bottom: 50px;
    min-height: 450px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--crna);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 18px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    text-transform: uppercase;
}

.tab-btn.active {
    color: var(--crna);
    border-bottom: 3px solid var(--crna);
}

.auth-form-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.auth-form-body input,
.auth-select {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
}

.auth-main-btn {
    background: var(--crna);
    color: var(--bela);
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
}

.auth-main-btn:hover {
    background: var(--tekst-siva);
}

.forgot-pass-link {
    text-align: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.auth-triggers {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-icon {
    width: 30px;
    height: 30px;
    margin-left: 10px;
}

#authModal {
    display: none;
}

#alreadyLoggedModal .auth-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    min-height: auto;
}

#alreadyLoggedModal h2 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--crna);
}

#alreadyUserData {
    width: 100%;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #eee;
}

#alreadyUserData p {
    margin: 8px 0;
    font-size: 16px;
    color: var(--tekst-siva);
}

#goToProfileBtn {
    width: 100%;
    margin-bottom: 15px;
}

#logoutFromModalBtn {
    background: #cc0000 !important;
    width: 100%;
    margin-top: 5px;
}

#logoutFromModalBtn:hover {
    background: #a00000 !important;
}

#resetForm {
    display: none;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 40px auto;
    padding: 30px 25px;
    background: var(--bela);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

#resetForm h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

#step-email, #step-code, #step-newpass {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#step-code, #step-newpass {
    display: none;
}

#resetForm input[type="email"],
#resetForm input[type="password"] {
    padding: 14px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    width: 100%;
    transition: 0.2s;
}

#resetForm input:focus {
    border-color: var(--crna);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
}

.code-box {
    width: 55px;
    height: 55px;
    font-size: 22px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: 0.2s;
}

.code-box:focus {
    border-color: var(--crna);
}

#resetForm button {
    width: 100%;
    padding: 14px 0;
    border-radius: 10px;
    border: none;
    background: var(--crna);
    color: var(--bela);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

#resetForm button:hover {
    background: #333;
}

#reset-error-msg {
    color: #ff4d4d;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

.forgot-pass-link {
    text-align: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-top: 15px;
}

.forgot-pass-link:hover {
    color: var(--crna);
}

/* ==========================
   PROFIL
========================== */
#userProfile {
    display: none;
    width: 100%;
    min-height: 80vh;
    background: var(--bela);
    padding: 60px 20px;
}

#userProfile.active {
    display: block;
}

.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-header {
    text-align: center;
    border-bottom: 1px solid #eee;
}

.profile-header h1 {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.p-tab {
    padding: 15px 10px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.p-tab:hover {
    color: #555;
}

.p-tab.active {
    color: var(--crna);
    border-bottom: 3px solid var(--crna);
}

.profile-tab-content {
    padding: 40px 0;
    min-height: 400px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.profile-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.back-to-shop-btn {
    background: transparent;
    color: var(--crna);
    border: none;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.back-to-shop-btn::before {
    content: '←';
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.back-to-shop-btn:hover {
    color: #666;
}

.back-to-shop-btn:hover::before {
    transform: translateX(-8px);
}

.back-to-shop-btn::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 25px;
    width: 0;
    height: 1px;
    background: #666;
    transition: width 0.3s ease;
}

.back-to-shop-btn:hover::after {
    width: calc(100% - 25px);
}

.overview-card {
    max-width: 900px;
    margin-top: 10px;
}

.overview-card h2 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--crna);
    display: inline-block;
    padding-bottom: 5px;
}

#userDataDisplay p {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin: 0;
    font-size: 16px;
    color: var(--crna);
    font-weight: 500;
}

#userDataDisplay p span {
    font-weight: 700;
    color: var(--srednje-siva);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

#logoutPlaceholder {
    margin-top: 0;
}

#orderHistoryList {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
    transition: max-height 0.3s ease;
}

.custom-scroll::-webkit-scrollbar {
    width: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: var(--crna);
    border-radius: 10px;
}

.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--crna) #f9f9f9;
}

.order-card-elegant {
    background: var(--bela);
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.order-card-elegant:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-color: #e0e0e0;
}

.order-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    margin-bottom: 15px;
}

.order-id {
    font-weight: 800;
    font-size: 14px;
    color: var(--crna);
    letter-spacing: 0.5px;
}

.order-date {
    font-size: 13px;
    color: var(--srednje-siva);
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-product-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-img-mini {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: #f9f9f9;
}

.order-product-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.order-product-name span {
    color: #aaa;
    font-size: 12px;
    margin-left: 5px;
}

.order-product-price {
    font-weight: 700;
    font-size: 14px;
}

.order-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.order-footer-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.order-extra-info {
    font-size: 13px;
    color: #888;
}

.order-extra-info b {
    color: var(--tekst-siva);
}

.usteda-zeleno, .usteda-zeleno b {
    color: #28a745 !important;
    font-weight: 600;
}

.order-summary-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.order-summary-row span {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.order-summary-row strong {
    color: var(--crna);
}

#recentGrid, #wishlistGrid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

#recentGrid .recent-item,
#wishlistGrid .wishlist-item {
    display: flex;
    align-items: center;
    background: var(--bela);
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: .3s;
    position: relative;
    padding-right: 20px;
    cursor: pointer;
}

#recentGrid .recent-item:hover,
#wishlistGrid .wishlist-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

#recentGrid .recent-item .product-image-wrapper,
#wishlistGrid .wishlist-item .product-image-wrapper {
    flex: 0 0 120px;
    height: 120px;
}

#recentGrid .recent-item img,
#wishlistGrid .wishlist-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#recentGrid .recent-item .product-item-content,
#wishlistGrid .wishlist-item .product-item-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

#recentGrid .recent-item h3,
#wishlistGrid .wishlist-item h3 {
    flex: 2;
    font-size: 16px;
    margin: 0;
    text-align: left;
    min-height: auto;
}

#recentGrid .recent-item .details-row,
#wishlistGrid .wishlist-item .details-row {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 15px;
    padding: 0;
}

#recentGrid .recent-item .bottom-row,
#wishlistGrid .wishlist-item .bottom-row {
    flex: 1;
    text-align: right;
}

#recentGrid .recent-item .cena,
#wishlistGrid .wishlist-item .cena {
    font-size: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#recentGrid .recent-item .old-price,
#wishlistGrid .wishlist-item .old-price {
    font-size: 13px;
    color: var(--srednje-siva);
    text-decoration: line-through;
}

#recentGrid .recent-item .product-badge,
#wishlistGrid .wishlist-item .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 2px 8px;
    z-index: 5;
}

#recentGrid .recent-item .add-to-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: static;
    opacity: 1;
    font-size: 0;
    background: var(--tekst-siva) url('slike/korpa.png') no-repeat center/20px;
    margin-left: 15px;
}

#recentGrid .recent-item.out-of-stock,
#wishlistGrid .wishlist-item.out-of-stock {
    filter: brightness(0.85);
    cursor: pointer;
}

#recentGrid .recent-item.out-of-stock h3,
#wishlistGrid .wishlist-item.out-of-stock h3 {
    color: #777;
}

.wishlist-item .wishlist-remove-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #cc0000;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 10px;
    z-index: 10;
}

.wishlist-item .wishlist-remove-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

.wishlist-item .product-item-content {
    padding-right: 60px !important;
}

.cart-actions-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 25px 0;
    width: 100%;
}

.quantity-input {
    width: 60px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    outline: none;
    transition: all 0.25s ease;
}

.cart-actions-list li:nth-child(2) {
    flex: 0 1 250px;
}

#addToCartBtn {
    width: 100%;
    height: 50px;
    background: var(--crna);
    color: var(--bela);
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.wishlist-btn {
    width: 48px;
    height: 48px;
    background: var(--bela);
    border: 1px solid #eee;
    border-radius: 8px;
    color: var(--tekst-siva);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    line-height: 1;
}

.quantity-input:hover,
#addToCartBtn:hover,
.wishlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

#addToCartBtn:hover {
    background: #333;
}

.wishlist-btn:hover {
    border-color: #ccc;
}

.quantity-input:active,
#addToCartBtn:active,
.wishlist-btn:active {
    transform: scale(0.97);
}

.wishlist-btn.active {
    color: #e74c3c;
    border-color: #fceaea;
    background: #fff5f5;
}

#addToCartBtn.disabled,
.quantity-input.disabled {
    background: #aaa;
    color: var(--bela);
    cursor: not-allowed;
    transform: none !important;
}

#detailsQty {
    width: 75px;
    height: 50px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    padding-left: 15px;
    padding-right: 0;
    box-sizing: border-box;
    transition: all 0.25s ease;
    outline: none;
    line-height: 48px;
}

.product-rating-container {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 12px 0 24px 0;
}

.stars-wrapper {
    display: flex;
    gap: 6px;
}

.star-icon {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    line-height: 1;
}

.star-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.rating-text {
    font-size: 16px;
    color: #777;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.rating-text strong {
    color: #111;
    font-size: 22px;
    font-weight: 800;
}

.viewing-now-elegant {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
    color: #777;
    letter-spacing: 0.3px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #1c8c4c;
    border-radius: 50%;
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #16703d;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.viewing-number {
    color: var(--tekst-siva);
    font-weight: 600;
}

.form-error-msg {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
    display: none;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bela);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid var(--crna);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    position: relative;
    background: var(--crna);
    color: var(--bela);
    padding: 12px 16px;
    margin-top: 10px;
    border-radius: 8px;
    min-width: 200px;
    max-width: 400px;
    width: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-size: 14px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.warning {
    border-left: 4px solid #ff9800;
}

.progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--zlatna);
    width: 100%;
    animation: progressAnim 3s linear forwards;
}

@keyframes progressAnim {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}





/* ========================== MEDIA QUERY ZA MOBILNE UREĐAJE ========================== */
@media (max-width: 768px) {
    
    /* ===== PROMO BAR - HAMBURGER I JEZIK ZAJEDNO LEVO ===== */
    .promo-bar { height: 45px; font-size: 11px; padding: 0 10px; display: flex; justify-content: space-between; align-items: center; }
    .promo-hamburger { position: static; left: auto; top: auto; padding: 0; font-size: 18px; order: 1; }
    .promo-left { position: static; left: auto; height: auto; margin-left: 8px; order: 2; }
    .promo-left select { font-size: 14px; padding: 0; background: black; color: white; border: none; }
    .promo-center { position: absolute; left: 50%; transform: translateX(-50%); width: 55%; text-align: center; order: 3; }
    .promo-center span { font-size: 11px; white-space: normal; line-height: 1.3; display: block; }
    .promo-right { position: static; right: auto; height: auto; order: 4; margin-left: auto; }
    #header-user-display, #header-login-btn, #header-register-btn, .separator { display: none !important; }
    .user-icon { width: 24px; height: 24px; }
    
    /* ===== HEADER - LOGO, INPUT, LUPA, KORPA ===== */
    header { padding: 0 20px !important; height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 60px; }
    #logoBtn { position: static !important; left: auto !important; transform: none !important; font-size: 26px; letter-spacing: -1px; flex-shrink: 0; }
    nav { display: none !important; }
    .right-icons { margin-left: auto; gap: 6px; display: flex !important; align-items: center; flex: 1; max-width: 65%; }
    .search-container { position: static !important; max-width: none !important; width: auto !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; display: flex !important; align-items: center; gap: 4px; flex: 1; opacity: 1 !important; visibility: visible !important; transform: none !important; transition: none !important; }
    .search-input { flex: 1 !important; min-width: 0 !important; display: block !important; visibility: visible !important; opacity: 1 !important; width: 100% !important; height: 28px !important; padding: 0 6px !important; font-size: 12px !important; border: 1px solid #ddd !important; border-bottom: 1px solid #ddd !important; border-radius: 5px !important; background: #f9f9f9 !important; position: static !important; box-sizing: border-box !important; }
    .search-input:focus { border-color: #000 !important; background: white !important; outline: none !important; }
    .search-icon { width: 30px !important; height: 30px !important; margin-left: 0 !important; cursor: pointer; display: block !important; flex-shrink: 0; position: static !important; }
    .cart-icon { width: 20px !important; height: 20px !important; margin-left: 0 !important; flex-shrink: 0; }
    .cart-wrapper { position: relative; flex-shrink: 0; }
    .cart-count { position: absolute; top: -6px; right: -6px; background: black; color: white; font-size: 9px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; }
    
    /* ===== SEARCH RESULTS ===== */
    .search-results { position: fixed; top: 105px; left: 0; right: 0; width: 100%; background: #f9f9f9; padding: 0; max-height: calc(100vh - 105px); overflow-y: auto; box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 99; opacity: 0; visibility: hidden; display: none; transform: translateY(-10px); transition: all 0.3s ease; }
    .search-results.active { opacity: 1; visibility: visible; transform: translateY(0); display: block; }
    .search-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 15px; }
    .search-results .product-item { flex: none; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #eee; display: flex; flex-direction: column; position: relative; }
    .search-results .product-item .product-image-wrapper { position: relative; width: 100%; height: 160px; }
    .search-results .product-item img { width: 100%; height: 100%; object-fit: cover; }
    .search-results .product-item .product-item-content { padding: 8px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
    .search-results .product-item h3 { font-size: 12px; font-weight: 600; text-align: center; margin: 5px 0; min-height: 35px; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .search-results .product-item .cena { font-size: 14px; font-weight: 700; text-align: center; margin: 5px 0 0 0; }
    .search-results .old-price { font-size: 11px; text-decoration: line-through; color: #999; margin-right: 5px; }
    .search-results .new-price { font-size: 13px; color: #e53935; font-weight: bold; }
    .search-results .product-badge { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 3px; font-size: 8px; font-weight: bold; text-transform: uppercase; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
    .search-results .product-badge.novo { background-color: #006400; color: #fff; }
    .search-results .product-badge.akcija { background-color: #c0392b; color: #fff; }
    .search-results .product-badge.popularno { background-color: #000; color: #fff; }
    .search-results .product-badge.bestseller { background-color: #d4af37; color: #222; }
    .search-results .product-badge.akcijaProc { background-color: #c0392b; color: #fff; }
    .search-results .product-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .search-results .product-item .add-to-cart { font-size: 11px; padding: 8px 4px; height: auto; }
    
    /* ===== BRAND INTRO ===== */
    .brand-intro { padding: 20px 15px 0; }
    .brand-intro-container { min-height: auto; }
    .brand-intro h2 { font-size: 24px; height: auto; margin-bottom: 15px; }
    .brand-intro p { font-size: 14px; min-height: auto; margin-bottom: 12px; }
    .brand-intro p:nth-of-type(2) { display: none; }
    
    /* ===== DECORATIVE SLIDER ===== */
    .decorative-images { padding: 15px 10px 20px; }
    .decorative-img { width: 200px; height: 280px; }
    
    /* ===== O NAMA SEKCIJA ===== */
    .about-section { padding: 30px 15px; }
    .about-container h2 { font-size: 22px; margin-bottom: 25px; }
    .about-grid { flex-direction: column; gap: 18px; margin-top: 30px; }
    .about-box { flex: none; width: 100%; padding: 20px 18px; min-height: auto; }
    .about-box h3 { font-size: 17px; margin-bottom: 12px; }
    .about-box p { font-size: 14px; line-height: 1.5; }
    
    /* ===== PROIZVODI HEADER ===== */
    .products-header { padding: 10px 0 0 15px; }
    .products-header h2 { font-size: 24px; }
    .products-icon { width: 45px; }
    
    /* ===== FILTERI - VERTIKALNO ===== */
    .filters-container { margin: 0 15px; padding: 20px 15px; flex-direction: column; gap: 15px; max-width: calc(100% - 30px); }
    .filter { width: 100%; flex-direction: column; align-items: flex-start; gap: 8px; }
    .filter label { font-size: 14px; }
    .filter select { width: 100%; padding: 10px; font-size: 14px; cursor: pointer; }
    .filter input[type="range"] { width: 100%; }
    #filterCenaVal { font-size: 14px; }
    
    /* ===== LISTA PROIZVODA - JEDAN ISPOD DRUGOG ===== */
    .products-list-container { margin: 0 15px 20px 15px; padding: 15px; }
    .products-list { flex-direction: column; gap: 20px; padding: 15px; }
    .product-item { flex: 0 0 100%; max-width: 100%; }
    .product-item img { height: 300px; }
    .product-item h3 { font-size: 16px; min-height: auto; }
    .cena { font-size: 18px; }
    
    /* ===== PAGINATION ===== */
    .pagination { margin: 20px 0; gap: 8px; }
    .pagination button { padding: 6px 12px; font-size: 14px; }
    .pagination #pageInfo { font-size: 14px; }
    
    /* ===== PANELI - 70% EKRANA SA STRANE ===== */
    .left-panel { width: 70%; left: -70%; }
    .left-panel.active { left: 0; }
    
    /* ===== PODMENI - UVEK OTVOREN NA MOBILNOM ===== */
    #leftPanelMenu ul li .sub-menu { max-height: none !important; opacity: 1 !important; transform: translateY(0) !important; overflow: visible !important; margin-top: 10px !important; }
    
    /* ===== CART PANEL - MOBILNI ===== */
    .cart-panel { width: 85%; right: -85%; padding: 20px 15px 20px 15px; display: flex; flex-direction: column; max-height: 100vh; }
    .cart-panel.active { right: 0; }
    .cart-header { padding-bottom: 12px; margin-bottom: 15px; flex-shrink: 0; }
    .cart-header h2 { font-size: 20px; font-weight: 800; }
    .close-cart { font-size: 24px; top: 0; right: 0; }
    .cart-items { flex: 1; overflow-y: auto; padding-right: 5px; margin-bottom: 15px; }
    .cart-item { gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
    .cart-item:last-of-type { border-bottom: none; margin-bottom: 10px; }
    .cart-item img { width: 50px; height: 50px; border-radius: 6px; }
    .cart-info { flex: 1; }
    .cart-info h4 { font-size: 14px; margin-bottom: 4px; line-height: 1.2; }
    .cart-info .old-price { font-size: 11px !important; }
    .cart-info .new-price { font-size: 13px !important; }
    .cart-info .price { font-size: 13px; }
    .cart-qty { font-size: 12px; margin-top: 5px; }
    .cart-qty input { width: 40px; height: 26px; font-size: 13px; }
    .cart-item button { width: 26px; height: 26px; font-size: 16px; }
    .cart-total { font-size: 16px; margin-top: 0; padding-top: 15px; border-top: 2px solid #222; flex-shrink: 0; }
    .checkout-btn { padding: 12px; font-size: 14px; margin-bottom: 0; margin-top: 15px; flex-shrink: 0; }
    
    /* ===== DETALJI PROIZVODA - VERTIKALNO ===== */
    .breadcrumb { font-size: 13px; margin-left: 15px; }
    .product-back { font-size: 16px; margin-left: 15px; }
    .product-details-container { flex-direction: column; margin: 10px 15px 30px 15px; gap: 25px; padding: 0; }
    .product-image-column { flex: none; width: 100%; }
    .product-image { width: 100%; height: auto; aspect-ratio: 1; max-width: 400px; margin: 0 auto; }
    .product-image img { width: 100%; height: 100%; }
    .thumbnails { justify-content: center; flex-wrap: wrap; }
    .thumbnails img { max-width: 70px; height: 55px; }
    .product-info { width: 100%; flex: none; }
    .product-info h1 { font-size: 24px; }
    .product-pol { font-size: 16px; }
    .product-stock { font-size: 14px; }
    .product-rating-container { flex-direction: row; align-items: center; gap: 12px; margin: 10px 0 20px 0; }
    .star-icon { font-size: 22px; }
    .rating-text { font-size: 13px; }
    .rating-text strong { font-size: 16px; }
    .viewing-now-elegant { font-size: 11px; margin-top: 10px; }
    .live-dot { width: 7px; height: 7px; }
    #detailsDescription { font-size: 14px; }
    #detailsPrice { font-size: 24px; }
    .specs-table td { font-size: 13px; padding: 6px; }
    .specs-toggle { font-size: 14px; }
    
    /* ===== KOLIČINA, SRCE I KORPA U ISTOM REDU ===== */
    .cart-actions-list { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 20px 0; }
    .cart-actions-list li:first-child { flex: 0 0 auto; }
    .cart-actions-list li:nth-child(2) { flex: 1; order: 0; }
    .cart-actions-list li:last-child { flex: 0 0 auto; }
    #detailsQty { width: 60px; height: 45px;font-size: 15px; padding-left: 15px;}
    #addToCartBtn { width: 100%; height: 45px; font-size: 14px; padding: 0 15px; }
    .wishlist-btn { width: 45px; height: 45px; font-size: 22px; }
    
    /* ===== RELATED PRODUCTS ===== */
    .related-products { flex: none; width: 100%; padding-left: 0; }
    .related-products::before { display: none; }
    .related-products h3 { font-size: 16px; margin-bottom: 12px; }
    #relatedContainer { gap: 10px; }
    .related-item { min-height: auto; padding: 8px; }
    .related-item img { width: 70px; height: 70px; }
    .related-info strong { font-size: 13px; }
    .related-cena { font-size: 14px; }
    
    /* ===== CHECKOUT - KOMPLETAN MOBILNI IZGLED ===== */
    #checkout { margin: 20px 10px; padding: 20px 15px; border-radius: 12px; }
    #checkout h2 { font-size: 20px; margin-bottom: 15px; }
    
    /* ===== CHECKOUT PROGRESS ===== */
    .checkout-progress { flex-direction: row; margin-bottom: 30px; gap: 0; }
    .progress-step { flex: 1; }
    .step-number { width: 35px; height: 35px; font-size: 14px; }
    .step-label { font-size: 11px; text-align: center; }
    .progress-line { width: 50px; margin: 0 5px 20px 5px; }
    
    /* ===== CHECKOUT STEP 1 ===== */
    .checkout-grid-step1 { display: flex; flex-direction: column; gap: 20px; }
    .checkout-card { width: 100%; padding: 0; border: none; background: transparent; }
    #checkout-form { display: flex; flex-direction: column; gap: 12px; }
    #checkout-form input, #checkout-form select { width: 100%; height: 44px; font-size: 14px; padding: 0 12px; }
    #checkout-form > div { display: flex; gap: 12px; }
    #checkout-form > div input { flex: 1; }
    
    /* ===== ELEGANT METHOD CARD - MOBILNI ===== */
    .checkout-fixed-method { width: 100%; margin: 15px 0; }
    .elegant-method-card { flex-direction: column; align-items: flex-start; padding: 15px; gap: 12px; }
    .method-icon-info { max-width: 100%; width: 100%; flex-direction: column; }
    .icon-circle { display: none; }
    .method-text { flex: 1; width: 100%; text-align: center; }
    .method-subtitle { font-size: 9px; margin-bottom: 3px; }
    .method-main-title { font-size: 14px; margin-bottom: 6px; line-height: 1.3; }
    .method-description { font-size: 12px; line-height: 1.4; margin-bottom: 12px; }
    .method-price-tag { border-left: none; border-top: none; padding-left: 0; padding-top: 0; width: 100%; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 15px; align-items: center; }
    .method-price-tag::before { content: '🚚'; font-size: 35px; grid-column: 1; grid-row: 1 / 4; align-self: center; }
    .price-label { font-size: 9px; text-transform: uppercase; color: #999; text-align: right; grid-column: 2; grid-row: 1; }
    .price-value { font-size: 20px; font-weight: 800; color: #000; text-align: right; grid-column: 2; grid-row: 2; }
    .delivery-time { font-size: 10px; font-weight: 700; color: #27ae60; text-align: right; grid-column: 2; grid-row: 3; margin-top: 2px; }
    
    /* ===== CHECKOUT STEP 2 ===== */
    .checkout-grid-step2 { grid-template-columns: 1fr; gap: 20px; }
    #customerSummary { padding: 18px; }
    #customerSummary h3 { font-size: 16px; margin-bottom: 15px; }
    .summary-data-row { flex-direction: column; gap: 5px; margin-bottom: 12px; }
    .summary-data-label { font-size: 12px; min-width: auto; }
    .summary-data-value { font-size: 14px; }
    .order-item-summary { padding: 10px 0; }
    .order-item-summary img { width: 45px; height: 45px; margin-right: 12px; }
    .order-item-name { font-size: 13px; }
    .order-item-qty { font-size: 11px; }
    .order-item-price { font-size: 14px; }
    
    /* ===== PROMO BOX I TOTALI ===== */
    .promo-box { flex-direction: row; gap: 8px; margin: 12px 0; }
    .promo-box input { flex: 1; padding: 10px 12px; font-size: 13px; border-radius: 8px; border: 1px solid #ddd; }
    .promo-box button { padding: 10px 20px; font-size: 13px; border-radius: 8px; white-space: nowrap; }
    .checkout-totals { padding: 15px; margin-top: 12px; }
    .total-row { font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; }
    .total-row span:first-child { font-size: 13px; font-weight: 500; }
    .total-row span:last-child { font-size: 13px; font-weight: 600; }
    .main-total { font-size: 16px !important; padding-top: 12px; margin-top: 10px; border-top: 2px solid #000; }
    .main-total span:first-child { font-size: 14px !important; font-weight: 700 !important; }
    .main-total span:last-child { font-size: 18px !important; font-weight: 900 !important; }
    
    /* ===== RSD NOTE ===== */
    #rsdNote { margin-top: 12px !important; padding: 12px 15px !important; border-radius: 8px !important; }
    #rsdNote > div:first-child { display: flex !important; flex-direction: column !important; gap: 6px !important; align-items: flex-end !important; }
    #rsdNote > div:first-child span:first-child { font-size: 12px !important; font-weight: 600 !important; line-height: 1.3 !important; align-self: flex-start !important; }
    #rsdNote > div:first-child span:last-child { font-size: 20px !important; font-weight: 900 !important; text-align: right !important; }
    #rsdNote > div:last-child { font-size: 10px !important; margin-top: 8px !important; line-height: 1.4 !important; }
    
    /* ===== CHECKOUT FOOTER ===== */
    .checkout-footer { flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 15px; }
    .btn-next, .btn-prev { width: 100%; margin-left: 0; height: 45px; font-size: 14px; }
    
    /* ===== USER PROFILE - MOBILNI ===== */
    #userProfile { padding: 20px 15px; }
    .profile-container { max-width: 100%; gap: 20px; }
    .profile-header { border-bottom: 1px solid #eee; padding-bottom: 15px; }
    .profile-header h1 { font-size: 20px; font-weight: 800; margin-bottom: 15px; }
    .profile-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
    .p-tab { font-size: 11px; padding: 10px 8px; white-space: nowrap; text-align: center; border-radius: 6px; background: #f5f5f5; border-bottom: none; transition: all 0.3s ease; }
    .p-tab.active { background: #000; color: #fff; border-bottom: none; }
    .p-tab:hover { background: #e0e0e0; }
    .p-tab.active:hover { background: #222; }
    .profile-tab-content { padding: 25px 0; min-height: 300px; }
    
    /* ===== PREGLED PROFILA (Overview) ===== */
    .overview-card { max-width: 100%; }
    .overview-card h2 { font-size: 17px; margin-bottom: 20px; padding-bottom: 8px; border-bottom-width: 2px; }
    #userDataDisplay p { font-size: 14px; padding: 12px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; border-bottom: 1px solid #f0f0f0; }
    #userDataDisplay p:last-child { border-bottom: 2px solid #eee; }
    #userDataDisplay p span { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #999; letter-spacing: 0.5px; }
    #userDataDisplay p strong { font-size: 15px; font-weight: 500; color: #000; word-break: break-word; }
    #logoutPlaceholder button { width: 100%; padding: 12px; font-size: 14px; margin-top: 15px; border-radius: 8px; }
    
    /* ===== WISHLIST & RECENT VIEWED ===== */
    .profile-grid { grid-template-columns: 1fr; gap: 12px; }
    #recentGrid .recent-item, #wishlistGrid .wishlist-item { flex-direction: row; padding: 0; border-radius: 10px; overflow: visible; position: relative; min-height: 100px; }
    #recentGrid .recent-item .product-image-wrapper, #wishlistGrid .wishlist-item .product-image-wrapper { flex: 0 0 100px; width: 100px; height: 100px; position: relative; }
    #recentGrid .recent-item img, #wishlistGrid .wishlist-item img { width: 100%; height: 100%; object-fit: cover; }
    #recentGrid .recent-item .product-badge, #wishlistGrid .wishlist-item .product-badge { position: absolute; top: 6px; left: 6px; padding: 3px 8px; border-radius: 4px; font-size: 9px; font-weight: bold; text-transform: uppercase; z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
    .product-badge.novo { background-color: #006400; color: #fff; }
    .product-badge.akcija { background-color: #c0392b; color: #fff; }
    .product-badge.popularno { background-color: #000; color: #fff; }
    .product-badge.bestseller { background-color: #d4af37; color: #222; }
    .product-badge.akcijaProc { background-color: #c0392b; color: #fff; }
    #recentGrid .recent-item .product-item-content, #wishlistGrid .wishlist-item .product-item-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 12px; gap: 6px; align-items: baseline;}
    #recentGrid .recent-item h3, #wishlistGrid .wishlist-item h3 { font-size: 13px; line-height: 1.3; font-weight: 600; color: #222; margin: 0; }
    #recentGrid .recent-item .details-row, #wishlistGrid .wishlist-item .details-row { font-size: 11px; display: flex; justify-content: space-between; width: 100%; margin: 4px 0; }
    #recentGrid .recent-item .details-row span:first-child, #wishlistGrid .wishlist-item .details-row span:first-child { color: #666; font-weight: 500; }
    #recentGrid .recent-item .details-row span:last-child, #wishlistGrid .wishlist-item .details-row span:last-child { font-weight: 600; }
    .details-row .available { color: #1c8c4c; }
    .details-row .not-available { color: #c62828; }
    #recentGrid .recent-item .bottom-row, #wishlistGrid .wishlist-item .bottom-row { width: 100%; margin-top: auto; }
    #recentGrid .recent-item .cena, #wishlistGrid .wishlist-item .cena { font-size: 16px; font-weight: 700; text-align: right; display: block; margin: 0; }
    #recentGrid .recent-item .old-price, #wishlistGrid .wishlist-item .old-price { font-size: 12px; text-decoration: line-through; color: #999; margin-right: 6px; }
    #recentGrid .recent-item .new-price, #wishlistGrid .wishlist-item .new-price { font-size: 15px; color: #e53935; font-weight: bold; }
    .wishlist-item .wishlist-remove-btn { position: absolute; right: 8px; top: 8px; font-size: 24px; padding: 6px; background: rgba(255,255,255,0.95); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; z-index: 15; border: none; color: #cc0000; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
    .wishlist-item .wishlist-remove-btn:hover { background: rgba(255,255,255,1); }
    .wishlist-item .product-item-content { padding-right: 12px !important; }
    
    /* ===== ORDER HISTORY ===== */
    #orderHistoryList { gap: 15px; padding-top: 5px; }
    .order-card-elegant { padding: 15px; border-radius: 12px; background: #fff; border: 1px solid #f0f0f0; }
    .order-header-info { display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #f5f5f5; }
    .order-id { font-size: 13px; font-weight: 800; color: #000; }
    .order-date { font-size: 11px; color: #999; }
    .order-items-list { display: flex; flex-direction: column; gap: 10px; }
    .order-product-row { display: flex; gap: 10px; align-items: center; }
    .order-img-mini { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
    .order-product-name { flex: 1; font-size: 13px; line-height: 1.3; font-weight: 600; }
    .order-product-name span { font-size: 10px; color: #999; font-weight: 400; }
    .order-product-price { font-size: 13px; font-weight: 700; flex-shrink: 0; }
    .order-footer-flex { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #eee; }
    .order-footer-details { display: flex; flex-direction: column; gap: 6px; width: 100%; }
    .order-extra-info { font-size: 12px; color: #666; justify-content: space-between; }
    .order-extra-info b { color: #000; font-weight: 600; }
    .usteda-zeleno { color: #28a745 !important; }
    .usteda-zeleno b { color: #28a745 !important; font-weight: 700; }
    .order-summary-row { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 100%; margin-top: 8px; padding-top: 10px; border-top: 2px solid #000; }
    .order-summary-row span { font-size: 11px; text-transform: uppercase; color: #999; font-weight: 600; }
    .order-summary-row strong { font-size: 18px; font-weight: 900; color: #000; }
    .profile-footer { margin-top: 25px; padding-top: 20px; }
    .back-to-shop-btn { font-size: 13px; padding: 8px 0; }
    .back-to-shop-btn::before { font-size: 18px; }
    .back-to-shop-btn::after { left: 22px; width: calc(100% - 22px); }
    
    /* ===== AUTH MODAL ===== */
    .auth-modal-window { padding: 10px; }
    .auth-modal-content { max-width: 100%; padding: 30px 20px; margin-top: 5vh; min-height: auto; }
    .auth-tabs { gap: 20px; }
    .tab-btn { font-size: 16px; padding: 8px 15px; }
    .close-modal { right: 15px; top: 10px; font-size: 30px; }
    .auth-form-body input { padding: 12px; font-size: 14px; }
    .auth-main-btn { padding: 14px; font-size: 14px; }
    #alreadyLoggedModal .auth-modal-content { padding: 30px 20px; }
    #alreadyUserData { padding: 15px; }
    #alreadyUserData p { font-size: 14px; }
    .code-inputs { gap: 8px; }
    .code-box { width: 45px; height: 45px; font-size: 18px; }
    
    /* ===== TOAST NOTIFICATIONS ===== */
    #toast-container { left: 10px; right: auto; bottom: 10px; max-width: 90%; }
    .toast { min-width: auto; width: auto; max-width: 350px; font-size: 13px; padding: 10px 14px; }
    
    /* ===== PRELOADER ===== */
    #preloader .loader { width: 40px; height: 40px; border-width: 4px; }
    
    /* ===== OSTALO ===== */
    .elegantna-crta { width: 95%; margin: 30px auto 0 auto; height: 4px; }
}

/* ========================== MALI TELEFONI (480px) ========================== */
@media (max-width: 480px) {
    #logoBtn { font-size: 26px; }
    .product-item img { height: 250px; }
    .left-panel { width: 80%; left: -80%; }
    .cart-panel { width: 85%; right: -85%; }
    .decorative-img { width: 180px; height: 250px; }
    .promo-bar { font-size: 10px; }
    .step-label { font-size: 10px; }
    .progress-line { width: 40px; }
    .promo-center { width: 60%; }
}

/* ========================== EXTRA MALI TELEFONI (375px) ========================== */
@media (max-width: 375px) {
    #toast-container { left: 8px; right: 8px; bottom: 8px; }
    .toast { font-size: 12px; padding: 8px 12px; }
}

/* ========================== LANDSCAPE TELEFONI ========================== */
@media (max-width: 956px) and (orientation: landscape) {
    #toast-container { left: 15px; right: auto; bottom: 15px; max-width: 400px; }
    .toast { min-width: auto; max-width: 400px; width: auto; font-size: 12px; padding: 8px 12px; }
    header { height: 50px; padding: 0 15px !important; }
    .promo-bar { height: 40px; }
    .search-input { height: 24px !important; font-size: 11px !important; }
}

/* ========================== TABLETE (769px - 1024px) ========================== */
@media (min-width: 769px) and (max-width: 1024px) {
    #toast-container { left: 20px; right: auto; bottom: 20px; }
    .toast { min-width: 350px; max-width: 450px; width: auto; font-size: 14px; padding: 12px 16px; }
}