:root {
    --primary-red: #DC143C;
    --primary-red-dark: #B0122E;
    --primary-red-light: #FF1744;
    --dark-gray: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed navbar */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}

/* Header & Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
    background: var(--light-gray);
}

.navbar-nav .nav-link.active {
    color: var(--primary-red) !important;
}

/* Hero Section */
.hero-section {
    background-image: url('/img/stavebniny_chotebor.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('/img/stavebniny_chotebor.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.40) 100%),
        linear-gradient(135deg, rgba(220, 20, 60, 0.70) 0%, rgba(176, 18, 46, 0.80) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    z-index: 1;
    pointer-events: none;
}

.hero-section-small {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.3;
}

.hero-section-small h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero-section-small .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Payment Methods Section */
.payment-methods-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
}

.payment-banner {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary-red);
}

.payment-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: flex-start;
}

.payment-title i {
    color: var(--primary-red);
    font-size: 1.8rem;
}

.payment-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.payment-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.payment-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: var(--light-gray);
    transition: all 0.3s ease;
    min-width: 100px;
}

.payment-icon-item:hover {
    background: rgba(220, 20, 60, 0.1);
    transform: translateY(-3px);
}

.payment-icon-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 0.25rem;
}

.payment-icon-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Why Choose Us Section */
.why-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid transparent;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-red);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.why-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-card:hover .why-icon::before {
    opacity: 1;
}

.why-icon i {
    font-size: 2rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.why-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    margin-top: 1rem;
}

.status-badge.open {
    background: rgba(76, 175, 80, 0.3);
}

.status-badge.closed {
    background: rgba(244, 67, 54, 0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse 2s infinite;
}

.status-dot.open {
    background: #4CAF50;
}

.status-dot.closed {
    background: #F44336;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Opening Hours Card */
.opening-hours-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.opening-hours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.opening-hours-card h3 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.opening-hours-card h3 i {
    font-size: 1.5rem;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-list .time {
    color: var(--text-light);
}

.current-status {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.current-status p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

/* Map Section */
.map-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 500px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Contact Section */
.contact-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.contact-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-card p,
.contact-card a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-red);
}

/* Form Styling */
.contact-form {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

.btn-primary {
    background: var(--primary-red);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-credit {
    margin-top: 0.5rem;
    opacity: 0.7;
}

.footer-credit small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        background-attachment: scroll;
        min-height: 500px;
        padding: 80px 0 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .opening-hours-card,
    .contact-card,
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    /* Ensure navbar closes on mobile after link click */
    .navbar-collapse {
        transition: height 0.35s ease;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .hero-section-small h1 {
        font-size: 2.2rem;
    }
    
    .hero-section-small .lead {
        font-size: 1rem;
    }
    
    .category-card,
    .supplier-card {
        margin-bottom: 1.5rem;
    }
    
    .supplier-logo-container {
        height: 100px;
    }
    
    .payment-banner {
        padding: 1.5rem;
    }
    
    .payment-title {
        font-size: 1.3rem;
        justify-content: center;
    }
    
    .payment-icons {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .payment-icon-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .payment-icon-item i {
        font-size: 2rem;
    }
    
    .why-card {
        margin-bottom: 1.5rem;
    }
    
    .why-icon {
        width: 70px;
        height: 70px;
    }
    
    .why-icon i {
        font-size: 1.8rem;
    }
    
    .why-card h4 {
        font-size: 1.2rem;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Smooth transitions for interactive elements */
.opening-hours-card,
.contact-card,
.contact-form {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sortiment Page Styles */
.category-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.category-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    width: 100%;
    height: 100%;
}

.category-card-link:hover,
.category-card-link:focus,
.category-card-link:active,
.category-card-link:visited {
    text-decoration: none !important;
    color: inherit !important;
}

.category-card-link * {
    text-decoration: none !important;
    color: inherit !important;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
    cursor: pointer;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.category-icon i {
    font-size: 2rem;
    color: var(--white);
}

.category-card h3 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Supplier Cards */
.supplier-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.supplier-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.supplier-logo-container {
    width: 100%;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.supplier-card:hover .supplier-logo-container {
    background: rgba(220, 20, 60, 0.05);
}

.supplier-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.supplier-card:hover .supplier-logo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.supplier-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 3rem;
}

.supplier-card h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.supplier-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.supplier-card .btn {
    margin-top: auto;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.cta-box h3 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.cta-box .btn {
    margin-top: 0.5rem;
}

.cta-box .btn-outline-primary {
    border-color: var(--white);
    color: var(--white);
}

.cta-box .btn-outline-primary:hover {
    background: var(--white);
    color: var(--primary-red);
}

/* Category Suppliers */
.category-suppliers {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.supplier-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: var(--light-gray);
    border-radius: 5px;
    font-size: 0.85rem;
}

.supplier-logo-small {
    max-width: 60px;
    max-height: 30px;
    object-fit: contain;
}

.supplier-name-small {
    font-weight: 500;
    color: var(--text-dark);
}

.category-suppliers-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px; /* Offset for fixed navbar */
}

/* News Cards */
.news-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.news-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.news-header h4 {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.news-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.news-description p {
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.news-file {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.news-file .btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.news-file small {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.category-suppliers-section h3 {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
}

/* Utility Classes */
.text-primary-red {
    color: var(--primary-red) !important;
}

.bg-primary-red {
    background-color: var(--primary-red) !important;
}

