@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Lato:wght@300;400;700&family=Lato:ital@1&display=swap');

:root {
  --red: #8B1A1A;
  --red-dark: #6B1010;
  --cream: #F5F0EA;
  --cream-dark: #EDE6DC;
  --dark: #1A1A1A;
  --mid: #5A5A5A;
  --border: #D4C5B5;
  --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── TOP BAR ─── */
.topbar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 8px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ─── NAVIGATION ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover { color: var(--red); }

.nav-logo {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo:focus,
.nav-logo:hover,
.nav-logo:active,
.nav-logo:visited {
  text-decoration: none !important;
  border: none !important;
  outline: none !important;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-logo-brand {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 5px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-logo-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--mid);
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-icons a {
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.nav-icons a:hover { color: var(--red); }

/* ─── LANG SWITCHER ─── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--mid);
  text-decoration: none;
  padding: 4px 6px;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.lang-btn:hover { color: var(--dark); }
.lang-active {
  color: var(--red) !important;
  border-bottom-color: var(--red);
}

.cart-badge {
  background: var(--red);
  color: white;
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
  margin-top: -10px;
  font-weight: 700;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #3A3025;
  transition: opacity .5s;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.hero-logo {
  width: 90px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  filter: brightness(0) invert(1);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(48px, 8vw, 90px);
  letter-spacing: 14px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 12px;
}

.hero-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 5px;
  font-weight: 300;
  margin-bottom: 36px;
  opacity: .9;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  padding: 14px 36px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-primary:hover { background: var(--red-dark); }

/* ─── CATEGORIES ─── */
#kolekce {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #6B5B4E;
  transition: transform .5s ease;
}

.category-card:hover .category-card-bg { transform: scale(1.05); }

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  transition: background .3s;
}
.category-card:hover::after {
  background: rgba(0,0,0,.40);
}

.category-card-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--white);
}

.category-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  letter-spacing: 6px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* ─── ABOUT ─── */
#o-nas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.about-text {
  background: var(--cream);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--red);
}

.section-label-text {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--dark);
  order: -1;
}

.about-text h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.about-text p {
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 440px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}
.link-arrow::after { content: '→'; font-size: 16px; }
.link-arrow:hover { gap: 16px; }

.about-image {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.about-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #8A7060;
  transition: transform .5s ease;
  filter: blur(1.2px);
}
.about-image:hover .about-image-bg { transform: scale(1.03); }

/* ─── FEATURES ─── */
.features {
  background: var(--cream-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 14px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--red);
}

.feature-title {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--dark);
}

/* ─── NEWSLETTER ─── */
#inspirace {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.newsletter-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2A2018;
}
.newsletter-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 5, .65);
}

.newsletter-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
  max-width: 560px;
}

.newsletter-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4vw, 36px);
  letter-spacing: 6px;
  font-weight: 400;
  margin-bottom: 14px;
}

.newsletter-content p {
  font-size: 14px;
  opacity: .85;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 13px 18px;
  border: none;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  outline: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.6); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  letter-spacing: 1.5px;
}

/* ─── FADE-IN ANIMACE ─── */
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
}
/* Pro uživatele kteří preferují bez animací */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transition: none; }
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu-link {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: color .2s, background .2s;
}
.mobile-menu-link:hover { color: var(--red); background: var(--cream-dark); }
.mobile-menu-langs {
  display: flex;
  gap: 0;
  padding: 14px 24px;
}
.mobile-lang-btn {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--mid);
  text-decoration: none;
  padding: 4px 10px;
  border-bottom: 1px solid transparent;
  transition: color .2s;
}
.mobile-lang-btn:hover { color: var(--dark); }
.mobile-lang-active { color: var(--red) !important; border-bottom-color: var(--red); }

/* ─── MOBILE LANG SELECT ─── */
.mobile-lang-select {
  display: none; /* skrytý na desktopu */
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
    grid-template-columns: 1fr auto 1fr;
  }
  .nav-left { gap: 18px; }
  .nav-left .nav-link { font-size: 10px; letter-spacing: 1.5px; }
  .nav-right { gap: 12px; }

  #kolekce { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 16/9; }

  #o-nas { grid-template-columns: 1fr; }
  .about-text { padding: 50px 30px; }
  .about-image { min-height: 320px; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3) { border-right: 1px solid var(--border); }

  .newsletter-form { flex-direction: column; }
}

@media (max-width: 600px) {
  /* Navbar: logo vlevo, hamburger + ikony vpravo */
  .navbar {
    padding: 0 16px;
    justify-content: space-between;
  }
  .nav-left { display: none; }

  /* Logo: jen obrázek bez textů */
  .nav-logo-brand  { display: none; }
  .nav-logo-tagline { display: none; }
  .nav-logo { gap: 0; }
  .nav-logo img { height: 40px; }

  /* Skryj textový odkaz (KONTAKT) v nav-right — je v hamburger menu */
  .nav-right .nav-link { display: none; }

  .nav-right { gap: 10px; }
  .nav-icons { gap: 14px; }

  .lang-switcher { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Mobilní přepínač jazyků — úplně vpravo */
  .mobile-lang-select {
    display: block;
    order: 10;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--dark);
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--border);
    padding: 3px 2px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: auto;
    appearance: auto;
  }

  /* Obsah stránky */
  .hero-title { letter-spacing: 8px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about-text { padding: 40px 24px; }
}
