/* =========================================================
   NEDEN TEKSTİL - SEPET SAYFASI
   Temizlenmiş tek parça CSS
   ========================================================= */

/* GENEL SAYFA */

.nt-cart {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 22px 65px;
    color: #151b25;
    font-family: Arial, Helvetica, sans-serif;
}

    .nt-cart *,
    .nt-cart *::before,
    .nt-cart *::after {
        box-sizing: border-box;
    }

    .nt-cart [hidden] {
        display: none !important;
    }

    /* Küçük ana sayfa > sepetim yolu gizli.
   Büyük Sepetim başlığı görünür kalır. */

    .nt-cart .nt-breadcrumb {
        display: none !important;
    }

/* =========================================================
   SAYFA BAŞLIĞI
   ========================================================= */

.nt-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 18px;
}

.nt-cart h1 {
    display: block;
    margin: 0;
    font-size: 29px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    font-weight: 750;
}

    .nt-cart h1 small {
        font-size: 14px;
        color: #667080;
        font-weight: 400;
        letter-spacing: 0;
    }

.nt-clear {
    flex-shrink: 0;
    padding: 11px 15px;
    border: 1px solid #ff4539;
    border-radius: 7px;
    background: #fff;
    color: #e22c22;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

    .nt-clear span {
        margin-right: 5px;
    }

    .nt-clear:hover {
        background: #fff5f4;
    }

/* =========================================================
   İKİ SÜTUNLU SEPET YERLEŞİMİ
   ========================================================= */

.nt-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(290px, 0.95fr);
    align-items: start;
    gap: 23px;
}

.nt-items,
.nt-summary {
    min-width: 0;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(30, 40, 60, 0.025);
}

/* =========================================================
   SEPET ÜRÜNLERİ
   ========================================================= */

.nt-items {
    padding: 0 13px;
    align-self: start;
}

.nt-item {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 90px 105px;
    align-items: center;
    gap: 13px;
    min-height: 108px;
    padding: 12px 0;
    border-bottom: 1px solid #e9edf1;
}

    .nt-item:last-child {
        border-bottom: 0;
    }

/* Ürün görseli */

.nt-item-photo,
.nt-item-photo a {
    display: block;
    width: 68px;
    height: 84px;
}

.nt-photo {
    display: block;
    width: 68px;
    height: 84px;
    object-fit: cover;
    object-position: center top;
    background: #f5f5f6;
    border-radius: 4px;
}

.nt-placeholder {
    display: grid;
    place-items: center;
    color: #a0a6ae;
    font-size: 24px;
}

/* Ürün bilgileri */

.nt-item-info {
    min-width: 0;
    align-self: center;
}

.nt-item h3 {
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.nt-product-link {
    color: inherit;
    text-decoration: none;
}

    .nt-product-link:hover {
        color: #ff4a22;
    }

.nt-item-variant {
    margin: 0 0 7px;
    color: #455061;
    font-size: 11px;
    line-height: 1.4;
}

/* Stok durumu */

.nt-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #354153;
    font-size: 11px;
}

.nt-stock-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #1aaf39;
}

.nt-stock-out .nt-stock-dot {
    background: #e54848;
}

/* Adet kontrolü */

.nt-qty {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    height: 29px;
    overflow: hidden;
    border: 1px solid #e4e7ed;
    border-radius: 5px;
}

    .nt-qty button {
        width: 29px;
        height: 28px;
        padding: 0;
        border: 0;
        background: #f5f6f8;
        color: #27313c;
        font-family: inherit;
        font-size: 15px;
        cursor: pointer;
    }

        .nt-qty button:hover:not(:disabled) {
            background: #e9edf2;
        }

        .nt-qty button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

    .nt-qty span {
        width: 29px;
        text-align: center;
        font-size: 12px;
    }

/* Ürün fiyatı ve kaldırma */

.nt-item-end {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    align-self: stretch;
    gap: 4px;
    padding-top: 10px;
    white-space: nowrap;
}

    .nt-item-end strong {
        font-size: 14px;
        font-weight: 800;
        line-height: 1.3;
    }

    .nt-item-end s {
        color: #9199a4;
        font-size: 10px;
    }

.nt-remove {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #273344;
    font-size: 0;
    cursor: pointer;
}

    .nt-remove::after {
        content: "×";
        font-size: 19px;
        font-weight: 400;
        line-height: 16px;
    }

    .nt-remove:hover {
        color: #f34b2a;
    }

/* =========================================================
   SİPARİŞ ÖZETİ
   ========================================================= */

.nt-summary {
    align-self: start;
    overflow: hidden;
}

.nt-summary-main {
    margin: 0;
    padding: 19px 18px 17px;
}

.nt-summary h2 {
    margin: 0 0 19px;
    font-size: 16px;
    font-weight: 750;
}

.nt-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0;
    font-size: 12px;
}

    .nt-line b {
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }

.nt-shipping-hint {
    margin: 3px 0 12px;
    color: #fa4a24;
    font-size: 11px;
}

/* Toplam tutar */

.nt-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 17px;
    padding: 17px 0 14px;
    border-top: 1px solid #e5e9ee;
    font-size: 15px;
    font-weight: 800;
}

    .nt-total strong {
        font-size: 20px;
        letter-spacing: -0.4px;
        white-space: nowrap;
    }

/* Alışverişi tamamla */

.nt-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: #ff4b1e;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

    .nt-checkout span {
        font-size: 20px;
        font-weight: 400;
    }

    .nt-checkout:hover:not(:disabled) {
        background: #e94116;
    }

    .nt-checkout:disabled {
        background: #ff4b1e;
        opacity: 1;
        cursor: not-allowed;
    }

.nt-checkout-note {
    display: block;
    margin: 9px 0 0;
    padding: 0;
    color: #838c98;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   KUPON ALANI
   Tek form, tek yerleşim, çakışan kurallar yok.
   ========================================================= */

/* Formun dış kapsayıcısı */

.nt-cart #ntCouponForm.nt-coupon {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 22px 20px 24px;
    border: 0;
    border-top: 1px solid #e7eaf0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

/* Kupon başlığı */

.nt-cart #ntCouponForm .nt-coupon-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding: 0;
    color: #202b3c;
    font-size: 13px;
    font-weight: 700;
    line-height: 25px;
}

/* Yüzde simgesi */

.nt-cart #ntCouponForm .nt-coupon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin: 0;
    border: 1px solid #dce4ed;
    border-radius: 7px;
    background: #f5f7fa;
    color: #263449;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

/* Giriş ve buton aynı satırda */

.nt-cart #ntCouponForm .nt-coupon-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Kupon giriş kutusu */

.nt-cart #ntCouponForm #ntCoupon {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #202b3c;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    box-shadow: none;
}

    .nt-cart #ntCouponForm #ntCoupon::placeholder {
        color: #929cab;
    }

    .nt-cart #ntCouponForm #ntCoupon:focus {
        border-color: #299b54;
        box-shadow: 0 0 0 3px rgba(41, 155, 84, 0.10);
    }

/* Yeşil Uygula butonu */

.nt-cart #ntCouponForm .nt-coupon-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #299b54;
    border-radius: 8px;
    background: #299b54;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .nt-cart #ntCouponForm .nt-coupon-apply:hover {
        border-color: #218345;
        background: #218345;
    }

    .nt-cart #ntCouponForm .nt-coupon-apply:focus-visible {
        outline: 3px solid rgba(41, 155, 84, 0.22);
        outline-offset: 2px;
    }

/* Kupon kaldır */

.nt-cart #ntRemoveCoupon {
    display: block;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #df4938;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

    .nt-cart #ntRemoveCoupon:hover {
        text-decoration: underline;
    }

/* =========================================================
   HATA / YÜKLENME / BOŞ SEPET
   ========================================================= */

.nt-error {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e9baba;
    border-radius: 6px;
    background: #fff1f1;
    color: #a22;
    font-size: 12px;
}

.nt-loading {
    opacity: 0.7;
    pointer-events: none;
}

.nt-empty {
    padding: 50px 15px;
    text-align: center;
}

    .nt-empty h2 {
        font-size: 19px;
    }

    .nt-empty p {
        color: #77808d;
        font-size: 12px;
    }

/* Önerilen ürünler */

.nt-recommend {
    margin-top: 55px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .nt-cart-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.95fr);
        gap: 15px;
    }

    .nt-item {
        grid-template-columns: 60px minmax(0, 1fr) 85px 90px;
        gap: 9px;
    }

    .nt-item-photo,
    .nt-item-photo a,
    .nt-photo {
        width: 60px;
    }

    .nt-item-end strong {
        font-size: 12px;
    }
}

/* =========================================================
   KÜÇÜK TABLET
   ========================================================= */

@media (max-width: 800px) {

    .nt-cart-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .nt-summary {
        position: static;
    }

    .nt-item {
        grid-template-columns: 68px minmax(0, 1fr) 90px 105px;
        gap: 12px;
    }

    .nt-item-photo,
    .nt-item-photo a,
    .nt-photo {
        width: 68px;
    }

    .nt-item-end strong {
        font-size: 14px;
    }
}

/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 520px) {

    .nt-cart {
        padding: 20px 10px 40px;
    }

    /* Başlık */

    .nt-cart-head {
        gap: 10px;
        margin-bottom: 15px;
    }

    .nt-cart h1 {
        font-size: 23px;
    }

        .nt-cart h1 small {
            font-size: 12px;
        }

    .nt-clear {
        padding: 9px;
        font-size: 10px;
    }

    /* Ürün satırları */

    .nt-items {
        padding: 0 9px;
    }

    .nt-item {
        grid-template-columns: 57px minmax(0, 1fr) 90px;
        grid-template-areas:
            "photo info end"
            "photo qty end";
        gap: 5px 9px;
        min-height: 111px;
    }

    .nt-item-photo {
        grid-area: photo;
    }

        .nt-item-photo,
        .nt-item-photo a,
        .nt-photo {
            width: 57px;
            height: 76px;
        }

    .nt-item-info {
        grid-area: info;
    }

    .nt-item h3 {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .nt-item-variant {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .nt-stock {
        font-size: 10px;
    }

    .nt-qty {
        grid-area: qty;
        justify-self: start;
        height: 26px;
    }

        .nt-qty button {
            width: 26px;
            height: 25px;
        }

        .nt-qty span {
            width: 26px;
        }

    .nt-item-end {
        grid-area: end;
    }

        .nt-item-end strong {
            font-size: 11px;
        }

        .nt-item-end s {
            font-size: 9px;
        }

    /* Sipariş özeti */

    .nt-summary-main {
        padding: 17px 14px;
    }

    .nt-total strong {
        font-size: 18px;
    }

    /* Kupon: mobilde de kenarlardan boşluklu */

    .nt-cart #ntCouponForm.nt-coupon {
        padding: 18px 15px 20px;
    }

    .nt-cart #ntCouponForm .nt-coupon-fields {
        grid-template-columns: minmax(0, 1fr) 80px;
        gap: 8px;
    }

    .nt-cart #ntCouponForm #ntCoupon {
        padding: 0 10px;
        font-size: 11px;
    }

    .nt-cart #ntCouponForm .nt-coupon-apply {
        padding: 0 8px;
        font-size: 11px;
    }
}
/* KUPON ALANI */

.nt-cart .nt-summary {
    overflow: hidden;
}

.nt-cart .nt-coupon-wrap {
    width: 100%;
    padding: 20px 24px 24px;
    border-top: 1px solid #e7eaf0;
    background: #fff;
    box-sizing: border-box;
}

.nt-cart #ntCouponForm {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

    .nt-cart #ntCouponForm .nt-coupon-title {
        display: block;
        margin: 0 0 12px;
        padding: 0;
        color: #202b3c;
        font-size: 13px;
        font-weight: 700;
        line-height: 18px;
    }

    .nt-cart #ntCouponForm .nt-coupon-fields {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 90px;
        gap: 10px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

.nt-cart #ntCoupon {
    display: block;
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #dce3ec;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #202b3c;
    font-size: 12px;
    box-sizing: border-box;
}

    .nt-cart #ntCoupon:focus {
        border-color: #229653;
    }

.nt-cart #ntCouponForm .nt-coupon-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #229653;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .nt-cart #ntCouponForm .nt-coupon-apply:hover {
        background: #197b41;
    }

.nt-cart #ntRemoveCoupon {
    display: block;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d84335;
    font-size: 11px;
    cursor: pointer;
}

@media (max-width: 520px) {
    .nt-cart .nt-coupon-wrap {
        padding: 18px 16px 22px;
    }

    .nt-cart #ntCouponForm .nt-coupon-fields {
        grid-template-columns: minmax(0, 1fr) 76px;
        gap: 8px;
    }
}
/* KUPON ALANI – gerçek HTML sınıflarına göre */

.nt-cart .nt-coupon-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 20px 22px 22px !important;
    margin: 0 !important;
    border-top: 1px solid #e8ecf2 !important;
    background: #fff !important;
}

    .nt-cart .nt-coupon-wrap .nt-coupon-fields {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 10px !important;
    }

    .nt-cart .nt-coupon-wrap #ntCoupon {
        box-sizing: border-box !important;
        display: block !important;
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 13px !important;
        border: 1px solid #dce3ed !important;
        border-radius: 7px !important;
        background: #fff !important;
        font-size: 12px !important;
    }

    .nt-cart .nt-coupon-wrap .nt-coupon-apply {
        box-sizing: border-box !important;
        display: inline-flex !important;
        flex: 0 0 94px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 94px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 7px !important;
        background: #219653 !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
    }

        .nt-cart .nt-coupon-wrap .nt-coupon-apply:hover {
            background: #197b43 !important;
        }

/* Kupon kaldır butonu */
.nt-cart #ntRemoveCoupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 34px;
    margin: 12px 0 0;
    padding: 0 14px;
    border: 1px solid #ef4444;
    border-radius: 6px;
    background: #fff5f5;
    color: #dc2626;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

    .nt-cart #ntRemoveCoupon:hover {
        background: #fee2e2;
        border-color: #dc2626;
    }

    .nt-cart #ntRemoveCoupon:focus-visible {
        outline: 2px solid #dc2626;
        outline-offset: 2px;
    }

    .nt-cart #ntRemoveCoupon[hidden] {
        display: none !important;
    }