/* ============================================================
   Hyper UI/UX Elements — Core Styles
   hypersols.com
   ============================================================ */

/* Section Header */
.hyper-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.hyper-section-eyebrow {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 10px;
}
.hyper-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #0b1525;
  line-height: 1;
  margin: 0;
}

/* Grid */
.hyper-cards-grid {
  display: grid;
  gap: 16px;
}
.hyper-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hyper-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hyper-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hyper-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
  .hyper-cols-5 { grid-template-columns: repeat(3, 1fr); }
  .hyper-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .hyper-cols-5,
  .hyper-cols-4,
  .hyper-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hyper-cards-grid { grid-template-columns: 1fr; }
}

/* Card */
.hyper-card {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  opacity: 0;
  animation: hyperFadeUp .45s ease forwards;
}
.hyper-card:hover {
  transform: translateY(-6px);
  border-color: #2563eb;
  box-shadow: 0 12px 40px rgba(37, 99, 235, .12);
}

/* Top accent line */
.hyper-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #00c2e0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  z-index: 2;
}
.hyper-card:hover::before { transform: scaleX(1); }

/* Badge */
.hyper-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  line-height: 1.4;
}
.hyper-badge-new  { background: #0b1525; color: #ffffff; }
.hyper-badge-hot  { background: #2563eb; color: #ffffff; }
.hyper-badge-sale { background: #dc2626; color: #ffffff; }

/* Image area */
.hyper-card-image-wrap { display: block; text-decoration: none; }
.hyper-card-image {
  position: relative;
  background: linear-gradient(145deg, #eef3fb 0%, #dce8ff 100%);
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hyper-card-img {
  width: auto !important;
  height: 165px !important;
  max-width: 90% !important;
  object-fit: contain !important;
  object-position: center !important;
  transition: transform .35s ease !important;
  filter: drop-shadow(0 8px 20px rgba(37, 99, 235, .15));
}
.hyper-card:hover .hyper-card-img {
  transform: scale(1.07) translateY(-4px) !important;
}
.hyper-card-no-image {
  width: 80px; height: 80px;
  color: #b0bec5;
  display: flex; align-items: center; justify-content: center;
}
.hyper-card-no-image svg { width: 60px; height: 60px; }

/* Hover overlay */
.hyper-card-overlay {
  position: absolute; inset: 0;
  background: rgba(11, 21, 37, .5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.hyper-card:hover .hyper-card-overlay { opacity: 1; }
.hyper-overlay-btn {
  background: rgba(255, 255, 255, .95);
  color: #0b1525;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 2px;
  transform: translateY(6px);
  transition: transform .25s ease;
  display: inline-block;
}
.hyper-card:hover .hyper-overlay-btn { transform: translateY(0); }

/* Body */
.hyper-card-body {
  padding: 18px 18px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hyper-card-category {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 6px;
  display: block;
}
.hyper-card-name-link { text-decoration: none; }
.hyper-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #0b1525;
  line-height: 1.1;
  margin: 0 0 6px;
}
.hyper-card-name-link:hover .hyper-card-name { color: #2563eb; }

.hyper-card-desc {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: #888888;
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

/* WooCommerce price override */
.hyper-card-price {
  margin-bottom: 16px;
}
.hyper-card-price .price,
.hyper-card-price .woocommerce-Price-amount {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0b1525 !important;
  letter-spacing: -.01em !important;
}
.hyper-card-price .price del {
  color: #aaaaaa !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.hyper-card-price .price ins {
  text-decoration: none !important;
}

/* CTA Button */
.hyper-card-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: #0b1525 !important;
  color: #ffffff !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  padding: 15px 20px !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background .2s ease !important;
  margin-top: auto !important;
}
.hyper-card-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}
.hyper-card-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.hyper-card:hover .hyper-card-btn svg { transform: translateX(3px); }

/* No products */
.hyper-no-products {
  font-family: 'Barlow', sans-serif;
  color: #888888;
  font-size: 14px;
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
}

/* Animation */
@keyframes hyperFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Hyper Product Carousel
   ============================================================ */

.hyper-carousel-wrap {
  width: 100%;
  position: relative;
}

/* Header row: title left, arrows right */
.hyper-carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.hyper-carousel-titles { flex: 1; }
.hyper-carousel-titles .hyper-section-header { text-align: left; margin-bottom: 0; }
.hyper-carousel-titles .hyper-section-eyebrow { display: block; margin-bottom: 6px; }
.hyper-carousel-titles .hyper-section-title   { display: block; }

/* Arrow controls */
.hyper-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hyper-carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
  flex-shrink: 0;
  padding: 0;
  background: none;
}
.hyper-carousel-arrow svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Outline style (default) */
.hyper-arrow-outline {
  border: 1.5px solid #2563eb;
  color: #2563eb;
  background: transparent;
}
.hyper-arrow-outline:hover {
  background: #2563eb;
  color: #ffffff;
}
.hyper-arrow-outline:hover svg { stroke: #ffffff; }

/* Filled style */
.hyper-arrow-filled {
  border: none;
  background: #0b1525;
  color: #ffffff;
}
.hyper-arrow-filled:hover { background: #2563eb; }

/* Minimal style */
.hyper-arrow-minimal {
  border: none;
  background: transparent;
  color: #0b1525;
}
.hyper-arrow-minimal:hover { color: #2563eb; }

/* Outer clip */
.hyper-carousel-outer {
  overflow: hidden;
  width: 100%;
}

/* Track */
.hyper-carousel-track {
  display: flex;
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.hyper-carousel-track:active { cursor: grabbing; }

/* Slide */
.hyper-carousel-slide {
  padding: 0 8px;
  box-sizing: border-box;
}
.hyper-carousel-slide .hyper-card {
  opacity: 1;
  animation: none;
  height: 100%;
}

/* Dots */
.hyper-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.hyper-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s, width .2s;
}
.hyper-carousel-dot.active {
  background: #2563eb;
  width: 22px;
  border-radius: 4px;
}
