/* ---------- Basic Reset & Global Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #fcfcfc;
  color: #333;
  padding-top: 60px;
}
main {
  margin: 20px 12%;
  padding: 20px 0;
}

/* ---------- Visually Hidden (SEO) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mobile-Only Search Bar ---------- */
.mobile-only-search {
  display: none;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}
.mobile-search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 10px;
}
.mobile-search-input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
}
.mobile-search-button {
  background-color: #e12222;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}
.mobile-search-button:hover {
  background-color: #c20c0c;
}

/* ---------- Carousel Section Styles ---------- */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1450px;
  aspect-ratio: 1450 / 500;
  margin: 0 auto 10px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ff0000;
}
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-item {
  min-width: 100%;
  display: none;
}
.carousel-item.active {
  display: block;
}
.carousel-item img,
.video-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #fcfcfc;
  border-radius: 8px;
}
.carousel-item[data-redirect-url] {
  cursor: pointer;
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(51, 51, 51, 0.7);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background-color 0.3s, transform 0.3s;
}
.carousel-control.prev {
  left: 10px;
}
.carousel-control.next {
  right: 10px;
}
.carousel-control:hover {
  background-color: rgba(85, 85, 85, 0.7);
  transform: translateY(-50%) scale(1.05);
}

/* ---------- Product Cards Styles ---------- */
.products-container {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.product {
  background-color: white;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.image-container {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.image-container img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95%;
  height: 95%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}
.product h3 {
  font-size: 16px;
  margin: 10px 0 5px;
  flex-grow: 1;
  font-weight: normal;
}
.product p {
  font-size: 14px;
  margin: 10px 0;
  font-weight: normal;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fake-price {
  text-decoration: line-through;
  color: #000;
  margin-right: 8px;
  font-weight: normal;
}
.actual-price {
  color: red;
  font-weight: bold;
}

/* ---------- Animal Adoption Ads Section (Sahiplenme Ads) ---------- */
.animal-ads {
  margin-top: 40px;
}
.animal-ads h2 {
  margin-bottom: 20px;
}
.animal-ads-slider {
  position: relative;
  max-width: 100%;
  overflow: visible;
}
.animal-ads-container {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  overflow-x: hidden;
}
.animal-ad {
  flex: 0 0 auto;
  width: 200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.animal-ad a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.animal-ad:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.animal-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.animal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.animal-title {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  height: 50px;
  overflow: hidden;
}
.animal-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(51, 51, 51, 0.7);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background-color 0.3s, transform 0.3s;
}
.animal-slider-control:hover {
  background-color: rgba(85, 85, 85, 0.7);
  transform: translateY(-50%) scale(1.05);
}
.animal-slider-control.prev {
  left: -30px;
}
.animal-slider-control.next {
  right: -30px;
}

/* ---------- Çok Satanlar Slider Styles ---------- */
.cok-satanlar {
  margin-top: 40px;
  /* Added extra bottom margin to create space before sahiplenme ads */
  margin-bottom: 20px;
}
.cok-satanlar h2 {
  margin-bottom: 20px;
}
.cok-satanlar-slider {
  position: relative;
  max-width: 100%;
  overflow: visible;
}
.cok-satanlar-container {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  overflow-x: hidden;
}
.cok-satanlar-item {
  flex: 0 0 auto;
  width: 200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.cok-satanlar-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}
.image-name {
  text-align: center;
  font-size: 14px;
  padding: 5px 0;
  color: #555;
}
.cok-satanlar-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(51, 51, 51, 0.7);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background-color 0.3s, transform 0.3s;
}
.cok-satanlar-control.prev {
  left: -30px;
}
.cok-satanlar-control.next {
  right: -30px;
}
.cok-satanlar-control:hover {
  background-color: rgba(85, 85, 85, 0.7);
  transform: translateY(-50%) scale(1.05);
}
.cok-satanlar-container::-webkit-scrollbar {
  display: none;
}
.cok-satanlar-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- Sizin İçin Seçtiklerimiz (Popüler Ürünler) Slider Styles ---------- */
.popular-products-duplicate {
  margin-top: 40px;
  /* Adding some space above to separate from "kategoriler" */
  margin-top: 60px;
}
.popular-products-slider {
  position: relative;
  max-width: 100%;
  overflow: visible;
}
.popular-products-container {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  overflow-x: hidden;
}
/* Uses the default desktop product size */
.popular-products-slider .product {
  min-width: 200px;
  padding: 8px;
}
.popular-products-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(51, 51, 51, 0.7);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background-color 0.3s, transform 0.3s;
}
.popular-products-control.prev {
  left: -30px;
}
.popular-products-control.next {
  right: -30px;
}
.popular-products-control:hover {
  background-color: rgba(85, 85, 85, 0.7);
  transform: translateY(-50%) scale(1.05);
}
.popular-products-container::-webkit-scrollbar {
  display: none;
}
.popular-products-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- Brands Slider Styles (New) ---------- */
.brands-slider {
  margin-top: 40px;
}
.brands-slider-wrapper {
  position: relative;
  max-width: 100%;
  overflow: visible;
}
.brands-container {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  overflow-x: hidden;
}
.brands-item {
  flex: 0 0 auto;
  width: 200px;
  height: 100px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.brands-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.brands-slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(51, 51, 51, 0.7);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background-color 0.3s, transform 0.3s;
}
.brands-slider-control.prev {
  left: -30px;
}
.brands-slider-control.next {
  right: -30px;
}
.brands-slider-control:hover {
  background-color: rgba(85, 85, 85, 0.7);
  transform: translateY(-50%) scale(1.05);
}
.brands-container::-webkit-scrollbar {
  display: none;
}
.brands-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- Additional Spacing Adjustments ---------- */
.kategoriler {
  margin-bottom: 20px;
}
.thumbnail-banners {
  margin-top: 10px;
}
.popular-products h2 {
  margin-top: 40px;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  main {
    margin: 10px 0;
    padding: 20px 0;
  }
  .carousel {
    width: 100%;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fcfcfc;
  }
  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  .carousel-item {
    width: 100%;
    flex: 0 0 auto;
    display: none;
  }
  .carousel-item.active {
    display: block;
  }
  .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }
  .carousel-control {
    display: none;
  }
  .products-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    cursor: grab;
    margin-top: 10px;
  }
  .product {
    flex: 0 0 auto;
    width: 160px;
    padding: 6px;
    border-radius: 8px;
  }
  .product h3 {
    font-size: 14px;
  }
  .product p {
    font-size: 12px;
  }
  .image-container {
    padding-top: 100%;
  }
  .price-row {
    flex-direction: column;
    gap: 5px;
  }
  .card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .animal-ads-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    cursor: grab;
  }
  .animal-ad {
    width: 150px;
  }
  .animal-image {
    height: 120px;
  }
  .cok-satanlar-container,
  .popular-products-container,
  .brands-container {
    overflow-x: auto;
    cursor: grab;
  }
  .cok-satanlar-container::-webkit-scrollbar,
  .popular-products-container::-webkit-scrollbar,
  .brands-container::-webkit-scrollbar {
    display: none;
  }
  .cok-satanlar-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .cok-satanlar-item,
  .brands-item {
    width: 140px;
  }
  .popular-products-slider .product {
    min-width: 140px;
  }
  .carousel-control,
  .animal-slider-control,
  .cok-satanlar-control,
  .popular-products-control,
  .brands-slider-control {
    display: none;
  }
}
@media (max-width: 480px) {
  .carousel {
    aspect-ratio: 16 / 9;
    margin: 0 auto 15px;
  }
  .product h3 {
    font-size: 12px;
  }
  .product p {
    font-size: 10px;
  }
  .animal-ad {
    width: 130px;
  }
  .animal-title {
    font-size: 12px;
  }
}
@media (max-width: 768px) {
  .mobile-only-search {
    display: block;
  }
}

@media (max-width: 768px) {
  .brands-slider-wrapper {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .brands-item img {
    object-fit: contain;
    height: auto;
  }
}

@media (max-width: 768px) {
  .brands-item {
    height: 80px; /* Reduced height for mobile */
  }
  .brands-item img {
    height: 100%; /* Ensure the image fills the container */
  }
}

/* Full-width section with background */
.info-banner {
  width: 100%;
  background-color: #f7f7f7;
  padding: 20px 0;
}

/* Centered container for text */
.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.info-container h1 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-align: center;
}

.info-container p {
  margin-bottom: 15px;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
  .info-container {
    padding: 0 15px;
    font-size: 0.9rem;
  }
  
  .info-container h1 {
    font-size: 1.5rem;
  }
}


.brands-slider h2 {
  margin-bottom: 20px;
}
