:root {
  --font-size: 16px;
  --background: #dbdfe4;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --popover: #ffffff;
  --popover-foreground: #000000;
  --primary: #000000;
  --primary-foreground: #ffffff;
  --secondary: #3a3e52;
  --secondary-foreground: #ffffff;
  --muted: #9da1b8;
  --muted-foreground: #5f6c7b;
  --accent: #3a3e52;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #5f6c7b;
  --input: #ffffff;
  --input-background: #ffffff;
  --switch-background: #5f6c7b;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --ring: #000000;
  --hero-bg: #080f17;
  --hero-text: #d6dde6;
  --radius: 0.75rem;
  --pixel-font: "Press Start 2P", monospace;
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-input-background: var(--input-background);
  --color-switch-background: var(--switch-background);
  --color-ring: var(--ring);
  --color-hero-bg: var(--hero-bg);
  --color-hero-text: var(--hero-text);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
}

  * {
    @apply border-border outline-ring/50;
    font-size: var(--font-size);
  }

  body {
    @apply bg-background text-foreground;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
  }

  .pixel-font {
    font-family: var(--pixel-font);
    letter-spacing: 0.05em;
  }

  h1 {
    font-family: var(--pixel-font);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-foreground);
    letter-spacing: 0.05em;
    margin: 0;
  }

  h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 3.375rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-hero-text);
    margin: 0;
  }

  h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-foreground);
    margin: 0;
  }

  h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-foreground);
    margin: 0;
  }

  p {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-foreground);
    margin: 0;
  }

  label {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-foreground);
  }

  button {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
  }

  a {
    color: var(--color-foreground);
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  a:hover {
    opacity: 0.7;
  }

  a:focus {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
  }

/* Focus management for accessibility */
@layer base {
  *:focus-visible {
    outline: 2px solid var(--color-ring);
    outline-offset: 2px;
  }
}

/* Feature Card */

  .feature-card {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 1.5rem;
        background-color: #f8f9fa;
        border-radius: 0.8rem;
        border: 1px solid #e9ecef;
    }
    .feature-card_icon {
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 3.5rem;
        height: 3.5rem;
        aspect-ratio: 1;
        background-color: #3a3e52;
        border-radius: 0.55rem;
        color: white;
    }
    .feature-card_content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .feature-card_content p {
        color: #5f6c7b;
    }

/*Product Card*/

.product-card {
  background-color: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 462px; 
  position: relative;
}

.carousel-content-container {
  height: 260px;
  width: 100%;
  margin: auto;
  position: relative;
  overflow: hidden;
}

.carousel-content {
  height: 100%;
  width: 100%;
  position: absolute;    /* allow stacking */
  top: 0;
  left: 0;
  transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.product-card h3 {
    margin-top: 0px !important;
}

.tag-chip {
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
  border-radius: 1.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.shoplink-button {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border: 1px solid #41484d;
  border-radius: 2.25rem;
  padding: 0.7rem 1.75rem;
  display: flex;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
  margin-top: 12px;
  justify-content: center;
  align-items: center;
}

.shoplink-button:hover {
  opacity: 0.9;
}

.shoplink-button span {
  font-size: 20px;
}

.product-label {
  background-color: #dee1ec;
  color: #3a465b;
  font-weight: var(--font-weight-semibold);
  border-radius: 28px;
  padding: 0.25rem 0.75rem;
}

span.product-tag {
    display: flex;
    gap: 6px;
    font-weight: 600;
    align-items: center;
    font-size: 1.1em;
}

.product-price {
  border: 1px solid;
  padding: 0.4em 0.6em;
  position: absolute;
  right: -1px;
  top: 236px;
  background: white;
  box-shadow:  -2px 2px 0px 0px black;
  border-radius: 8px 0 0 8px;
}

.carousel-button img {
    width: 14px;
    height: 14px;
}

.carousel-button {
    background-color: #000000;
    border-radius: 28px;
    padding: 14px;
    height: 34px;
    width: 34px;
    border: none;
    display: flex;
    align-content: space-around;
    align-items: center;
    justify-content: center;
    position: absolute
}
.carousel-button:hover {
    opacity: 0.7;
}

/* Sound Wave Animations */
@keyframes wave-1 {
  0%,
  100% {
    height: 20px;
    transform: scaleY(0.3);
  }
  25% {
    height: 80px;
    transform: scaleY(1.2);
  }
  50% {
    height: 120px;
    transform: scaleY(1.8);
  }
  75% {
    height: 60px;
    transform: scaleY(0.9);
  }
}

@keyframes wave-2 {
  0%,
  100% {
    height: 40px;
    transform: scaleY(0.6);
  }
  20% {
    height: 140px;
    transform: scaleY(2);
  }
  40% {
    height: 30px;
    transform: scaleY(0.4);
  }
  60% {
    height: 100px;
    transform: scaleY(1.5);
  }
  80% {
    height: 70px;
    transform: scaleY(1);
  }
}

@keyframes wave-3 {
  0%,
  100% {
    height: 60px;
    transform: scaleY(0.8);
  }
  15% {
    height: 30px;
    transform: scaleY(0.4);
  }
  35% {
    height: 160px;
    transform: scaleY(2.2);
  }
  55% {
    height: 90px;
    transform: scaleY(1.3);
  }
  75% {
    height: 45px;
    transform: scaleY(0.6);
  }
}

@keyframes wave-4 {
  0%,
  100% {
    height: 80px;
    transform: scaleY(1.1);
  }
  30% {
    height: 25px;
    transform: scaleY(0.3);
  }
  50% {
    height: 180px;
    transform: scaleY(2.5);
  }
  70% {
    height: 110px;
    transform: scaleY(1.6);
  }
}

@keyframes wave-5 {
  0%,
  100% {
    height: 50px;
    transform: scaleY(0.7);
  }
  10% {
    height: 130px;
    transform: scaleY(1.9);
  }
  30% {
    height: 20px;
    transform: scaleY(0.3);
  }
  60% {
    height: 150px;
    transform: scaleY(2.1);
  }
  85% {
    height: 75px;
    transform: scaleY(1.1);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0 15px currentColor,
      0 0 30px currentColor;
  }
  50% {
    box-shadow:
      0 0 25px currentColor,
      0 0 50px currentColor,
      0 0 75px currentColor;
  }
}

/* Custom utilities for the design */
@layer utilities {
  .hero-bg {
    background-color: var(--color-hero-bg);
  }

  .hero-text {
    color: var(--color-hero-text);
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.75) 80%,
      rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 5;
  }

  .sound-waves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }

  .sound-wave {
    width: 38px;
    min-height: 20px;
    border-radius: 12px;
    transform-origin: bottom;
    pointer-events: none;
    margin-top: 320px;
  }

  .wave-1 {
    background: #ff6b6b;
    color: #ff6b6b;
    animation:
      wave-1 1.4s infinite ease-in-out,
      glow-pulse 3.8s infinite ease-in-out;
    animation-delay: 0s;
  }

  .wave-2 {
    background: #4ecdc4;
    color: #4ecdc4;
    animation:
      wave-2 0.9s infinite ease-in-out,
      glow-pulse 3.8s infinite ease-in-out;
    animation-delay: 0.1s;
  }

  .wave-3 {
    background: #45b7d1;
    color: #45b7d1;
    animation:
      wave-3 1.6s infinite ease-in-out,
      glow-pulse 4.2s infinite ease-in-out;
    animation-delay: 0.2s;
  }

  .wave-4 {
    background: #f9ca24;
    color: #f9ca24;
    animation:
      wave-4 1.3s infinite ease-in-out,
      glow-pulse 3.9s infinite ease-in-out;
    animation-delay: 0.3s;
  }

  .wave-5 {
    background: #6c5ce7;
    color: #6c5ce7;
    animation:
      wave-5 1s infinite ease-in-out,
      glow-pulse 4.1s infinite ease-in-out;
    animation-delay: 0.4s;
  }

  .wave-6 {
    background: #a29bfe;
    color: #a29bfe;
    animation:
      wave-1 1.4s infinite ease-in-out,
      glow-pulse 3.3s infinite ease-in-out;
    animation-delay: 0.5s;
  }

  .wave-7 {
    background: #fd79a8;
    color: #fd79a8;
    animation:
      wave-2 0.9s infinite ease-in-out,
      glow-pulse 3.7s infinite ease-in-out;
    animation-delay: 0.6s;
  }

  .wave-8 {
    background: #00b894;
    color: #00b894;
    animation:
      wave-3 1.6s infinite ease-in-out,
      glow-pulse 3.4s infinite ease-in-out;
    animation-delay: 0.7s;
  }

  .wave-9 {
    background: #e17055;
    color: #e17055;
    animation:
      wave-4 1.2s infinite ease-in-out,
      glow-pulse 4s infinite ease-in-out;
    animation-delay: 0.8s;
  }

  .wave-10 {
    background: #00cec9;
    color: #00cec9;
    animation:
      wave-5 1.8s infinite ease-in-out,
      glow-pulse 3.5s infinite ease-in-out;
    animation-delay: 0.9s;
  }

  .wave-11 {
    background: #fab1a0;
    color: #fab1a0;
    animation:
      wave-1 0.85s infinite ease-in-out,
      glow-pulse 3.85s infinite ease-in-out;
    animation-delay: 1s;
  }

  .wave-12 {
    background: #74b9ff;
    color: #74b9ff;
    animation:
      wave-2 1.25s infinite ease-in-out,
      glow-pulse 4.25s infinite ease-in-out;
    animation-delay: 1.1s;
  }

  .wave-13 {
    background: #55a3ff;
    color: #55a3ff;
    animation:
      wave-3 0.95s infinite ease-in-out,
      glow-pulse 3.95s infinite ease-in-out;
    animation-delay: 1.2s;
  }

  .wave-14 {
    background: #ff7675;
    color: #ff7675;
    animation:
      wave-4 1.35s infinite ease-in-out,
      glow-pulse 4.35s infinite ease-in-out;
    animation-delay: 1.3s;
  }

  .wave-15 {
    background: #81ecec;
    color: #81ecec;
    animation:
      wave-5 1.05s infinite ease-in-out,
      glow-pulse 4.05s infinite ease-in-out;
    animation-delay: 1.4s;
  }
  
}
