

:root {
    /* Light Theme Variables */
    --bg-color: #ffffff;
    --text-color: #121212;
    --panel-bg: #f5f5f5;
    --header-bg: #7B9642;
    --accent-color: #7B9642;
    --border-color: #e0e0e0;
    --scrollbar-bg: #f0f0f0;
    --scrollbar-thumb: #cccccc;
    --card-bg: #ffffff;
    --text-muted: #666666;
}

body.dark-mode {
    /* Dark Theme Variables */
    --bg-color: #121212;
    --text-color: #ffffff;
    --panel-bg: #1e1e1e;
    --border-color: #333333;
    --scrollbar-bg: #121212;
    --scrollbar-thumb: #444444;
    --card-bg: #1e1e1e;
    --text-muted: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Galey', 'Poppins', sans-serif;
}

html, body { max-width: 100vw; overflow-x: clip; scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 80%;
    margin: 0 auto;
}
.container-fluid {
    width: 95%; /* Koristimo siru povrsinu za Shop zbog 6 kartica */
    margin: 0 auto;
    max-width: 1800px;
}
.section {
    padding: 60px 0;
}
.techno-text { font-family: 'TechnoRace', sans-serif; letter-spacing: 2px; }

/* --- PRELOADER (LOADING SCREEN) --- */
.procat-preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-color); z-index: 999999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.procat-preloader.hide { transform: translateY(-100%); }
.preloader-video { width: 300px; max-width: 80%; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); margin-bottom: 30px; object-fit: cover;}
.preloader-text { font-family: 'TechnoRace', sans-serif; font-size: 20px; color: var(--accent-color); letter-spacing: 2px; margin-bottom: 15px;}
.preloader-bar-container { width: 300px; max-width: 80%; height: 6px; background: var(--border-color); border-radius: 10px; overflow: hidden; position: relative;}
.preloader-bar { width: 0; height: 100%; background: var(--accent-color); animation: loadProgress 3s linear forwards; }
@keyframes loadProgress { 0% { width: 0; } 100% { width: 100%; } }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* --- TOP NOTICE MARQUEE --- */
.top-notice-bar {
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 10px 20px;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 50px;
    flex-grow: 1;
}
.marquee-content {
    flex-shrink: 0; display: flex; align-items: center; gap: 50px; min-width: 100%;
    animation: scrollMarquee 25s linear infinite;
}
.top-notice-bar:hover .marquee-content { animation-play-state: paused; }
.notice-text { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; cursor: pointer; transition: color 0.3s; }
.notice-text:hover { color: #f1f2f6; text-decoration: underline; }
.close-notice {
    background: none; border: none; color: #fff; font-size: 18px; cursor: pointer;
    margin-left: 20px; padding: 5px; transition: transform 0.3s;
}
.close-notice:hover { transform: scale(1.2) rotate(90deg); }
@keyframes scrollMarquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 50px)); } }

/* --- HEADER --- */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding-top: 0;
    transition: padding-top 0.4s ease;
}

header {
    background-color: var(--header-bg);
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #fff;
}

/* Scrolled Header State */
.header-wrapper.scrolled {
    padding-top: 15px;
}
.header-wrapper.scrolled header {
    width: 60%;
    border-radius: 35px;
    background-color: var(--header-bg);
}

/* Header Elements */
.logo {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.logo img {
    height: 50px; /* Fiksna visina logotipa */
    width: auto;
    object-fit: contain;
}

.nav-links {
    position: relative; /* Bitno za Mega-Menu širinu */
    display: flex;
    gap: 25px;
    list-style: none;
    height: 100%;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links li.shop {
    position: static; /* Omogućava dropdownu da prati širinu cijelog menija */
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: opacity 0.3s ease;
    font-family: 'Galey', sans-serif;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Shop Dropdown Panel */
.shop-panel {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    transform: translateY(15px);
    background-color: var(--panel-bg);
    color: var(--text-color);
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    text-align: center; /* Centriranje teksta */
}

/* Scrollbar za Shop Dropdown (margin 20px ga štiti da ne probija border-radius!) */
.shop-panel::-webkit-scrollbar { width: 5px; }
.shop-panel::-webkit-scrollbar-track { margin: 20px 0; background: transparent; }
.shop-panel::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; }

/* Nevidljivi most da dropdown ne pobjegne */
.shop-panel::before {
    content: ''; position: absolute; top: -30px; left: 0; width: 100%; height: 30px; background: transparent;
}
.shop-panel div { padding: 10px 5px; border-bottom: 1px solid var(--border-color); }
.shop-panel div:last-child { border-bottom: none; }

.nav-links li.shop:hover .shop-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Icons Container */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons i {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-icons i:hover {
    transform: scale(1.1);
}

.cart-icon {
    position: relative;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- SEARCH DROP DOWN --- */
.search-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--panel-bg);
    padding: 20px 5%;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}
.search-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.search-container.scrolled {
    width: 60%;
    left: 20%;
    top: 85px;
    border-radius: 25px;
}
.search-container input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}
/* Frontend Search Dropdown */
.search-results-dropdown {
    position: absolute; top: 100%; left: 5%; width: 90%; background: var(--panel-bg);
    border-radius: 0 0 8px 8px; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    max-height: 400px; overflow-y: auto; display: none; z-index: 1000;
    border: 1px solid var(--border-color); border-top: none;
}
.search-results-dropdown.active { display: block; }
.search-result-item {
    display: flex; align-items: center; padding: 15px; border-bottom: 1px dashed var(--border-color);
    text-decoration: none; color: var(--text-color); transition: background 0.3s;
}
.search-result-item:hover { background: var(--bg-color); }
.search-result-item img { width: 50px; height: 50px; object-fit: contain; margin-right: 15px; border-radius: 5px; background: var(--bg-color); }
.search-result-info { flex-grow: 1; }
.search-result-title { font-weight: 500; font-size: 14px; margin-bottom: 5px; color: var(--text-main); transition: color 0.3s; }
.search-result-item:hover .search-result-title { color: var(--accent-color); }
.search-result-price { font-weight: bold; color: var(--accent-color); font-size: 15px; }

/* --- USER MENU DROP DOWN --- */
.user-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--panel-bg);
    border-radius: 8px;
    padding: 10px 0;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.user-icon-wrapper {
    position: relative;
}
.user-icon-wrapper.active .user-menu {
    opacity: 1;
    visibility: visible;
    top: 35px;
}
.user-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
}
.user-menu a:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}

/* --- MODAL (LOGIN / REGISTER FLIP) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-container {
    width: 400px;
    perspective: 1000px;
    max-width: 95%;
    transition: width 0.4s ease;
}
.modal-container.flipped {
    width: 500px; /* Širi se za registraciju */
    max-width: 95%;
}
.modal-card {
    width: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}
.modal-container.flipped .modal-card {
    transform: rotateY(180deg);
}
.modal-front, .modal-back {
    width: 100%;
    backface-visibility: hidden;
    background: var(--panel-bg);
    padding: 30px;
    border-radius: 15px;
    position: absolute;
    top: 0; left: 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.modal-front {
    position: relative; /* Front drži visinu */
}
.modal-back {
    transform: rotateY(180deg);
    height: auto;
}

/* Form Inputs */
.form-group {
    margin-bottom: 15px;
    position: relative;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    outline: none;
}
.form-group .eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}
.btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}
.btn:hover { opacity: 0.9; }
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.social-login button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.separator {
    text-align: center;
    margin: 15px 0;
    font-size: 12px;
    color: #888;
}

/* --- FLOATING ACTIONS (CHAT & BACK TO TOP) --- */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 998;
}
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.float-btn:hover { transform: translateY(-5px); }
#back-to-top {
    opacity: 0; visibility: hidden; transform: translateY(20px);
}
#back-to-top.show {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* --- MOBILE MENU ("ROLETNA") --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--header-bg);
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mobile-menu-overlay.open {
    transform: translateY(0);
}
.mobile-nav-links {
    list-style: none;
    text-align: center;
}
.mobile-nav-links li { margin: 20px 0; }
.mobile-nav-links a {
    color: #fff; font-size: 24px; text-decoration: none;
    font-weight: bold;
}
.close-mobile {
    position: absolute; bottom: 40px;
    background: #fff; color: var(--header-bg);
    border: none; width: 50px; height: 50px;
    border-radius: 50%; font-size: 20px;
    cursor: pointer;
}
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* Mobile Shop Dropdown Menu */
.mobile-shop-row { display: flex; align-items: center; justify-content: center; gap: 15px; }
.mobile-shop-row i { font-size: 18px; color: rgba(255,255,255,0.7); cursor: pointer; transition: transform 0.3s; padding: 5px; }
.mobile-shop-row i.open { transform: rotate(180deg); color: #fff; }
.mobile-shop-dropdown { list-style: none; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background: rgba(0,0,0,0.2); border-radius: 10px; margin-top: 10px; width: 250px; margin-left: auto; margin-right: auto;}
.mobile-shop-dropdown.open { max-height: 500px; padding: 15px 0; overflow-y: auto;}
.mobile-shop-dropdown li { margin: 12px 0; }
.mobile-shop-dropdown a { font-size: 16px; color: #ddd; }
.mobile-shop-dropdown a:hover { color: var(--accent-color); }

/* --- CHAT PANEL --- */
.chat-panel {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--panel-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    z-index: 1002;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-panel.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}
.chat-header {
    padding: 20px;
    background: var(--header-bg);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header button {
    background: none; border: none; color: #fff; font-size: 20px; cursor: pointer;
}
.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.message {
    max-width: 85%;
    padding: 10px 15px 22px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}
.message.admin {
    align-self: flex-start;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0;
}
.message.user {
    align-self: flex-end;
    background: var(--accent-color);
    color: #fff;
    border-bottom-right-radius: 0;
}
.chat-input {
    padding: 15px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}
.chat-input input {
    flex-grow: 1; padding: 10px 15px;
    border: 1px solid var(--border-color); border-radius: 20px;
    background: var(--panel-bg); color: var(--text-color); outline: none;
}
.chat-input button {
    background: var(--accent-color); color: #fff; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
}
.chat-input button:hover { opacity: 0.8; }

/* --- CHAT WELCOME OVERLAY --- */
.chat-welcome-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--panel-bg);
    z-index: 20;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    opacity: 0; visibility: hidden; pointer-events: none;
}
.chat-panel.active .chat-welcome-overlay {
    animation: welcomeFadeInOut 2.5s ease forwards;
}
@keyframes welcomeFadeInOut {
    0% { opacity: 0; visibility: visible; }
    15% { opacity: 1; visibility: visible; }
    85% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
.chat-panel.active .chat-header,
.chat-panel.active .chat-messages,
.chat-panel.active .chat-input {
    opacity: 0;
    animation: contentFadeIn 0.5s ease 2.3s forwards;
}
@keyframes contentFadeIn { to { opacity: 1; } }

/* --- AI CHAT SUGGESTIONS --- */
.chat-suggestions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.chat-sugg-btn { width: 100%; background: var(--panel-bg); border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px 15px; border-radius: 15px; font-size: 13px; cursor: pointer; white-space: normal; text-align: left; transition: 0.3s; }
.chat-sugg-btn:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.chat-msg-time { position: absolute; bottom: 5px; right: 12px; font-size: 10px; opacity: 0.7; }
.message.user .chat-msg-time { color: #fff; }
.chat-date-separator { text-align: center; margin: 15px 0; position: relative; }
.chat-date-separator::before { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--border-color); z-index: 0; }
.chat-date-separator span { background: var(--panel-bg); padding: 0 10px; font-size: 12px; color: var(--text-muted); position: relative; z-index: 1; border-radius: 10px; border: 1px solid var(--border-color); }
.message a { color: var(--accent-color); font-weight: 600; text-decoration: none; }
.message a:hover { text-decoration: underline; }
.message.user a { color: #fff; }

/* RESPONSIVE */
@media(max-width: 500px) {
    .chat-panel {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
    .chat-panel.active { right: 20px; }
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}
.video-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5); z-index: 2;
}

/* Hero Scroll Down Dugme */
.hero-scroll-down {
    position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
    z-index: 10; text-align: center; color: #fff; text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0.8; transition: opacity 0.3s;
}
.hero-scroll-down:hover { opacity: 1; }
.hero-scroll-down span { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; text-shadow: 0 2px 5px rgba(0,0,0,0.5);}
.hero-scroll-down i { font-size: 24px; animation: bounce 2s infinite; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* SVG Talas na dnu videa */
.custom-shape-divider-bottom {
    position: absolute; bottom: -1px; left: 0; width: 100%;
    overflow: hidden; line-height: 0; transform: rotate(180deg); z-index: 5;
}
.custom-shape-divider-bottom svg {
    position: relative; display: block; width: calc(100% + 1.3px); height: 80px; transform: rotateY(180deg);
}
.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-color); /* Automatski prati temu */
    transition: fill 0.3s ease;
}

.pulse-anim { animation: pulse 2s infinite; }
@keyframes pulse { 0% {transform: scale(1);} 50% {transform: scale(1.05);} 100% {transform: scale(1);} }

/* --- CATEGORIES SECTION --- */
.section-title { text-align: center; margin-bottom: 40px; font-size: 32px; color: var(--text-color); }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.category-card-wrapper {
    /* Wrapper da zadrzi oblik nakon skewa */
    transform: skew(-15deg);
    border-left: 4px solid var(--accent-color);
    border-right: 4px solid var(--accent-color);
    border-radius: 8px; /* Oble ivice izgledaju sjajno na skew-u */
    background: var(--card-bg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
}
.category-card-wrapper:hover {
    transform: skew(-15deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(123, 150, 66, 0.3);
}
.category-content {
    transform: skew(15deg); /* Vraca sadrzaj da bude ravan */
    display: flex; align-items: center;
    padding: 30px;
}
.cat-img {
    width: 100px; height: 100px; border-radius: 8px;
    background: transparent; display: flex; justify-content: center; align-items: center; overflow: hidden;
    color: var(--accent-color); font-size: 30px;
    flex-shrink: 0;
}
.cat-text { font-size: 20px; font-weight: bold; color: var(--text-color); flex-grow: 1; text-align: center; line-height: 1.2; padding-left: 10px; word-break: break-word; }

/* --- FEATURES SECTION --- */
.features-section {
    background-color: var(--accent-color); padding: 50px 0; color: #fff;
}
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center;
}
.feature-card i { font-size: 50px; margin-bottom: 20px; transition: transform 0.4s; }
.feature-card:hover i { transform: rotateY(360deg); }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.feature-card p { font-size: 14px; opacity: 0.9; }

/* --- PRODUCTS SLIDER --- */
.slider-section { overflow: hidden; }
.product-slider-wrapper {
    position: relative; display: flex; align-items: center;
}
.slider-btn {
    background: var(--accent-color); color: #fff; border: none;
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    font-size: 20px; display: flex; justify-content: center; align-items: center;
    z-index: 10; flex-shrink: 0; transition: 0.3s;
}
.slider-btn:hover { background: #5c7430; }
.product-slider-track {
    display: flex; gap: 20px; overflow: hidden; padding: 20px 0;
    scroll-behavior: smooth; flex-grow: 1; margin: 0 15px;
}
.product-card {
    min-width: calc(25% - 15px); /* 4 u redu */
    height: 340px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); }

/* Ribbon za Novo / Refurbished */
.ribbon {
    position: absolute; top: -5px; right: -5px;
    width: 100px; height: 100px; overflow: hidden; z-index: 5;
}
.ribbon span {
    position: absolute; display: block; width: 130px; padding: 4px 0;
    text-align: center; color: #fff; font-weight: bold; font-size: 8px;
    transform: rotate(45deg); top: 18px; right: -32px; box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}
.ribbon-new span { background: #7B9642; }
.ribbon-refurb span { background: #7B9642; }

.product-img {
    height: 60%; width: 100%;
    background-size: contain; background-position: center top; background-repeat: no-repeat; background-color: transparent;
    transition: transform 0.5s ease;
    border-bottom: 1px solid var(--border-color);
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-info {
    padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.product-title { font-size: 16px; margin-bottom: 5px; color: var(--text-color); }
.product-price { font-size: 18px; font-weight: bold; color: var(--accent-color); margin-bottom: 5px;}
.product-stock { font-size: 12px; font-weight: 500;}
.text-success { color: #2ed573; }
.product-stock.text-success, .pd-stock.text-success { color: var(--text-color) !important; }
.text-warning { color: #ffa502; }

/* Dinamička promjena boje "Na stanju" prema odabranoj temi (Tamno/Svijetlo) */
.product-card .text-success { color: var(--text-color); font-weight: 700; }

.product-btn {
    width: 100%; padding: 15px;
    background: var(--accent-color); color: #fff;
    text-align: center; text-decoration: none; font-weight: bold;
    border: none; cursor: pointer; transition: background 0.3s;
}
.product-btn:hover { background: #5c7430; }
.btn-contact { background: var(--text-color); color: var(--bg-color); }
.btn-contact:hover { opacity: 0.8; }

/* --- SLICE IMAGE ANIMATION (Cube Effect) --- */
.slice-slider-section { padding: 40px 0; margin: 0; }
.cube-slider-container {
    position: relative; width: 50%; margin: 0 auto; aspect-ratio: 16 / 10; height: auto;
    border-radius: 20px; overflow: hidden;
    display: grid;
    /* JS će postaviti grid dinamicki, po defaultu nesto fallback */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background-color: var(--panel-bg);
    perspective: 1200px; /* Omogućava 3D prostor za rotaciju */
}
.cube-slice {
    background-size: 100% 100%; /* JS ce manipulirati pozicijama */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    transform-style: preserve-3d;
    transform: rotateX(0deg) scale(1);
}
/* Nova 3D Flip Animacija */
.cube-slice.hidden { 
    transform: rotateX(90deg) scale(0.8); 
    opacity: 0; 
}

/* --- INFO SERVICES CARDS --- */
.services-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.info-card {
    background: var(--card-bg); padding: 30px; border-radius: 15px;
    text-align: center; border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.3s;
}
.info-card:hover { transform: translateY(-10px); border-color: var(--accent-color); }
.info-card i { font-size: 40px; color: var(--accent-color); margin-bottom: 20px; }
.info-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* --- FOOTER --- */
.footer-wrapper {
    display: flex;
    justify-content: center;
    padding: 50px 0;
    z-index: 10;
    position: relative;
}
.site-footer {
    width: 60%;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 35px;
    padding: 50px 5%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.site-footer:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(123, 150, 66, 0.3);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-logo {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
    font-family: 'TechnoRace', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.footer-info p {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.footer-info p:hover { opacity: 1; }
.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; background: #fff; border-radius: 2px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #fff; text-decoration: none; opacity: 0.8;
    transition: all 0.3s ease; display: inline-block;
}
.footer-links a:hover { opacity: 1; transform: translateX(8px); }
.footer-socials { display: flex; gap: 15px; }
.social-btn {
    width: 45px; height: 45px; border-radius: 50%;
    background: #fff; color: var(--accent-color);
    display: flex; justify-content: center; align-items: center;
    font-size: 20px; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.social-btn:hover {
    transform: translateY(-8px) rotate(360deg) scale(1.1);
    background: var(--text-color); color: var(--bg-color);
}
.footer-bottom {
    text-align: center; margin-top: 40px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2); font-size: 14px; opacity: 0.9; letter-spacing: 1px;
}

/* --- SHOP PAGE --- */
.shop-page { padding-top: 120px; padding-bottom: 60px; min-height: 100vh; }
.shop-header { margin-bottom: 40px; }
.shop-layout { display: flex; gap: 30px; align-items: flex-start; position: relative; }

/* Sidebar Filters */
.shop-sidebar {
    width: 280px; flex-shrink: 0; position: sticky; top: 100px;
    background: var(--panel-bg); border-radius: 15px; padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
    z-index: 100;
    align-self: flex-start;
    transform: scale(0.95) translateY(15px); /* Početno stanje na vrhu: spušteno i smanjeno (zoom out) */
    max-height: calc(100vh - 120px); /* Sprječava da sidebar probije visinu ekrana na manjim monitorima */
    overflow-y: auto; /* Omogućava unutrašnji skrol ako zatreba */
}
.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-track { background: transparent; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.shop-sidebar.scrolled-fixed {
    transform: scale(1) translateY(0); /* Kada se skrola: vraća se u originalnu veličinu i fiksira na mjesto */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

/* Skrolanje za kategorije u filteru */
.categories-scroll {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 8px;
}
.categories-scroll::-webkit-scrollbar {
    width: 4px;
}
.categories-scroll::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
    border-radius: 4px;
}
.categories-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.close-filter-mobile { display: none; text-align: right; font-size: 24px; cursor: pointer; color: var(--accent-color); margin-bottom: 15px; }
.filter-group { margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-header {
    font-weight: 600; font-size: 16px; display: flex; justify-content: space-between;
    align-items: center; cursor: pointer; color: var(--text-color); transition: color 0.3s;
}
.filter-header:hover { color: var(--accent-color); }
.filter-content { margin-top: 15px; display: none; animation: fadeIn 0.4s ease; }
.filter-content.open { display: block; }
.filter-content.flex-colors.open { display: flex; }
@keyframes fadeIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

.filter-checkbox { display: flex; align-items: center; margin-bottom: 10px; cursor: pointer; font-size: 14px; }
.filter-checkbox input { margin-right: 10px; accent-color: var(--accent-color); width: 16px; height: 16px; cursor: pointer;}
.filter-checkbox .count { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* Price Slider */
.price-slider { width: 100%; accent-color: var(--accent-color); cursor: pointer; }
.price-range-val { margin-top: 10px; font-size: 14px; text-align: center; }

/* Dual Range Slider for Shop */
.range-slider-wrap { padding: 10px 5px; }
.range-slider { position: relative; width: 100%; height: 5px; margin-top: 15px; background: var(--border-color); border-radius: 5px; }
.range-slider .progress { position: absolute; height: 100%; background: var(--accent-color); border-radius: 5px; }
.range-inputs { position: relative; }
.range-inputs input { position: absolute; top: -12px; left: 0; width: 100%; height: 5px; -webkit-appearance: none; background: none; pointer-events: none; }
.range-inputs input::-webkit-slider-thumb { -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%; background: var(--accent-color); pointer-events: auto; cursor: pointer; border: 2px solid var(--bg-color); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.price-inputs-row { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; align-items: center;}
.price-inputs-row input { width: 45%; padding: 8px 5px; text-align: center; border: 1px solid var(--border-color); border-radius: 5px; background: var(--bg-color); color: var(--text-color); font-weight: bold; -moz-appearance: textfield; }
.price-inputs-row input::-webkit-outer-spin-button, .price-inputs-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-inputs-row span { color: var(--text-muted); font-size: 14px; font-weight: bold; }

/* Colors Filter */
.flex-colors { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; }
.color-circle {
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2); transition: transform 0.3s; border: 2px solid var(--border-color); flex-shrink: 0;
}
.color-circle:hover { transform: scale(1.2); }
.color-circle.active { border-color: var(--accent-color); transform: scale(1.2); box-shadow: 0 0 10px var(--accent-color); }

/* Shop Main Content */
.shop-main { flex-grow: 1; }
.mobile-shop-toolbar { display: none; } /* Hidden on desktop */
.shop-top-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--panel-bg); padding: 15px 25px; border-radius: 12px;
    margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.results-count { font-size: 14px; font-weight: 500; }
.sort-box { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort-select {
    padding: 8px 15px; border-radius: 8px; border: 1px solid var(--border-color);
    background: var(--bg-color); color: var(--text-color); outline: none; cursor: pointer;
}

/* Product Grid - 6 columns */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.shop-card { height: 380px; /* Malo prilagodjen height za manji card */ min-width: unset; }
.shop-card .product-title { font-size: 14px; /* Smanjeno da lijepo stane u uzu karticu */ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

/* Prices logic */
.prices { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; flex-wrap: wrap;}
.old-price { text-decoration: line-through; color: #ff4757; font-size: 13px; font-weight: 600; opacity: 0.7;}
.shop-card .product-price { margin-bottom: 0; font-size: 16px;}

/* Pagination */
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    margin-top: 50px;
}
.page-link {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    background: var(--panel-bg); color: var(--text-color);
    text-decoration: none; font-weight: bold; transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.page-link:hover, .page-link.active { background: var(--accent-color); color: #fff; transform: translateY(-3px); }
.page-dots { font-weight: bold; color: var(--text-muted); }

/* --- PRODUCT DETAILS PAGE --- */
.product-details-page { padding-top: 120px; padding-bottom: 60px; min-height: 100vh; }
.pd-container {
    width: 60%; /* Tvoj zahtjev: 60% sirine */
    margin: 0 auto;
}
.breadcrumb { font-size: 14px; margin-bottom: 30px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--accent-color); text-decoration: none; font-weight: 500;}
.breadcrumb a:hover { text-decoration: underline; }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

/* Details Gallery */
.main-image-wrapper { position: relative; border-radius: 15px; overflow: hidden; background: var(--bg-color); cursor: zoom-in; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.main-product-img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: contain; transition: transform 0.3s; display: block;}
.main-image-wrapper:hover .main-product-img { transform: scale(1.02); }

.thumb-slider-container { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.thumb-btn { background: var(--bg-color); border: 1px solid var(--border-color); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--text-color); transition: 0.3s; flex-shrink: 0;}
.thumb-btn:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.thumb-track { display: flex; gap: 15px; overflow: hidden; flex-grow: 1; scroll-behavior: smooth; }
.thumb-img { width: calc(25% - 11.25px); aspect-ratio: 1/1; object-fit: contain; border-radius: 8px; cursor: pointer; border: 2px solid transparent; background: var(--bg-color); transition: 0.3s;}
.thumb-img.active, .thumb-img:hover { border-color: var(--accent-color); transform: translateY(-3px); }

/* Details Info */
.pd-title { font-size: 28px; margin-bottom: 15px; color: var(--text-color); line-height: 1.3;}
.pd-prices { margin-bottom: 15px; display: flex; align-items: flex-end; gap: 15px; }
.pd-prices .product-price { font-size: 28px; }
.pd-prices .old-price { font-size: 18px; }

/* Stock and Warranty Panel */
.stock-warranty-panel { display: flex; justify-content: space-between; align-items: center; background: var(--panel-bg); padding: 15px 20px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 25px; flex-wrap: wrap; gap: 15px;}
.pd-stock { color: #2ed573; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 0;}
.warranty-badge { border: 2px dashed var(--accent-color); padding: 8px 15px; border-radius: 8px; background: var(--bg-color); font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--text-color);}
.warranty-badge i { color: var(--accent-color); font-size: 18px; }

/* Actions */
.pd-actions { display: flex; gap: 15px; margin-bottom: 15px; }
.qty-input { display: flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; height: 50px;}
.qty-btn { width: 40px; background: var(--panel-bg); border: none; cursor: pointer; font-size: 18px; font-weight: bold; color: var(--text-color); transition: 0.3s;}
.qty-btn:hover { background: #e0e0e0; }
.qty-input input { width: 50px; text-align: center; border: none; background: var(--bg-color); color: var(--text-color); font-weight: bold; -moz-appearance: textfield;}
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-to-cart-btn { flex-grow: 1; height: 50px; font-size: 16px; border-radius: 8px; }
.wishlist-btn { width: 50px; height: 50px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); font-size: 20px; cursor: pointer; transition: 0.3s; flex-shrink: 0;}
.wishlist-btn:hover { border-color: #ff4757; color: #ff4757; background: #ffebee;}

.order-now-btn { height: 50px; font-size: 16px; border-radius: 8px; background: var(--text-color); color: var(--bg-color); margin-bottom: 30px;}
.order-now-btn:hover { background: var(--border-color); color: var(--text-color); }

.pd-separator { border: none; height: 1px; background: var(--border-color); margin: 30px 0; }

/* Specs Panels */
.pd-specs { display: flex; flex-direction: column; gap: 10px; }
.spec-panel { background: var(--panel-bg); padding: 10px 15px; border-radius: 20px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); transition: 0.3s;}
.spec-panel i { color: var(--accent-color); font-size: 14px;}
.spec-panel:hover { transform: translateY(-3px); border-color: var(--accent-color); box-shadow: 0 5px 10px rgba(0,0,0,0.05);}


/* Description */
.pd-description h2 { text-align: center; margin-bottom: 30px; font-size: 24px; position: relative; padding-bottom: 10px;}
.pd-description h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent-color); border-radius: 2px;}
.desc-text { text-align: left; font-size: 15px; line-height: 1.8; color: var(--text-muted); max-width: 900px; margin: 0 auto; }

/* Share */
.pd-share { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 40px; }
.pd-share span { font-weight: 600; font-size: 16px; }
.pd-share a { width: 40px; height: 40px; border-radius: 50%; background: var(--panel-bg); color: var(--text-color); display: flex; justify-content: center; align-items: center; text-decoration: none; transition: 0.3s; }
.pd-share a:hover { background: var(--accent-color); color: #fff; transform: translateY(-5px); }

/* Action Overlay Card (Sale) */
.action-overlay-card:hover .action-img { transform: scale(1.1); opacity: 1 !important; }
.action-overlay-card .action-info-panel { transition: padding-bottom 0.3s; }
.action-overlay-card:hover .action-info-panel { padding-bottom: 25px; }

/* Action Cards specific sizing for 4K images (Wider and Landscape) */
.action-overlay-card {
    height: 330px !important;
    min-width: calc(33.333% - 14px) !important; /* 3 u redu umjesto 4 */
}

/* Fullscreen Modal Overlay */
.fs-gallery-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.95); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.fs-gallery-overlay.active { opacity: 1; visibility: visible; }
.fs-close {
    position: absolute; top: 30px; right: 30px; background: none; border: none;
    color: #fff; font-size: 30px; cursor: pointer; transition: 0.3s;
}
.fs-close:hover { color: #ff4757; transform: rotate(90deg);}
.fs-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 60px; height: 60px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: 0.3s;
}
.fs-nav:hover { background: var(--accent-color); }
.fs-prev { left: 30px; }
.fs-next { right: 30px; }
.fs-image-container { 
    width: 90vw; height: 85vh; 
    display: flex; justify-content: center; align-items: center; 
}
.fs-image-container img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.fs-counter { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 16px; letter-spacing: 2px;}

/* Related Products Section Fixes */
.pd-related { margin-top: 80px; }
.pd-related .product-card {
    min-width: calc(33.33% - 14px); /* Prikaz 3 kartice zbog 60% širine panela */
}

/* --- CUSTOM TOAST NOTIFICATIONS --- */
#toast-box { position: fixed; top: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.toast {
    background: var(--panel-bg); border-left: 5px solid var(--accent-color); padding: 15px 25px;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); color: var(--text-color);
    display: flex; align-items: center; gap: 15px; font-weight: 500; font-size: 15px;
    transform: translateX(120%); animation: slideInRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.toast.success { border-color: #2ed573; }
.toast.success i { color: #2ed573; font-size: 24px; }
.toast.error { border-color: #ff4757; }
.toast.error i { color: #ff4757; font-size: 24px; }
.toast.hiding { animation: slideOutRight 0.5s forwards; }
@keyframes slideInRight { to { transform: translateX(0); } }
@keyframes slideOutRight { to { transform: translateX(120%); } }

/* --- ABOUT PAGE --- */
.about-page { padding-top: 70px; min-height: 100vh; padding-bottom: 60px; }
.about-hero { position: relative; width: 100%; height: 400px; display: flex; justify-content: center; align-items: center; overflow: hidden; background: #000000; }
.hero-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.about-container { width: 60%; margin: 0 auto; padding: 60px 0; }
.about-title { text-align: center; color: var(--accent-color); font-size: 36px; margin-bottom: 40px; position: relative; padding-bottom: 15px;}
.about-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--accent-color); border-radius: 2px;}

/* About Text */
.about-text { text-align: left; font-size: 16px; line-height: 1.9; color: var(--text-color); }
.spacer { height: 35px; } /* Malo veci razmak izmedju pasusa kako si trazio */
.lead-text { font-size: 22px; font-weight: 600; text-align: center; color: var(--accent-color); }
.highlight-text { 
    font-style: italic; font-weight: 500; text-align: center; color: var(--accent-color); 
    font-size: 18px; border-left: 5px solid var(--accent-color); 
    padding: 20px; background: var(--panel-bg); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

/* Timeline / Company Tree */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 20px 0; }
.timeline::after { 
    content: ''; position: absolute; width: 4px; background-color: var(--accent-color); 
    top: 0; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 2px;
}
.timeline-item { 
    padding: 10px 40px; position: relative; background-color: inherit; width: 50%; 
    opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}
.timeline-item.show { opacity: 1; transform: translateY(0); }
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }
.timeline-dot { 
    position: absolute; width: 24px; height: 24px; right: -12px; background-color: var(--bg-color); 
    border: 4px solid var(--accent-color); top: 20px; border-radius: 50%; z-index: 1; transition: 0.3s; 
}
.right .timeline-dot { left: -12px; }
.timeline-item:hover .timeline-dot { background-color: var(--accent-color); transform: scale(1.3); }
.timeline-content { 
    padding: 30px; background-color: var(--panel-bg); position: relative; border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid transparent; 
}
.timeline-item:hover .timeline-content { 
    transform: translateY(-5px); border-color: var(--accent-color); 
    box-shadow: 0 15px 40px rgba(123, 150, 66, 0.2); 
}
.timeline-content h3 { font-size: 28px; color: var(--accent-color); margin-bottom: 5px; font-family: 'TechnoRace', sans-serif; letter-spacing: 2px; }
.timeline-content h4 { font-size: 18px; margin-bottom: 15px; color: var(--text-color); font-weight: 600;}
.timeline-content p { font-size: 14px; color: var(--text-muted); line-height: 1.6; text-align: left;}

/* --- CONTACT PAGE --- */
.contact-page { padding-top: 120px; min-height: 100vh; padding-bottom: 60px; }
.contact-container { width: 60%; margin: 0 auto; }
.contact-title { text-align: center; color: var(--accent-color); font-size: 40px; margin-bottom: 50px; text-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.contact-card {
    background: var(--panel-bg); padding: 40px 20px; border-radius: 15px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}
.contact-card:hover { transform: translateY(-10px); border-color: var(--accent-color); box-shadow: 0 15px 40px rgba(123,150,66,0.15); }
.contact-card i { font-size: 40px; color: var(--accent-color); margin-bottom: 20px; transition: transform 0.4s; }
.contact-card:hover i { transform: scale(1.2) rotate(10deg); }
.contact-card h3 { font-size: 20px; margin-bottom: 15px; color: var(--text-color); }
.contact-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 5px; }
.contact-card a { color: var(--accent-color); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.contact-card a:hover { color: var(--text-color); text-decoration: underline; }

.contact-form-section { background: var(--panel-bg); padding: 40px; border-radius: 15px; margin-bottom: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group textarea {
    width: 100%; padding: 15px; background: var(--bg-color); border: 1px solid var(--border-color);
    color: var(--text-color); border-radius: 8px; outline: none; resize: vertical; font-family: 'Poppins', sans-serif;
}
.form-group textarea:focus, .form-group input:focus { border-color: var(--accent-color); box-shadow: 0 0 8px rgba(123,150,66,0.2); }
.send-btn { height: 50px; font-size: 16px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;}

.contact-map { width: 100%; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); line-height: 0; }
.contact-map iframe { transition: filter 0.4s; filter: grayscale(50%); }
.contact-map:hover iframe { filter: grayscale(0%); }

.text-danger { color: #ff4757 !important; font-weight: 600; }

@keyframes fadeUpAnim { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUpAnim 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

/* --- SERVICES PAGE --- */
.services-page { padding-top: 120px; min-height: 100vh; padding-bottom: 60px; }
.services-container { width: 60%; margin: 0 auto; }
.services-title { text-align: center; color: var(--accent-color); font-size: 40px; margin-bottom: 50px; text-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.service-item {
    background: var(--panel-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(123,150,66,0.2);
}
.service-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.service-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.service-item:hover .service-img-wrapper img { transform: scale(1.1); }
.service-label {
    padding: 20px; text-align: center; font-size: 22px; color: var(--text-color);
    font-weight: 600; background: var(--panel-bg);
}

/* --- CART PAGE --- */
.cart-page { padding-top: 120px; min-height: 100vh; padding-bottom: 60px; }
.cart-container { width: 60%; margin: 0 auto; }
.cart-title { text-align: center; color: var(--accent-color); font-size: 40px; margin-bottom: 50px; text-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.empty-cart { text-align: center; background: var(--panel-bg); padding: 60px 20px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.empty-cart i { font-size: 60px; color: var(--text-muted); margin-bottom: 20px; opacity: 0.5;}
.empty-cart h2 { margin-bottom: 30px; font-weight: 500; }
.back-to-shop-btn { display: inline-block; padding: 15px 30px; width: auto; }

.cart-layout { display: flex; gap: 40px; align-items: flex-start; }
.cart-items-section { flex-grow: 1; min-width: 0; }
.cart-summary-section { width: 350px; flex-shrink: 0; position: sticky; top: 100px; }

/* Cart Table */
.cart-table-wrapper { width: 100%; overflow-x: auto; max-width: 100%; background: var(--panel-bg); border-radius: 15px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 30px; -webkit-overflow-scrolling: touch; box-sizing: border-box;}
.cart-table { width: 100%; border-collapse: collapse; min-width: 600px;}
.cart-table-wrapper::-webkit-scrollbar { height: 8px; }
.cart-table-wrapper::-webkit-scrollbar-track { background: var(--bg-color); border-radius: 8px; }
.cart-table-wrapper::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 8px; }
.cart-table-wrapper::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.cart-table th { text-align: left; padding: 15px 10px; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-color); }
.cart-table td { padding: 15px 10px; vertical-align: middle; border-bottom: 1px solid var(--border-color); }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table img { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; background: var(--bg-color); padding: 5px;}
.cart-product-title { color: var(--text-color); text-decoration: none; font-weight: 500; font-size: 16px; transition: color 0.3s; }
.cart-product-title:hover { color: var(--accent-color); }
.item-price, .item-total { font-weight: 600; font-size: 16px; white-space: nowrap;}
.item-total { color: var(--accent-color); }
.cart-remove-btn { background: var(--bg-color); border: 1px solid var(--border-color); color: #ff4757; width: 35px; height: 35px; border-radius: 8px; font-size: 16px; cursor: pointer; transition: all 0.3s; }
.cart-remove-btn:hover { background: #ffebee; border-color: #ff4757; transform: translateY(-3px); }

/* Cart Extras (Promo & Note) */
.cart-extras { background: var(--panel-bg); border-radius: 15px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); width: 100%; box-sizing: border-box; overflow: hidden; }
.cart-extra-item { border-bottom: 1px solid var(--border-color); }
.cart-extra-item:last-child { border-bottom: none; }
.cart-extra-header { padding: 15px 0; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.cart-extra-header:hover { color: var(--accent-color); }
.cart-extra-header .arrow { transition: transform 0.3s; }
.cart-extra-header.active .arrow { transform: rotate(180deg); }
.cart-extra-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.cart-extra-content.open { max-height: 200px; padding-bottom: 10px; }
.promo-input-group { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap;}
.promo-input-group input { flex-grow: 1; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); outline: none;}
.apply-promo-btn { width: auto; padding: 12px 20px; }
.cart-extra-content textarea { width: 100%; margin-top: 10px; padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-color); color: var(--text-color); outline: none; resize: vertical; font-family: 'Poppins', sans-serif;}

/* Order Summary & B2B Options */
.order-summary-card { background: var(--panel-bg); border-radius: 15px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); width: 100%; box-sizing: border-box; }
.order-summary-card h3 { margin-bottom: 25px; font-size: 20px; border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 5px;}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 15px; }
.summary-row.hidden { display: none; }
.summary-separator { border: none; height: 1px; background: var(--border-color); margin: 20px 0; }
.total-row { font-size: 22px; font-weight: bold; margin-bottom: 25px;}
.checkout-btn { height: 50px; font-size: 18px; text-transform: uppercase; letter-spacing: 1px;}

.b2b-section { margin-top: 30px; text-align: center; }
.b2b-section p { margin-bottom: 10px; font-size: 14px; color: var(--text-muted); font-weight: 500;}
.b2b-btn { background: transparent; border: 2px solid var(--accent-color); color: var(--text-color); transition: all 0.3s; }
.b2b-btn:hover { background: var(--accent-color); color: #fff; }

/* Proforma Modal Additions */
.proforma-modal { width: 550px; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-color); transition: color 0.3s; z-index: 10;}
.modal-close:hover { color: #ff4757; }
.file-upload-group { border: 2px dashed var(--border-color); border-radius: 8px; padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color 0.3s, background 0.3s; background: var(--bg-color); }
.file-upload-group:hover, .file-upload-group.dragover { border-color: var(--accent-color); background: rgba(123,150,66,0.05); }
.file-upload-group i { font-size: 40px; color: var(--accent-color); margin-bottom: 15px;}
.file-upload-group p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px;}
.file-upload-group span { display: block; font-size: 13px; color: var(--text-muted); }
.file-upload-group.selected #file-name { display: block; } /* Prikazuje ime fajla tek kad je odabran */
#file-name { display: none; } /* Sakrij ime fajla po defaultu */
/* Stil za Checkout Drag&Drop */
#checkout-file-name { display: block; }
#file-name { font-size: 13px; font-weight: bold; color: var(--text-color); display: block; word-break: break-all;}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media(max-width: 1800px) {
    .category-content { flex-direction: column !important; justify-content: center !important; align-items: center !important; padding: 20px !important; text-align: center; }
    .cat-text { padding-left: 0 !important; padding-top: 15px !important; width: 100% !important; display: block; }
}
@media(max-width: 1600px) {
    .shop-grid { grid-template-columns: repeat(5, 1fr); }
}
@media(max-width: 1400px) {
    .shop-grid { grid-template-columns: repeat(4, 1fr); }
    .cat-img { width: 80px; height: 80px; }
    .cat-text { font-size: 16px !important; }
    .pd-container { width: 80%; }
    .contact-container { width: 80%; }
    .services-container { width: 80%; }
    .cart-container { width: 80%; }
    .cube-slider-container { width: 60%; height: auto; }
}
@media(max-width: 1280px) {
    .cube-slider-container { width: 70%; height: auto; }
}
@media(max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card { min-width: calc(33.333% - 15px); height: 320px; }
    .action-overlay-card { min-width: calc(50% - 10px) !important; height: 300px !important; }
    .services-info-grid { grid-template-columns: repeat(2, 1fr); }
    
    .cart-layout { flex-direction: column; }
    .cart-summary-section { width: 100%; position: static; }
}
@media(max-width: 900px) {
    .container { width: 95%; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .header-wrapper.scrolled header { width: 90%; }

    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .search-container.scrolled { width: 90%; left: 5%; top: 85px; }
    .shop-top-bar { flex-direction: column; gap: 15px; }
    
    /* Mobile Shop Toolbar */
    .shop-top-bar { display: none; } /* Sakrij desktop sortiranje */
    .mobile-shop-toolbar { display: flex; gap: 10px; margin-bottom: 25px; width: 100%; }
    .mobile-toolbar-btn { height: 50px; border-radius: 8px; border: none; font-weight: 600; font-size: 16px; cursor: pointer; outline: none; transition: 0.3s; }
    .mobile-toolbar-btn.filter-btn { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; background: var(--accent-color); color: #fff; box-shadow: 0 5px 15px rgba(123, 150, 66, 0.2); }
    .mobile-toolbar-btn.filter-btn:active { transform: scale(0.98); }
    .mobile-toolbar-btn.sort-btn { width: 60px; background: var(--panel-bg); color: var(--text-color); border: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; font-size: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
    .mobile-toolbar-btn.sort-btn:active { transform: scale(0.95); }
    
    .shop-sidebar {
        position: fixed; top: 0; left: -100%; width: 320px; height: 100vh;
        z-index: 2005; border-radius: 0; overflow-y: auto; padding-top: 40px;
    }
    .shop-sidebar.active { left: 0; }
    .close-filter-mobile { display: block; }
    
    .pd-container { width: 95%; }
    .details-grid { grid-template-columns: 1fr; gap: 30px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .about-container { width: 90%; }
    .contact-container { width: 90%; }
    .services-container { width: 90%; }
    .cart-container { width: 90%; }
    .services-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-info-grid { grid-template-columns: 1fr; gap: 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    /* Timeline Responsive Mobile Fix */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 80px; padding-right: 0px; }
    .timeline-item.left, .timeline-item.right { left: 0; }
    .timeline-dot { left: 19px !important; right: auto !important; }
    
    .product-card { min-width: calc(50% - 15px); height: 300px; }
        .site-footer { width: 90%; }
        .footer-grid { grid-template-columns: 1fr; text-align: center; }
        .footer-col h3::after { left: 50%; transform: translateX(-50%); }
        .footer-socials { justify-content: center; }
        .footer-info p { justify-content: center; }
        
    /* --- RESPONSIVE CART RE-LAYOUT (HORIZONTAL SCROLL) --- */
    .cart-items-section, .cart-summary-section { width: 100% !important; min-width: 100% !important; box-sizing: border-box; }
    .cart-layout { width: 100%; margin: 0; box-sizing: border-box; overflow: hidden; }
    .cart-table-wrapper { padding: 15px; overflow-x: auto; background: var(--panel-bg); border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
    .cart-table { min-width: 650px !important; }
    .cube-slider-container { width: 80%; height: auto; }
}
@media(max-width: 600px) {
    .modal-container, .modal-container.flipped { width: 95% !important; }
    .modal-front, .modal-back { padding: 25px 20px; }
    
    /* Form grids stacking (Register, Checkout, Inquiries) */
    form div[style*="display: grid"], .checkout-layout > div > div[style*="display:grid"] { grid-template-columns: 1fr !important; }
    
    /* Checkout Layout Fix */
    .checkout-layout { flex-direction: column; gap: 20px; }
    .checkout-layout > div { min-width: 100% !important; width: 100% !important; position: static !important; }

    .categories-grid { grid-template-columns: 1fr; }
    
    /* Ispravka overflow kartica na mobilnim (Dinamični Grid za 2 kolone ili 1 na najmanjim) */
    .shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; overflow: hidden; box-sizing: border-box; }
    .shop-card { min-width: 0; width: 100%; max-width: 100%; height: 320px; margin: 0; box-sizing: border-box; }
    .shop-card .product-img { height: 130px; background-size: contain; background-repeat: no-repeat; }
    .shop-card .product-info { padding: 10px; }
    .shop-card .product-title { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; height: 34px; margin-bottom: 5px; }
    .shop-card .product-price { font-size: 14px; }
    .shop-card .old-price { font-size: 11px; }
    .shop-card .product-stock { font-size: 11px; }
    .shop-card .product-btn { padding: 8px 5px; font-size: 11px; }
    .ribbon { transform: scale(0.8); transform-origin: top right; }
    .pagination { flex-wrap: wrap; }
    #pc-builder-form div[style*="display:grid"] { grid-template-columns: 1fr !important; gap: 10px !important; }

    .category-card-wrapper { transform: none; border-radius: 10px; border-left: none; border-right: none; border-bottom: 4px solid var(--accent-color); }
    .category-card-wrapper:hover { transform: translateY(-5px); }
    
    .pd-actions { flex-direction: column; }
    .wishlist-btn { width: 100%; }
    .category-content { transform: none; justify-content: center; flex-direction: column; padding: 15px; }
    
    .contact-container { width: 95%; }
    .contact-form-section { padding: 25px 15px; }
    
    .services-container { width: 95%; }
    .service-img-wrapper { height: 200px; }
    .service-label { font-size: 18px; }
    
    .cart-container { width: 95%; }
    .proforma-modal { width: 95%; }

    .product-card { min-width: calc(100% - 20px); max-width: calc(100% - 20px); margin: 0 auto; box-sizing: border-box;}
    .product-slider-track { margin: 0; padding: 0 10px 20px 10px;}
    .slider-btn { display: none; /* Mobiteli ce koristiti scroll/touch */ }
    .product-slider-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
    .product-card { scroll-snap-align: center; }
    
    .action-overlay-card { min-width: calc(100% - 20px) !important; height: 300px !important; }
    .services-info-grid { grid-template-columns: 1fr; }
    .cube-slider-container { width: 100%; height: auto; border-radius: 12px; }
}

/* Mobile Sort Modals styles globally (will show inside media query limits usually) */
.mobile-sort-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.6); z-index: 3000; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.mobile-sort-overlay.active { opacity: 1; visibility: visible; }
.mobile-sort-panel { position: absolute; bottom: -100%; left: 0; width: 100%; background: var(--panel-bg); border-top-left-radius: 20px; border-top-right-radius: 20px; transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1); padding: 30px 20px; box-shadow: 0 -10px 40px rgba(0,0,0,0.2); }
.mobile-sort-overlay.active .mobile-sort-panel { bottom: 0; }
.mobile-sort-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px;}
.mobile-sort-body { display: flex; flex-direction: column; gap: 10px; }
.mobile-sort-body a { padding: 15px 20px; background: var(--bg-color); border-radius: 12px; text-decoration: none; color: var(--text-color); font-weight: 500; border: 1px solid var(--border-color); transition: 0.3s; display: block;}
.mobile-sort-body a.active, .mobile-sort-body a:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

/* --- USER DASHBOARD STYLES (NARUDŽBE I UPITI) --- */
.dashboard-page { padding-top: 120px; min-height: 100vh; padding-bottom: 60px; }
.dashboard-container { width: 70%; margin: 0 auto; }
@media(max-width: 1200px) { .dashboard-container { width: 90%; } }
.dashboard-title { text-align: center; color: var(--accent-color); font-size: 36px; margin-bottom: 40px; }

.status-badge { display: inline-block; padding: 6px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pending { background: rgba(255,165,2,0.1); color: #ffa502; border: 1px solid #ffa502; }
.status-processing { background: rgba(55,66,250,0.1); color: #3742fa; border: 1px solid #3742fa; }
.status-completed { background: rgba(46,213,115,0.1); color: #2ed573; border: 1px solid #2ed573; }
.status-cancelled { background: rgba(255,71,87,0.1); color: #ff4757; border: 1px solid #ff4757; }
.status-open { background: rgba(46,213,115,0.1); color: #2ed573; border: 1px solid #2ed573; }
.status-closed { background: rgba(255,71,87,0.1); color: #ff4757; border: 1px solid #ff4757; }

.clickable-row { cursor: pointer; transition: background 0.3s; }
.clickable-row:hover { background: var(--bg-color) !important; }

.chat-thread-box { max-height: 350px; overflow-y: auto; background: var(--bg-color); padding: 20px; border-radius: 10px; border: 1px solid var(--border-color); margin-bottom: 20px; display: flex; flex-direction: column; gap: 15px;}
.chat-msg { max-width: 80%; padding: 12px 18px; border-radius: 15px; font-size: 14px; line-height: 1.5; position: relative;}
.chat-msg.admin { align-self: flex-start; background: var(--panel-bg); color: var(--text-color); border: 1px solid var(--border-color); border-bottom-left-radius: 0; }
.chat-msg.user { align-self: flex-end; background: var(--accent-color); color: #fff; border-bottom-right-radius: 0; box-shadow: 0 5px 15px rgba(123,150,66,0.2);}
.chat-msg-time { font-size: 10px; opacity: 0.7; margin-top: 5px; display: block; text-align: right;}

.action-btn { width: 35px; height: 35px; border-radius: 5px; background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-color); display: inline-flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.3s; }
.action-btn:hover { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

/* User Order Details Modal Fix */
.order-modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; background: var(--bg-color); padding: 20px; border-radius: 10px; border: 1px solid var(--border-color); }
.order-modal-details span { font-size: 12px; color: var(--text-muted); }
.order-modal-details h4 { font-size: 15px; color: var(--text-color); margin-top: 5px; }

/* Ekstremno male rezolucije (Manje od 380px) */
@media(max-width: 380px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-card { height: 360px; }
    .shop-card .product-img { height: 200px; }
    .shop-card .product-title { font-size: 15px; display: block; white-space: nowrap; height: auto; }
}

/* --- MOJ PROFIL PAGE --- */
.profile-panel {
    background: var(--panel-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.panel-title {
    font-size: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 8px;
}
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 768px) { .profile-grid { grid-template-columns: 1fr; gap: 0; } }
