/* ═══════════════════════════════════════════════════════
   accessories.css  —  follows the DragLab design system
   primary: var(--primary-Color) #293C95
   light bg: #ECEDF3
   font: 'Aptos', sans-serif (global reset)
═══════════════════════════════════════════════════════ */

/* ── Hero (reuses .slide from Downloads.css / shared) ── */
.slide {
  position: relative;
  overflow: hidden;
  display: flex;
  height: 80vh;
  justify-content: center;
  align-items: center;
}
.slide img {
  height: 100%;
  width: calc(100% - 20px);
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 0;
}
.slide-text {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  z-index: 2;
  align-items: center;
  padding: 0 20%;
  text-align: center;
}
.slide-text h1 {
  font-weight: 600;
  font-size: 60px;
  line-height: 150%;
  text-transform: uppercase;
  color: var(--white-text-Color);
}
.slide-text p {
  font-weight: 500;
  font-size: 35px;
  line-height: 110%;
  color: var(--white-text-Color);
}
@media (max-width: 790px) {
  .slide          { height: 50vh; }
  .slide-text h1  { font-size: 24px; line-height: 125%; }
  .slide-text p   { font-size: 18px; }
  .slide img      { width: calc(100% - 10px); left: 5px; }
}

/* ── Filter bar ─────────────────────────────────────── */
.acc-filter-bar {
  background-color: #ECEDF3;
  padding: 18px 5%;
  border-bottom: 2px solid var(--primary-Color);
}
.acc-filter-inner {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.acc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acc-filter-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-Color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.acc-filter-group select {
  padding: 8px 36px 8px 12px;
  border: 2px solid var(--primary-Color);
  border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23293C95'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-Color);
  min-width: 210px;
  cursor: pointer;
}
.acc-filter-group select:focus {
  outline: 2px solid var(--primary-Color);
  outline-offset: 1px;
}

.acc-filter-btns {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
}
.acc-btn-apply {
  padding: 9px 28px;
  background-color: var(--primary-Color);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}
.acc-btn-apply:hover { background-color: #18235e; }

.acc-btn-reset {
  padding: 9px 20px;
  background-color: transparent;
  color: var(--primary-Color);
  border: 2px solid var(--primary-Color);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  display: inline-block;
}
.acc-btn-reset:hover {
  background-color: var(--primary-Color);
  color: #fff;
}

@media (max-width: 640px) {
  .acc-filter-bar   { padding: 14px; }
  .acc-filter-group select { min-width: 0; width: 100%; }
  .acc-filter-inner { gap: 0.7rem; }
}

/* ── List section ───────────────────────────────────── */
.acc-list-section {
  width: 90%;
  margin: 30px auto 60px;
}

/* Empty state */
.acc-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 18px;
}

/* List container */
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Header row */
.acc-list-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 8px 20px;
  background-color: var(--primary-Color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.acc-hdr-img    { flex-shrink: 0; width: 70px; }
.acc-hdr-name   { flex: 1 1 200px; min-width: 0; }
.acc-hdr-artnr  { flex: 0 0 140px; }
.acc-hdr-models { flex: 1 1 240px; min-width: 0; }
.acc-hdr-action { flex-shrink: 0; width: 100px; }

@media (max-width: 860px) {
  .acc-hdr-models { display: none; }
}
@media (max-width: 560px) {
  .acc-list-header { display: none; }
}

/* Each row */
.acc-item {
  background-color: #ECEDF3;
  padding: 15px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow 0.2s;
}
.acc-item:hover {
  box-shadow: var(--shadow, 0px 4px 16px 0px #00000040);
}

/* Thumbnail */
.acc-item-img {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d4e8;
}
.acc-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Name + article */
.acc-item-info {
  flex: 1 1 200px;
  min-width: 0;
}
.acc-item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-Color);
  line-height: 1.3;
}

/* Article number */
.acc-item-artnr {
  flex: 0 0 140px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-Color);
}
.acc-item-artnr--empty { color: #aaa; font-weight: 400; }

/* Related models */
.acc-item-models {
  flex: 1 1 240px;
  min-width: 0;
}
.acc-item-models ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.acc-item-models li {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-Color);
  background: #fff;
  border: 1px solid #c1c8e4;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.4;
}
.acc-item-models span {
  color: #aaa;
  font-size: 13px;
}

/* View button */
.acc-item-action { flex-shrink: 0; }

.acc-view-btn {
  display: inline-block;
  padding: 8px 25px;
  background-color: var(--primary-Color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.acc-view-btn:hover { background-color: #18235e; }

/* Responsive */
@media (max-width: 860px) {
  .acc-item { flex-wrap: wrap; gap: 1rem; }
  .acc-item-models { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .acc-list-section { width: 95%; }
  .acc-item { padding: 12px; }
  .acc-item-img { width: 56px; height: 56px; }
  .acc-item-name { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════
   Detail page  (accessory-details.ejs)
═══════════════════════════════════════════════════════ */
.acc-detail-wrapper {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto 80px;
}

.acc-back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--primary-Color);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.acc-back-link:hover { color: #18235e; text-decoration: underline; }

.acc-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .acc-detail-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .acc-detail-wrapper { width: 95%; }
}

.acc-detail-img-wrap {
  background-color: #ECEDF3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.acc-detail-img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.acc-detail-info { padding-top: 0.5rem; }

.acc-detail-article {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.acc-detail-article span { color: var(--primary-Color); }

.acc-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-Color);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) { .acc-detail-title { font-size: 1.4rem; } }

.acc-detail-applicable h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-Color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-Color);
}
.acc-applicable-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-applicable-list > li > a {
  display: inline-block;
  padding: 6px 18px;
  background-color: var(--primary-Color);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.acc-applicable-list > li > a:hover { background-color: #18235e; }

.acc-model-sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-left: 12px;
}
.acc-model-sub-list li a {
  font-size: 12px;
  color: var(--primary-Color);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--primary-Color);
  border-radius: 20px;
  transition: background-color 0.2s, color 0.2s;
}
.acc-model-sub-list li a:hover {
  background-color: var(--primary-Color);
  color: #fff;
}

.acc-detail-desc {
  border-top: 2px solid var(--primary-Color);
  padding-top: 2rem;
}
.acc-detail-desc h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-Color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.acc-detail-desc-body {
  font-size: 16px;
  color: var(--black-color, #333);
  line-height: 1.8;
}
