/* =============================================
   CUSTOM SIDE CART — OpenCart 3 + Journal 3
   ============================================= */

/* Journal 3 dropdown sepeti gizle */
div.cart-content,
#cart .j-dropdown { display: none !important; }

/* Overlay */
#sc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99997;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
#sc-overlay.sc-on { opacity: 1; visibility: visible; }

/* Panel */
#sc-panel {
  position: fixed;
  top: 0; right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.25,.46,.45,.94);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}
#sc-panel.sc-on { transform: translateX(0); }

/* Header */
#sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
#sc-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
#sc-qty {
  background: #cc0000;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}
#sc-close {
  width: 32px; height: 32px;
  border: 1px solid #e5e5e5;
  background: #f6f6f6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .2s;
  padding: 0;
  flex-shrink: 0;
}
#sc-close:hover { background: #e0e0e0; transform: rotate(90deg); }

/* Loading */
#sc-loading {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 10; opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
#sc-loading.on { opacity: 1; visibility: visible; }
.sc-spin {
  width: 28px; height: 28px;
  border: 3px solid #f0f0f0;
  border-top-color: #cc0000;
  border-radius: 50%;
  animation: scSpin .6s linear infinite;
}
@keyframes scSpin { to { transform: rotate(360deg); } }

/* Ürün listesi */
#sc-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  -webkit-overflow-scrolling: touch;
}
#sc-body::-webkit-scrollbar { width: 3px; }
#sc-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/* Ürün satırı */
.sc-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f3f3;
  animation: scIn .25s ease both;
}
.sc-item:last-child { border-bottom: none; }
@keyframes scIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sc-item img {
  width: 68px; height: 68px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.sc-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.sc-name {
  font-size: 12px; font-weight: 600; color: #111;
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-meta {
  display: flex; align-items: center;
  gap: 8px; margin-top: auto;
}
.sc-qty-badge {
  background: #f0f0f0; border-radius: 4px;
  padding: 2px 7px; font-size: 11px;
  font-weight: 600; color: #555;
}
.sc-price { font-size: 13px; font-weight: 700; color: #cc0000; }
.sc-del {
  background: none; border: none;
  cursor: pointer; color: #ccc;
  font-size: 16px; padding: 4px;
  transition: color .15s;
  flex-shrink: 0; align-self: center;
}
.sc-del:hover { color: #cc0000; }

/* Boş sepet */
.sc-empty {
  display: flex; align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center; color: #bbb;
  font-size: 13px;
}

/* Footer */
#sc-foot {
  border-top: 1px solid #f0f0f0;
  padding: 14px 20px 18px;
  flex-shrink: 0;
}
.sc-row {
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 12px; color: #888; padding: 3px 0;
}
.sc-grand {
  font-size: 13px; font-weight: 700; color: #111;
  padding-top: 10px; margin-top: 6px;
  border-top: 1px solid #f0f0f0;
}
#sc-tot { font-size: 17px; font-weight: 800; color: #cc0000; }

.sc-btn-group {
  display: flex; flex-direction: column;
  gap: 8px; margin-top: 14px;
}
.sc-go, .sc-go:hover, .sc-go:focus,
.sc-view, .sc-view:hover, .sc-view:focus {
  display: block !important;
  text-align: center;
  padding: 12px;
  border-radius: 7px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background .15s;
  cursor: pointer;
  border: none;
}
.sc-go, .sc-go:visited { background: #cc0000 !important; color: #fff !important; }
.sc-go:hover { background: #aa0000 !important; }
.sc-view, .sc-view:visited { background: #f0f0f0 !important; color: #333 !important; }
.sc-view:hover { background: #e5e5e5 !important; }

body.sc-open { overflow: hidden !important; }
@media (max-width: 480px) { #sc-panel { width: 100vw; } }



.notification-wrapper { display: none !important; }
