﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&family=Outfit:wght@400;600;700;800&display=swap');

/* ===========================
   CSS VARIJABLE — SVIJETLA TEMA
=========================== */
:root {
    --bg-main:        #f0f4ff;
    --bg-white:       #ffffff;
    --bg-card:        rgba(255,255,255,0.75);
    --bg-card-solid:  #ffffff;
    --bg-hover:       rgba(61, 116, 255,0.06);
    --navbar-bg:      rgba(255,255,255,0.72);
    --sub-header-bg:  rgba(255,255,255,0.97);

    --primary:        #3d74ff;
    --primary-dark:   #2a5ee0;
    --teal:           #6799ff;
    --teal-dark:      #2a5ee0;
    --gradient:       linear-gradient(135deg, #3d74ff 0%, #6799ff 100%);
    --gradient-light: linear-gradient(135deg, rgba(61, 116, 255,0.1) 0%, rgba(61, 116, 255,0.1) 100%);

    --text-main:      #0f172a;
    --text-sub:       #334155;
    --text-muted:     #64748b;
    --text-on-grad:   #ffffff;

    --border:         #e2e8f0;
    --border-light:   #f1f5f9;
    
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.04);
    --shadow-md:      0 8px 24px rgba(61, 116, 255,0.08);
    --shadow-lg:      0 16px 48px rgba(61, 116, 255,0.12);
    --shadow-hover:   0 20px 60px rgba(61, 116, 255,0.15), 0 8px 24px rgba(0,0,0,0.06);

    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --transition:     all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Logo styling */
.nav-logo {
    height: 40px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(61, 116, 255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(61, 116, 255,0.12) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===========================
   GLASSMORPHISM NAVBAR
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(61, 116, 255,0.18);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 24px rgba(61, 116, 255,0.15);
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow: hidden;
}

.nav-link {
    color: var(--text-sub);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-light);
    color: var(--primary-dark);
}

.nav-link.active {
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.btn-nav-account {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(61, 116, 255,0.3);
}

.btn-nav-account:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61, 116, 255,0.4);
}

.btn-nav-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-sub);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-login:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(61, 116, 255,0.06);
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.admin-link:hover { color: var(--primary); }

/* ===========================
   PAGE WRAPPER
=========================== */
.page-wrapper {
    padding-top: 260px; /* Increased to account for larger category grid block */
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* Dashboard uses own class */
.dashboard-wrap {
    padding-top: 280px !important;
}

/* ===========================
   NAV TAGLINE
=========================== */
.nav-tagline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
}

/* ===========================
   SUB-HEADER (Fixed bar below navbar)
=========================== */
.sub-header {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--sub-header-bg);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(61, 116, 255, 0.14);
    box-shadow: 0 4px 28px rgba(61, 116, 255, 0.10), 0 1px 0 rgba(61, 116, 255, 0.08);
    transition: box-shadow 0.3s ease;
}

.sub-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 32px 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* ===========================
   SEARCH ROW (in sub-header)
=========================== */
.sbar-search-row {
    display: flex;
    align-items: center;
}

.sbar-search-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.sbar-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.sbar-search-wrap:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 116, 255, 0.12), var(--shadow-md);
}

.sbar-search-ico {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 1;
}

.sbar-search-wrap:focus-within .sbar-search-ico {
    color: var(--primary);
}

.sbar-search-input {
    flex: 1;
    padding: 11px 12px 11px 44px;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    min-width: 0;
}

.sbar-search-input::placeholder {
    color: var(--text-muted);
}

.sbar-search-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: var(--gradient);
    color: #fff;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: 0 50px 50px 0;
    flex-shrink: 0;
}

.sbar-search-btn:hover {
    background: linear-gradient(135deg, #2a5ee0 0%, #6799ff 100%);
}

/* ===========================
   CATEGORIES GRID ROW
=========================== */
.cats-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 15px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    transition: all 0.3s ease;
}

/* Custom scrollbar to ensure visibility */
.cats-grid::-webkit-scrollbar {
    height: 6px;
    display: block;
}
.cats-grid::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
}
.cats-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.cat-box-wrap {
    position: relative;
    flex-shrink: 0;
}

.cat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 75px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    background: var(--bg-white);
    padding: 6px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cat-box:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cat-box.active {
    border-color: var(--primary);
    background: rgba(61, 116, 255,0.08);
    box-shadow: 0 0 0 1px var(--primary);
}

.cat-box-icon {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 6px;
}

.cat-box-name {
    font-size: 9px;
    color: var(--text-sub);
    font-weight: 500;
    line-height: 1.1;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.cat-box.active .cat-box-name {
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-toggle-cats {
    padding: 0 14px;
    height: 75px;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    color: #fff;
    border: none;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-cats:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.mobile-only-btn-wrap {
    display: none;
}
.btn-toggle-cats-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 5px;
}
.btn-toggle-cats-mobile:hover {
    box-shadow: var(--shadow-md);
}

.cat-hidden {
    display: none !important;
}

/* KATEGORIJE - MOBILNA OPTIMIZACIJA */
@media (max-width: 900px) {
    .desktop-only-btn {
        display: none !important;
    }
    .mobile-only-btn-wrap {
        display: block;
    }
    .cats-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .cats-grid::-webkit-scrollbar {
        display: none;
    }
    .cats-grid.expanded {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* ===========================
   FLOATING DROPDOWN PANEL
=========================== */
.sbar-float-menu {
    position: fixed;
    z-index: 1100;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(61, 116, 255, 0.14), 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 220px;
    max-width: 340px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    overflow: hidden;
}

.sbar-float-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.sbar-float-inner {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 360px;
    overflow-y: auto;
}

.sbar-float-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    padding: 8px 10px 4px;
}

.sbar-float-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.sbar-float-item i {
    font-size: 12px;
    color: var(--primary);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.sbar-float-item:hover {
    background: var(--gradient-light);
    color: var(--primary-dark);
}

.sbar-float-item:hover i {
    opacity: 1;
}

.sbar-float-item.active {
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
}

.sbar-float-item.active i {
    color: rgba(255,255,255,0.85);
    opacity: 1;
}

/* ===========================
   HERO SECTION — Updated
=========================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 18px;
    width: fit-content;
}

.hero-accent {
    background: rgba(255,255,255,0.3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgba(255,255,255,0.85);
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat strong {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* ===========================
   EMPTY STATE
=========================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.35;
}

.empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 0;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    margin: 32px 0 0 0;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.7s ease-out forwards;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.15;
    position: relative;
    z-index: 2;
}

.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    max-width: 560px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.hero-contact {
    margin-top: 28px;
    position: relative;
    z-index: 2;
    background: rgba(61, 116, 255,0.12);
    border: 1px solid rgba(61, 116, 255,0.25);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
}

.hero-contact p {
    font-size: 14px;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.btn-hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #fff;
    color: var(--primary);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: fit-content;
}

.btn-hero-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    color: var(--primary-dark);
}

/* ===========================
   SEARCH BAR SECTION
=========================== */
.search-section {
    margin: 28px 0 0 0;
    animation: fadeInUp 0.6s 0.15s ease-out both;
}

.search-wrap {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.search-wrap .search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s;
}

.search-input {
    width: 100%;
    padding: 17px 22px 17px 52px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(61, 116, 255,0.12), var(--shadow-md);
}

.search-input:focus + .search-icon { color: var(--primary); }
.search-wrap:focus-within .search-icon { color: var(--primary); }

/* ===========================
   CATEGORIES HORIZONTAL SCROLL
=========================== */
.categories-section {
    margin: 28px 0 0 0;
    animation: fadeInUp 0.6s 0.25s ease-out both;
}

.categories-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-left: 4px;
}

.categories-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.category-cube {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-cube::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-cube i {
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.category-card:hover .category-cube,
.category-card.active .category-cube {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.category-card:hover .category-cube::before,
.category-card.active .category-cube::before {
    opacity: 1;
}

.category-card:hover .category-cube i,
.category-card.active .category-cube i {
    color: #fff;
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
    text-align: center;
    line-height: 1.3;
    max-width: 80px;
    transition: color 0.3s;
}

.category-card:hover .category-name,
.category-card.active .category-name {
    color: var(--primary-dark);
}

/* "Sve" category card */
.category-card-all .category-cube {
    background: var(--gradient-light);
    border-color: var(--border);
}

/* ===========================
   PRODUCTS SECTION
=========================== */
.products-section {
    margin: 36px 0 0 0;
    animation: fadeInUp 0.6s 0.35s ease-out both;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
}

.products-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

/* ===========================
   PRODUCT CARD
=========================== */
.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInCard 0.5s ease-out both;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(61, 116, 255,0.25);
}

.product-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #e8f4fd;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

.product-info {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.45;
    margin-bottom: 12px;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    gap: 10px;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-order {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(61, 116, 255,0.25);
    text-decoration: none;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 116, 255,0.4);
}

.btn-order i { font-size: 12px; color: #fff !important; }

/* ===========================
   PRODUCT DETAIL PAGE
=========================== */
.detail-wrap {
    /* Inherits padding-top from .page-wrapper to remain below sub-header */
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    animation: fadeInDown 0.5s ease-out both;
}

.breadcrumb a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .bc-cur { color: var(--primary-dark); font-weight: 600; }
.breadcrumb i { font-size: 10px; color: var(--text-muted); }

.product-detail {
    display: flex;
    gap: 48px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out both;
}

.detail-img-wrap {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #e8f4fd;
    max-height: 420px;
    position: relative;
}

.detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Brand logo badge - prikazuje se u donjem desnom kutu slike */
.brand-badge-mini {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90px;
    max-height: 52px;
    border: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-badge-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.brand-badge-mini img {
    width: auto !important;
    height: auto !important;
    max-width: 70px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-sku {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.detail-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 16px;
}

.detail-price {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.stock-badge.in-stock {
    background: rgba(61, 116, 255,0.12);
    color: var(--teal-dark);
    border: 1px solid rgba(61, 116, 255,0.25);
}

.stock-badge.out-stock {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.2);
}

.detail-desc {
    color: var(--text-sub);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--border-light);
}

.qty-control button {
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-control button:hover {
    background: var(--gradient-light);
    color: var(--primary);
}

.qty-control input {
    width: 50px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
}

.qty-control input:focus { outline: none; }

.action-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
}

.btn-large-order {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(61, 116, 255,0.3);
}

.btn-large-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(61, 116, 255,0.42);
}

.btn-large-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Related grid */
.related-section { margin-top: 56px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

/* ===========================
   AUTH PAGES
=========================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: var(--bg-main);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(61, 116, 255,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(61, 116, 255,0.14) 0%, transparent 55%);
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.6s ease-out both;
}

.auth-logo {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    text-align: center;
    margin-bottom: 10px;
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 6px;
}

.auth-sub {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    padding: 13px 18px;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 116, 255,0.1);
}

.form-group input::placeholder { color: var(--text-muted); }

.btn-auth {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(61, 116, 255,0.3);
    margin-top: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(61, 116, 255,0.42);
}

.auth-link-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 20px;
}

.auth-link-text a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-link-text a:hover { text-decoration: underline; }

.alert-error {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.2);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: rgba(61, 116, 255,0.1);
    color: var(--teal-dark);
    border: 1px solid rgba(61, 116, 255,0.25);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===========================
   DASHBOARD
=========================== */
.dashboard-wrap {
    padding-top: 100px;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 60px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInDown 0.6s ease-out both;
}

.dashboard-greeting {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
}

.dashboard-greeting span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: transparent;
    color: #dc2626;
    border: 1.5px solid rgba(239,68,68,0.3);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(239,68,68,0.08);
    border-color: #dc2626;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s 0.1s ease-out both;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.6s 0.2s ease-out both;
}

.order-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(61, 116, 255,0.2);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 10px;
}

.order-id {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.order-date {
    font-size: 13px;
    color: var(--text-muted);
}

.order-status {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: rgba(251,191,36,0.15); color: #d97706; }
.status-completed { background: rgba(61, 116, 255,0.12); color: var(--teal-dark); }
.status-cancelled { background: rgba(239,68,68,0.1); color: #dc2626; }

.order-total {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-items-list {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.order-item-row:last-child { border-bottom: none; }

.order-item-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #e8f4fd;
    flex-shrink: 0;
}

.order-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    flex: 1;
}

.order-item-qty {
    font-size: 13px;
    color: var(--text-muted);
}

.order-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

.empty-orders {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.empty-orders i {
    font-size: 52px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: block;
}

.empty-orders h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-orders p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

/* ===========================
   CHECKOUT MODAL
=========================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
    animation: fadeInOverlay 0.25s ease-out both;
}

.modal-box {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 510px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: scaleIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) both;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-box h2 i {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.co-form-row {
    display: flex;
    gap: 14px;
}

.co-form-row .form-group { flex: 1; }

.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition);
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 116, 255,0.1);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-modal-cancel {
    flex: 1;
    padding: 13px;
    background: transparent;
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}

.btn-modal-cancel:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-modal-submit {
    flex: 2;
    padding: 13px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(61, 116, 255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modal-submit:hover {
    box-shadow: 0 8px 28px rgba(61, 116, 255,0.42);
}

.btn-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Order summary in modal */
.order-summary-box {
    background: var(--gradient-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 22px;
}

.order-summary-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.order-summary-product {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.order-summary-price {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   FOOTER
=========================== */
.store-footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.store-footer a {
    color: var(--primary);
    text-decoration: none;
}

.store-footer a:hover { text-decoration: underline; }

/* ===========================
   TOAST
=========================== */
.toast-success {
    position: fixed;
    top: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px);
    background: var(--gradient);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(61, 116, 255,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
}

.toast-success.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(61, 116, 255,0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(61, 116, 255,0.5); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .navbar { padding: 0 16px; }
    .nav-tagline { display: none; }
    .nav-actions { margin-left: auto; }
    .hero { padding: 36px 24px; border-radius: var(--radius-lg); }
    .hero h1 { font-size: 30px; }
    .page-wrapper { padding-left: 16px; padding-right: 16px; }
    .product-detail { flex-direction: column; gap: 28px; }
    .detail-img-wrap { max-height: 260px; }
    .detail-title { font-size: 26px; }
    .auth-card { padding: 32px 24px; }
    .sub-header-inner { padding: 8px 16px 6px; }
    .sbar-search-form { max-width: 100%; }
    .dashboard-wrap { padding-left: 16px !important; padding-right: 16px !important; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 24px; }
    .hero-stats { gap: 20px; }
    .hero-stat strong { font-size: 20px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
    .product-detail { padding: 24px; }
    .modal-box { padding: 28px 20px; }
    .co-form-row { flex-direction: column; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; }
    .sbar-search-btn span { display: none; }
    .sbar-search-btn { padding: 9px 14px; }
    .page-wrapper { padding-top: 310px; }
}


/* ===========================
   DYNAMIC HEADER & BACK TO TOP
=========================== */
body.header-hidden .navbar {
    transform: translateY(-100%);
}

body.header-hidden .sub-header {
    transform: translateY(calc(-100% - 68px));
}

.navbar, .sub-header {
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .btn-back-to-top {
        bottom: 80px; /* Raised to clear the fixed mobile bottom navigation */
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
}


/* ===========================
   USER NOTIFICATIONS BELL
=========================== */
.nav-bell-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    cursor: pointer;
    color: var(--text-sub);
    transition: color 0.2s;
}
.nav-bell-wrapper:hover {
    color: var(--primary);
}
.nav-bell-icon {
    font-size: 20px;
}
.nav-bell-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #FF4757;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 0;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-bell-dropdown {
    position: absolute;
    top: 35px;
    right: -10px;
    width: 320px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
}
.nav-bell-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-bell-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-bell-header button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
}
.nav-bell-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-bell-item:last-child {
    border-bottom: none;
}
.nav-bell-item.unread {
    background: rgba(61, 116, 255, 0.05);
}
.nav-bell-time {
    font-size: 11px;
    color: var(--text-gray);
}

/* ===========================
   PAGE NAV (Početna / Kontakt / O nama)
=========================== */
.page-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 16px;
    flex-shrink: 0;
}

.page-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-sub);
    transition: var(--transition);
    white-space: nowrap;
}

.page-nav-link i {
    font-size: 14px;
}

.page-nav-link:hover {
    background: var(--gradient-light);
    color: var(--primary-dark);
}

.page-nav-link.active {
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(61, 116, 255,0.28);
}

.page-nav-link.active i {
    color: #fff;
}

/* ===========================
   MOBILE BOTTOM NAV
=========================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--bg-white);
    border-top: 1.5px solid var(--border);
    box-shadow: 0 -4px 28px rgba(61, 116, 255,0.10);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10.5px;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
    position: relative;
}

.mobile-nav-item i {
    font-size: 21px;
    transition: var(--transition);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: var(--gradient);
    border-radius: 0 0 4px 4px;
}

.mobile-nav-item.active i {
    color: var(--primary);
}

.mobile-nav-item.active span {
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 820px) {
    .page-nav {
        display: none !important;
    }
    .mobile-bottom-nav {
        display: flex;
        flex-direction: column;
    }
    .page-wrapper,
    .dashboard-wrap {
        padding-bottom: 72px !important;
    }
}

/* ===========================
   KONTAKT & O NAMA PAGES
=========================== */
.info-page-hero {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 52px 50px;
    margin: 32px 0 0;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.6s ease-out forwards;
}
.info-page-hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,0.13);
    border-radius: 50%;
}
.info-page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.info-page-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}
.info-page-hero p {
    color: rgba(255,255,255,0.88);
    font-size: 16px;
    max-width: 520px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}
.info-page-hero .hero-badge {
    margin-bottom: 16px;
}

.info-section {
    margin-top: 42px;
}

.info-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.info-section-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 720px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-page-hero {
        padding: 36px 24px;
    }
    .info-page-hero h1 {
        font-size: 28px;
    }
}

.info-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(61, 116, 255,0.25);
    transform: translateY(-3px);
}

.info-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 16px;
}

.info-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
    margin: 0;
}

.contact-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.contact-form-card > p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.contact-details-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-details-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.contact-detail-item:last-child {
    border-bottom: none;
}

.contact-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-detail-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
}

.contact-detail-text span {
    font-size: 14px;
    color: var(--text-sub);
}

.contact-detail-text a {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.contact-detail-text a:hover {
    text-decoration: underline;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .cf-row {
        grid-template-columns: 1fr;
    }
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.cf-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
}

.cf-group input,
.cf-group textarea,
.cf-group select {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    background: var(--bg-main);
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.cf-group input:focus,
.cf-group textarea:focus,
.cf-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(61, 116, 255,0.10);
}

.cf-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-cf-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(61, 116, 255,0.3);
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.btn-cf-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 116, 255,0.4);
}

.cf-success {
    display: none;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: #166534;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    align-items: center;
    gap: 8px;
}

.onama-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

@media (max-width: 900px) {
    .onama-values {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .onama-values {
        grid-template-columns: 1fr;
    }
}

.onama-stat-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.onama-stat-box {
    flex: 1;
    min-width: 120px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(61, 116, 255,0.22);
}

.onama-stat-box strong {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.onama-stat-box span {
    font-size: 13px;
    opacity: 0.88;
    font-weight: 500;
}

/* ===========================
   HERO BANNER AD
=========================== */
.hero-banner-wrap {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 16px 0 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    line-height: 0;
}

.hero-banner-wrap:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


.btn-inquiry { padding: 0 24px; height: 48px; border-radius: 24px; background: #f1f5f9; color: #475569; font-weight: 600; font-size: 15px; border: 1px solid #cbd5e1; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-inquiry:hover { background: #e2e8f0; color: #0f172a; border-color: #94a3b8; }

.brand-badge-mini {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 80px;
    z-index: 10;
}
.brand-badge-mini img {
    max-width: 100%;
    height: auto;
    display: block;
}
.detail-img-wrap {
    position: relative;
}

/* ===== LIVE SEARCH DROPDOWN ===== */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14);
    z-index: 9999;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}
.sd-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}
.sd-item:last-child { border-bottom: none; }
.sd-item:hover,
.sd-item--active {
    background: #f0f9ff;
}
.sd-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.sd-info {
    flex: 1;
    min-width: 0;
}
.sd-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sd-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
}
.sd-cat {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 20px;
}
.sd-price {
    font-size: 13px;
    font-weight: 700;
    color: #3d74ff;
}
.sd-arrow {
    font-size: 11px;
    color: #cbd5e1;
    flex-shrink: 0;
}
.sd-item:hover .sd-arrow,
.sd-item--active .sd-arrow {
    color: #3d74ff;
}

/* ===========================
   HERO BANNER AD (Reklama)
=========================== */
.hero-banner-wrap {
    margin: 20px 0 0 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease-out both;
    background: #f1f5f9;
    line-height: 0;
}

.hero-banner-wrap a {
    display: block;
    line-height: 0;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 240px;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease;
}

.hero-banner-img:hover {
    opacity: 0.93;
}

@media (max-width: 768px) {
    .hero-banner-img {
        max-height: 120px;
    }
}
