* {
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
  background-color: #F6F5F5;
  overflow-x: hidden;
}

/* Skip Link */
.skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;

  &:focus {
    position: static;
    width: auto;
    height: auto;
  }
}

/* Header */
header {
  display: flex;
  position: relative;
  background-color: #ffffff;
  justify-content: space-between;
  padding: 0.25rem;
  background-image: url(assets/christmasbanner.svg);
  background-repeat: no-repeat;
  background-position: center 4rem;
  background-size: 100% 30%;

  @media (min-width: 425px) {
    background-position: center 3rem;
    background-size: 100% 50%;
  }

  @media (min-width: 1000px) {
    background-image: none;
  }
}

/* Logo */
.logo img {
  padding-left: 1em;
  height: 5rem;

  @media (min-width: 770px) {
    height: 5.5rem;
    padding: 1em;
  }
}

/* Navigation */
.nav-icons {
  display: flex;

  img {
    margin-top: 0.5rem;
    width: 3.5rem;
    height: 5rem;

    @media (min-width: 1000px) {
      width: auto;
      height: auto;
    }
  }
}

/* Decoration */
.decoration img {
  display: inline;
  width: 100%;
  height: auto;
}

/* Form Elements */
.filters input,
select {
  border-radius: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Typography */
.filters,
select,
input,
.search-bar,
h3,
h2,
p,
address {
  font-family: var(--font-family);
  font-size: 1.1rem;
}

h1 {
  display: none;

  @media (min-width: 1000px) {
    font-size: 2rem;
    display: block;
    grid-column: 1 / -1;
    text-align: center;
    margin: 0;
    padding: 0;
  }
}

/* Layout */
.page-layout {
  @media (min-width: 1000px) {
    display: flex;
  }
}

/* Gifts Section */
.gifts {
  display: grid;
  position: relative;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 1em 10px;
  justify-items: center;
  background-color: var(--primary-background-color);
  max-width: 100%;
  box-sizing: border-box;

  @media (min-width: 425px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  @media (min-width: 1000px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  @media (min-width: 1440px) {
    grid-template-columns: repeat(4, 1fr);
  }

  @media (min-width: 1770px) {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Bow Decoration */
.bow-decoration {
  display: none;


  @media (min-width: 1000px) {
    display: block;
    position: absolute;
    padding-top: 5em;
    top: -130px;
    left: 0;
    width: 100%;
    height: 90px;
    background-image: url('assets/christmasbanner.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    ;
  }
}

/* Product Cards */
.article-product {
  position: relative;
  background-color: var(--secondary-background-color);
  width: 100%;
  max-width: 250px;
  height: 355px;
  font-family: var(--font-family);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  &:hover {
    transform: translateY(-3px);
  }

  .gift-listing {
    text-decoration: none;
    color: var(--textcolor);
    height: 100%;
  }

  .article-product-img {
    position: relative;

    img {
      width: 100%;
      aspect-ratio: 1/0.9;
      object-fit: cover;
      display: block;
    }

    .article-tags {
      position: absolute;
      bottom: 0;
      left: 10px;
      display: flex;
      gap: 8px;

      img {
        width: 60px;
        height: 50px;
        object-fit: contain;
      }
    }
  }

.add-list {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%; 
  z-index: 10;
  padding-bottom: 3px;

  &:hover {
    transform: scale(1.15);
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}




  .product-info {
    p:hover {
      text-decoration: underline;
    }

    .product-title {
      padding-left: 5px;
    }
  }

  .listing-footer {
    display: flex;

    img {
      height: 2rem;
    }

    span {
      font-size: 16px;
    }
  }
}

/* Search Section */
.heading-search {
  display: none;

  @media (min-width: 1000px) {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    font-size: 2.5rem;
    padding-left: 1rem;
    line-height: 1.2;

    .highlight-text {
      color: #F4B942;
      font-weight: 600;
    }
  }
}


.filter-form {
  background: white;
  grid-column: 1 / -1;
  border-radius: 10px;
  justify-self: start;
}

.filter-form > details {
  display: flex;
}

.filter-form > details > summary {
  padding: 1em;
  cursor: pointer;
}

.filter-form > details > *:not(summary) {
  display: flex;
  padding: 1em;
}

.filter-form details details summary {
  cursor: pointer;

}



.community img {
  display: none;

  @media (min-width: 1000px) {
    display: block;
    width: 100%;
    padding-top: 2rem;
  }
}

.search-bar {
  padding: 0.75rem 0.25rem;
  gap: 0.5rem;
  background: transparent;
  z-index: 100;
  position: fixed;
  top: 1;
  bottom: 0;
  left: 0;
  right: 0;

  @media (min-width: 1000px) {
    position: relative;
    background-color: white;
    display: block;
    grid-column: 1;
    grid-row: 1;
    padding-top: 20rem;
  }

  .search-input-wrapper {
    position: relative;
    border-radius: 2em;
    padding: 3px;
    animation: borderColorChange 3s linear infinite;
  }

  input {
    border-radius: 2em;
    padding: 0.75rem 3.5rem 0.75rem 1rem;
    font-size: 1.2rem;
    width: 100%;
    border: none;
  }

  button {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    height: 100%;

    img {
      width: 2rem;
      height: 2rem;
    }
  }

  &:focus-within {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@keyframes borderColorChange {
  0% {
    background-color: #667eea;
  }

  25% {
    background-color: #764ba2;
  }

  50% {
    background-color: #f093fb;
  }

  75% {
    background-color: #4facfe;
  }

  100% {
    background-color: #667eea;
  }
}


footer {
  background-image: url('assets/3.png');
  background-color: #F9F2D4;

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: none;
  }
}

.newsletter-form {
  background-color: #466EBF;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  font-size: 18px;

  @media (min-width: 600px) {
    flex-direction: row;
  }

  h2 {
    padding-left: 0.5em;
    margin: 0;
    display: none;

    @media (min-width: 1000px) {
      display: block;
    }
  }

  p {
    margin: 0;
  }

  >div:first-child {
    display: flex;
    flex-direction: column;
    align-items: start;
    color: #F6F5F5;
  }

  >div {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }

  input {
    padding: 0.75rem 3.5rem 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2em;
    font-size: 1rem;
    flex: 1;
  }

  button {
    position: absolute;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
  }
}

.add-list.saved {
  animation: confetti-pop 0.6s ease !important;
}

.add-list.saved:hover {
  transform: scale(1.15);
}

@keyframes confetti-pop {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
.pagination {
  grid-column: 1 / -1;
  margin: 2rem 0 1rem;
}

.pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination a,
.pagination .ellipsis {
  min-width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  font-family: var(--font-family);
  font-size: 1rem;
}

.pagination a {
  text-decoration: none;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.pagination a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.pagination a[aria-current="page"] {
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.3);
}

.pagination .ellipsis {
  border: none;
}

.footer-logo-wrapper {
  display: none;

  @media (min-width: 1000px) {
    display: block;
    padding-top: 1em;
  }
}

.footer-links {
  padding-left: 1em;
  display: grid;
  justify-content: space-evenly;
  grid-template-columns: 1fr 1fr;

  @media (min-width: 600px) {
    display: flex;
    flex-direction: row;
  }
}

.legal {
  padding: 0.5rem;

  ul {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-bottom: 0;

    @media (min-width: 600px) {
      flex-direction: row;
    }
  }

  p {
    padding: 0.5rem;
  }
}