/* =====================================================
   products-tvarnice.css — Industrial Luxury Design
   Betónové tvárnice product catalog page
   ===================================================== */

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

/* =====================================================
   PRODUCTS PAGE — base reset (overrides home.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: 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 ───────────────────────────────── */
.sidebar-header {
  padding: 1.4rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

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

/* ── Category group ───────────────────────────────── */
.sidebar-group {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-group-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.25rem 0.55rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  color: rgba(255,255,255,0.38);
}

.sidebar-group-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.06);
}

.sidebar-group--active .sidebar-group-label {
  color: var(--gold);
}

.sidebar-group--active .sidebar-group-icon {
  background: rgba(200,168,75,0.15);
}

.sidebar-group-text { flex: 1; }

.sidebar-count {
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0;
  font-family: 'DM Sans', sans-serif;
  text-transform: none;
}

.sidebar-group--active .sidebar-count {
  background: rgba(200,168,75,0.18);
  color: var(--gold-light);
}

/* ── Product links ────────────────────────────────── */
.sidebar-product-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem;
}

.sidebar-product-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem 0.5rem 2.1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.14s ease;
  position: relative;
}

.sidebar-product-link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
  transition: background 0.14s;
}

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

.sidebar-product-link:hover::before {
  background: rgba(200,168,75,0.6);
}

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

.sidebar-product-link.active::before {
  background: var(--gold);
}

/* Arrow-style "go to" links */
.sidebar-product-link--goto {
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.32);
  font-style: normal;
}

.sidebar-product-link--goto::before { display: none; }

.sidebar-product-link--goto:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.03);
  border-left-color: transparent;
}

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

.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 styles coming from home.css */
.products-main-area .products-section {
  padding: 0;
  background: transparent;
  max-width: 100%;
}

.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-section-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 0 0 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;
}

/* Override home.css .products-section-lead */
.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: 2rem;
  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);
}

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

.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-left: none;
}

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

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

.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: 1.25rem 1.5rem 1.5rem;
}

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

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

.product-card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.product-card-meta span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

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

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

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

.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: 140px;
  height: auto;
  min-height: 96px;
  flex-shrink: 0;
  border-radius: 6px 0 0 6px;
}

.products-grid.list-view .product-card-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  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-meta {
  gap: 1.25rem;
  margin-bottom: 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;
}

/* =====================================================
   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);
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  text-align: center;
  gap: 1rem;
}

.products-empty svg {
  opacity: 0.4;
}

/* =====================================================
   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;
    display: flex;
    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;
  }

  .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);
    font-weight: 500;
  }

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

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

@media (min-width: 769px) and (max-width: 1100px) {
  .products-main-area .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
