/* =====================================================
   tvarnice-detail.css — Industrial Luxury
   Shared product detail styles for DT.html / DT30.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 padding from 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;
  min-height: calc(100vh - 64px);
}

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

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

.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: 2.5rem clamp(1.5rem, 4vw, 3rem) 5rem;
  min-width: 0;
}

/* Override .product-page from product-page.css */
.product-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}

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

.product-breadcrumb a:hover { color: var(--gold); }

.product-breadcrumb span {
  color: var(--text-muted);
  margin: 0 0.1rem;
}

.product-breadcrumb .current {
  color: var(--navy);
  font-weight: 500;
}

/* =====================================================
   PRODUCT HERO
   ===================================================== */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
  align-items: start;
}

/* IMAGE */
.product-hero-image {
  background: var(--white);
  border-radius: 0 16px 16px 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.1);
  position: relative;
  max-width: 100%;
  border: none;
}

.product-hero-image::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 72px;
  background: var(--gold);
  border-radius: 0 0 2px 0;
}

.product-hero-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* INFO COLUMN */
.product-hero-body { padding-top: 0.25rem; }

.product-feature-icons { display: none; }

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

/* Override product-page.css .product-page-title */
.product-page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.0;
  letter-spacing: 0.01em;
}

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

/* Override .product-page-subtitle */
.product-page-subtitle {
  display: none;
}

/* Override .product-page-description */
.product-page-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.975rem;
  color: #4B5563;
  line-height: 1.65;
  margin: 1.25rem 0 1.5rem;
}

.product-page-description p { margin: 0 0 0.6rem; }
.product-page-description p:last-child { margin-bottom: 0; }

/* Quick spec chips */
.product-specs-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
}

.spec-chip {
  background: var(--white);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.spec-chip:hover { border-bottom-color: var(--gold); }

.spec-chip-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.spec-chip-value {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
}

/* CTA button */
.product-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: var(--navy);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease, gap 0.2s ease;
}

.product-detail-cta:hover {
  background: var(--mid);
  gap: 0.85rem;
}

/* =====================================================
   TABS
   ===================================================== */
.product-tabs {
  border-bottom: 2px solid rgba(0,0,0,0.08);
  margin-bottom: 0;
  background: transparent;
}

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

.product-tabs-nav li { margin: 0; }

.product-tabs-nav a {
  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;
}

.product-tabs-nav a:hover { color: var(--navy); }

.product-tabs-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 500;
}

/* =====================================================
   TAB PANELS
   ===================================================== */
.product-tab-panel {
  padding: 2rem 0 0;
  display: none;
}

.product-tab-panel.active { display: block; }

.tab-placeholder {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem 0;
}

/* =====================================================
   SPEC CONTENT WRAPPER
   ===================================================== */
.product-spec-content {
  display: block;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  margin-top: 0;
}

.product-spec-content--full { display: block; }
.product-spec-content--stack { display: block; }

.product-spec-tables-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* =====================================================
   SPEC TABLE — redesigned
   ===================================================== */
.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: none;
}

/* Header */
.product-spec-table thead tr {
  background: var(--navy);
}

.product-spec-table thead th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--gold);
  width: auto;
  background: transparent;
}

.product-spec-table thead th .th-dimension {
  line-height: 1.3;
}

/* Body rows */
.product-spec-table tbody tr {
  transition: background 0.15s ease;
  border-bottom: 1px solid #F0EDE8;
}

.product-spec-table tbody tr:last-child { border-bottom: none; }

.product-spec-table tbody tr:hover { background: #FAF8F4; }

.product-spec-table tbody tr:nth-child(even) { background: #FDFCF9; }
.product-spec-table tbody tr:nth-child(even):hover { background: #FAF8F4; }

.product-spec-table tbody td {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 14px 18px;
  vertical-align: middle;
  border: none;
  border-bottom: none;
}

/* First column value — slightly bolder */
.product-spec-table tbody td:first-child {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* Dimension column */
.product-spec-table tbody td:nth-child(3) {
  color: var(--mid);
  font-size: 0.88rem;
}

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

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

  .product-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-hero-image img {
    max-height: 280px;
  }

  .product-page-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .spec-chip { padding: 0.6rem 0.85rem; }
  .spec-chip-value { font-size: 0.85rem; }

  .product-spec-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-spec-table {
    min-width: 520px;
    font-size: 0.82rem;
  }

  .product-spec-table thead th,
  .product-spec-table tbody td {
    padding: 11px 12px;
  }

  .product-spec-table thead th { font-size: 0.65rem; }

  .product-breadcrumb {
    font-size: 0.75rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .products-main-area { padding: 1rem 0.75rem 2.5rem; }

  .product-hero-image img { max-height: 220px; }

  .product-spec-table { min-width: 460px; }

  .product-spec-table thead th,
  .product-spec-table tbody td { padding: 9px 10px; }
}
