/* Professional Modern Style for Action Leaflets */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #D80108;
    --primary-light: #fef0f0;
    --secondary-color: #FF9800;
    --accent-color: #2196F3;
    --bg-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
    color: inherit;
}

/* Layout Containers */
.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.content-area {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Prevent any child from breaking layout */
}


.compact-drobek {
    font-size: 0.7rem;
    color: #64748b;
}

.compact-drobek a {
    color: #64748b !important;
    text-decoration: none;
}

.compact-drobek a:hover {
    color: var(--primary-color) !important;
}


.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -8px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.col {
    padding: 0 8px;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
}

.row .col.m10 { 
    width: calc(80% - 1px) !important; 
    flex: 0 0 calc(80% - 1px) !important; 
    max-width: calc(80% - 1px) !important;
    overflow: hidden;
}

.row .col.m2 { 
    width: 20% !important; 
    flex: 0 0 20% !important; 
    max-width: 20% !important;
}

.m4 { width: 33.3333% !important; }
.m6 { width: 50% !important; }
.l3 { width: 24.9% !important; flex: 0 0 24.9% !important; }
.l2 { width: 16.6% !important; flex: 0 0 16.6% !important; }

@media only screen and (max-width: 600px) {
    .row .col.m10, .row .col.m2 { 
        width: 100% !important; 
        flex: 0 0 100% !important; 
        max-width: 100% !important;
    }
    .s6, .m4, .l3 { width: 50% !important; flex: 0 0 50% !important; }
}

.cleaner { clear: none !important; display: block; width: 100%; height: 0; }

.nahled {
    position: relative;
    margin-bottom: 25px;
    padding: 0;
    overflow: hidden;
    height: 350px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}



/* Header & Navigation */
.headertop {
    background: url('/images/logo-bg.webp') repeat-x center;
    background-size: contain;
    height: 80px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 5px;

    border-bottom: 1px solid #ddd;
}



.nav-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo img {
    height: 65px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mobile-menu-toggle {
    display: none !important; /* Hidden on desktop */
    align-items: center;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius);
    cursor: pointer;
}

@media only screen and (max-width: 600px) {
    .mobile-menu-toggle {
        display: flex !important; /* Visible only on mobile */
    }
}

.mobile-menu-toggle:hover {
    background: #b00106;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(216, 1, 8, 0.3);
}

.mobile-menu-toggle i {
    font-size: 20px;
}

.menu-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar Styling */
.leftmenu {
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 30px;
}

.leftmenu-header {
    background: #9e9e9e;
    color: var(--white);
    padding: 10px 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.leftmenu-content {
    padding: 0;
}

.collection-group {
    margin-bottom: 0;
}

.collection-header {
    background: #ffffff;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid #f1f5f9;
    border-top: 1px solid #f1f5f9;
}

.collection-group:first-of-type .collection-header {
    border-top: none;
}

.collection {
    background: var(--white);
    list-style: none;
    margin: 0;
    padding: 0;
}

.collection-item {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid #ffffff;
    font-weight: 400;
    color: #475569;
    font-size: 0.95rem;
}

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

.collection-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding-left: 24px;
}

.collection-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
}

/* Search Box Professional - Redesigned */
.search-box {
    margin-bottom: 25px;
}

/* Nahled (Leaflet Card) - Matching target image */


.nahled-img-link {
    display: block;
    height: 100%;
    width: 100%;
    padding-left: 10px; /* Added as requested */
}


.nahled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    display: block;
}

@media (max-width: 600px) {
    .nahled img {
        object-fit: contain;
        background: #f8fafc;
    }
}


.popisnahledu {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 10;
    white-space: normal;
    line-height: 1.1;
}

.popisnahledu a {
    color: #444 !important;
    font-size: 0.75rem !important;
    display: inline; /* Keep on one line */
    line-height: 1.2;
}

.popisnahledu strong {
    display: inline; /* Keep on one line */
}

.popisnahledu strong a {
    color: #000 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    display: inline;
}


.nahled:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 20;
}

.nahled:hover .popisnahledu strong a {
    color: var(--primary-color) !important;
}

/* Archiv letáků - celé náhledy */
.nahledarchiv {
    height: auto !important;
    margin-bottom: 20px;
}

.nahledarchiv .nahled-img-link {
    height: auto !important;
}

.nahledarchiv img {
    height: auto !important;
    object-fit: contain !important;
}

.nahledarchiv .popisnahledu {
    position: relative !important;
    background: #fff !important;
    border-top: 1px solid #eee;
    white-space: normal !important;
}
 
/* Archive Button Style */
.archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    color: #475569 !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.archive-btn:hover {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 1, 8, 0.2);
}

.archive-btn i {
    font-size: 20px;
}






/* Pagination Professional */
.stranky {
    text-align: center;
    margin-bottom: 30px;
}

.stranky img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* Pagination Elegant */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 30px auto;
    gap: 4px;
    flex-wrap: wrap;
    padding: 10px;
    background: #fff;

    border-radius: 8px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
}

/* Custom scrollbar for webkit - very subtle */
.pagination::-webkit-scrollbar {
    height: 3px;
}
.pagination::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

@media only screen and (max-width: 600px) {
    .pagination {
        justify-content: flex-start;
        padding: 10px 5px;
        margin: 10px auto;
    }
}

.pagination li {
    flex: 0 0 auto;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.75rem;
    color: #64748b;
    transition: all 0.2s ease;
}

.pagination li a:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: var(--primary-color);
}

.pagination li.active a {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(216, 1, 8, 0.2);
}



/* Breadcrumbs (Drobek) Professional */
.drobek {
    margin: 20px 0;
}

.breadcrumb-container {
    display: flex;
    list-style: none;
    background: rgba(255,255,255,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    width: fit-content;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumb-item:not(:last-child):after {
    content: "chevron_right";
    font-family: 'Material Icons';
    margin: 0 8px;
    font-size: 1rem;
    color: #cbd5e1;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item:last-child {
    color: var(--text-main);
    font-weight: 600;
}

/* Section Titles */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 20px 0;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 30px 0 20px;
    position: relative;
    padding-left: 15px;
}

h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Footer Professional */
footer.page-footer {
    background: #1e293b;
    color: #ffffff;
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* Mobile Adjustments */
@media only screen and (max-width: 600px) {
    .headertop { height: 70px; }
    .brand-logo img { height: 45px; }
    .search-box { margin-top: 20px; }
    .container { width: 92%; }
}

/* Utilities */
.center { text-align: center; }
.hide-on-small-only { display: none !important; }
@media only screen and (min-width: 601px) {
    .hide-on-small-only { display: block !important; }
}

.white-text { color: var(--white); }
.orange { background-color: var(--secondary-color); }

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nahled {
    animation: none;
}


/* Mobile Menu Slide-out */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0; /* Changed from 20px 0 */
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


#mobile-menu.open {
    right: 0;
}

html.menu-open, body.menu-open {
    overflow: hidden !important;
    height: 100% !important;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.close-menu {
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}


.close-menu:hover {
    color: var(--primary-color);
}

/* Carousel Leporelo Style - Enhanced & Responsive */
:root {
    --carousel-gap: 16px;
}

@media (max-width: 600px) {
    :root {
        --carousel-gap: 10px;
    }
}

.carousel-container {
    width: 100%;
    margin-bottom: 40px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: var(--carousel-gap);
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide for clean look */
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    
    perspective: none !important;
    transform-style: flat !important;
    height: auto !important;
    min-height: 250px;
}

.carousel::-webkit-scrollbar {
    display: none; /* Hide for clean look */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(4px);
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

@media (max-width: 600px) {
    .carousel-nav { display: none; } /* Hide on small mobile to allow swiping */
}

.carousel-item {
    flex: 0 0 calc((100% - (3 * var(--carousel-gap))) / 4) !important;
    width: calc((100% - (3 * var(--carousel-gap))) / 4) !important;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    display: block !important;
    position: relative !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc((100% - (2 * var(--carousel-gap))) / 3) !important;
        width: calc((100% - (2 * var(--carousel-gap))) / 3) !important;
    }
}

.carousel-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

/* Hide Sticky AdSense Anchor/Vignette Ads */
.adsbygoogle.adsbygoogle-noablate {
    display: none !important;
}

@media (max-width: 600px) {
    .product-card {
        min-height: 200px;
    }
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
}

@media (max-width: 600px) {
    .product-image {
        height: 120px;
        padding: 5px;
    }
}

.product-info {
    padding: 10px 8px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .product-name {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
}

