/* Electro HUB — Accessories page + short cards */

.eh-acc-page {
  color: #fff;
  background: #2a2a2a;
}

.eh-acc-hero {
  padding: 1.25rem 0 0.35rem;
  border-bottom: none;
  background: #2a2a2a;
}

.eh-acc-page .eh-shop-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.45);
}
.eh-acc-page .eh-shop-crumbs a { color: rgba(255,255,255,0.62); text-decoration: none; }
.eh-acc-page .eh-shop-crumbs a:hover { color: #fff; }
.eh-acc-page .eh-shop-crumbs-sep { opacity: 0.5; }

.eh-acc-page .eh-shop-hero {
  max-width: 40rem;
  margin: 0 0 0.35rem;
}
.eh-acc-page .eh-shop-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(196,30,58,0.45);
  background: rgba(196,30,58,0.12);
  color: #ff8a80;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eh-acc-page .eh-shop-kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #C41E3A;
}
.eh-acc-page .eh-shop-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}
.eh-acc-page .eh-shop-lead {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 1.05rem;
  line-height: 1.5;
}

.eh-acc-catalog {
  padding: 1.75rem 0 3.5rem;
}

.eh-acc-toolbar {
  margin-bottom: 1.35rem;
}

.eh-acc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.eh-acc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.eh-acc-chip:hover {
  border-color: rgba(196, 30, 58, 0.55);
  color: #fff;
}

.eh-acc-chip.is-active {
  border-color: #C41E3A;
  background: rgba(196, 30, 58, 0.18);
  color: #fff;
}

.eh-acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .eh-acc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .eh-acc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

/* Short card */
.eh-acc-card {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.eh-acc-card:hover {
  border-color: rgba(196, 30, 58, 0.45);
}

.eh-acc-card.is-hidden {
  display: none;
}

.eh-acc-card-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: #0a0a0a;
  overflow: hidden;
}

.eh-acc-card-thumb img,
.eh-acc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eh-acc-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem 1rem;
  flex: 1;
}

.eh-acc-card-brand {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eh-acc-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.eh-acc-card-title a {
  color: #fff;
  text-decoration: none;
}

.eh-acc-card-title a:hover {
  color: #ff8a80;
}

.eh-acc-card-price {
  margin-top: 0.15rem;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}

.eh-acc-card-price del {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-right: 0.35rem;
}

.eh-acc-card-price ins {
  text-decoration: none;
  color: #fff;
}

.eh-acc-card-actions {
  margin-top: auto;
  padding-top: 0.55rem;
}

.eh-acc-card-cart,
a.eh-acc-card-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: none;
  background: #C41E3A;
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.eh-acc-card-cart:hover,
a.eh-acc-card-cart:hover {
  background: #a81832;
}

.eh-acc-card-cart--link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85) !important;
}

.eh-acc-card-cart--link:hover {
  border-color: #C41E3A;
  background: rgba(196, 30, 58, 0.12);
}

.eh-acc-card-cart.loading,
.eh-acc-card-cart.added {
  opacity: 0.85;
}

/* Empty states */
.eh-acc-empty {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
}

.eh-acc-empty-title {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.eh-acc-empty-text {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.eh-acc-empty-filter {
  margin: 1.5rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* PDP block «К этой модели» */
.eh-pdp-acc-section {
  padding: 2.5rem 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.eh-pdp-acc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.eh-pdp-acc-head .section-head {
  margin: 0;
}

.eh-pdp-acc-all {
  color: #ff8a80;
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.eh-pdp-acc-all:hover {
  color: #fff;
}

.eh-pdp-acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .eh-pdp-acc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .eh-pdp-acc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}


/* PDP compact accessory chips (small thumbs) */
.eh-pdp-acc-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .eh-pdp-acc-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .eh-pdp-acc-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.eh-pdp-acc-chip-wrap {
  min-width: 0;
}
.eh-pdp-acc-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem 0.75rem 0.75rem;
  border-radius: 14px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  min-height: 72px;
}
.eh-pdp-acc-chip:hover {
  border-color: rgba(196, 30, 58, 0.55);
  background: #1a1a1a;
  transform: translateY(-1px);
}
.eh-pdp-acc-chip-accent {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #C41E3A;
}
.eh-pdp-acc-chip-media {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eh-pdp-acc-chip-media img,
.eh-pdp-acc-chip-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.eh-pdp-acc-chip-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding-top: 0.15rem;
}
.eh-pdp-acc-chip-title {
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eh-pdp-acc-chip-price {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}
.eh-pdp-acc-chip-price .woocommerce-Price-amount {
  color: rgba(255, 255, 255, 0.72);
}


.eh-pdp-acc-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
.eh-pdp-acc-add {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(196, 30, 58, 0.65);
  background: rgba(196, 30, 58, 0.14);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.eh-pdp-acc-add:hover,
.eh-pdp-acc-add:focus-visible {
  background: #C41E3A;
  border-color: #C41E3A;
  outline: none;
}
.eh-pdp-acc-add:active {
  transform: scale(0.97);
}
.eh-pdp-acc-add.is-loading {
  opacity: 0.65;
  pointer-events: none;
}
.eh-pdp-acc-add.is-done {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
.eh-pdp-acc-add--link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.eh-pdp-acc-chip-title {
  text-decoration: none;
}
.eh-pdp-acc-chip-title:hover {
  color: #ffb3ab;
}


/* Mobile: keep «Добавить» fully visible */
/* eh-pdp-acc-add-mobile-fix */
@media (max-width: 719px) {
  .eh-pdp-acc-chips {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .eh-pdp-acc-chip {
    align-items: flex-start;
    padding: 0.7rem 0.75rem;
  }
  .eh-pdp-acc-chip-media {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }
  .eh-pdp-acc-chip-body {
    flex: 1 1 auto;
    width: auto;
  }
  .eh-pdp-acc-chip-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.6rem;
  }
  .eh-pdp-acc-add {
    flex: 0 0 auto;
    max-width: 100%;
    font-size: 0.75rem;
    padding: 0.42rem 0.72rem;
  }
}
@media (max-width: 380px) {
  .eh-pdp-acc-chip-row {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Desktop hero collage — fills the right void */
.eh-acc-hero-inner {
  position: relative;
}
.eh-acc-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.eh-acc-hero-visual {
  display: none;
}
@media (min-width: 980px) {
  .eh-acc-hero {
    overflow: hidden;
  }
  .eh-acc-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 1.5rem;
    min-height: 248px;
  }
  .eh-acc-hero-visual {
    display: block;
    position: relative;
    height: 220px;
  }
  .eh-acc-hero-shot {
    position: absolute;
    width: 168px;
    height: 168px;
    border-radius: 20px;
    overflow: hidden;
    background: #f3f3f3;
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
  }
  .eh-acc-hero-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .eh-acc-hero-shot--1 {
    left: 8px;
    top: 28px;
    transform: rotate(-8deg);
    z-index: 1;
  }
  .eh-acc-hero-shot--2 {
    left: 118px;
    top: 0;
    transform: rotate(4deg);
    z-index: 3;
    width: 186px;
    height: 186px;
  }
  .eh-acc-hero-shot--3 {
    right: 0;
    bottom: 6px;
    transform: rotate(10deg);
    z-index: 2;
  }
}


@media (max-width: 699px) {
  .eh-acc-hero { padding: 0.9rem 0 0.2rem; }
  .eh-acc-page .eh-shop-crumbs { margin-bottom: 0.85rem; font-size: 0.82rem; }
  .eh-acc-page .eh-shop-kicker { font-size: 0.68rem; padding: 0.24rem 0.62rem; }
  .eh-acc-page .eh-shop-title { font-size: 1.72rem; }
  .eh-acc-page .eh-shop-lead { font-size: 0.98rem; }
}
