/*
Theme Name:   TTSG
Theme URI:    https://ttsg.com/
Description:  TTSG Theme
Author:       Alen Kirn
Author URI:   https://20twentydesign.com
Template:     Avada
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  ttsg
*/

.hardware-products{
	padding-top: 100px;
}

/* GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* CARD */
.product-card {
  background: #fff;
  /* border-radius: 12px; */
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* IMAGE */
.product-card__media {
  position: relative;
  background: #f6f6f6;
}

.product-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* DOWNLOAD BUTTON */
.product-card__download-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
  background: #f47021;
  color: #fff;
  font-size: 28px;
  text-decoration: none !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.product-card:hover .product-card__download-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-card__download-btn:hover {
  background: #111;
}

/* BODY */
.product-card__body {
  padding: 18px 20px 22px;
}

/* TITLE */
.product-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

/* DESCRIPTOR LINE */
.product-card__descriptor {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

/* FUNCTIONS (Copy / Scan / Fax) */
.product-card__functions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* BADGES */
.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c9c9cb;
  background: #f2f2f2;
  color: #78797d;
  line-height: 1.2;
}

.badge--active {
  background: #111;
  color: #fff;
}

.badge--inactive {
  opacity: 0.3;
}

/* ======================================================
   FILTER BAR (BASE)
====================================================== */

.hardware-filters {
  position: relative; /* NEW */
  display: block; /* CHANGED: grid moves to inner track */
  padding: 28px 32px 20px;
  margin-bottom: 48px;
  background: #78797d;
}

/* ======================================================
   HORIZONTAL SCROLL TRACK (NEW)
====================================================== */

.hardware-filters__track {
  display: flex;
  gap: 40px;

  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;

  scrollbar-width: none;
}

.hardware-filters__track::-webkit-scrollbar {
  display: none;
}

/* ======================================================
   CUSTOM MINIMAL SCROLLBAR (NEW)
====================================================== */

.hardware-filters__scrollbar {
  width: 400px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 12px auto 0;
  position: relative;
}

.hardware-filters__thumb {
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  width: 80px;
  background: #ffffff;
  border-radius: 2px;
  transition: left 0.1s linear;
}

/* ======================================================
   MAIN TITLE
====================================================== */

.filter-title-main {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

/* ======================================================
   FILTER GROUP
====================================================== */

.filter-group {
  flex: 0 0 150px;
  max-width: 150px;
  min-width: 150px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
}

/* ======================================================
   FILTER OPTION (CUSTOM CHECKBOX)
====================================================== */

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  font-size: 13px;
  color: #e0e0e0;
  cursor: pointer;
  user-select: none;
}

/* Hide native checkbox */
.filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Label text + checkbox */
.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Custom checkbox box */
.filter-label::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid #8c8c8c;
  background: transparent;
  transition: all 0.2s ease;
}

/* Checked state */
.filter-option input:checked + .filter-label::before {
  background: #ffffff;
  border-color: #ffffff;
}

/* Hover */
.filter-option:hover .filter-label::before {
  border-color: #ffffff;
}

/* ======================================================
   FILTER COUNTS
====================================================== */

.filter-count {
  font-size: 12px;
  color: #a0a0a0;
}

/* ======================================================
   SPEED RANGE GROUP
====================================================== */

#speedRanges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.no-select {
  user-select: none;
}

.hardware-filters__thumb {
  cursor: grab;
}

.hardware-filters__thumb:active {
  cursor: grabbing;
}

/* ======================================================
   DIVIDER
====================================================== */

.filter-divider {
  flex: 0 0 1px;
  width: 1px;
  background: rgba(255,255,255,0.3);
  margin: 0 12px;
}


.filter-divider::after {
  content: "Additional";
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {
	.hardware-products{
		padding-top: 0px;
		width: 100% !important;
	}
	
	main#main{
		padding-top: 0px !important;
	}
	
  	.hardware-filters {
    	padding: 24px;
  	}

  	.hardware-filters__scrollbar {
    	width: 280px;
  	}

  	.hardware-filters__track {
     gap: 28px;
   	 grid-auto-columns: minmax(140px, 1fr);
  	}
}

.devices-tabs {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  border-bottom: 1px solid #e5e5e5;
}

.devices-tab {
  position: relative;
  padding: 12px 16px;
  cursor: pointer;

  font-size: 14px;
  font-weight: 600;
  color: #666;

  text-decoration: none !important;
  border-bottom: 3px solid transparent;

  transition: color 0.2s ease, border-color 0.2s ease;
}

.devices-tab:hover {
  color: #000;
}

/* ACTIVE STATE */
.devices-tab--active {
  color: #000;
  border-bottom-color: #f47021;
}
