/* ==========================================================================
   Modern Premium CSS for Komark Štikanje
   ========================================================================== */

:root {
    --primary-color: #d32f2f;      /* A rich, premium red */
    --secondary-color: #1a1a1a;    /* Deep dark for text/backgrounds */
    --accent-color: #fbc02d;       /* Gold/Yellow accent for premium feel */
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.premium-nav {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.premium-nav.scrolled {
    padding: 8px 0;
    background: rgba(26, 26, 26, 1) !important;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.brand-highlight {
    color: var(--primary-color);
}

.nav-hover {
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-hover:hover::after,
.nav-item.active .nav-hover::after {
    width: 100%;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main-content {
    margin-top: 80px; /* Offset for fixed navbar */
    min-height: calc(100vh - 80px - 300px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--secondary-color); /* Fallback */
    color: #fff;
    padding: 150px 0 100px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay to make text readable */
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease-out;
    text-shadow: 0 2px 5px rgba(0,0,0,1), 0 5px 20px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.9), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: #ffffff;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 4px rgba(0,0,0,1), 0 4px 15px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.8);
}

/* ==========================================================================
   Cards & Layouts
   ========================================================================== */
.premium-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    background: #fff;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 15px 15px 0 0;
    background-color: #fdfdfd;
}

.card-img-wrapper img {
    transition: transform 0.6s ease;
    border-radius: 15px 15px 0 0;
}

.premium-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.btn-premium {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-premium:hover {
    background-color: #b71c1c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.premium-footer {
    background-color: var(--secondary-color) !important;
    border-top: 4px solid var(--primary-color);
}

.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

.footer-contact i {
    color: var(--primary-color);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Catalog Specific
   ========================================================================== */
.catalog-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.catalog-sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 15px;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.catalog-sidebar .list-group-item:last-child {
    border-bottom: none;
}

.catalog-sidebar .list-group-item:hover,
.catalog-sidebar .list-group-item.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px; /* Slight indent on hover */
    border-left: 4px solid var(--primary-color);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 15px;
    color: var(--secondary-color);
}

.product-code {
    font-size: 0.85rem;
    color: #888;
}

/* Single Product Page */
.product-detail-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.gallery-main-img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    width: 100%;
}

.gallery-thumbnails img {
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-thumbnails img:hover {
    opacity: 0.7;
}

/* SEO Title Highlights */
.seo-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.seo-heading::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
