#sl-toast {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    background: #06f;
    color: #fff;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    min-width: 220px;
    max-width: 350px;
    text-align: left;
    opacity: 0.97;
}
#sl-toast.sl-toast-error { 
    background: #c0392b; 
}
#sl-toast.sl-toast-success { 
    background: #27ae60; 
}
#sl-toast.sl-toast-info { 
    background: #06f; 
}


.menu-item.sayi a {
    position: relative;
}
.menu-item.sayi a:after {
    content: attr(data-count);
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 4px;
}
.menu-item.sayi a.sayi-degisti:after {
    background: linear-gradient(135deg, #11b64d 0%, #085725 100%);
    animation: sayiPop 0.4s ease;
}
@keyframes sayiPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.siparis-listesi-buton-widget {
    display: flex;
    align-items: center;
    gap: 5px;
}
input[type="number"].siparis-adet-input {
    width: 3.5rem;
}
.single-product .siparis-listesi-buton-widget input[type="number"].siparis-adet-input {
    width: 6rem;
}
input[type="number"].siparis-adet-input, 
.siparis-listesi-buton {
    height: 3rem;
}

/* Chrome, Safari, Edge ve Opera için */
input[type="number"].siparis-adet-input::-webkit-inner-spin-button,
input[type="number"].siparis-adet-input::-webkit-outer-spin-button,
input[type="number"].adet-input::-webkit-inner-spin-button,
input[type="number"].adet-input::-webkit-outer-spin-button {
    opacity: 1 !important;
    visibility: visible !important;
}
.siparis-adet-input, .adet-input {
    height: 50px;
    font-size: 20px;
    padding-right: 10px; /* Okların metne yapışmaması için */
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  margin: 0;
  /*transform: scale(1.5);
  transform-origin: right;*/
  height: 100%;
}

.siparis-listesi-buton,
.stokta-yok {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    background: #000;
    color: #fff;
    padding: 1px;
    font-size: .9rem;
    font-weight: bold;
    text-decoration: none !important;
    transition: background 0.3s, color 0.3s;
}
.siparis-listesi-buton:hover {
    background: #082557;
    color: #fff;
    text-decoration: none;
}
.siparis-listesi-buton.urun-listede {
    background: #114db6;
}
.outofstock .siparis-adet-input {
    display: none;
}
.outofstock .siparis-listesi-buton,
.stokta-yok {
    background: #888;
    padding: 10px;
    cursor: not-allowed !important;
}
.eklendi-animasyon {
    background: #fff;
    border: 2px solid #4CAF50;
    font-size: 12px;
    padding: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: eklendiAnimasyon 1s forwards;
    pointer-events: none;
    z-index: 5;
}
@keyframes eklendiAnimasyon {
    0% {
        background: #fff;
        opacity: 0;
    }
    50% {
        background: #4CAF50;
        opacity: .8;
    }
    100% {
        background: #fff;
        opacity: 1;
    }
}
.siparis-listesi table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.siparis-listesi th,
.siparis-listesi td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.siparis-listesi th {
    background-color: #f4f4f4;
}
@media (max-width: 767px) {
    .siparis-listesi th.urun-adi {
        width: 50%;
    }
}
.siparis-listesi th.adet,
.siparis-listesi td.islem {
    width: 100px;
}
.siparis-listesi tr.invalid-row td {
    background-color: #f8d7da;
    color: #721c24;
}
.siparis-listesi a {
    text-decoration: underline;
}
.adet-input {
    width: 3.5rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    font-size: 1rem;
    pointer-events: none;
    transition: border 0.3s;
}
.adet-wrapper {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    overflow: hidden;
}
.adet-butonlari {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.adet-butonlari button {
    width: 20px;
    height: 20px;
    min-height: unset;
    background: #000;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0 !important;
    margin: 0 !important;
}

.adet-butonlari button:hover {
    background: #e6e6e6;
}
/* New inline-edit UX styles */
.adet-input-container { display: inline-flex; align-items: center; gap: 4px; }
.adet-toggle-btn {
    position: static;
    width: 40px;
    height: 28px;
    background: linear-gradient(135deg,#114db6 0%,#082557 100%);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.adet-toggle-btn:hover { 
    background: linear-gradient(135deg,#082557 0%,#114db6 100%);
    color: #fff;
}
.adet-input-container.editing .adet-input {
    border: 2px solid #333 !important;
    pointer-events: auto !important;
}
.adet-input-container.editing .adet-toggle-btn {
    background: linear-gradient(135deg,#050 0%, #4c4 100%) !important;
}
/* Mobile: show edit button visibly instead of hover overlay */
@media (max-width: 600px) {
    .adet-toggle-btn { opacity: 1; position: static; transform: none; margin-left: 6px; background: #114db6; color: #fff; }
}

.siparis-listesi a.listeden-cikar::before {
    content: "×";
    font-weight: 900;
    margin-right: 5px;
}
.siparis-listesi a.listeden-cikar {
    text-align: right;
    text-decoration: none;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.siparis-listesi a.listeden-cikar:hover {
    background: #f00;
}
@media (max-width: 600px) {
    .siparis-listesi th,
    .siparis-listesi td {
        font-size: 0.9rem;
        padding: 6px;
    }
    .adet-wrapper {
        width: fit-content;
    }
    .listeden-cikar {
        font-size: 0;
        display: inline-block;
    }
    .siparis-listesi a.listeden-cikar::before {
        margin-right: 0;
        font-size: 16px;
    }
}
#sl-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}
.sl-modal-icerik {
    background: #fff;
    margin: 10% auto;
    padding: 25px;
    width: 450px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.sl-modal-kapat {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
}
#sl-modal-sonuclar {
    max-height: 250px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
}
.sl-modal-sonuc-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}
.sl-modal-sonuc-item:hover {
    background-color: #f9f9f9;
}
.sl-modal-sonuc-item:last-child {
    border-bottom: none;
}
.sl-modal-sonuc-item input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.sl-modal-sonuc-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 4px;
    border: 1px solid #eee;
}
.sl-modal-sonuc-item .sonuc-bilgi {
    display: flex;
    flex-direction: column;
}
.sl-modal-sonuc-item .sonuc-isim {
    font-weight: bold;
}
.sl-modal-sonuc-item .sonuc-sku {
    font-size: 0.9em;
    color: #666;
}

.siparis-listesi-butonlar {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 15px;
}
.siparis-listesi-butonlar button {
    margin: 0 0 0 10px !important;
    background: linear-gradient(135deg, #114db6 0%, #082557 100%);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.siparis-listesi-butonlar button:hover {
    background: linear-gradient(135deg, #082557 0%, #114db6 100%);
    color: #fff;
}
#pdf-indir-btn {
    display: inline-block;
    margin-top: 15px;
    background: linear-gradient(135deg, #f30, #f60);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.9rem;
}
#pdf-indir-btn:hover {
    background: linear-gradient(135deg, #f60, #f30);
    color: #fff;
    text-decoration: none;
}
button#pdf-indir-btn:before {
    content: "\f1c1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
}
