
.deals__container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 1.5625rem;
  padding-bottom: calc(var(--gutter-section-y)/2);
  padding-top: 1.5625rem;
  padding-top: calc(var(--gutter-section-y)/2);
  position: relative
}

.deals__container-item {
  position: relative;
  width: 49%
}

.deals__container-item a {
  height: 100%;
  position: relative;
  -webkit-text-decoration: none;
  text-decoration: none;
  z-index: 3;
}

.deals__container-item a .deals__container-card {
  border: 3px solid transparent;
  border-radius: 10px;
  height: 100%;
  position: relative;
  transition: .25s ease;
  width: 100%
}

.deals__container-item a .deals__container-card:hover {
  border-color: #f67e27;
  transform: scale(1.025);
  z-index: 3;
}

.deals__container-item a .deals__container-card:before {
  background-color: rgba(7,16,43,.847);
  border-radius: 10px;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity .35s;
  z-index: 1
}

.deals__container-item a .deals__container-card--image {
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  flex: 0 1 auto;
  height: 100%;
  object-fit: contain;
  order: 0
}

.deals__container-item a .deals__container-card--logo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 8rem;
  padding: .75rem;
  z-index: 2
}

.deals__container-item a .deals__container-card:hover:before {
  opacity: 1
}

.deals__container-item a .deals__container-card:hover .deals__container-card-description {
  display: flex;
}

.deals__container-item a .deals__container-card:hover .deals__container-card-description [class*=" icon-platform"],.deals__container-item a .deals__container-card:hover .deals__container-card-description [class^=icon-platform] {
  font-size: 30px
}

.deals__container-item a .deals__container-card-description {
  color: #fff;
  cursor: pointer;
  display: none;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  margin: auto;
  text-transform: uppercase;
  width: 90%;
}

@media screen and (min-width: 992px) {
  .deals__container-item a .deals__container-card-description {
      max-width:243px;
  }
}

.deals__container-item a .deals__container-card-description .prices {
  margin-bottom: .5rem;
  z-index: 9;
}

.deals__container-item a .deals__container-card-description .icon {
  font-size: 1.25rem;
  font-size: var(--font-large);
  padding-left: .5rem;
  padding-right: .5rem
}

.deals__container-item a .deals__container-card-description .deals-description-title {
  display: inline-block;
  font-size: 120%;
  font-weight: 600;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  z-index: 9;
}

.deals__container-item a .deals__container-card-description .attributes {
  margin-bottom: .75rem
}

.deals__container-item a .deals__container-card-description .attributes i {
  font-size: 1.25rem;
  padding-right: .5rem
}

.deals__container-item a .deals__container-card-description .slide-price {
  font-size: 1.125rem;
  margin-bottom: .75rem
}

.deals__container-item a .deals__container-card-description .slide-price span:nth-child(-n+2) {
  padding-right: .5rem
}

.deals__container-item a .deals__container-card-description .slide-price--old {
  -webkit-text-decoration: line-through;
  text-decoration: line-through
}

.deals__container-item a .deals__container-card-description .slide-price--discount {
  background-color: #f48331;
  border-radius: 5px;
  color: #fff;
  font-family: Poppins,sans-serif;
  font-size: 15px;
  font-weight: 500;
  height: 25px;
  padding: 2px 11px;
  width: 53px
}

.deals__container-item a .deals__container-card-description .button__primary {
  margin-top: .5rem
}

/* Desktop Sizes - Optimized for 668x238 aspect ratio */
.deals__container-item:first-child {
  height: 280px; /* 668x238 oranına uygun */
  margin-bottom: 2%;
  order: 1
}

.deals__container-item:nth-child(2) {
  height: 134px; /* Küçük kartlar için 668x238 oranı */
  order: 2
}

.deals__container-item:nth-child(3) {
  height: 134px; /* Küçük kartlar için 668x238 oranı */
  order: 3
}

.deals__container-item:nth-child(4) {
  height: 280px; /* 668x238 oranına uygun */
  margin-top: -146px; /* Yeni yüksekliğe göre ayarlandı */
  order: 4
}

/* Top Sellers Optimized Styles */
.topsellers-section {
  margin-bottom: 2rem;
}

/* h2 styling now handled by .ep-section__title in product-card-v2.css */

.topsellers-section .fa-trophy {
  color: var(--btn-bg);
}

/* Tablet Grid Layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .topsellers-section .grid-cols-3 {
    gap: 1rem;
  }

  .topsellers-section .grid-cols-3 .bg-gfp-navy {
    min-height: 320px;
  }

  .topsellers-section .grid-cols-3 .h-48 {
    height: 12rem;
  }

  .topsellers-section .grid-cols-3 h3 {
    font-size: 1rem;
    height: 3rem;
  }

  .topsellers-section .grid-cols-3 .p-4 {
    padding: 1rem;
  }
}

/* Desktop Grid Layout - Optimized for 668x238 */
@media (min-width: 1024px) {
  .topsellers-desktop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    height: 280px; /* Daha düşük yükseklik */
  }

  .topsellers-main-card {
    grid-column: span 2;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.3);
    background-color: var(--surface);
  }

  .topsellers-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 668/238;
  }

  .topsellers-small-cards {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .topsellers-small-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.2);
    background-color: var(--surface);
    height: 134px; /* 668x238 oranına uygun yükseklik */
  }

  .topsellers-small-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 668/238;
  }
}

/* Mobile Vertical Card Design */
@media (max-width: 1023px) {
  .topsellers-section .space-y-4 > div {
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: auto;
  }

  .topsellers-section .shadow-lg {
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  }

  /* Mobile Image Section */
  .topsellers-section .h-48 {
    height: 270px;
  }

  /* Mobile Typography */
  .topsellers-section h3 {
    font-size: 1.125rem;
    line-height: 1.4;
    height: auto;
    min-height: 2.8rem;
  }

  .topsellers-section .text-xl {
    font-size: 1.25rem;
  }

  .topsellers-section .text-lg {
    font-size: 1.125rem;
  }

  .topsellers-section .text-base {
    font-size: 1rem;
  }

  /* Mobile Buttons */
  .topsellers-section .rel--doCartAdd {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 6px rgba(var(--btn-rgb), 0.3);
    border-radius: 0.5rem;
  }

  .topsellers-section .rel--doCartAdd:hover {
    box-shadow: 0 6px 8px rgba(var(--btn-rgb), 0.4);
    transform: translateY(-1px);
  }

  /* Mobile Wishlist Button */
  .topsellers-section .rel--doWishlist {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
  }

  .topsellers-section .rel--doWishlist i {
    font-size: 1.125rem;
  }

  /* Mobile Badges */
  .topsellers-section .rounded-full {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  .topsellers-section .bg-gfp-accent {
    background: linear-gradient(135deg, var(--btn-bg) 0%, #e67e22 100%);
  }

  .topsellers-section .bg-red-500 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  }

  /* Mobile Spacing */
  .topsellers-section .p-4 {
    padding: 1.25rem;
  }

  .topsellers-section .space-y-4 > * + * {
    margin-top: 1rem;
  }

  /* Mobile Image Optimization - Better for mobile viewing */
  .topsellers-section img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    background: var(--surface);
    border-radius: 12px;
  }

  /* Mobile Top Sellers Card Container */
  .topsellers-section .aspect-\[16\/9\] {
    aspect-ratio: 16/9 !important; /* Mobile'da 16:9 daha iyi görünür */
  }

  /* Mobile deals container images */
  .deals__container-card img {
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px;
  }

  /* Mobile card styling improvements */
  .topsellers-section .group {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .topsellers-section .group:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
  }

  /* Mobile Hover Effects */
  .topsellers-section .group:hover img {
    transform: scale(1.05);
  }

  /* Mobile Gradient Overlay */
  .topsellers-section .bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  }

  /* Mobile Top Sellers Horizontal Scroll - Full Width */
  #topSellersContainer {
    gap: 1rem;
    padding: 0 1rem;
    scroll-snap-type: x mandatory;
    margin: 0 -1rem; /* Container'ı tam genişliğe çıkar */
    padding: 0 1rem;
  }

  #topSellersContainer .group {
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    width: calc(100vw - 3rem); /* Viewport genişliği - padding */
    min-width: calc(100vw - 3rem);
    max-width: 400px;
    flex-shrink: 0;
  }

  #topSellersContainer .group:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
  }

  #topSellersContainer .aspect-\[16\/9\] {
    aspect-ratio: 16/9 !important;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
  }

  #topSellersContainer img {
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block; /* Block display ile boşluk önle */
  }

  #topSellersContainer .group:hover img {
    transform: scale(1.05);
  }

  /* Mobile image container */
  #topSellersContainer .relative.overflow-hidden {
    background: var(--surface);
    border-radius: 12px;
  }

  /* Mobile Top Sellers Card Improvements */
  #topSellersContainer .rounded-xl {
    border-radius: 0.75rem;
  }

  #topSellersContainer .p-3 {
    padding: 0.75rem;
  }

  #topSellersContainer .min-h-\[2\.5rem\] {
    min-height: 2.5rem;
  }
}

/* Small Mobile Devices - Compact Design */
@media (max-width: 480px) {
  /* Vertical stack for old deals container */
  .deals__container-item {
    height: 160px !important; /* Daha kompakt */
  }

  /* Tailwind container optimization - Full width */
  #topSellersContainer .group {
    width: calc(100vw - 2.5rem); /* Daha az padding */
    min-width: calc(100vw - 2.5rem);
    max-width: 350px;
  }

  #topSellersContainer .aspect-\[16\/9\] {
    height: 160px; /* Daha kompakt yükseklik */
    width: 100%;
  }

  .topsellers-section h3 {
    font-size: 0.9rem;
    line-height: 1.2;
    min-height: 2rem;
    margin-bottom: 0.5rem;
  }

  .topsellers-section .text-xl {
    font-size: 1rem;
  }

  .topsellers-section .text-lg {
    font-size: 0.9rem;
  }

  .topsellers-section .p-4,
  #topSellersContainer .p-3 {
    padding: 0.75rem;
  }

  .topsellers-section .rel--doCartAdd {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .topsellers-section .rel--doWishlist {
    width: 2rem;
    height: 2rem;
  }

  .topsellers-section .rel--doWishlist i {
    font-size: 0.9rem;
  }

  /* Compact spacing */
  .topsellers-section .space-y-4 > * + * {
    margin-top: 0.75rem;
  }
}

/* Utility Classes */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Top Sellers Image Optimization */
.topsellers-section img {
  transition: transform 0.3s ease;
}

.topsellers-section .group:hover img {
  transform: scale(1.05);
}

/* Top Sellers Button Styles */
.topsellers-section .rel--doCartAdd {
  transition: all 0.3s ease;
}

.topsellers-section .rel--doCartAdd:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(var(--btn-rgb), 0.3);
}

.topsellers-section .rel--doWishlist {
  transition: all 0.3s ease;
  z-index: 10;
}

.topsellers-section .rel--doWishlist:hover {
  transform: scale(1.1);
}

.v-popper.v-popper--theme-tooltip {margin: 0 auto;text-align: center;}

.product-action.my-3.justify-content-center {
  z-index: 1;
}

.icon-eye:before {
  content: "";
}

.gfp-button {
  border-radius: 0.375rem;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-align: center;
  text-transform: uppercase;
}

/* Top Sellers Image Optimization for 668x238 */
.deals__container-card img {
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  flex: 0 1 auto;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover kullanarak tam genişlik */
  object-position: center; /* Görseli ortala */
  aspect-ratio: 668/238; /* Orijinal oran koru */
  background: var(--surface);
}

.deals__container-card-description .product-card__discount {
  position: static !important;
}

.publishers {
  margin-bottom: 0px !important;
}

/* Tablet Optimization for 668x238 */
@media (min-width: 768px) and (max-width: 1023px) {
  .deals__container-item {
    width: 48%;
    margin-bottom: 1rem;
  }

  .deals__container-item:first-child,
  .deals__container-item:nth-child(4) {
    height: 200px; /* Tablet için optimize edilmiş yükseklik */
  }

  .deals__container-item:nth-child(2),
  .deals__container-item:nth-child(3) {
    height: 120px; /* Tablet için küçük kartlar */
  }

  .deals__container-item:nth-child(4) {
    margin-top: 0; /* Tablet'te overlap yok */
  }

  .deals__container-card img {
    aspect-ratio: 668/238;
    object-fit: cover;
    object-position: center;
  }
}

/* Mobile Optimization - Better Layout for 668x238 */
@media (max-width: 767px) {
  /* Old deals container - vertical stack */
  .deals__container {
    flex-direction: column;
    gap: 1rem;
  }

  .deals__container-item {
    width: 100% !important;
    height: 180px !important; /* Daha yüksek, daha iyi görünüm */
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    order: initial !important; /* Sıralama iptal */
  }

  .deals__container-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  .deals__container-card img {
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px;
    width: 100%;
    height: 100%;
  }

  /* Tailwind Top Sellers - Full width horizontal scroll */
  #topSellersContainer {
    padding: 0 1rem;
    margin: 0 -1rem; /* Container'ı tam genişliğe çıkar */
  }

  #topSellersContainer .group {
    width: calc(100vw - 3rem); /* Viewport genişliği - padding */
    min-width: calc(100vw - 3rem);
    max-width: 400px;
    flex-shrink: 0;
  }

  #topSellersContainer .aspect-\[16\/9\] {
    aspect-ratio: 16/9 !important;
    height: 180px;
    width: 100%;
    overflow: hidden;
  }

  #topSellersContainer img {
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px;
    width: 100% !important;
    height: 100% !important;
    display: block;
  }

  /* Mobile card content */
  #topSellersContainer .p-3 {
    padding: 1rem;
  }

  #topSellersContainer h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  /* Mobile price styling */
  #topSellersContainer .text-xl {
    font-size: 1.125rem;
  }

  #topSellersContainer .text-lg {
    font-size: 1rem;
  }
}

/* Top Sellers Desktop - Full Coverage Images */
@media (min-width: 1024px) {
  /* Override all Top Sellers images to use cover - no padding */
  .topsellers-section img {
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* Remove container backgrounds and centering */
  .topsellers-section .relative.h-full.overflow-hidden {
    background: none !important;
    display: block !important;
  }

  /* Update heights for new h-80 class */
  .topsellers-section .h-80 {
    height: 20rem !important;
  }

  .topsellers-section .h-96 {
    height: 24rem !important;
  }

  /* Fix border-radius on hover - prevent scale from breaking rounded corners */
  .topsellers-section .rounded-xl {
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .topsellers-section .relative.h-full.overflow-hidden {
    overflow: hidden !important;
  }

  /* Ensure image container maintains overflow hidden */
  .topsellers-section .group > div {
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  /* Remove outline and border from links and images */
  .topsellers-section a {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .topsellers-section a:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  .topsellers-section img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: block !important;
  }

  /* Remove any border from image containers */
  .topsellers-section .relative.h-full.overflow-hidden,
  .topsellers-section .block.h-full {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Force all divs inside topsellers to have no border */
  .topsellers-section div {
    box-sizing: border-box !important;
  }

  /* Remove any potential white line from absolute positioned elements */
  .topsellers-section .absolute {
    border: none !important;
    outline: none !important;
  }

  /* Ensure rounded corners are perfectly aligned */
  .topsellers-section .group > div {
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }
}