/* =====================================================
   products-catalog.css — Industrial Luxury
   Zámková dlažba catalog page (products-new.html)
   ===================================================== */

/* --- Design Tokens ---------------------------------- */
:root {
  --gold: #C8A84B;
  --gold-light: #E2C97E;
  --dark: #0D1117;
  --navy: #111827;
  --mid: #1F2937;
  --light-bg: #F7F5F0;
  --text-muted: #6B7280;
  --white: #ffffff;
}

/* Override .products-page from home.css / products-new.css */
.products-page {
  padding: 0;
  background: var(--light-bg);
  min-height: calc(100vh - 64px);
}

/* =====================================================
   PAGE LAYOUT — Two Column with Sidebar
   ===================================================== */
.products-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 100%;
  min-height: calc(100vh - 64px);
  background: var(--light-bg);
}

/* =====================================================
   LEFT SIDEBAR
   ===================================================== */
.products-sidebar {
  background: var(--navy);
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.products-sidebar::-webkit-scrollbar { width: 4px; }
.products-sidebar::-webkit-scrollbar-track { background: transparent; }
.products-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
}

.sidebar-group { margin-top: 0; }

.sidebar-group-label {
  padding: 1.25rem 1.5rem 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
}

.sidebar-product-list { list-style: none; margin: 0; padding: 0; }

.sidebar-product-link {
  display: block;
  padding: 0.625rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
}

.sidebar-product-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border-left-color: rgba(200,168,75,0.5);
}

.sidebar-product-link.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(200,168,75,0.08);
  font-weight: 500;
}

/* Manuály card */
.sidebar-manual-card {
  padding: 0 0.875rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-manual-group {
  padding: 0 0.875rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-manual-group-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.71rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(200, 168, 75, 0.6);
  padding: 0.6rem 0.875rem 0.5rem;
}

.sidebar-manual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.52rem 0.875rem;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-manual-row:hover {
  background: rgba(200, 168, 75, 0.1);
  color: #C8A84B;
  transform: translateX(2px);
}

.sidebar-manual-row svg {
  color: rgba(200, 168, 75, 0.4);
  flex-shrink: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sidebar-manual-row:hover svg {
  color: #C8A84B;
  transform: translateX(2px);
}

.sidebar-manual-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.875rem;
  background: rgba(200, 168, 75, 0.08);
  border: 1px solid rgba(200, 168, 75, 0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-manual-link:hover {
  background: rgba(200, 168, 75, 0.16);
  border-color: rgba(200, 168, 75, 0.55);
  transform: translateX(2px);
}

.sidebar-manual-icon {
  width: 30px;
  height: 30px;
  background: rgba(200, 168, 75, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8A84B;
  flex-shrink: 0;
}

.sidebar-manual-text {
  flex: 1;
  min-width: 0;
}

.sidebar-manual-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #C8A84B;
  display: block;
  line-height: 1.2;
}

.sidebar-manual-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.38);
  display: block;
  margin-top: 2px;
}

.sidebar-manual-arrow {
  color: rgba(200, 168, 75, 0.45);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-manual-link:hover .sidebar-manual-arrow {
  color: #C8A84B;
  transform: translateX(2px);
}

.sidebar-cta {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-cta-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-cta-link:hover { color: var(--gold-light); }
.sidebar-cta-link svg { flex-shrink: 0; }

/* =====================================================
   RIGHT MAIN AREA
   ===================================================== */
.products-main-area {
  background: var(--light-bg);
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  min-width: 0;
}

/* Reset section from home.css / products-new.css */
.products-main-area .products-section {
  padding: 0;
  background: transparent;
  max-width: 100%;
  margin: 0;
}

.products-main-area .products-section-inner {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.products-page-header { margin-bottom: 2.5rem; }

.products-breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.products-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.products-breadcrumb a:hover { color: var(--gold); }
.products-breadcrumb .bc-sep { color: var(--text-muted); margin: 0 0.1rem; }

/* Override home.css + products-new.css title */
.products-main-area .products-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.products-main-area .products-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.75rem;
}

.products-main-area .products-section-lead {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

/* =====================================================
   FILTER / SORT BAR
   ===================================================== */
.products-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: 6px;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.products-count {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
}

.view-toggle { display: flex; gap: 0.5rem; }

.view-toggle-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
  padding: 0;
}

.view-toggle-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.view-toggle-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

/* =====================================================
   CATEGORY TABS  (Naše produkty / Produkty partnerov)
   ===================================================== */
.dlazba-category-tabs {
  border-bottom: 2px solid rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.dlazba-category-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dlazba-category-tabs-nav li { margin: 0; }

.dlazba-category-tab {
  display: block;
  padding: 0.85rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dlazba-category-tab:hover { color: var(--navy); }

.dlazba-category-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.dlazba-category-panel { display: none; }
.dlazba-category-panel.active { display: block; }

.dlazba-panel-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.925rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* =====================================================
   PARTNER SECTION
   ===================================================== */
.partners-products-wrapper { margin-top: 0; }

.partner-block { margin-bottom: 3rem; }
.partner-block:last-child { margin-bottom: 0; }

.partner-block-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* =====================================================
   PRODUCT GRID
   ===================================================== */
.products-main-area .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

/* "Naše produkty" has only 2 cards — don't stretch too wide */
#panel-nase-produkty .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  max-width: 700px;
}

.product-card-wrapper { list-style: none; }

/* =====================================================
   PRODUCT CARD
   ===================================================== */
.products-main-area .product-card {
  display: block;
  background: var(--white);
  border-radius: 0 12px 12px 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  border: none;
}

.products-main-area .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: transparent;
}

/* Image wrapper */
.product-card-image-wrap {
  display: block;
  height: 200px;
  overflow: hidden;
  background: #ECEAE5;
  position: relative;
}

/* Placeholder for cards without images (Naše produkty) */
.product-card-image-wrap:not(:has(img)),
.product-card-image-wrap:has(img[src=""]) {
  background: var(--navy);
}

/* Decorative pattern for placeholder image area */
#panel-nase-produkty .product-card-image-wrap {
  background: linear-gradient(135deg, var(--navy) 0%, var(--mid) 60%, #2D3748 100%);
}

#panel-nase-produkty .product-card-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(200,168,75,0.05) 20px,
    rgba(200,168,75,0.05) 21px
  );
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.products-main-area .product-card:hover .product-card-image {
  transform: scale(1.06);
}

/* Hover overlay */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  pointer-events: none;
}

.products-main-area .product-card:hover .product-card-overlay { opacity: 1; }

.product-card-overlay-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease 0.05s;
}

.products-main-area .product-card:hover .product-card-overlay-label { opacity: 1; }

/* Card body */
.product-card-body { padding: 1rem 1.25rem 1.25rem; }

.product-card-category {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

/* Override products-new.css .product-card-name */
.products-main-area .product-card-name {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 0;
  padding: 0;
}

.product-card-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--gold);
  transition: gap 0.2s ease;
}

.products-main-area .product-card:hover .product-card-cta { gap: 0.65rem; }

/* Gold accent bar */
.product-card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 80%);
}

/* "Novinka" badge */
.product-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--dark);
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 3px;
}

/* =====================================================
   LIST VIEW  (.products-grid.list-view)
   ===================================================== */
.products-main-area .products-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

#panel-nase-produkty .products-grid.list-view {
  max-width: 100%;
}

.products-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
  border-radius: 6px;
  align-items: stretch;
}

.products-grid.list-view .product-card-image-wrap {
  width: 120px;
  height: auto;
  min-height: 88px;
  flex-shrink: 0;
  border-radius: 6px 0 0 6px;
}

/* Placeholder card (no image) in list view */
.products-grid.list-view #panel-nase-produkty .product-card-image-wrap {
  width: 80px;
  min-height: 88px;
}

.products-grid.list-view .product-card-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.25rem;
  flex: 1;
  flex-wrap: wrap;
}

.products-grid.list-view .product-card-category {
  display: none;
}

.products-grid.list-view .product-card-name {
  font-size: 1.1rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.products-grid.list-view .product-card-cta {
  margin-top: 0;
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease, gap 0.2s ease;
}

.products-grid.list-view .product-card:hover .product-card-cta {
  opacity: 1;
  gap: 0.65rem;
}

.products-grid.list-view .product-card-overlay {
  display: none;
}

.products-grid.list-view .product-card-accent {
  width: 3px;
  height: auto;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 80%);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 0;
}

/* =====================================================
   MOBILE MANUAL BANNER / GROUP
   ===================================================== */
.mobile-manual-banner,
.mobile-manuals-group {
  display: none;
}

@media (max-width: 768px) {
  .mobile-manual-banner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    margin-bottom: 1.25rem;
    background: #111827;
    border: 1px solid rgba(200, 168, 75, 0.3);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .mobile-manual-banner:hover,
  .mobile-manual-banner:active {
    background: #1a2438;
    border-color: rgba(200, 168, 75, 0.6);
  }

  .mobile-manual-banner-icon {
    width: 36px;
    height: 36px;
    background: rgba(200, 168, 75, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C8A84B;
    flex-shrink: 0;
  }

  .mobile-manual-banner-text {
    flex: 1;
    min-width: 0;
  }

  .mobile-manual-banner-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #C8A84B;
    line-height: 1.2;
  }

  .mobile-manual-banner-sub {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
  }

  .mobile-manual-banner-arrow {
    color: rgba(200, 168, 75, 0.5);
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .mobile-manual-banner:hover .mobile-manual-banner-arrow {
    color: #C8A84B;
    transform: translateX(3px);
  }

  /* Grouped manuals block */
  .mobile-manuals-group {
    display: block;
    margin-bottom: 1.25rem;
    background: #111827;
    border: 1px solid rgba(200, 168, 75, 0.3);
    border-radius: 10px;
    overflow: hidden;
  }

  .mobile-manuals-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.125rem 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(200, 168, 75, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-manuals-links {
    display: flex;
    flex-direction: column;
  }

  .mobile-manual-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.125rem;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.18s ease, color 0.18s ease;
  }

  .mobile-manual-row + .mobile-manual-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-manual-row:hover,
  .mobile-manual-row:active {
    background: rgba(200, 168, 75, 0.08);
    color: #C8A84B;
  }

  .mobile-manual-row svg {
    color: rgba(200, 168, 75, 0.4);
    flex-shrink: 0;
    transition: color 0.18s ease, transform 0.18s ease;
  }

  .mobile-manual-row:hover svg {
    color: #C8A84B;
    transform: translateX(2px);
  }
}

/* =====================================================
   SCROLL ANIMATION
   ===================================================== */
.product-card-wrapper {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-card-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   MOBILE — max-width: 768px
   ===================================================== */
@media (max-width: 768px) {
  .products-page-layout { grid-template-columns: 1fr; }

  .products-sidebar {
    position: static;
    height: auto;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0.75rem 1rem;
    flex-direction: row;
    gap: 0.5rem;
    top: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products-sidebar::-webkit-scrollbar { display: none; }

  .sidebar-header,
  .sidebar-group-label,
  .sidebar-cta,
  .sidebar-manual-card { display: none; }

  .sidebar-group { display: contents; }
  .sidebar-product-list { display: contents; }
  .sidebar-product-list li { display: inline-block; flex-shrink: 0; }

  .sidebar-product-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    border: 1px solid transparent;
    border-left: 1px solid transparent;
    white-space: nowrap;
    font-size: 0.85rem;
    width: auto;
  }

  .sidebar-product-link:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(200,168,75,0.4);
    border-left-color: rgba(200,168,75,0.4);
  }

  .sidebar-product-link.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    border-left-color: var(--gold);
  }

  .products-main-area { padding: 1.5rem 1rem; }

  .products-main-area .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  #panel-nase-produkty .products-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .product-card-image-wrap { height: 160px; }
}

@media (max-width: 400px) {
  .products-main-area .products-grid { grid-template-columns: 1fr; }
}
