@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0b132b;
    --border-dark: rgba(30, 58, 138, 0.5);
    --primary-blue: #2563eb;
    --primary-hover: #1d4ed8;
    --emerald-green: #059669;
    --emerald-hover: #047857;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center {
    text-align: center !important;
}

/* Glava / Navigacija */
.header {
    background-color: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #60a5fa;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #93c5fd;
}

/* Hero Section - Posodobljeno s sliko ozadja in temnim overlayem */
.hero {
    position: relative;
    background: linear-gradient(rgba(11, 19, 43, 0.8), rgba(11, 19, 43, 0.8)), url('../../slike/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 50px 16px;
    border-bottom: 1px solid var(--border-dark);
    text-align: center;
}

.hero-badge {
    background-color: rgba(37, 99, 235, 0.4);
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    color: #bfdbfe;
    font-size: 1rem;
    max-width: 672px;
    margin: 0 auto;
}

/* Glavna vsebina */
.main-content {
    flex: 1;
    padding: 32px 0;
}

.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin: 0 auto;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tab-btn.active {
    background-color: var(--card-bg);
    color: var(--primary-blue);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sort-box select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background-color: var(--card-bg);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100%;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.product-img-wrapper {
    height: 160px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stock-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    background-color: #ecfdf5;
    color: var(--emerald-green);
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    margin-bottom: 8px;
    width: fit-content;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.4;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

/* Gumbi */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Podrobnosti artikla */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: var(--card-bg);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.detail-img-box {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    cursor: pointer;
    background: #fff;
    margin-bottom: 12px;
}

.detail-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.specs-card {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.specs-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-key {
    color: var(--text-muted);
}

.spec-val {
    font-weight: 600;
    color: var(--text-main);
}

/* Noga - Sredinska poravnava */
.footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-dark);
    margin-top: auto;
    padding: 28px 0;
    text-align: center !important;
}

.footer p {
    text-align: center !important;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    text-align: center !important;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-links a:hover {
    color: #93c5fd;
}