/* =================================================
   FLOAT CART
================================================= */

#sc4p-float-cart {
  position: fixed !important;
  left: 16px;
  bottom: 16px;

  background: #1e3a8a;
  color: #fff;

  padding: 10px 14px;
  border-radius: 28px;

  display: flex;
  align-items: center;
  gap: 6px;

  z-index: 99999;
  cursor: pointer;

  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.85);
}

/* Badge */
#sc-cart-count {
  background: #facc15;
  color: #000;
  font-weight: 600;

  border-radius: 12px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 1024px) {
  #sc4p-float-cart {
    background: #2563eb;
  }
}

/* =================================================
   CART PANEL + OVERLAY
================================================= */

#sc4p-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99998;
}

#sc4p-cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 360px;
  height: 100%;
  background: #1e1e1e;
  color: #fff;
  z-index: 99999;

  display: flex;
  flex-direction: column;
}

/* Header */
.sc4p-cart-header {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
}

.sc4p-cart-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Body */
.sc4p-cart-body {
  padding: 14px;
}

/* Footer */
.sc4p-cart-footer {
  padding: 14px;
  border-top: 1px solid #333;
  background: #111;
}
/* ===============================
   MOBILE FIXED CTA (CHECKOUT)
=============================== */
@media (max-width: 768px) {
  .sc4p-cart-footer {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
  }
}

/* =================================================
   INITIAL HIDDEN STATE (JS KONTROL EDER)
================================================= */

.sc4p-hidden {
  display: none !important;
}

/* ===============================
   SIZE SELECTION STATES
=============================== */

.sc-size-option {
  border: 1px solid #aaa;
  background: #f5f5f5;
  color: #333;
  padding: 6px 12px;
  margin: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.sc-size-option:hover {
  background: #eaeaea;
}

/* ✅ SEÇİLİ SIZE */
.sc-size-option.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
  font-weight: 600;
}

/* (opsiyonel) sepette olan size */
.sc-size-option.in-cart {
  background: #ddd;
  border-color: #ccc;
  color: #888;
  cursor: not-allowed;
}

.sc4p-cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc4p-cart-item {
  padding: 6px 0;
  border-bottom: 1px solid #333;
  font-size: 13px;
}

.sc4p-cart-size {
  font-weight: 600;
}

/* Scroll only for cart items */
.sc4p-cart-items-wrapper {
  max-height: 260px;      /* ihtiyaca göre 220–320 */
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 6px;
}

/* Optional scrollbar style */
.sc4p-cart-items-wrapper::-webkit-scrollbar {
  width: 6px;
}
.sc4p-cart-items-wrapper::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

/* Size buttons */
.sc-size-btn {
  font-size: 0.85em;
  padding: 6px 10px;
}

/* Add to cart button */
#sc4p-add-to-cart {
  font-size: 0.95em;      /* size'lardan biraz büyük */
  padding: 9px 14px;
  font-weight: 600;
  opacity: 0.6;
  cursor: not-allowed;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

#sc4p-add-to-cart.is-active {
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}


/* ===============================
   CHECKOUT TABLE HEADER
=============================== */

.sc4p-checkout-table thead th,
table.table thead th {
  background-color: #f3f4f6;   /* açık gri */
  color: #333;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid #ddd;
}

/* ===============================
   CHECKOUT TABLE – FINAL TOUCH
=============================== */

table.table {
  margin: 20px auto;
  border-collapse: collapse;
  background: #fff;
}

/* Header */
table.table thead th {
  background-color: #f3f4f6;
  color: #333;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 2px solid #ddd;
  text-align: left;
}

/* Body */
table.table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

/* Son satırda çizgi olmasın */
table.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===============================
   CHECKOUT TOPLAM SATIRI (YENİ)
=============================== */

.sc4p-total-row {
  background-color: #f8f9fa;  /* Açık gri - istediğiniz renk */
  font-weight: bold;
}

.sc4p-total-row td {
  padding: 15px 14px !important;
  border-top: 2px solid #dee2e6 !important;
  font-size: 1.1em;
}

.sc4p-total-row:hover {
  background-color: #e9ecef;
  transition: background-color 0.3s ease;
}

/* ===============================
   ALTERNATİF RENK SEÇENEKLERİ
   (İsterseniz yukarıdaki background-color'u değiştirin)
=============================== */

/* Yeşil ton 
.sc4p-total-row {
  background-color: #d4edda;
  border-color: #c3e6cb;
}
*/

/* Mavi ton 
.sc4p-total-row {
  background-color: #d1ecf1;
  border-color: #bee5eb;
}
*/

/* Turuncu ton 
.sc4p-total-row {
  background-color: #fff3cd;
  border-color: #ffeaa7;
}
*/

/* Koyu tema 
.sc4p-total-row {
  background-color: #343a40;
  color: #ffffff;
  border-color: #23272b;
}
*/
/* ===============================
   FINAL CHECKOUT & ADD TO CART BUTTONS
=============================== */

.sc4p-checkout-btn,
#sc-add-to-cart {
  display: block !important;
  width: 100%;
  padding: 16px 18px;
  margin: 12px 0;

  font-size: 17px;
  font-weight: 700;
  text-align: center;

  border-radius: 8px;
  text-decoration: none !important;
  border: none;

  cursor: pointer;
}

/* Checkout */
.sc4p-checkout-btn {
  background-color: #0d6efd;
  color: #ffffff !important;
}

/* Add to cart */
#sc-add-to-cart {
  background-color: #198754;
  color: #ffffff !important;
}

/* Disabled */
#sc-add-to-cart[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hover / Tap */
.sc4p-checkout-btn:hover,
#sc-add-to-cart:hover {
  opacity: 0.92;
}

/* Mobile safety space */
@media (max-width: 768px) {
  .sc4p-cart-panel {
    padding-bottom: 96px;
  }
}

/* =================_tri
   ORDER SUCCESS PAGE
=============================== */

.sc4p-success-box {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.sc4p-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.sc4p-lead {
  font-size: 18px;
  margin: 10px 0;
}

.sc4p-muted {
  color: #777;
  font-size: 14px;
}

.sc4p-actions {
  margin-top: 30px;
}