﻿.cart-row-deleted {
    opacity: .45;
    background: #f5f5f5;
}

.cart-qty-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.cart-qty-value {
    min-width: 28px;
    text-align: center;
    display: inline-block;
    font-weight: 600;
}

.cart-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

    .cart-icon-btn svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
    }

.cart-col-image {
    width: 80px;
}

.cart-col-qty {
    width: 180px;
}

.cart-col-unitprice {
    width: 130px;
}

.cart-col-discount {
    width: 110px;
}

.cart-col-vat {
    width: 70px;
}

.cart-col-total {
    width: 140px;
}

/* 🔥 KRİTİK FIX (bootstrap override) */
table td.cart-number,
table th.cart-number {
    text-align: right !important;
    white-space: nowrap;
}

/* VAT ortalama */
table td.cart-vat,
table th.cart-vat {
    text-align: center !important;
}


/* cart action buttons */
.cart-icon-btn {
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .cart-icon-btn:hover {
        background-color: #f1f1f1;
        border-color: #d7d7d7;
        transform: translateY(-1px);
    }

    .cart-icon-btn:active {
        transform: translateY(0);
    }

/* header cart */
.hdr-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.18s ease;
}

    .hdr-cart:hover {
        opacity: 0.92;
    }

.hdr-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

    .hdr-cart-icon i {
        font-size: 1.35rem;
        line-height: 1;
        transition: transform 0.2s ease;
    }

.hdr-cart:hover .hdr-cart-icon i {
    transform: scale(1.08);
}

.hdr-cart-text {
    line-height: 1;
    white-space: nowrap;
}

/* badge */
.hdr-cart-count {
    position: absolute;
    top: -6px;
    right: -9px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    border: 2px solid #fff;
    transform-origin: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hdr-cart:hover .hdr-cart-count {
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.hdr-cart-count:empty {
    display: none !important;
}

/* mobile */
@media (max-width: 768px) {
    .hdr-cart {
        gap: 8px;
    }

    .hdr-cart-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

        .hdr-cart-icon i {
            font-size: 1.25rem;
        }

    .hdr-cart-text {
        font-size: 0.95rem;
    }

    .hdr-cart-count {
        top: -5px;
        right: -7px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
        border-width: 1.5px;
    }
}

@media (max-width: 576px) {
    .hdr-cart {
        gap: 6px;
    }

    .hdr-cart-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

        .hdr-cart-icon i {
            font-size: 1.15rem;
        }

    .hdr-cart-text {
        font-size: 0.9rem;
    }

    .hdr-cart-count {
        top: -4px;
        right: -6px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 9px;
    }
}


.proceed-delivery-page .pd-panel {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    background: #fcfcfd;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.delivery-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.delivery-label {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
}

.delivery-select {
    min-height: 46px;
    border-radius: 10px;
}

.delivery-inline-radios {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.delivery-radio-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    margin: 0;
}

    .delivery-radio-chip .form-check-input {
        margin: 0;
        flex-shrink: 0;
    }

    .delivery-radio-chip span {
        font-weight: 500;
        color: #1f2937;
    }

.delivery-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.delivery-continue-btn {
    min-width: 140px;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .delivery-label-row {
        align-items: stretch;
    }

        .delivery-label-row .btn {
            width: 100%;
        }

    .delivery-radio-chip {
        width: 100%;
    }

    .delivery-action-row {
        justify-content: stretch;
    }

    .delivery-continue-btn {
        width: 100%;
    }
}

.delivery-summary-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}

.delivery-summary-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.delivery-summary-main {
    min-width: 0;
}

.delivery-summary-name {
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.delivery-summary-code,
.delivery-summary-qty {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.35;
}

.delivery-summary-price {
    min-width: 88px;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .delivery-summary-item {
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: start;
    }

    .delivery-summary-thumb {
        width: 48px;
        height: 48px;
    }

    .delivery-summary-price {
        grid-column: 2;
        min-width: 0;
        margin-top: 4px;
        text-align: left;
    }
}