* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #f9fafb; color: #1f2937;
}

/* === HEADER YAPISI (sticky sarı topbar + dropdown + hamburger) === */
header { position: sticky; top: 0; z-index: 50; background: #ffea80; border-bottom: 1px solid #f0d74f; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.topbar { height: 56px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding-left: 0; }

/* Logo section */
.logo-section { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.logo-img { width: 40px; height: 40px; }
.logo-text { font-size: 18px; font-weight: 700; color: #222; text-decoration: none; cursor: pointer; }

/* Desktop nav — logo sonrası sağa itilir, actions ile birlikte gruplanır */
.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; margin-left: auto; }
.topnav a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: #222; font-weight: 600; transition: background .2s; cursor: pointer; font-size: 17px; }
.topnav a:hover, .topnav a.active { background: #fff5b5; }

/* Küçük masaüstü/tablet: nav'ı kırmadan sıkıştır */
@media (max-width: 1100px){
  .topnav a { padding: 7px 10px; font-size: 16px; }
  .topbar { gap: 4px; }
}
@media (max-width: 900px){
  .topnav a { padding: 6px 8px; font-size: 15px; }
  .topnav { gap: 1px; }
  .logo-img { width: 32px; height: 32px; }
  .logo-text { font-size: 15px; }
}
.dropdown { position: relative; }
.dropbtn { display: inline-flex; align-items: center; justify-content:center; gap: 0; background: transparent; border: 0; padding: 0; border-radius: 10px; font-weight: 700; cursor: pointer; color: #222; }
.dropbtn:hover { background: #fff5b5; }
.dropdown-content { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: 44px; background: #fff; border: 1px solid #eee; border-radius: 12px; min-width: 240px; box-shadow: 0 6px 20px rgba(0,0,0,.08); overflow: hidden; z-index: 10; }
.dropdown-content a { display: flex; gap: 8px; padding: 12px 14px; color: #222; text-decoration: none; font-weight: 600; cursor: pointer; }
.dropdown-content a:hover { background: #fffae1; }
.dropdown.open .dropdown-content { display: block; }
.dil_sec { width: 18px; height: 12px; border: 1px solid #cfcfcf; border-radius: 2px; display: inline-block; }
.qtranxs_flag_tr{background:linear-gradient(#e30a17 50%,#fff 50%)}
.qtranxs_flag_en{background:#00247d}
.qtranxs_flag_ru{background:linear-gradient(#fff 33%,#0033a0 33%,#d52b1e 66%)}
.qtranxs_flag_it{background:linear-gradient(90deg,#008C45 33%,#F4F5F0 33%,#CD212A 66%)}
.qtranxs_flag_az{background:linear-gradient(#00BFFF 33%,#ED2939 33%,#3CB371 66%)}
.qtranxs_flag_ua{background:linear-gradient(#0057B7 50%,#FFD700 50%)}
.qtranxs_flag_at{background:linear-gradient(#ED2939 33%,#fff 33%,#ED2939 66%)}

/* Hamburger menu */
.hamburger { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 20px; height: 2px; background: #222; margin: 3px 0; transition: .3s; border-radius:2px; }

/* ===== HEADER ACTION BUTTONS — Cart, Hamburger =====
   Hepsi aynı boyutta (40×40 desktop, 38×38 mobile) ve yan yana hizalı. */
.cart-icon-wrapper,
.hamburger {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #222;
  transition: background .15s ease, transform .15s ease;
  box-sizing: border-box;
  flex: 0 0 40px !important;
}
/* Hamburger's 3 çizgi dikey yığın (flex-direction:column) */
.hamburger { flex-direction: column !important; gap: 4px; }
.cart-icon-wrapper:hover,
.hamburger:hover { background: #fff5b5; }

.cart-icon-wrapper { position: relative; }
.cart-icon { color:#222; width:22px; height:22px; }
.cart-badge {
  position:absolute; top:2px; right:2px;
  background:#DC3545; color:#fff;
  font-size:10px; font-weight:700;
  min-width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.cart-badge.hidden { display: none; }

.hamburger { display: none; }
.hamburger span {
  display:block; width:20px; height:2px; background:#222; margin:0;
  transition:.3s; border-radius:2px;
}

/* Mobile menu - YARIM EKRAN */
.mobile-menu { 
  display: none; 
  position: fixed; 
  top: 56px; 
  left: 0; 
  width: 100%; 
  max-height: 50vh; 
  background: #ffea80; 
  z-index: 49; 
  overflow-y: auto;
  padding: 1rem;
  border-bottom: 2px solid #f0d74f;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.mobile-menu.active { display: block; }
.mobile-menu a { 
  display: block; 
  padding: 12px 16px; 
  color: #222; 
  text-decoration: none; 
  font-weight: 600; 
  border-radius: 10px; 
  margin-bottom: 4px;
}
.mobile-menu a:hover { background: #fff5b5; }

/* Responsive */
@media (max-width: 768px) {
  .topnav { display: none; }
  .hamburger { display: inline-flex; }

  .topbar {
    gap: 4px;
    padding: 6px 8px;
    flex-wrap: nowrap;
    height: auto;
    min-height: 52px;
  }
  .logo-section {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .logo-section img.logo-img {
    width: auto;
    height: 32px;
    max-width: 130px;
    object-fit: contain;
    display: block;
  }
  .cart-icon-wrapper { order: 3; margin-left: auto; }
  .hamburger        { order: 4; margin-left: 0; }

  /* Sepet + hamburger: eşit boy/hiza (38x38) */
  .cart-icon-wrapper,
  .hamburger {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 8px;
  }

  .cart-icon { width: 20px; height: 20px; }
  .hamburger span { width: 18px; }
}

@media (max-width: 380px) {
  .topbar { gap: 3px; padding: 5px 6px; }
  .logo-section img.logo-img { max-width: 100px; height: 28px; }
  .cart-icon-wrapper,
  .hamburger { width: 34px !important; height: 34px !important; flex: 0 0 34px !important; }
  .cart-icon { width: 18px; height: 18px; }
}

/* Page sections */
.page-section { display: none; }
.page-section.active { display: block; }

#home-page h1 { 
    font-size: 3.5rem !important; 
    font-weight: 900 !important; 
    color: #000000 !important; 
    margin: 2rem 0 1rem;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    #home-page h1 {
        font-size: 2rem !important;
        font-weight: 900 !important;
    }
}
.subtitle { 
    color: #6b7280; 
    font-size: 1rem; 
    line-height: 1.5; 
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }
}
.section-title { font-size: 1.875rem; font-weight: bold; color: #DC3545; text-align: center; margin-bottom: 2rem; }
.grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

/* CAROUSEL CONTAINER - Otomatik Kaydırmalı - DIŞ SARMA OLMADAN */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-infinite 60s linear infinite;
}

.carousel-track .card {
    min-width: calc((100% - 4.5rem) / 4);
    flex-shrink: 0;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .carousel-track .card {
        min-width: calc((100% - 3rem) / 3);
    }
}

@media (max-width: 768px) {
    .carousel-track {
        gap: 1rem;
        animation-duration: 50s;
    }
    .carousel-track .card {
        min-width: calc((100% - 1rem) / 2);
    }
}

/* Updated Card Styles - Fiyat içerde, buton "Sepete Ekle" */
.card { 
    background-color: #f3f4f6; 
    border: 1px solid #d1d5db; 
    border-radius: 0.5rem; 
    overflow: hidden; 
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex-shrink: 0;
}

.card-content { 
    padding: 0.75rem; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    min-height: 80px;
    flex: 1;
}

.coin-info { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.coin-icon { width: 1.5rem; height: 1.5rem; }
.coin-amount { font-size: 1.25rem; font-weight: bold; color: #1f2937; }

/* Yeni: Fiyat bilgisi kart içinde */
.price-info {
    font-size: 1rem;
    font-weight: 600;
    color: #DC3545;
    margin-top: 0.25rem;
}

.card-button-wrapper { padding: 0 0.75rem 0.75rem; }

/* Güncellenmiş buton - Sepete Ekle */
.btn-add-cart {
    width: 100%; 
    background-color: #DC3545; 
    color: #fff; 
    font-weight: bold; 
    padding: 0.5rem;
    text-align: center; 
    border-radius: 0.375rem; 
    border: none; 
    cursor: pointer; 
    font-size: 0.875rem; 
    transition: all 0.3s;
}
.btn-add-cart:hover { 
    background-color: #C82333; 
    transform: scale(1.05); 
}

/* Sepette olan ürün butonu */
.btn-add-cart.in-cart {
    background-color: #28a745;
}
.btn-add-cart.in-cart:hover {
    background-color: #218838;
}

.info-text { text-align: center; color: #374151; font-size: 1rem; margin-top: 2rem; margin-bottom: 2rem; }
.faq-section { margin-bottom: 3rem; }
.faq-title { font-size: 1.875rem; font-weight: bold; color: #1f2937; margin-bottom: 1.5rem; }
.faq-list { list-style: none; margin-bottom: 2rem; }
.faq-list li { color: #374151; margin-bottom: 0.75rem; display: flex; gap: 0.5rem; }
.faq-content h3 { font-size: 1.5rem; font-weight: bold; color: #DC3545; margin-bottom: 1rem; }
.faq-content p { color: #374151; line-height: 1.75; margin-bottom: 1rem; }
footer { background-color: #e5e7eb; padding: 1.5rem 0; margin-top: 3rem; }
footer p { text-align: center; color: #6b7280; font-size: 0.875rem; }
footer a { color: #DC3545; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* News page */
.news-item { background: #fff; padding: 1.5rem; border-radius: 0.5rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.news-item h3 { color: #DC3545; margin-bottom: 0.5rem; }
.news-date { color: #6b7280; font-size: 0.875rem; margin-bottom: 1rem; }

/* Reviews page */
.review-item { background: #fff; padding: 1.5rem; border-radius: 0.5rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.review-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.reviewer-name { font-weight: bold; color: #1f2937; }
.review-stars { color: #fbbf24; }

/* Contact page */
.contact-info-box { 
    background: #fff; 
    padding: 2rem; 
    border-radius: 1rem; 
    max-width: 700px; 
    margin: 2rem auto; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.contact-info-box h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #DC3545;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #DC3545;
}

.contact-item strong {
    display: inline-block;
    min-width: 120px;
    color: #1f2937;
}

.contact-item a {
    color: #DC3545;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form { background: #fff; padding: 2rem; border-radius: 0.5rem; max-width: 600px; margin: 0 auto; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #1f2937; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.375rem; font-size: 1rem; box-sizing: border-box; background: #fff; color: #1f2937; line-height: 1.5; height: auto; }
.form-group input, .form-group select { height: 48px; }
.form-group select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; cursor: pointer; }
.form-group textarea { min-height: 150px; resize: vertical; }
.submit-btn { background-color: #DC3545; color: #fff; padding: 0.75rem 2rem; border: none; border-radius: 0.375rem; font-size: 1rem; font-weight: bold; cursor: pointer; }
.submit-btn:hover { background-color: #C82333; }

/* Cart page styles - 2 Column Layout */
.cart-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cart-left-column {
    display: flex;
    flex-direction: column;
}

.cart-right-column {
    display: flex;
    flex-direction: column;
}

.cart-form-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-summary-box {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
}

.cart-items-list {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.cart-total-section {
    padding-top: 1rem;
    border-top: 2px solid #f3f4f6;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.cart-total-price {
    color: #DC3545;
    font-size: 1.5rem;
}

.cart-item {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.cart-item:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.875rem;
    color: #DC3545;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.qty-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #374151;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #DC3545;
    color: #fff;
    border-color: #DC3545;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
}

.remove-btn {
    background: #fee;
    color: #DC3545;
    border: 1px solid #fdd;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.2s;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #DC3545;
    color: #fff;
    border-color: #DC3545;
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.cart-summary {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-summary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .cart-two-column {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-summary-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-two-column {
        padding: 0 0.5rem;
    }
    
    .cart-summary-box {
        padding: 1rem;
    }
    
    .cart-item {
        padding: 0.75rem;
    }
    
    .cart-item-header {
        flex-direction: column;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-title {
        font-size: 0.875rem;
    }
    
    .cart-item-price {
        font-size: 0.75rem;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
}

/* Detail page styles */
.equal-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* User Profile Card */
.user-profile-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease-out;
}

.user-profile-card.show {
  max-height: 500px;
  opacity: 1;
  animation: expandCard 0.4s ease-out;
}

@keyframes expandCard {
  from {
    max-height: 0;
    opacity: 0;
    transform: scaleY(0.8);
  }
  to {
    max-height: 500px;
    opacity: 1;
    transform: scaleY(1);
  }
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

.user-info h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

.user-info p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0.25rem 0 0 0;
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .user-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
  }
  
  .user-info h3 {
    font-size: 1rem;
  }
}

/* Sorgula Button - RED - Small & Compact */
.query-btn {
  background: #DC3545 !important;
  background-color: #DC3545 !important;
  color: white !important;
  border: none;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 90px;
  white-space: nowrap;
  flex-shrink: 0;
}

.query-btn:hover {
  background: #C82333 !important;
  background-color: #C82333 !important;
  transform: translateY(-2px);
}

.query-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.query-btn .btn-text {
  display: inline-block;
}

.query-btn .btn-spinner {
  display: none;
}

.query-btn.loading .btn-text {
  display: none;
}

.query-btn.loading .btn-spinner {
  display: inline-block;
}

.input-with-button {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.input-with-button input {
  flex: 1;
  min-width: 0;
}

/* Submit button with spinner */
#submitBtn {
  position: relative;
}

#submitBtn .submit-btn-content {
  display: flex;
  align-items: center;
  justify-center: center;
  gap: 0.5rem;
}

#submitBtn .submit-btn-spinner {
  display: none;
}

#submitBtn.loading .submit-btn-content {
  opacity: 0;
}

#submitBtn.loading .submit-btn-spinner {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(450px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.hide {
  transform: translateX(450px);
  opacity: 0;
}

.toast-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  opacity: 0.95;
}

.toast-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@keyframes slideInBounce {
  0% {
    transform: translateX(450px);
    opacity: 0;
  }
  60% {
    transform: translateX(-10px);
    opacity: 1;
  }
  80% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}

.toast-notification.bounce-in {
  animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@media (max-width: 768px) {
  .toast-notification {
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
    top: 70px;
  }
}

/* Detail page text center fix */
#detail-page section.mb-6 h1 {
    text-align: center !important;
}

#detail-page section.mb-6 p {
    text-align: center !important;
}

/* Detail page responsive fixes */
@media (max-width: 768px) {
    .equal-card {
        min-height: auto;
    }
    
    .input-with-button {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .query-btn {
        min-width: 80px;
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    #detail-page section {
        padding: 1rem !important;
    }
    
    #detail-page .lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    #detail-page .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    #detail-page .space-y-4 {
        margin-bottom: 1rem;
    }
    
    #detail-page img {
        max-width: 100%;
        height: auto;
    }
    
    #detail-page .rounded-2xl {
        border-radius: 0.5rem;
    }
    
    #detail-page .p-4,
    #detail-page .p-6,
    #detail-page .p-8 {
        padding: 0.75rem !important;
    }
    
    #detail-page h1 {
        font-size: 1.125rem !important;
    }
    
    #detail-page h2 {
        font-size: 1rem !important;
    }
    
    #detail-page .text-lg,
    #detail-page .text-xl {
        font-size: 0.875rem !important;
    }
    
    #submitBtn {
        font-size: 0.75rem;
    }
    
    #submitBtn .text-xs {
        font-size: 0.65rem;
    }
}

@media (max-width: 400px) {
    .input-with-button {
        flex-direction: row;
    }
    
    .query-btn {
        min-width: 70px;
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Havale disabled state */
.payment-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}


/* =====================================================
   Footer accordion — mobil (≤768px) için
   Her .seo-footer içindeki <h4>, altındaki <ul>'ü toggle eder.
   Masaüstünde hep açık (varsayılan görünüm).
   ===================================================== */
@media (max-width: 768px){
    .seo-footer .container > div:not(.bottom):not(.footer-top) > h4 {
        position: relative;
        padding: 12px 32px 12px 0;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        user-select: none;
        cursor: pointer;
    }
    .seo-footer .container > div:not(.bottom):not(.footer-top) > h4::after {
        content: '+';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.35rem;
        font-weight: 400;
        line-height: 1;
        color: currentColor;
        opacity: .8;
        transition: transform .25s ease;
    }
    .seo-footer .container > div:not(.bottom):not(.footer-top) > h4.acc-open::after {
        content: '–';
        transform: translateY(-50%) rotate(0deg);
    }
    /* Varsayılan: h4'ün altındaki ul gizli */
    .seo-footer .container > div:not(.bottom):not(.footer-top) > ul {
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0 0 0 0;
        transition: max-height .35s ease, padding .35s ease;
    }
    /* Açık h4'ten hemen sonraki ul'ü göster */
    .seo-footer .container > div:not(.bottom):not(.footer-top) > h4.acc-open + ul {
        max-height: 1200px;
        padding: 8px 0 16px 0;
    }
}

/* Çok sayfalı yapı: içerik başlığının sticky header'a değmemesi için */
main.container { padding-top: 1.5rem; }

/* ===== İçerik accordion (.seo-rich + .faq-section) ===== */
.seo-acc-item{
    border:1px solid #eef2f7;
    border-radius:16px;
    margin:.6rem 0;
    background:#fff;
    box-shadow:none;
    overflow:hidden;
    transition:box-shadow .25s ease, border-color .25s ease;
}
.seo-acc-item:hover{ border-color:#ffd9e5; box-shadow:0 6px 20px rgba(255,0,80,.08); }
.seo-acc-item.open{ border-color:#ffc2d6; box-shadow:0 10px 30px rgba(255,0,80,.10); }
.seo-acc-head{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:1.05rem 1.25rem;
    background:transparent;
    border:0;
    cursor:pointer;
    text-align:left;
    font-family:inherit;
    position:relative;
    transition:background-color .2s ease;
}
.seo-acc-head::before{
    content:"";
    position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:3px; height:0;
    background:linear-gradient(#ff0050,#ff6aa0);
    border-radius:0 3px 3px 0;
    transition:height .28s ease;
}
.seo-acc-item.open .seo-acc-head::before{ height:58%; }
.seo-acc-head:hover{ background:#fff6f9; }
.seo-acc-head h2,
.seo-acc-head h3{
    margin:0 !important;
    flex:1 1 auto;
    font-family:'Playfair Display',serif;
    font-weight:700;
    letter-spacing:-.01em;
    line-height:1.35;
    color:#0f172a;
    transition:color .2s ease;
}
.seo-acc-head h2{ font-size:1.15rem; }
.seo-acc-head h3{ font-size:1.02rem; }
.seo-acc-item.open .seo-acc-head h2,
.seo-acc-item.open .seo-acc-head h3{ color:#ff0050; }
.seo-acc-chevron{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px; height:30px;
    border-radius:50%;
    background:#fff0f5;
    color:#ff0050;
    transition:transform .3s ease, background-color .2s ease, color .2s ease;
}
.seo-acc-item.open .seo-acc-chevron{ transform:rotate(180deg); background:#ff0050; color:#fff; }
/* açılır/kapanır yükseklik animasyonu */
.seo-acc-body{
    display:grid;
    grid-template-rows:0fr;
    transition:grid-template-rows .32s ease;
}
.seo-acc-item.open .seo-acc-body{ grid-template-rows:1fr; }
.seo-acc-inner{
    overflow:hidden;
    padding:0 1.25rem;
    color:#334155;
}
.seo-acc-item.open .seo-acc-inner{ padding-bottom:1.15rem; }
.seo-acc-inner > *:first-child{ margin-top:0; }
.seo-acc-inner p{ line-height:1.7; }
.seo-acc-inner b{ color:#0f172a; }
/* FAQ bölümü accordion içindeyken iç dolguyu sıfırla */
.faq-section .seo-acc-inner .faq-content{ margin-top:.5rem; }

/* ===== Mobil ince ayar: paket kartları ekrana sığsın + ferah SEO bölümü ===== */
@media (max-width: 768px) {
  /* .card min-width:200px iki sütunda taşmaya yol açıyordu; grid içinde sıfırla */
  .grid { gap: .7rem; }
  .grid .card { min-width: 0; }
  .card-content { padding: .6rem .5rem; min-height: 68px; }
  .coin-icon { width: 1.25rem; height: 1.25rem; }
  .coin-amount { font-size: 1.05rem; }
  .price-info { font-size: .9rem; }
  .card-button-wrapper { padding: 0 .55rem .6rem; }

  /* SEO içerik bölümü mobilde daha ferah ve zarif */
  .seo-rich { padding: 1.25rem 0 !important; margin: 1.75rem auto .5rem !important; }
  .seo-acc-item { margin: .5rem 0; border-radius: 14px; }
  .seo-acc-head { padding: .9rem 1rem; }
  .seo-acc-inner { padding: 0 1rem; }
  .seo-acc-head h2 { font-size: 1.02rem; }
  .seo-acc-head h3 { font-size: .95rem; }
  .seo-acc-chevron { width: 26px; height: 26px; }
}


/* ===== Dil seçici (TR/EN) — header pill ===== */
.lang-switch{ position:relative; display:inline-block; margin:0 .5rem; flex:0 0 auto; }
.lang-switch .lang-btn{ display:inline-flex; align-items:center; gap:6px; background:transparent; border:0;
  border-radius:999px; padding:6px 8px; cursor:pointer; font-family:inherit; font-weight:700; font-size:15px; color:#222;
  transition:opacity .15s ease; }
.lang-switch .lang-btn:hover{ opacity:.7; }
.lang-switch .lang-code{ letter-spacing:.02em; }
.lang-switch .lang-caret{ font-size:11px; color:#888; transition:transform .18s ease; }
.lang-switch.open .lang-caret{ transform:rotate(180deg); }
.lang-switch .lf{ font-size:16px; line-height:1; }
.lang-switch .lang-menu{ position:absolute; top:calc(100% + 8px); right:0; min-width:190px; background:#fff;
  border:1px solid rgba(0,0,0,.10); border-radius:14px; box-shadow:0 12px 34px -12px rgba(0,0,0,.28);
  padding:6px; display:none; z-index:1200; }
.lang-switch.open .lang-menu{ display:block; animation:langFade .16s ease; }
@keyframes langFade{ from{ opacity:0; transform:translateY(-4px);} to{ opacity:1; transform:none;} }
.lang-switch .lang-opt{ display:flex; align-items:center; gap:10px; width:100%; border:0; background:transparent;
  cursor:pointer; font-family:inherit; font-weight:600; font-size:14px; color:#333; text-align:left;
  padding:9px 12px; border-radius:9px; transition:background-color .12s ease, color .12s ease; }
.lang-switch .lang-opt:hover{ background:#fff5b5; color:#111; }
.lang-switch .lang-opt.active{ background:#111; color:#fff; }
@media (max-width:768px){
  .lang-switch{ order:2; margin-left:auto; }
  .cart-icon-wrapper{ order:3; margin-left:6px !important; }
  .hamburger{ order:4; }
  .lang-switch .lang-btn{ padding:5px 9px; font-size:13px; }
  .lang-switch .lang-menu{ min-width:170px; }
}

/* Footer info-contact (icon list) */
.footer-info{ display:flex; flex-direction:column; gap:16px; max-width:520px; }
.info-contact{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.info-contact li{ display:flex; align-items:flex-start; gap:10px; }
.info-contact .info-icon{ flex:0 0 auto; width:16px; height:16px; color:#ff2e63; margin-top:3px; }
.info-contact .info-icon svg{ width:16px; height:16px; display:block; }
.info-contact .info{ font-size:.9rem; line-height:1.45; color:#cbd5e1; }
.info-contact .info b{ color:#fff; }
.info-contact .info a{ color:#cbd5e1; text-decoration:none; }
.info-contact .info a:hover{ color:#fff; text-decoration:underline; }

/* Cart pages: prevent iOS auto-zoom on input focus (min 16px font) */
.signin-input,
.cart-single-box input,
.cart-single-box textarea,
.cart-single-box select { font-size: 16px !important; }
