/*
Theme Name: Minitex
Description: Vylepšená šablona na míru - Drogerie a Trafika Minitex
Author: AI Studio
Version: 2.0
*/

:root {
    --c-red: #cc2027;
    --c-silver: #e5e7e9;
    --c-dark: #1a202c;
    --c-text: #4a5568;
    --bg-main: #f8fafc;

    --c-prima-purple: #7b3f98;
    --c-prima-green: #98cd50;
    --bg-prima: linear-gradient(135deg, #fbf7fc 0%, #ffffff 100%);

    --c-allwyn-teal: #38e0c4;
    --c-allwyn-slate: #1e4e5f;
    --bg-allwyn: linear-gradient(135deg, #f2fdfb 0%, #ffffff 100%);
    
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.08);
}

body { 
    margin: 0; 
    font-family: 'Inter', sans-serif; 
    color: var(--c-text); 
    background: var(--bg-main); 
    overflow-x: hidden; 
    line-height: 1.6;
}
h1, h2, h3, h4, strong { font-family: 'Montserrat', sans-serif; color: var(--c-dark); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* --- HLAVNÍ STRANA --- */
.home-container { display: flex; flex-direction: column; min-height: 100vh; height: auto; }

.top-info {
    flex: none; /* Zrušeno fixní omezování výšky - zabrání zbytečnému scrollování */
    background: #ffffff; 
    padding: 20px 20px; 
    box-sizing: border-box; 
    text-align: center; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    z-index: 10;
    position: relative;
    border-top: 4px solid var(--c-red);
}
.top-info img.main-logo { max-height: 55px; margin-bottom: 10px; }
.top-info-text { max-width: 800px; margin: 0 auto; font-size: 1em; }

/* Oprava uspořádání ikon a jejich velikosti */
.icon-list { 
    display: flex; justify-content: center; align-items: center; gap: 15px; 
    flex-wrap: wrap; margin-top: 15px; font-size: 0.85em; 
}
.icon-item { 
    display: inline-flex; align-items: center; gap: 6px; 
    background: #f1f5f9; padding: 6px 14px; border-radius: 50px; 
    color: var(--c-dark); font-weight: 500;
    white-space: nowrap; /* Zabrání zalamování textu uvnitř ikony */
}
/* Tvrdé zafixování velikosti SVG, aby se na desktopu nerozpadlo */
.icon-item svg { width: 18px !important; height: 18px !important; flex-shrink: 0; fill: var(--c-red); display: block; }

.split-wrapper { flex: 1; display: flex; width: 100vw; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); background: #fff; }

.split-half {
    flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
    cursor: pointer; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; padding: 40px; box-sizing: border-box;
}
.split-half:hover { flex: 1.15; }

/* Zobrazení log pod sebou a zvětšení na 175 % */
/* =========================================
   VELKÁ LOGA NA HLAVNÍ STRANĚ POD SEBOU
   ========================================= */
.split-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    transition: transform 0.4s ease;
    width: 100%;
}

.split-logos img { 
    max-width: 280px !important;
    max-height: 130px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)); 
    padding-right: 0 !important;
    border-right: none !important;
}

.split-half:hover .split-logos { 
    transform: scale(1.08) translateY(-5px); 
}

/* =========================================
   OPRAVA MOBILNÍHO ZOBRAZENÍ (Pod sebe)
   ========================================= */
@media (max-width: 768px) {
    .split-wrapper { flex-direction: column !important; }
    .split-half { width: 100% !important; min-height: 50vh; border-right: none !important; border-bottom: 1px solid #ddd; padding: 40px 20px !important; }
    .split-logos { gap: 10px; }
    .split-logos img { max-width: 200px !important; max-height: 90px !important; }
}

/* =========================================
   ZÁCHRANA PODSTRÁNEK (Správné formátování)
   ========================================= */
.subpage-header img.small-logo {
    max-height: 35px !important;
    width: auto !important;
    margin: 0 !important;
}

h1.sub-title img {
    max-height: 60px !important;
    width: auto !important;
    margin: 0 !important;
}

.subpage-content {
    max-width: 900px !important;
    margin: 50px auto !important; /* Vycentruje zbytek stránky na střed */
    padding: 50px !important;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-radius: 20px;
}