/* ZDrive Tabs Clean Flat Design */

.zdrive-product-tabs {
  margin-top: 50px;
  padding: 0 60px;
  font-family: 'Barlow', sans-serif;
  color: #222;
}
@media (max-width:768px) {
  .zdrive-product-tabs {
    padding: 0 20px;
  }
}

/* Tabs Nav */
.zdrive-tabs-nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.zdrive-tab-btn {
  background: #f7f7f7;
  border: 1px solid #ddd;
  padding: 10px 20px;
  color: #444;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  border-radius: 0;
}
.zdrive-tab-btn:hover {
  color: #AC8510;
  border-color: #AC8510;
  background: #fff;
}
.zdrive-tab-btn.active {
  background: #AC8510;
  color: #fff;
  border-color: #AC8510;
}

/* Panels container */
.zdrive-tabs-panels {
  padding: 24px 30px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 0;
}
@media (max-width:768px) {
  .zdrive-tabs-panels {
    padding: 18px 16px;
  }
}

/* Panel visibility */
.zdrive-tab-panel { display: none; }
.zdrive-tab-panel.active {
  display: block;
  animation: fadein .35s ease;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Content */
.zdrive-tab-inner { text-align: left; }

.zdrive-image-wrap {
  text-align: center;
}
.zdrive-image-wrap img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform .25s ease;
  border-radius: 0;
}
.zdrive-image-wrap img:hover {
  transform: scale(1.02);
}

.zdrive-desc-wrap {
  line-height: 1.6;
  color: #333;
  text-align: left;
}

/* Table wrap */
.zdrive-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  text-align: left;
  display: block;
  margin: 0;
}

.zdrive-kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0;
  text-align: left;
}
.zdrive-kv-table th,
.zdrive-kv-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e9e9e9;
  text-align: left;
  vertical-align: top;
}
.zdrive-kv-table th {
  width: 35%;
  background: #fafafa;
  font-weight: 700;
  color: #000;
}
.zdrive-kv-table td {
  width: 65%;
}
.zdrive-kv-table tr:hover td {
  background: #fbfbfb;
}

/* Empty state */
.zdrive-empty {
  color: #777;
  padding: 12px 8px;
  font-style: italic;
}

/* Responsive tabs */
@media (max-width:768px) {
  .zdrive-tabs-nav {
    flex-direction: column;
    gap: 6px;
  }
  .zdrive-tab-btn {
    text-align: left;
    border-radius: 0;
    padding: 10px 14px;
  }
}

/* Download button */
.zdrive-download-test-btn {
  display: inline-block;
  background-color: #AC8510;
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  margin-top: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.zdrive-download-test-btn:hover {
  opacity: 0.95;
  color: #ffffff;
}

/* Specifications accordion */
.zdrive-spec-variant,
.zdrive-test-variant-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.zdrive-spec-toggle,
.zdrive-test-variant-toggle {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zdrive-spec-icon::before,
.zdrive-test-variant-icon::before {
  content: '+';
  font-weight: 700;
}

.zdrive-spec-variant.active .zdrive-spec-icon::before,
.zdrive-test-variant-item.active .zdrive-test-variant-icon::before {
  content: '-';
}

.zdrive-spec-body,
.zdrive-test-variant-body-frontend {
  display: none;
  padding: 10px 0 0;
}

.zdrive-spec-variant.active .zdrive-spec-body,
.zdrive-test-variant-item.active .zdrive-test-variant-body-frontend {
  display: block;
}

/* iOS scroll optimization */
@media (max-width: 768px) {
  .zdrive-tab-panel .zdrive-tab-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ======================================================
   ZDRIVE – Variant Accordion Color Control
   Normal: Black text
   Hover / Active: Brand color + White text
   ====================================================== */

/* =========================
   NORMAL STATE
   ========================= */
.zdrive-spec-toggle,
.zdrive-test-variant-toggle {
    background: #f9f9f9;
    color: #000; /* black text */
    border: 1px solid #eee;
}

/* Icons default */
.zdrive-spec-icon::before,
.zdrive-test-variant-icon::before {
    color: #000;
}

/* =========================
   HOVER STATE
   ========================= */
.zdrive-spec-toggle:hover,
.zdrive-test-variant-toggle:hover {
    background: #AC8510;
    color: #fff;
    border-color: #AC8510;
}

/* Icons on hover */
.zdrive-spec-toggle:hover .zdrive-spec-icon::before,
.zdrive-test-variant-toggle:hover .zdrive-test-variant-icon::before {
    color: #fff;
}

/* =========================
   ACTIVE (OPENED) STATE
   ========================= */
.zdrive-spec-variant.active .zdrive-spec-toggle,
.zdrive-test-variant-item.active .zdrive-test-variant-toggle {
    background: #AC8510;
    color: #fff;
    border-color: #AC8510;
}

/* Icons when active */
.zdrive-spec-variant.active .zdrive-spec-icon::before,
.zdrive-test-variant-item.active .zdrive-test-variant-icon::before {
    color: #fff;
}
