/* ------------------------------
   Base styles
------------------------------ */
@font-face {
  font-family: 'Oooh Baby';
  src: url('fonts/OoohBaby-Regular.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap; /* Helps prevent invisible text while loading */
}

/* Define the Bold weight */
@font-face {
  font-family: 'Borel';
  src: url('fonts/Borel-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fff;
  }
  
  img {
    display: block;
    max-width: 100%;
  }
  
  a {
    color: #0645ad;
  }
  
  a:hover {
    text-decoration-thickness: 2px;
  }
  
  button,
  select {
    font: inherit;
  }
  
  .container {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
  }

  .product-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
  }
  
  .product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  
  /* Video products */
  .product-media.has-video .product-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  
  /* Video is showing */
  .product-media.has-video.show-video .product-video {
    opacity: 1;
  }
  
  .product-media.has-video.show-video .product-image {
    opacity: 0;
  }
  
  /* Image is showing */
  .product-media.has-video:not(.show-video) .product-image {
    opacity: 1;
  }

  /* ------------------------------
     Accessibility
  ------------------------------ */
  
  .skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    color: #fff;
    background: #000;
    text-decoration: none;
    border-radius: 0.25rem;
  }
  
  .skip-link:focus {
    top: 1rem;
  }
  
  
  /*
    Make keyboard focus highly visible.
  */
  
  :focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
  }
  
  /* ------------------------------
     Hero
  ------------------------------ */
  
  .hero {
    flex-basis: 90%;
    text-align: left;
  }
  
  .hero h1 {
    font-family: "Oooh Baby";
    color: #D3AF37;
    margin: 0 0 0.5rem;
    font-size: 3em;
    line-height: 1.1;
  }
  
  .hero p {
    font-family: "Borel";
    margin: 0;
    font-size: 1.2rem;
  }

  
  /* ------------------------------
     Products
  ------------------------------ */
  
  .products-section {
    padding: 0;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 0 1rem 0;
    gap: 2rem;
  }
  
  .section-header h2 {
    margin-bottom: 0.25rem;
  }
  
  .section-header p {
    margin-top: 0;
  }
  
  .filter-controls {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  
  .filter-controls select {
    min-width: 200px;
    padding: 0.6rem;
    border: 2px solid #555;
    border-radius: 0.25rem;
    background: #fff;
    color: #222;
  }
  
  
  /* Product grid */
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  
  /* Product card */
  
  .product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
  }
  
  .product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eee;
  }
  
  .product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  
  .product-name {
    font-weight: 400;
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
  }
  
  .product-description {
    margin-top: 0;
  }
  
  /* ------------------------------
     Footer
  ------------------------------ */
  
  .site-footer {
    margin: 2em 0 0;
    padding: 2rem 0;
  }
  
  .site-footer a {
    font-family: "Borel";
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    margin: 0 3rem 0 0;
  }

  .site-footer a:hover {
    color: #D3AF37
  }

  .footer-links{
    text-align: center;
  }
  
  
  /* ------------------------------
     Responsive layout
  ------------------------------ */
  
  @media (max-width: 800px) {
    .product-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .section-header {
      align-items: stretch;
      flex-direction: column;
    }
  }
  
  @media (max-width: 550px) {
    .product-grid {
      grid-template-columns: 1fr;
    }
  
    .products-section{
      padding: 3rem 0;
    }

  }
  
  
  /*
    Respect users who prefer reduced motion.
  */
  
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  
    *,
    *::before,
    *::after {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
    .product-media.has-video .product-video {
        display: none;
      }
    
      .product-media.has-video .product-image {
        opacity: 1;
      }
  }