/*
Theme Name: ZUD Model Custom
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Vlastní WordPress šablona pro ZUD Model podle dodaného návrhu.
Version: 1.0.0
License: GPL v2 or later
Text Domain: zud-model
*/

:root {
  --page-bg: #e9e9e9;
  --content-bg: #f1f0dd;
  --menu-bg: #3700ff;
  --menu-bg-hover: #2800c2;
  --text: #111111;
  --muted: #4a4a4a;
  --white: #ffffff;
  --border: #d8d8d8;
  --product-border: #fa2d20;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-shell {
  max-width: 1190px;
  margin: 38px auto 64px;
  background: #f7f7f7;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.site-header {
  background: #f8f8f8;
}

.header-inner {
  min-height: 268px;
  padding: 42px 36px 28px;
  display: flex;
  align-items: flex-start;
}

.site-branding img {
  width: 392px;
  max-width: 100%;
}

.main-nav {
  background: linear-gradient(180deg, #4d15ff 0%, #2f00e8 100%);
  border-top: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 34px;
  line-height: 1;
  padding: 18px 18px 16px;
}

.main-nav li.menu-wide a {
  font-size: 22px;
  padding-top: 22px;
  padding-bottom: 20px;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current-menu-parent a,
.main-nav .current-product-scale a {
  background: rgba(0, 0, 0, 0.13);
}

.site-main {
  background: var(--content-bg);
  min-height: 670px;
  padding: 0;
}

.home-intro {
  min-height: 670px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 30px 110px;
  text-align: center;
}

.home-intro .facebook-icon {
  width: 170px;
  margin-bottom: 34px;
}

.home-intro h1 {
  margin: 0;
  font-size: 43px;
  line-height: 1.06;
  font-weight: 900;
  text-transform: uppercase;
}

.content-wrap {
  padding: 42px 54px 68px;
}

.section-title,
.page-title,
.single-title,
.archive-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-subtitle,
.single-code,
.page-intro,
.empty-note {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 28px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 84px;
  max-width: 1000px;
  margin: 18px auto 0;
}

.product-card {
  text-align: left;
}

.product-card a {
  display: block;
}

.product-thumb {
  width: 210px;
  aspect-ratio: 1 / 1;
  border: 4px solid var(--product-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 900;
  text-transform: uppercase;
  background: transparent;
  margin-bottom: 10px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-code {
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.product-name {
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.single-product-layout {
  max-width: 1040px;
  margin: 0 auto;
}

.single-product-header {
  text-align: center;
  margin-bottom: 26px;
}

.single-product-header h1 {
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: lowercase;
}

.single-product-header .single-summary {
  max-width: 760px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 900;
  text-transform: lowercase;
}

.single-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 34px;
  margin: 18px auto 0;
}

.single-gallery-item {
  aspect-ratio: 1 / 1;
  border: 4px solid var(--product-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  text-transform: uppercase;
}

.single-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-text {
  max-width: 860px;
  margin: 24px auto 0;
  font-size: 19px;
}

.footer-note {
  background: #efefef;
  text-align: center;
  padding: 34px 20px 40px;
}

.footer-note strong {
  display: block;
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 900;
}

.entry-content {
  max-width: 920px;
  margin: 0 auto;
  font-size: 20px;
}

.entry-content p:first-child {
  margin-top: 0;
}

.empty-state {
  padding: 56px 28px 72px;
  text-align: center;
}

.empty-state .empty-box {
  width: 210px;
  aspect-ratio: 1 / 1;
  border: 4px solid var(--product-border);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-hint {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #d7d7d7;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .site-shell {
    margin: 20px auto 30px;
  }

  .main-nav a {
    font-size: 28px;
  }

  .main-nav li.menu-wide a {
    font-size: 19px;
  }

  .products-grid {
    gap: 34px 30px;
  }

  .single-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .header-inner {
    min-height: auto;
    padding: 26px 20px 18px;
  }

  .site-branding img {
    width: 280px;
  }

  .main-nav ul {
    padding: 0 8px;
  }

  .main-nav a {
    font-size: 23px;
    padding: 14px 10px;
  }

  .main-nav li.menu-wide a {
    font-size: 18px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .home-intro {
    min-height: 500px;
    padding: 50px 20px 70px;
  }

  .home-intro .facebook-icon {
    width: 120px;
  }

  .home-intro h1,
  .section-title,
  .page-title,
  .single-title,
  .archive-title,
  .footer-note strong {
    font-size: 24px;
  }

  .content-wrap {
    padding: 28px 20px 40px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-thumb,
  .empty-state .empty-box {
    width: 100%;
    max-width: 210px;
  }

  .product-code,
  .product-name,
  .single-product-header .single-summary,
  .archive-subtitle,
  .single-code,
  .page-intro {
    font-size: 22px;
  }

  .single-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .products-grid,
  .single-gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-thumb,
  .single-gallery-item {
    margin-left: auto;
    margin-right: auto;
    max-width: 240px;
  }

  .product-card,
  .single-gallery-item {
    text-align: center;
  }
}
