/* ═══════════════════════════════════════════════════════════════
   GW Joiners – Door Product Grid & Tabbed Modal Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Category labels ───────────────────────────────────────────── */
.door-category-label {
  font-family: 'andlso', 'COM4t Fine Regular', Helvetica, Arial, sans-serif;
  font-size: 24px;
  color: #ef3f03;
  margin: 36px 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #ef3f03;
}

/* ── Grid ──────────────────────────────────────────────────────── */
.door-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
}

/* ── Card ──────────────────────────────────────────────────────── */
.door-card {
  width: 170px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s;
  overflow: hidden;
}
.door-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transform: translateY(-4px);
  border-color: #ef3f03;
}
.door-card-img {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  overflow: hidden;
  padding: 8px;
}
.door-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.door-card-info {
  padding: 10px;
  border-top: 2px solid #ef3f03;
}
.door-card-info h3 {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.door-card-tag {
  font-size: 11px;
  color: #777;
  display: inline-block;
}

/* ── Modal overlay ─────────────────────────────────────────────── */
.door-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.75);
  z-index: 10000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.door-modal-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 20px;
}

/* ── Modal box ─────────────────────────────────────────────────── */
.door-modal {
  background: #fff;
  border-radius: 8px;
  max-width: 960px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 60px rgba(0,0,0,.45);
  overflow: hidden;
  border-top: 4px solid #ef3f03;
}
.door-modal-close {
  position: absolute;
  top: 0; right: 0;
  background: #ef3f03;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 0 8px;
  transition: background .2s;
}
.door-modal-close:hover {
  background: #c73300;
}

/* ── Tab navigation bar ────────────────────────────────────────── */
.door-modal-tabs {
  display: flex;
  background: #1a1a1a;
  padding: 0;
  margin: 0;
}
.door-tab {
  background: none;
  border: none;
  color: #999;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 30px;
  cursor: pointer;
  transition: color .2s, background .2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'andlso', 'COM4t Fine Regular', Helvetica, Arial, sans-serif;
  border-bottom: 3px solid transparent;
}
.door-tab:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}
.door-tab.active {
  color: #fff;
  background: rgba(239,63,3,.15);
  border-bottom-color: #ef3f03;
}

/* ── Tab panels ────────────────────────────────────────────────── */
.door-tab-panel {
  display: none;
}
.door-tab-panel.active {
  display: block;
}

/* ── Modal body layout (Overview + Specs tabs) ─────────────────── */
.door-modal-body {
  display: flex;
  gap: 28px;
  padding: 32px;
}
.door-modal-image {
  flex: 0 0 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f4f4f4;
  border-radius: 6px;
  padding: 16px;
  min-height: 380px;
  border: 1px solid #e8e8e8;
}
.door-modal-image img {
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
}
.door-modal-details {
  flex: 1;
  min-width: 0;
}
.door-modal-details h2 {
  font-family: 'andlso', 'COM4t Fine Regular', Helvetica, Arial, sans-serif;
  font-size: 26px;
  color: #1a1a1a;
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.door-modal-subtitle {
  font-size: 13px;
  color: #ef3f03;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: block;
}
.door-modal-desc {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Features list ─────────────────────────────────────────────── */
.door-modal-features {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.door-modal-features li {
  font-size: 14px;
  color: #333;
  padding: 6px 0 6px 28px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid #f0f0f0;
}
.door-modal-features li:last-child {
  border-bottom: none;
}
.door-modal-features li::before {
  content: '\2713';
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  position: absolute;
  left: 0;
  top: 7px;
  background: #ef3f03;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Specs table ───────────────────────────────────────────────── */
.door-modal-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}
.door-modal-specs th,
.door-modal-specs td {
  padding: 10px 14px;
  text-align: left;
}
.door-modal-specs th {
  color: #555;
  font-weight: 700;
  width: 40%;
  background: #f7f7f7;
  border-bottom: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
}
.door-modal-specs td {
  color: #222;
  font-weight: 600;
  border-bottom: 1px solid #e8e8e8;
}
.door-modal-specs tr:last-child th,
.door-modal-specs tr:last-child td {
  border-bottom: none;
}
.door-modal-specs tr:nth-child(even) td {
  background: #fcfcfc;
}

/* ── CTA button ────────────────────────────────────────────────── */
.door-modal-btn-contact {
  display: inline-block;
  background: #ef3f03;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 3px 12px rgba(239,63,3,.35);
}
.door-modal-btn-contact:hover {
  background: #c73300;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(239,63,3,.45);
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .door-modal-body {
    flex-direction: column;
  }
  .door-modal-image {
    flex: none;
    min-height: 220px;
  }
  .door-card {
    width: 140px;
  }
  .door-tab {
    padding: 12px 14px;
    font-size: 11px;
    letter-spacing: 0;
  }
  .door-tab-iframe-wrap {
    height: 450px;
  }
  .door-modal-details h2 {
    font-size: 20px;
  }
}
