/* Hardware shop + cart + header tools — Triforce */

/* ── Header: logo | nav | tools (no absolute-center overflow) ───────────── */
.header-area .header-area__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-area .header-area__inner > *:first-child {
  margin-inline-end: 0;
}

.header-area .header__logo {
  flex: 0 0 auto;
  z-index: 2;
}

.header-area .header__nav {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.header-area .header__nav .main-menu > ul {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
}
/*
.header-area .header__nav .main-menu > ul > li > a {
  padding-inline: 10px;
  white-space: nowrap;
  font-size: 18px;
}
*/
.header__tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  margin-inline-start: auto;
  z-index: 2;
}

.header__tools .header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
}

.header__tools .header-search img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.header__tools .header__button {
  flex-shrink: 0;
}

.header__tools .header__button .wc-btn-primary {
  white-space: nowrap;
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}

.header-cart:hover {
  color: var(--primary, #121212);
  background: rgba(18, 18, 18, .06);
}

.header-cart i {
  font-size: 18px;
  line-height: 1;
}

.header-cart .cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header-cart .cart-count.show {
  display: inline-flex;
}

@media only screen and (min-width: 1200px) and (max-width: 1499px) {
  .header-area .header-area__inner {
    gap: 8px;
  }

  .header-area .header__nav .main-menu > ul > li > a {
    padding-inline: 7px;
    font-size: 16px;
  }

  .header__tools {
    gap: 4px;
  }

  .header__tools .header__button .wc-btn-primary {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media only screen and (max-width: 1199px) {
  .header__tools .header__button {
    display: none;
  }

  .header__tools {
    margin-inline-end: 4px;
  }
}

/* ── Hardware shop page ─────────────────────────────────────────────────── */
.hw-shop,
.hw-cart {
  padding: 120px 0 80px;
}

@media only screen and (max-width: 1919px) {
  .hw-shop,
  .hw-cart {
    padding-top: 100px;
  }
}

@media only screen and (max-width: 767px) {
  .hw-shop,
  .hw-cart {
    padding-top: 88px;
    padding-bottom: 56px;
  }
}

.hw-shop .breadcrumb a {
  text-decoration: none;
}

.hw-shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: end;
  margin-bottom: 28px;
}

.hw-shop-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.hw-shop-hero p {
  margin: 0;
  max-width: 640px;
  opacity: .85;
  line-height: 1.55;
}

.hw-shop-hero .wc-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.hw-shop-hero .wc-btn-group .wc-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .hw-shop-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hw-shop-hero .wc-btn-group {
    justify-content: flex-start;
  }
}

.hw-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 16px;
  align-items: start;
  margin-bottom: 24px;
}

.hw-toolbar .hw-search {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  font-size: 14px;
}

.hw-toolbar .hw-search:focus {
  outline: 2px solid rgba(11, 95, 255, .35);
  outline-offset: 1px;
  border-color: transparent;
}

.hw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #121212;
}

.hw-filter {
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.2;
  min-height: 36px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.hw-filter.active,
.hw-filter:hover {
  background: #303030;
  color: #fff;
  border-color: transparent;
}

@media (max-width: 767px) {
  .hw-toolbar {
    grid-template-columns: 1fr;
  }
}

.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1199px) {
  .hw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .hw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .hw-grid {
    grid-template-columns: 1fr;
  }
}

.hw-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow .2s, transform .2s;
}

.hw-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.hw-card .thumb {
  aspect-ratio: 1.15 / 1;
  background: #f8f9fb;
  display: grid;
  place-items: center;
  padding: 16px;
}

.hw-card .thumb img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.hw-card .body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hw-card .cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
}

.hw-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.hw-card .desc {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  flex: 1;
  line-height: 1.45;
}

.hw-card .actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.hw-card .actions .wc-btn {
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  width: 100%;
}

.hw-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: #6b7280;
}

.hw-brochure {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #f7f8fa;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
}

.hw-brochure .wc-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* ── Cart page ──────────────────────────────────────────────────────────── */
.hw-cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.hw-cart-table th,
.hw-cart-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  text-align: left;
  vertical-align: middle;
}

.hw-cart-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f7f8fa;
}

.hw-cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 260px;
}
.hw-cart-item div{
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 6px;
}

.hw-cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: 8px;
}
 
.hw-qty {
  width: 64px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 8px;
  text-align: center;
}

.hw-cart-summary {
  margin-top: 20px;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.hw-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hw-cart-actions .wc-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
