/* Space between letters for heading animation */
.slide-in-letter.space {
  display: inline-block;
  width: 0.4em;
}
/* Active layout button style */
.layout-btn.active {
  background-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 6px rgba(63,169,245,0.4);
}
/* Base grid */
.products {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

/* One column */
.products.one-column {
  grid-template-columns: 1fr;
}

/* Two columns */
.products.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

/* Use auto-fit on large screens */
@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
@media (max-width: 700px) {
  .btn-filter {
    font-size: 0.9rem;
    padding: 8px 14px;
    min-width: 80px;
  }
}
/* Hide button text when added animation is active */
.btn-cart.added span { opacity: 0; }
/* Cart button styles and added state animation */
.btn-cart {
  transition: all 0.4s ease;
}

.btn-cart.added {
  background-color: #2ecc71 !important;
  color: #fff !important;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
  position: relative;
}

.btn-cart.added::after {
  content: 'Pridané';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 0.95rem;
  opacity: 0;
  animation: fadeInOut 1.5s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* Filter buttons layout */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

/* Filter button styles */
.btn-filter {
  background-color: var(--gray-light);
  color: var(--blue-dark);
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex: 1 1 auto;
  min-width: 100px;
  max-width: 200px;
  white-space: nowrap;
}

.btn-filter.active {
  background-color: var(--blue);
  color: #fff;
}

.btn-filter:hover {
  background-color: var(--gray);
  transform: scale(1.03);
}
/* Fade-out all animation */
.fade-out-all {
  animation: fadeOutAll 0.5s forwards;
}

@keyframes fadeOutAll {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}
/* Fade-out animation */
.fade-out {
  animation: fadeOut 0.4s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}
/* Cart button added state */
.btn-cart.added {
  background-color: #2ecc71 !important;
  color: #fff !important;
  transform: scale(1.05);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Palette (logo-based) */
:root {
  --blue-dark: #0D3B66;
  --blue: #3FA9F5;
  --gray: #6E6E6E;
  --gray-light: #E0E0E0;
  --bg: #FFFFFF;
  --bg-soft: #F7FBFF;
}

/* Palette (logo-based) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  background: linear-gradient(120deg, #F7FBFF 0%, #e3f0fa 60%, #cbe7fa 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: transparent;
  border-bottom: 2px solid #EAEAEA;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.D-letter { color: var(--blue); }
.brand-logo { height: 36px; width: auto; }
.brand-name {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 1.5rem;
  /* Logo appearance animation */
  opacity: 0;
}

.tracking-in-expand {
  -webkit-animation: tracking-in-expand 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
          animation: tracking-in-expand 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@-webkit-keyframes tracking-in-expand {
  0% {
  /* Logo appearance animation */
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Nav */
.site-nav { position: relative; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0; margin: 0;
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  overflow: hidden;
}
.nav-list a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
}
.nav-list a:hover { color: var(--blue-dark); }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--blue-dark);
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0;
}
.hero h1 {
  color: var(--blue-dark);
  font-size: 2.6rem;
  margin: 0 0 10px;
}
.hero .subtitle {
  color: var(--gray);
  font-size: 1.2rem;
  margin: 0 0 24px;
}


/* Base button style */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Primary button (blue) */
.btn-primary {
  background-color: var(--blue);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background-color: var(--blue-dark);
  transform: scale(1.03);
}

/* Secondary button (gray) */
.btn-secondary {
  background-color: var(--gray-light);
  color: var(--blue-dark);
  border: none;
}
.btn-secondary:hover {
  background-color: var(--gray);
  transform: scale(1.03);
}

/* Remove button */
.btn-remove {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 10px;
}
.btn-remove:hover {
  background-color: #c0392b;
  transform: scale(1.05);
}


/* Cart */
.cart-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.cart-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.cart-total {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.cart-button {
  text-align: center;
  margin: 30px 0;
}

/* Sections */
.section { padding: 60px 0; }
.section h2 {
  text-align: center;
  color: var(--blue-dark);
  margin-bottom: 20px;
  opacity: 1;
}

.slide-in-letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(-30px);
  animation: slide-in-letter 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

@keyframes slide-in-letter {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.catalog-section {
  padding-top: 0;
}
.signature { color: var(--gray); }

/* Categories (cards with icons) */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0 10px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border-color: var(--blue);
}
.category-card h3 { color: var(--blue-dark); margin: 10px 0 6px; }
.category-card p { color: var(--gray); margin: 0; }
.category-icon { width: 56px; height: 56px; }


/* Products grid (refactored) */
.products {
  display: grid;
  gap: 24px;
  margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* default for large screens */
}
.products.one-column {
  grid-template-columns: 1fr;
}
.products.two-columns {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}
.product {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  border-color: var(--blue);
}
.product h3 { color: var(--blue-dark); font-size: 1.05rem; margin: 10px 0; }
.price { color: var(--blue); font-weight: 700; margin-bottom: 12px; }

/* Contact */
.contact-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--gray);
}

/* Footer */
.site-footer {
  background: transparent;
  color: var(--gray);
  text-align: center;
  padding: 18px 0;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .header-inner { gap: 10px; }
  .nav-list { gap: 14px; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 10px;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
  }
  .nav-list.show {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1.05rem; }

  .product { padding: 14px; }
  .btn { padding: 10px 18px; border-radius: 6px; }
  .category-icon { width: 48px; height: 48px; }
}
