@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-main: #000000;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --accent: #1271B8; /* Plava iz Prime Solution logotipa */
    --accent-hover: #0F5A93;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --border-color: #222222;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
}
.section-title span {
    color: var(--accent);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background: rgba(18, 113, 184, 0.1);
}
.badge-pill {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(18, 113, 184, 0.15);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease;
}
.navbar.scrolled {
    padding: 10px 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 45px;
}
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.cart-icon-wrapper {
    background: #111;
    border: 1px solid #333;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}
.cart-icon-wrapper:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: var(--bg-main);
}
.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
.hero-content {
    flex: 1;
    max-width: 600px;
}
.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.hero-btns {
    display: flex;
    gap: 20px;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid #222;
}
.hero-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #111;
    border: 1px solid #333;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-badge i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: #050505;
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.cat-card {
    background: var(--bg-card);
    border: 1px solid #1a1a1a;
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.cat-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}
.cat-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
}
.cat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.cat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Store Section (Istaknuti Proizvodi) */
.store {
    padding: 100px 0;
    background: var(--bg-main);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}
.product-img {
    height: 300px;
    background: #F3F4F6; /* Light gray for image to pop */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}
.product-stock {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}
.product-name {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}
.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    margin-top: auto;
}
.btn-add-cart {
    width: 100%;
    background: rgba(18, 113, 184, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-add-cart:hover {
    background: var(--accent);
    color: #FFF;
}

/* Info Banner */
.info-banner {
    margin: 80px auto;
    max-width: 1000px;
    background: #0A0A0A;
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.info-banner-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.info-banner-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.info-banner-box {
    background: #111;
    border: 1px solid #333;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 250px;
}
.info-banner-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.info-banner-box h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #050505;
    color: var(--text-muted);
}

/* Modals & Cart (Vrančić Style) */
.cart-drawer {
    background: #0A0A0A;
    border-left: 1px solid #222;
}
.cart-header {
    background: #111;
    border-bottom: 1px solid #222;
}
.cart-item {
    background: #111;
    border: 1px solid #222;
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
}
.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}
.cart-item-price {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}
.qty-btn {
    background: #222;
    color: #FFF;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}
.cart-footer {
    background: #111;
    border-top: 1px solid #222;
    padding: 20px;
}
.modal {
    background: #000000;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 16px;
    padding: 0;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.checkout-box {
    background: #0A0A0A;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.modal-overlay.active .checkout-box {
    transform: scale(1);
}
.modal-header-bar {
    padding: 20px 40px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0A0A0A;
}
.modal-body {
    padding: 40px;
    overflow-y: auto;
    flex-grow: 1;
}
.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}
.close-modal-btn {
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.close-modal-btn:hover {
    color: var(--accent);
}

/* Specs Table */
.specs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #222;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table tr {
    border-bottom: 1px solid #222;
}
.specs-table td {
    padding: 15px 0;
    font-size: 0.9rem;
}
.specs-table td:first-child {
    color: var(--text-muted);
}
.specs-table td:last-child {
    text-align: right;
    font-weight: 600;
}
.desc-box {
    background: #111;
    border: 1px solid #222;
    padding: 30px;
    border-radius: 12px;
}
.pm-image {
    background: #F3F4F6;
}
.pm-price-box {
    background: #111;
    border: 1px solid #222;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.pm-price-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.pm-price-box h3 {
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
}

/* Overlays */
.modal-overlay, .cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active, .cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: #0A0A0A;
    border-left: 1px solid #222;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
}
.cart-overlay.active .cart-drawer {
    right: 0;
}
.cart-drawer .btn {
    border-radius: 4px;
}

@media (max-width: 768px) {
    .hero .container { flex-direction: column; }
    .info-banner { flex-direction: column; text-align: center; padding: 30px 20px; }
    .hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
}
