/* MAAT Electronics Premium Catalog v2.6
   Final layer: only the .maat-v2 component; does not restyle WooCommerce/WoodMart globally.
   Reuses saved MAAT palette and the existing 42 local WebP assets. */
.maat-v2 {
  --maat-v26-soft:#f7faff;
  --maat-v26-edge:#e2eaf3;
  --maat-v26-shadow:0 5px 18px rgba(32,55,83,.075),0 1px 3px rgba(32,55,83,.035);
  --maat-v26-shadow-hover:0 11px 24px rgba(30,65,108,.13),0 3px 8px rgba(30,65,108,.055);
}
/* Premium category cards: 7 per desktop row, consistent image box, quiet shadows. */
.maat-v2:not(.maat-v2--dropdown) .maat-v2__cards {
  gap:14px!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
}
.maat-v2:not(.maat-v2--dropdown) .maat-v2__card {
  position:relative!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:space-between!important;
  min-width:0!important;min-height:157px!important;
  padding:16px 9px 13px!important;gap:7px!important;
  text-align:center!important;
  background:#fff!important;border:1px solid var(--maat-v26-edge)!important;
  border-radius:16px!important;box-shadow:var(--maat-v26-shadow)!important;
  transition:border-color .17s ease,box-shadow .17s ease,transform .17s ease,background .17s ease!important;
}
.maat-v2:not(.maat-v2--dropdown) .maat-v2__card-image {
  display:flex!important;width:100%!important;max-width:150px!important;
  height:92px!important;flex:0 0 92px!important;align-self:center!important;
  justify-content:center!important;align-items:center!important;margin:0!important;
}
.maat-v2:not(.maat-v2--dropdown) .maat-v2__card-image img {
  height:100%!important;width:100%!important;object-fit:contain!important;
  filter:none!important;transform:none!important;
}
.maat-v2:not(.maat-v2--dropdown) .maat-v2__card-text {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:34px!important;max-width:100%!important;
  font-family:inherit!important;font-size:clamp(11.5px,.87vw,14px)!important;
  font-weight:680!important;line-height:1.31!important;color:var(--maat-v2-ink)!important;
  hyphens:none!important;overflow-wrap:break-word!important;word-break:normal!important;
  margin:0!important;padding:0!important;
}
.maat-v2:not(.maat-v2--dropdown) .maat-v2__card:hover,
.maat-v2:not(.maat-v2--dropdown) .maat-v2__card:focus-visible {
  transform:translateY(-2px)!important;
  background:#fff!important;border-color:#b7d2eb!important;
  box-shadow:var(--maat-v26-shadow-hover)!important;
}
.maat-v2:not(.maat-v2--dropdown) .maat-v2__card[aria-expanded="true"] {
  transform:none!important;background:var(--maat-v2-tint)!important;
  border-color:var(--maat-v2-accent)!important;
  box-shadow:0 0 0 1px var(--maat-v2-accent),var(--maat-v26-shadow)!important;
}
.maat-v2:not(.maat-v2--dropdown) .maat-v2__card[aria-expanded="true"]:after {height:3px!important;bottom:0!important}
/* A single selected group replaces the repeated long three-column text lists. */
.maat-v2 .maat-v2__panel[hidden],
.maat-v2 .maat-v2__detail[hidden]{display:none!important}
.maat-v2 .maat-v2__panel {
  background:#fff!important;border:1px solid var(--maat-v26-edge)!important;
  border-top:3px solid var(--maat-v2-accent)!important;
  border-radius:17px!important;box-shadow:0 13px 34px rgba(30,62,94,.09)!important;
  padding:0!important;overflow:hidden!important;
}
.maat-v2 .maat-v2__panel-head {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:15px 19px 14px;border-bottom:1px solid var(--maat-v26-edge);
  background:linear-gradient(110deg,#fff 40%,#f8fbfe 100%);
}
.maat-v2 .maat-v2__panel-heading{min-width:0}
.maat-v2 .maat-v2__panel-kicker,
.maat-v2 .maat-v2__detail-kicker {
  display:block;color:var(--maat-v2-accent);letter-spacing:.085em;
  font-size:9.5px;line-height:1.3;font-weight:750;
}
.maat-v2 .maat-v2__panel-heading h2 {
  margin:3px 0 0!important;padding:0!important;color:var(--maat-v2-ink)!important;
  font-size:clamp(17px,1.3vw,22px)!important;line-height:1.3!important;font-weight:750!important;
}
.maat-v2 .maat-v2__panel-actions {display:flex;align-items:center;gap:12px;flex:0 0 auto}
.maat-v2 .maat-v2__all-link,.maat-v2 .maat-v2__detail-all {
  display:inline-flex;gap:8px;align-items:center;justify-content:center;
  padding:7px 11px;color:var(--maat-v2-accent)!important;
  border:1px solid #cfdfef;border-radius:8px;
  background:#fff;font-size:12px;font-weight:700;text-decoration:none!important;
  white-space:nowrap;
}
.maat-v2 .maat-v2__all-link:hover,.maat-v2 .maat-v2__detail-all:hover {
  background:var(--maat-v2-tint)!important;border-color:var(--maat-v2-accent)!important;
}
.maat-v2 .maat-v2__panel-close {
  flex:0 0 34px!important;width:34px!important;height:34px!important;
  border:1px solid var(--maat-v26-edge)!important;border-radius:8px!important;
  margin:0!important;background:#fff!important;font-size:23px!important;
}
.maat-v2 .maat-v2__panel-inner {
  display:grid!important;grid-template-columns:minmax(205px,23%) minmax(0,1fr) minmax(205px,20%)!important;
  gap:0!important;align-items:stretch!important;
  height:clamp(345px,25vw,415px)!important;max-height:415px!important;
  min-height:0!important;padding:11px!important;
}
.maat-v2 .maat-v2__rail {
  min-height:0!important;border:0!important;border-right:1px solid var(--maat-v26-edge)!important;
  padding:3px 11px 5px 1px!important;
}
.maat-v2 .maat-v2__rail-head {border-bottom:1px solid var(--maat-v26-edge)!important}
.maat-v2 .maat-v2__rail-title {
  padding:8px 10px 12px!important;color:#8290a1!important;
  text-transform:uppercase;font-size:10px!important;letter-spacing:.055em;
}
.maat-v2 .maat-v2__rail-items {flex:1 1 auto!important;overflow-y:auto!important;padding:8px 2px 8px 0!important}
.maat-v2 .maat-v2__rail-btn {
  display:flex!important;align-items:center!important;
  width:100%!important;min-height:37px!important;padding:9px 11px!important;
  margin:0 0 3px!important;border:1px solid transparent!important;
  border-radius:9px!important;font-size:12.2px!important;
  font-weight:580!important;color:#4b5b70!important;
  transition:background .14s,border-color .14s!important;
}
.maat-v2 .maat-v2__rail-btn:hover {
  background:var(--maat-v26-soft)!important;color:var(--maat-v2-accent)!important;
}
.maat-v2 .maat-v2__rail-btn.is-current {
  padding-left:11px!important;background:var(--maat-v2-tint)!important;
  border:1px solid #d4e5f6!important;border-left:3px solid var(--maat-v2-accent)!important;
  color:var(--maat-v2-hover)!important;font-weight:700!important;
}
.maat-v2 .maat-v2__center {min-height:0!important;min-width:0!important;overflow:hidden!important}
.maat-v2 .maat-v2__content {
  flex:1 1 auto!important;height:100%!important;max-height:none!important;
  padding:14px 19px!important;overflow:auto!important;scrollbar-width:thin;
}
.maat-v2 .maat-v2__detail-head {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-bottom:15px;border-bottom:1px solid var(--maat-v26-edge);
  margin-bottom:15px;
}
.maat-v2 .maat-v2__detail-head h3 {
  font-size:clamp(15px,1.1vw,18px)!important;line-height:1.3!important;
  margin:5px 0 0!important;padding:0!important;color:var(--maat-v2-ink)!important;font-weight:740!important;
}
.maat-v2 .maat-v2__detail-all{font-size:11px;padding:6px 9px;flex:0 0 auto}
.maat-v2 .maat-v2__tiles {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  min-width:0;padding:2px 1px 10px;
}
.maat-v2 .maat-v2__tile {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-width:0;min-height:54px!important;padding:10px 12px!important;
  color:var(--maat-v2-ink)!important;text-decoration:none!important;
  background:#fff!important;border:1px solid var(--maat-v26-edge)!important;
  border-radius:11px!important;box-shadow:0 2px 9px rgba(35,63,91,.055)!important;
  font-family:inherit!important;font-size:12.5px!important;line-height:1.36!important;
  font-weight:590!important;overflow-wrap:anywhere!important;
  transition:border-color .14s,box-shadow .14s,background .14s!important;
}
.maat-v2 .maat-v2__tile:hover,.maat-v2 .maat-v2__tile:focus-visible {
  border-color:#b8d3eb!important;background:#f9fcff!important;
  box-shadow:0 5px 13px rgba(35,63,91,.10)!important;
  color:var(--maat-v2-hover)!important;
}
.maat-v2 .maat-v2__tile-arrow {flex:0 0 auto;color:var(--maat-v2-accent);font-size:16px;font-weight:700}
.maat-v2 .maat-v2__empty {padding:18px 14px;color:#617189;font-size:13px;line-height:1.55}
.maat-v2 .maat-v2__hero {
  min-height:0!important;height:auto!important;border-radius:12px!important;
  margin-left:9px!important;align-self:stretch!important;
  background:#1b344a!important;box-shadow:0 4px 13px rgba(25,49,72,.13)!important;
}
.maat-v2 .maat-v2__hero-copy {padding:20px 16px!important;gap:8px!important}
.maat-v2 .maat-v2__hero-copy strong {font-size:clamp(16px,1.4vw,23px)!important}
.maat-v2 .maat-v2__hero-desc {font-size:12px!important;line-height:1.4!important}
.maat-v2.maat-v2--open .maat-v2__switch-hint {
  border-color:var(--maat-v26-edge);border-radius:10px;
  background:#f7faff;padding:10px 13px;margin:11px 0 11px;
}
/* Avoid editing the original WoodMart theme styles. */
@media(max-width:1200px){
  .maat-v2 .maat-v2__panel-inner {grid-template-columns:minmax(175px,27%) minmax(0,1fr) minmax(160px,22%)!important}
  .maat-v2 .maat-v2__tiles{grid-template-columns:minmax(0,1fr)!important}
  .maat-v2:not(.maat-v2--dropdown) .maat-v2__card-image{max-width:115px!important;height:74px!important;flex-basis:74px!important}
  .maat-v2:not(.maat-v2--dropdown) .maat-v2__card{min-height:144px!important;padding:13px 6px 10px!important}
}
@media(max-width:990px){
  .maat-v2:not(.maat-v2--dropdown) .maat-v2__cards {grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .maat-v2 .maat-v2__panel-inner {grid-template-columns:minmax(172px,33%) minmax(0,1fr)!important;height:365px!important;max-height:none!important}
  .maat-v2 .maat-v2__hero {display:none!important}
  .maat-v2 .maat-v2__tiles {grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .maat-v2:not(.maat-v2--dropdown) .maat-v2__cards {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .maat-v2:not(.maat-v2--dropdown) .maat-v2__card {min-height:127px!important;padding:12px 6px!important;border-radius:13px!important}
  .maat-v2:not(.maat-v2--dropdown) .maat-v2__card-image {max-width:108px!important;height:70px!important;flex-basis:70px!important}
  .maat-v2:not(.maat-v2--dropdown) .maat-v2__card-text {min-height:29px!important;font-size:12.2px!important;line-height:1.25!important}
  .maat-v2 .maat-v2__panel-head {padding:11px 10px!important;gap:6px}
  .maat-v2 .maat-v2__panel-heading h2 {font-size:15px!important}
  .maat-v2 .maat-v2__all-link {font-size:10px!important;padding:6px 7px}
  .maat-v2 .maat-v2__panel-actions {gap:6px}
  .maat-v2 .maat-v2__panel-close {width:30px!important;height:30px!important;flex-basis:30px!important}
  .maat-v2:not(.maat-v2--dropdown) .maat-v2__panel-inner,
  .maat-v2 .maat-v2__panel-inner {display:flex!important;flex-direction:column!important;gap:0!important;height:auto!important;max-height:none!important;padding:7px!important}
  .maat-v2 .maat-v2__rail {flex:0 0 auto!important;border-right:0!important;border-bottom:1px solid var(--maat-v26-edge)!important;padding:0!important;overflow:hidden!important}
  .maat-v2 .maat-v2__rail-head {display:none!important}
  .maat-v2 .maat-v2__rail-items {display:flex!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;flex:0 0 auto!important;padding:5px 2px 10px!important;scrollbar-width:thin}
  .maat-v2 .maat-v2__rail-btn {width:auto!important;white-space:nowrap!important;flex:0 0 auto!important;min-height:32px!important;margin:0!important;padding:7px 10px!important;font-size:11px!important}
  .maat-v2 .maat-v2__rail-btn.is-current {padding-left:10px!important;border-left:1px solid #d4e5f6!important;border-bottom:3px solid var(--maat-v2-accent)!important}
  .maat-v2 .maat-v2__center {flex:1 1 auto!important;min-height:0!important;overflow:hidden!important}
  .maat-v2 .maat-v2__content {height:auto!important;max-height:280px!important;min-height:145px!important;padding:10px 7px!important;overflow-y:auto!important}
  .maat-v2 .maat-v2__detail-head {padding-bottom:9px;margin-bottom:10px}
  .maat-v2 .maat-v2__detail-head h3{font-size:14px!important}
  .maat-v2 .maat-v2__tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .maat-v2 .maat-v2__tile {min-height:46px!important;font-size:11px!important;padding:8px 9px!important}
  .maat-v2 .maat-v2__hero{display:none!important}
  .maat-v2 .maat-v2__switch-hint{font-size:11px}
}
@media(max-width:430px){
  .maat-v2 .maat-v2__tiles{grid-template-columns:minmax(0,1fr)!important}
  .maat-v2 .maat-v2__content{max-height:244px!important}
}
@media(prefers-reduced-motion:reduce){
  .maat-v2 .maat-v2__card,.maat-v2 .maat-v2__tile {transition:none!important;transform:none!important}
}
