/* ====================== */
/*  ROOT VARIABLES */
/* ====================== */
:root {
  --header-size: 1.8rem;
  --text-size: 1.6rem;
}

/* ====================== */
/*  GLOBAL STYLES */
/* ====================== */
.no-scroll {
  overflow: hidden;
  height: 100vh;
}

* {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}


.swiper {
  width: 100%;
  height: fit-content;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: var(--color-bg);
  color: var(--color-bg);
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: var(--color-text);
  font-size: 18px;
}

#main {
  overflow-x: hidden;
}

/* ====================== */
/*  HERO SECTION */
/* ====================== */
.hero-section {
  width: 100%;
  padding: 10px;
  margin-bottom: 50px;
}

.hero-content {
  border-radius: 20px;
  padding: 20px;
  width: 100%;
}

.hero-section p {
  font-size: 1.6rem;
}

/* ====================== */
/*  PUPPY LIST SECTION */
/* ====================== */
.puppy-list .list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding-bottom: 40px;
}

/* Card Container */
.puppy-list .card-container {
  width: 300px;
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  padding: 2px;
}

.puppy-list .puppy-card,
.puppys .card-wrapper {
  width: 100%;
  height: fit-content;
}

/* Card Image */
.puppy-list .card-image .img {
  width: 100%;
  height: 270px;
  border-radius: 10px 10px 6px 6px;
  object-fit: cover;
  object-position: center center;
}

/* Card Divider */
.puppy-list .card-devider {
  width: 100%;
  margin: 2px 0 15px;
  border-top: 2px solid transparent;
  border-image: repeating-linear-gradient(
    to right,
    #f1f1f1 0 5px,
    transparent 5px 10px
  ) 1;
}

/* Card Details */
.puppy-list .card-details {
  width: 95%;
  margin: 0 auto 15px;
  position: relative;
}

.puppy-list .card-details .breed {
  width: 70%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Wishlist Button */
.puppy-list .wishlist {
  position: absolute;
  bottom: 10px;
  right: 5px;
  width: fit-content;
  height: fit-content;
}

.puppy-list .wishlist .wishlist-btn {
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  background-color: transparent;
}

.puppy-list .wishlist .wishlist-btn.active svg{
  fill: var(--color-primary);
  stroke-width: 2px;
  stroke: var(--color-primary);
}

.puppy-list .wishlist .wishlist-btn svg {
  fill: none;
  stroke-width: 2px;
  stroke: var(--color-primary);
}

.puppy-list .wishlist .wishlist-btn svg:hover {
  fill: var(--color-primary);
  stroke-width: 2px;
  stroke: var(--color-primary);
}

/* ====================== */
/*  FILTER & SORT SECTION */
/* ====================== */
.shop-toolbar {
  width: 100%;
}

.openSortBtn,
.openFilterBtn {
  padding: 5px;
  border: 1.5px solid #828282;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 5px;
}

/* ====================== */
/*  FILTER MODAL */
/* ====================== */
.filter-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Filter Card Container */
.filter-card {
  width: 100%;
  max-width: 95%;
  height: 95vh;
  padding: 24px;
  border-radius: 16px;
  border: 1.5px solid #828282;
  background: #fff;
  position: relative;
}

/* Filter Wrapper - Scrollable Content */
.filter-wrapper {
  width: 100%;
  height: 80%;
  overflow-y: auto;
}

.filter-wrapper::-webkit-scrollbar {
  width: 5px;
}

.filter-wrapper::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 20px;
}

.filter-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* ====================== */
/*  SORT DROPDOWN */
/* ====================== */
.sort-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  width: 220px;
  border-radius: 10px;
  padding: 10px 0;
  z-index: 1000;
}

.sort-dropdown li {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1.6rem;
  color: #333;
}

.sort-dropdown li:hover {
  background: #f5f5f5;
}

/* ====================== */
/*  FILTER HEADER */
/* ====================== */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.filter-header h2 {
  font-size: var(--header-size);
  font-weight: 800;
}

/* Close Button - Fixed: Changed font-width to font-weight */
.close-btn {
  font-size: 3rem;
  font-weight: 600;
  cursor: pointer;
}

/* ====================== */
/*  FILTER SECTIONS */
/* ====================== */
.filter-section {
  margin-bottom: 28px;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}

.filter-section h3 {
  font-size: var(--header-size);
  font-weight: 700;
  margin-bottom: 16px;
}

/* Search Input */
.search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: var(--text-size);
  font-weight: 500;
  margin-bottom: 18px;
}

/* Breed List - Scrollable */
.breed-list {
  height: 200px;
  overflow-y: auto;
}

.breed-list a {
  display: block;
  font-size: var(--text-size);
  font-weight: 500;
  margin-bottom: 12px;
  color: #333;
  text-decoration: underline;
  padding-bottom: 10px;
}

/* ====================== */
/*  FILTER OPTIONS */
/* ====================== */
/* Checkbox & Radio Options */
.option {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.option input {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.option label {
  font-size: var(--text-size);
  font-weight: 500;
}

/* ====================== */
/*  FILTER ACTIONS */
/* ====================== */
.filter-actions {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
}

.apply-btn,
.reset-btn {
  width: 45%;
  padding: 15px 18px;
  font-size: 1.6rem;
  font-weight: 700;
  border: 2px solid #000;
  border-radius: 40px;
  margin-top: 30px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Apply Button */
.apply-btn {
  background: #000;
  color: #fff;
}

.apply-btn:hover {
  background: #fff;
  color: #000;
}

/* Reset Button */
.reset-btn {
  background: #fff;
  color: #2f2f2f;
}

.reset-btn:hover {
  background: #000;
  color: #fff;
}


/* ===== SECTION 1: BREEDS ===== */
#section-1 {
  width: 100%;
  overflow-x: hidden;
  padding-left: 5px;
}

.breed-container {
  position: relative;
  overflow-x: hidden;
  padding-left: 20px;
  /* Fade effect on right side */
  -webkit-mask-image: linear-gradient(
    to right,
    black 0%,
    rgba(0, 0, 0, 0.8) 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    black 0%,
    rgba(0, 0, 0, 0.8) 95%,
    transparent 100%
  );
}

.breed-card {
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Blob shape image wrapper */
.breed-card .image-wrapper {
  width: 300px;
  height: 300px;
  margin: 0 auto 20px auto;
  overflow: hidden;
  
}

.breed-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% 55% 45% 45% / 60% 50% 50% 50%;
}

.breed-card h3 {
  width: fit-content;
  font-size: 2.0rem;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  left: 0;
  padding-left: 8px;
  text-align: center;
  color: var(--color-text);
  border-bottom: 2px solid #777777;
}

.breed-card .underline {
  width: 120px;
  height: 1px;
  background: #333;
  margin: 0 auto;
}

.breed-swiper .swiper-button-next,
.breed-swiper .swiper-button-prev {
  background-color: #fff;
  width: 45px;
  height: 45px;
}

.breed-swiper .swiper-button-next::after,
.breed-swiper .swiper-button-prev::after {
  color: var(--color-text);
  font-size: 2.6rem !important;
  font-weight: 800;
}


/* ===== SECTION 2: BADGES ===== */
#section-2 {
  padding: 0 20px;
  overflow-x: hidden;
}

.badge-swiper {
  height: 230px;
}

#section-2 .swiper-pagination-bullet-active {
  background-color: #000 !important;
}



/* ===== QUIZ SECTION ===== */
.quiz-section {
  background: #E6FFFD;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.quiz-wrapper {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border: 1px solid var(--color-secondary);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 50px;
}

.quiz-dog img {
  width: 180px;
  transform: scaleX(-1);
  height: auto;
  display: block;
  margin: 0 auto;
}

.quiz-button a {
  color: #ffffff;
  border: 1px solid var(--color-primary);
  background-color: var(--color-primary);
  transition: 0.3s ease;
}

.quiz-button a:hover {
  color: var(--color-primary);
  background: var(--color-bg) !important;
}




/* ===== BREED INFORMATION SECTION ===== */
.breed-info {
  margin-top: 60px;
}

.breed-info .breed-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breed-info .about {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  display: inline-block;
  margin-bottom: 10px;
}

/* Breed Tags */
.breed-info .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.breed-info .tags span {
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 500;
}

/* Breed Stats */
.breed-info .stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.breed-info .stats .stats-item {
  border-radius: 10px;
}

.breed-info .stats h4 {
  font-weight: 600;
  font-size: 20px;
}

.breed-info .stats p {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 16px;
  padding: 0 !important;
  margin: 0;
}

.breed-info .learn-more {
  display: inline-block;
  margin-top: 10px;
  text-decoration: underline;
  font-weight: 500;
}




/* ====================== */
/*  DESKTOP LAYOUT */
/* ====================== */
@media (min-width: 1024px) {
  .hero-content p {
    width: 60%;
    margin: 0 auto;
    display: block;
  }

  .puppy-list {
    width: 70%;
    margin: 0 auto;
    display: block;
  }

  .puppy-list .list {
    justify-content: start;
    gap: 15px;
  }

  .filter-card {
    width: 30%;
    height: 90vh;
  }



  #section-2 {
    padding: 0 20px;
  }

  #section-2 .badge-swiper {
    height: 300px;
  }

  #section-2 .bagde-card {
    width: 100%;
  }

/* breed quiz */
  .quiz-section .quiz-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 35px 50px;
    gap: 10px;
  }

  .quiz-section .quiz-dog img {
    width: 100px;
  }

  .quiz-section .quiz-text {
    flex: 1;
    text-align: center;
    font-size: 1.5rem !important;
  }

  .quiz-section .quiz-text p {
    font-size: 1.7rem !important;
  }

  .quiz-section .quiz-dog {
    flex-shrink: 0;
  }

  .quiz-section .quiz-button {
    flex-shrink: 0;
  }



    /* breed section info */
  .breed-info .breed-content {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }

  .breed-info .image-wrapper {
    max-width: 500px;
  }

  .breed-info .stats {
    flex-direction: row;
    gap: 30px;
  }

  .breed-info .image-with-shape {
    max-width: 500px;
  }

  .breed-info .bg-shape {
    top: -20px;
    left: -20px;
  }

  .breed-info .image-wrapper img {
    width: 450px;
  }

  
}