/* ===================================
   Shop — Dark Tech Theme
   Ispirato a murena.com/products
   =================================== */

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  min-height: 100vh;
}

/* ---- Hero ---- */
.shop-hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(249, 174, 1, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.shop-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(11, 214, 195, 0.3);
  border-radius: 100px;
  background: rgba(11, 214, 195, 0.06);
}

.shop-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.shop-hero-img {
  max-width: 900px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  clip-path: inset(0 1px 0 0);
}

.shop-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--surface-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.1rem 2rem;
}

.trust-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary-light);
}

.trust-item i {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ---- Filter tabs ---- */
.shop-filters {
  padding: 2rem 2rem 0;
}

.shop-filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-secondary-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: rgba(11, 214, 195, 0.4);
  color: var(--text-light);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  border-color: transparent;
  color: #0a0e1a;
  font-weight: 600;
}

/* ---- Catalogo ---- */
.shop-catalogo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* ---- Griglia prodotti ---- */
.shop-griglia {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* ---- Card prodotto ---- */
.shop-card {
  text-decoration: none;
  color: inherit;
  background: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 214, 195, 0.25);
  box-shadow: 0 20px 56px rgba(11, 214, 195, 0.08), 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Image area */
.shop-card-img-wrap {
  position: relative;
  background: #0c1120;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 220px;
}

.shop-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--surface-dark));
  pointer-events: none;
}

.shop-card img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.shop-card:hover img {
  transform: scale(1.05);
}

/* Category badge on image */
.shop-card-categoria {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(249, 174, 1, 0.1);
  border: 1px solid rgba(249, 174, 1, 0.25);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  z-index: 2;
}

/* Card body */
.shop-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Feature tags */
.shop-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.shop-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

.shop-card-nome {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  line-height: 1.3;
}

.shop-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary-light);
  line-height: 1.65;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-card-prezzo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-gold);
}

.shop-card-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0a0e1a;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shop-card:hover .shop-card-btn {
  opacity: 0.9;
  transform: translateX(2px);
}

.shop-card-btn i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.shop-card:hover .shop-card-btn i {
  transform: translateX(2px);
}

/* Empty state */
.shop-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary-light);
  font-size: 0.95rem;
}

/* ---- Footer ---- */
.shop-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--text-secondary-light);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .trust-divider {
    display: none;
  }
  .trust-item {
    padding: 0.4rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .shop-hero {
    padding: 4.5rem 1.5rem 3rem;
  }
  .trust-bar {
    padding: 1rem 1.25rem;
  }
  .trust-bar-inner {
    gap: 0.5rem;
    justify-content: flex-start;
  }
  .trust-item {
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
  }
  .shop-filters {
    padding: 1.5rem 1.25rem 0;
  }
  .shop-catalogo {
    padding: 1.5rem 1.25rem 3rem;
  }
  .shop-griglia {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .shop-card-img-wrap {
    min-height: 180px;
  }
}
