html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
  font-family: 'Inter', sans-serif;
  background-repeat: repeat;
  background-size: auto;
    
}


/* TOPBAR */
.floating-topbar {
  max-width: 1200px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  z-index: 1000;
  position: relative;
}


.floating-topbar .left,
.floating-topbar .middle,
.floating-topbar .right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-topbar img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.brand-dark {
  color: #111;
  font-weight: 600;
  font-size: 18px;
}

.brand-green {
  color: #2ecc71;
  font-weight: 600;
  font-size: 18px;
}


.game-icon-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 14px;
}

.icon-square {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-square img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.game-icon-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.icon-label {
  font-size: 12px;
  color: #444;
  font-weight: 500;
  user-select: none;
}


.icon-square:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: scale(1.04);
}

.icon-square.active {
  border-color: #2ecc71;
  background: #f8fff9;
}


.floating-topbar .middle a {
  position: relative;
  text-decoration: none;
  color: #2b7a0b;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.floating-topbar .middle a:hover {
  background: #eafaf1;
  color: #27ae60;
}

.floating-topbar .middle a.active {
  background: #2ecc71;
  color: white;
  font-weight: 600;
}

.discord-button {
  background: rgba(39, 174, 96, 0.1);
  color: #2ecc71;
  border: 1px solid #2ecc71;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  backdrop-filter: blur(4px);
  display: inline-block;
}

.discord-button:hover {
  background: rgba(39, 174, 96, 0.2);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
  /* ✨ Büyüme yok */
}





/* FİLTRE BAR */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  flex-wrap: wrap;
}
.filter-left {
  flex-shrink: 0;
}

.filter-right {
  flex-shrink: 0;
}

.search-combined {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  padding: 8px 12px;
  border-radius: 10px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 200px;
}

.price-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-filter input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 80px;
  font-size: 14px;
}

.price-filter button {
  background-color: #27ae60;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}


.cart-button {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
  padding: 0; /* ❗ Dikey boşluğu etkilemesin */
}

.cart-variants {
  display: flex;
  gap: 4px;
  margin-top: 3px; /* ✔️ Alta boşluk */
}

.variant-box {
  font-size: 12px;
  font-weight: 600;
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.username {
  font-weight: 600;
  font-size: 14px;
  color: #2b7a0b;
}

.right img {
  border-radius: 50%;
  object-fit: cover;
}



.cart-button svg {
  transform: translateY(1px); /* 🔥 İkonu tam ortalamak için */
  width: 24px;
  height: 24px;
}

@keyframes shake-cart {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

.cart-button.shake {
  animation: shake-cart 0.4s ease;
}


.cart-button:hover i {
  stroke: #2ecc71;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e74c3c;
  color: white;
  font-size: 12px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.cart-container {
  position: relative;
}

.cart-popup-dropdown {
  position: absolute;
  top: 70px; /* butonun altına hizalama */
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 999;
  padding: 16px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.cart-popup-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cart-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2b7a0b;
}

.close-cart {
  background: none;
  border: none;
  font-size: 20px;
  color: #e74c3c;
  cursor: pointer;
}

.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.cart-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.cart-items li img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-right: 10px;
}

.cart-item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #2ecc71;
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.remove-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: #e74c3c;
  cursor: pointer;
  margin-top: 4px;
}

.buy-button, .clear-button {
  flex: 1;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
}

.buy-button {
  background: #2ecc71;
  color: white;
}

.buy-button:hover {
  background: #27ae60;
}

.clear-button {
  background: #f8f9fa;
  color: #111;
  border: 1px solid #ddd;
}

.clear-button:hover {
  background: #f1f1f1;
}



/* KARTLAR */
.card-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  max-width: 1400px; /* Ekle! */
  margin: 0 auto;     /* Ortala */
}

.robux-card {
  width: 220px;
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: 0.2s;
}


.robux-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.robux-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}


@media (max-width: 1200px) {
  .card-list {
    max-width: 980px;
  }
}

@media (max-width: 992px) {
  .card-list {
    max-width: 740px;
  }
}

@media (max-width: 768px) {
  .card-list {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .card-list {
    max-width: 100%;
    padding: 10px;
    gap: 16px;
  }

  .robux-card {
    width: 100%;
  }
}



/* 🔴 İndirim etiketi */
.discount-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  background-color: #e74c3c;
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ❌ Eski fiyat */
.old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 6px;
}

/* 🧩 Kart pozisyonu için relative ekle */
.robux-card {
  position: relative;
}


.robux-card h3 {
  margin: 0;
  font-size: 20px;
  color: #2b7a0b;
}

.robux-card p {
  margin: 6px 0 16px;
  color: #555;
  font-size: 16px;
}

.robux-card button {
  padding: 10px 16px;
  background-color: #2ecc71;
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.robux-card button:hover {
  background-color: #27ae60;
}


.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.qty-btn.outline {
  border: 2px solid #2ecc71;
  background-color: transparent;
  color: #2ecc71;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.qty-btn.outline:hover {
  background-color: #2ecc71;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.qty-btn.outline:active {
  transform: scale(0.95);
}

.buy-now {
  border: 2px solid #2ecc71;
  background-color: transparent;
  color: #2ecc71;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.buy-now:hover {
  background-color: #2ecc71;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.buy-now:active {
  transform: scale(0.95);
}

.buy-now.out-of-stock {
  background-color: #e74c3c !important;
  color: white;
  pointer-events: auto;
  cursor: url('images/crying_cursor.cur'), auto;
  box-shadow: none;
  transform: none;
}





.buy-now.out-of-stock:hover {
  background-color: #e74c3c;
}




.count-badge.hidden {
  display: none;
}


.count-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(145deg, #2ecc71, #27ae60);
  color: white;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 3;
}

.stock-badge {
  position: absolute;
  top: 6px; /* bir tık daha yukarı */
  right: 10px;
  background-color: rgba(39, 174, 96, 0.12); /* yeşilimsi transparan */
  color: #2ecc71;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  z-index: 2;
  pointer-events: none;
}

.stock-badge.stock-red {
  background-color: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
}
.stock-badge.stock-orange {
  background-color: rgba(243, 156, 18, 0.12);
  color: #e67e22;
}
.stock-badge.stock-yellow {
  background-color: rgba(241, 196, 15, 0.12);
  color: #f1c40f;
}
.stock-badge.stock-green {
  background-color: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
}

.rarity-badge {
  position: relative;
  cursor: help;
}

/* Tooltip kutusu */
.rarity-badge:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.rarity-badge:hover::after {
  opacity: 1;
}


.variant-badges {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;        /* ✅ rozetler ortalansın */
  height: 28px;               /* ✅ sabit yükseklik */
  margin-top: 8px;
}


.variant-badges span {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  color: white;
  padding: 3px 6px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


.pet-image-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
}

.pet-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}
.error-toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #2ecc71; /* Yeşil */
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.error-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.error-toast.hidden {
  transform: translateY(100px);
  opacity: 0;
}

.error-toast button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-left: auto;
}

body.darkreader {
  background-color: #0e0e0e !important;
  background-image: none !important;
  color: #e0e0e0 !important;
}


/* Kare switch tasarımı */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  border-radius: 6px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 6px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 4px;
  transition: 0.3s;
}

input:checked + .slider {
  background-color: #2ecc71;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Ayar paneli */
.settings-popup {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 16px;
  width: 220px;
  z-index: 9999;
  transition: all 0.3s ease;
}
.settings-popup.hidden {
  display: none;
}

.settings-popup h3 {
  margin-top: 0;
  font-size: 16px;
  color: #2b7a0b;
  margin-bottom: 12px;
}

.setting-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--settings-bg);
  border: 2px solid #2ecc71;
  border-radius: 12px; /* Karemsi yapı */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.settings-btn:hover {
  transform: scale(1.08);
}
.settings-btn svg {
  width: 22px;
  height: 22px;
  stroke: #2ecc71;
}


@media (max-width: 768px) {
  .floating-topbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }

  .floating-topbar .left,
  .floating-topbar .middle,
  .floating-topbar .right {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Hamburger butonu görünür hale gelsin */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: #2ecc71;
    cursor: pointer;
    margin-left: 10px;
  }

  /* Hamburger sadece mobilde gösterilsin */
  .menu-toggle {
    display: block;
  }

  /* Menü tıklanınca gösterilsin */
  .floating-topbar.collapsed .middle,
  .floating-topbar.collapsed .right {
    display: none;
  }

  .floating-topbar.expanded .middle,
  .floating-topbar.expanded .right {
    display: flex;
  }
}

