/* =========================================================
   HavenSync Shop Page
   Uses the existing HavenSync variables and styles from styles.css
   ========================================================= */

.shop-hero {
  padding: 58px 0 34px;
  text-align: center;
}

.shop-hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(111, 243, 232, 0.35);
  background: rgba(10, 186, 181, 0.12);
  color: var(--tiffany2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.shop-hero h1 {
  margin-bottom: 14px;
}

.shop-hero .subhead {
  max-width: 650px;
  margin: 0 auto;
}

.shop-section {
  padding: 26px;
}

.shop-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.shop-section-heading h2 {
  margin-bottom: 4px;
}

.shop-intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(111, 243, 232, 0.30);
  background: rgba(10, 186, 181, 0.10);
  color: var(--tiffany2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.cart-pill #cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(111, 243, 232, 0.18);
  color: var(--white);
}

.cart-icon {
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(7, 27, 51, 0.48);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(111, 243, 232, 0.45);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(10, 186, 181, 0.08);
}

.product-image {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(111, 243, 232, 0.20),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      rgba(10, 186, 181, 0.18),
      rgba(4, 19, 37, 0.78)
    );
}

.product-image-placeholder span {
  color: var(--tiffany2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-image-placeholder strong {
  color: var(--white);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(10, 186, 181, 0.90);
  color: #062030;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-info {
  padding: 22px;
}

.product-category {
  margin: 0 0 7px;
  color: var(--tiffany2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-info h3 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.2;
  color: var(--white);
}

.product-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  min-height: 62px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.product-price {
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.product-button {
  padding: 10px 14px;
  border-radius: 13px;
  font-size: 13px;
  box-shadow: none;
}

.product-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shop-message {
  padding: 24px;
}

.shop-message-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-message-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(111, 243, 232, 0.35);
  background: rgba(10, 186, 181, 0.12);
  color: var(--tiffany2);
  font-size: 22px;
}

.shop-message h2 {
  margin-bottom: 5px;
}

.shop-message .lead {
  margin: 0;
}

/* Active Shop navigation item */
.navlink-shop--active {
  border-color: var(--tiffany);
  background: rgba(10, 186, 181, 0.22);
  box-shadow: 0 0 18px rgba(10, 186, 181, 0.28);
  color: var(--white);
}

/* Mobile */
@media (max-width: 768px) {

  .shop-hero {
    padding: 38px 0 24px;
  }

  .shop-section {
    padding: 20px 16px;
  }

  .shop-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-pill {
    align-self: flex-start;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image,
  .product-image-placeholder {
    min-height: 280px;
  }

  .product-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .product-button {
    width: 100%;
  }

  .shop-message-inner {
    align-items: flex-start;
  }
}

/* Keep clickable product preview styled like the original card */

.product-image {
    text-decoration: none;
    color: inherit;
    display: block;
}

.music-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(111, 243, 232, .45);
    border-radius: 50%;
    background: rgba(7, 27, 51, .85);
    color: var(--tiffany2);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow2);
    z-index: 1000;
    transition: background .2s ease, transform .2s ease;
}

.music-toggle:hover {
    background: rgba(7, 27, 51, .98);
    transform: scale(1.05);
}

.music-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}