/* =========================================
   1. RESET A PROMĚNNÉ
   ========================================= */
:root {
  /* Profi Barevná Paleta (Clean & Tech) */
  --primary: #0056b3;       /* Sytá, důvěryhodná modrá */
  --primary-dark: #004494;  /* Tmavší modrá pro hover */
  --accent: #0ea5e9;        /* Světlejší modrá pro detaily */
  
  --bg-body: #f8fafc;       /* Velmi jemná šedá (skoro bílá) */
  --bg-card: #ffffff;       /* Čistá bílá */
  
  --text-main: #0f172a;     /* Téměř černá - nadpisy */
  --text-body: #334155;     /* Tmavě šedá - text */
  --text-muted: #64748b;    /* Světle šedá - popisky */
  --text-white: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1);
  
  --radius: 8px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
}

/* =========================================
   2. UI KOMPONENTY (Tlačítka, Štítky)
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  margin: 5px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-link {
  color: var(--primary);
  font-weight: 600;
  padding: 0;
  background: none;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Štítek (Badge) */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.badge-blue {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

/* =========================================
   3. NAVIGACE
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 50px; /* Přizpůsobí výšku loga */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-eshop {
  background: var(--primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
}

/* Mobilní menu toggle */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

/* =========================================
   4. HERO SEKCE
   ========================================= */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(to bottom, #f0f9ff, var(--bg-body));
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 800px;
  margin: 0 auto 30px;
}

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

/* =========================================
   5. KATEGORIE (3 Karty nahoře)
   ========================================= */
.categories-section {
  padding: 40px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.cat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

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

.cat-image-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.cat-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card:hover .cat-image-wrap img {
  transform: scale(1.05);
}

.cat-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cat-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cat-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

/* =========================================
   6. KATALOG PRODUKTŮ (Mřížka)
   ========================================= */
.catalog-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

/* GRID SYSTÉM PRO PRODUKTY */
.products-grid {
  display: grid;
  /* Automaticky skládá karty vedle sebe, minimálně 280px široké */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-img-container {
  height: 260px;
  padding: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.product-img-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid #e2e8f0;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

/* =========================================
   7. FEATURES (Proč Prochem) & O NÁS
   ========================================= */
.features-section {
  background: white;
  padding: 80px 0;
  border-top: 1px solid #e2e8f0;
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; /* Větší mezera mezi textem a obrázkem */
  align-items: center;
}

.features-text h2 {
  margin-bottom: 30px;
}

.feature-item {
  margin-bottom: 30px;
}

.feature-item h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.features-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}

/* --- NOVÁ SEKCE: O NÁS (HP Trading) --- */
.about-section {
  padding: 80px 0;
  background-color: #f0f9ff; /* Jemně modré pozadí pro odlišení */
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-body);
}

/* --- KONTAKT --- */
.contact-section {
  padding: 80px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

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

/* =========================================
   8. OPRAVA MOBILNÍHO ZOBRAZENÍ
   ========================================= */
@media (max-width: 900px) {
  /* Změna gridu na sloupec */
  .features-layout { 
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  /* Zajistíme, aby text nelezl mimo obrazovku */
  .features-text, .features-img {
    width: 100%;
    padding: 0 5px; /* Malá pojistka */
  }

  /* Obrázek na mobilu dáme až pod text (nebo nad, dle libosti) */
  .features-img {
    order: 2; 
  }
  
  .features-text h2 {
    font-size: 2rem;
  }
}

/* =========================================
   8. PATIČKA (Footer)
   ========================================= */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  color: white;
  margin-bottom: 20px;
}

.footer a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer a:hover {
  color: white;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.9rem;
}

/* =========================================
   9. RESPONSIVE (Mobil)
   ========================================= */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  
  .features-layout { grid-template-columns: 1fr; }
  
  .nav-links {
    display: none; /* Pro jednoduchost skryjeme, JS to může zobrazit */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
}

/* =========================================
   10. DETAIL PRODUKTU (PROFI LAYOUT)
   ========================================= */
.product-detail-page {
  padding: 120px 0 80px;
  background-color: #f8fafc; /* Jemně šedé pozadí stránky */
}

/* Hlavní rozvržení: Obrázek vlevo, Info vpravo */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: 40% 60%;
    align-items: start;
  }
}

/* Levý sloupec: Obrázek */
.detail-image-wrapper {
  position: relative; /* Nutné pro plovoucí odznaky */
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.detail-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
}

/* Plovoucí odznaky na obrázku (Badges) */
.product-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge-tag {
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-transform: uppercase;
}

.badge-tag.secondary {
  background: var(--accent);
}

/* Pravý sloupec: Informace */
.detail-content h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  color: var(--text-main);
  line-height: 1.2;
}

.sku {
  display: block;
  font-family: monospace;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.short-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 30px;
}

/* Tabulka specifikací - čistý design */
.specs-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

/* Tlačítka akcí */
.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Spodní sekce: Dlouhý popis */
.full-description {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.full-description h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
}

.full-description p {
  margin-bottom: 15px;
  color: var(--text-body);
}

.full-description ul {
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-body);
}

.full-description li {
  margin-bottom: 8px;
}

/* Drobečková navigace */
.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* --- NOVÁ SEKCE O ZNAČCE (ROYAL WARRANT) --- */
.brand-story-section {
  padding: 80px 0;
  background-color: #f1f5f9; /* Světle šedé pozadí pro oddělení sekcí */
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* Rozložení do dvou sloupců */
.brand-story-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Text je širší než obrázek */
  gap: 60px;
  align-items: center; /* Zarovnání na střed vertikálně */
}

/* Stylování textů */
.brand-text-content h2 {
  font-size: 2.2rem;
  margin-top: 15px;
  margin-bottom: 20px;
  color: var(--secondary);
  line-height: 1.2;
}

.brand-text-content .lead {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 600px;
}

/* Seznam bodů (ikonka + text) */
.story-points {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.story-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.story-icon {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary); /* Modrá Prochem */
  font-size: 1.4rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.story-info h3 {
  font-size: 1.1rem;
  margin: 0 0 5px 0;
  color: var(--secondary);
  font-weight: 700;
}

.story-info p {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
}

/* Karta s obrázkem Erbu */
.brand-image-content {
  display: flex;
  justify-content: center;
}

.royal-card {
  background: white;
  padding: 40px;
  border-radius: 4px; /* Ostré rohy pro formální vzhled */
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid #e2e8f0;
  max-width: 400px; /* Zabráníme tomu, aby byl obrázek obří */
  width: 100%;
}

.royal-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.royal-label {
  display: block;
  font-family: 'Times New Roman', serif;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

/* MOBILNÍ ZOBRAZENÍ (Responsivita) */
@media (max-width: 992px) {
  .brand-story-layout {
    grid-template-columns: 1fr; /* Pod sebe */
    gap: 40px;
    text-align: left;
  }
  
  .royal-card {
    margin: 0 auto; /* Vycentrování karty na mobilu */
    padding: 20px;
  }
  
  .story-item {
    gap: 15px;
  }
}