/* ═══════════════════════════════════════════
   CART PAGE — Shared Styles
═══════════════════════════════════════════ */
.cart-page-wrapper { padding-bottom: 100px; }

/* ── Step Progress ── */
.cart-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 28px;
}
.cart-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}
.cart-step .step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #e0e0ef;
    background: #fff;
    color: #b0b0c8;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.cart-step.active .step-circle {
    background: #625AFA;
    border-color: #625AFA;
    color: #fff;
    box-shadow: 0 4px 14px rgba(98,90,250,0.35);
}
.cart-step.done .step-circle {
    background: #00b894;
    border-color: #00b894;
    color: #fff;
}
.cart-step .step-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #b0b0c8;
    margin-top: 6px;
}
.cart-step.active .step-label { color: #625AFA; }
.cart-step.done  .step-label  { color: #00b894; }
.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0ef;
    margin: 0 6px 22px;
    max-width: 56px;
}
.step-line.done { background: #625AFA; }

/* ── Item Cards ── */
.cart-item-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(2,3,16,0.06);
    position: relative;
}
.cart-item-img {
    width: 72px; height: 72px;
    border-radius: 10px;
    object-fit: contain;
    border: 1px solid #f1f1f2;
    flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-brand {
    font-size: 10px; color: #b0b0c8;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.4px; margin-bottom: 2px;
}
.cart-item-name {
    font-size: 13px; font-weight: 700; color: #020310;
    margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-id { font-size: 11px; color: #a0a0bc; margin-bottom: 8px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 15px; font-weight: 700; color: #625AFA; }
.cart-item-price .old-price {
    font-size: 11px; color: #b0b0c8;
    text-decoration: line-through; font-weight: 500; margin-left: 4px;
}
.qty-control {
    display: flex; align-items: center; gap: 8px;
    background: #f8f8fc; border-radius: 10px; padding: 4px 8px;
}
.qty-btn {
    width: 26px; height: 26px; border-radius: 8px;
    border: none; background: #fff; color: #625AFA;
    font-size: 18px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(98,90,250,0.15);
    line-height: 1;
}
.qty-value { font-size: 14px; font-weight: 700; color: #020310; min-width: 20px; text-align: center; }
.remove-btn {
    position: absolute; top: 10px; right: 10px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #fef0f2; color: #ea4c62;
    border: none; font-size: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.remove-btn:hover { background: #ea4c62; color: #fff; }

/* ── Summary Card ── */
.cart-summary-card {
    background: #fff; border-radius: 16px; padding: 20px;
    margin-bottom: 12px; box-shadow: 0 2px 12px rgba(2,3,16,0.06);
}
.cart-summary-card h6 { font-size: 15px; font-weight: 700; color: #020310; margin-bottom: 16px; }
.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px dashed #f1f1f2;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row span  { font-size: 13px; color: #747794; }
.summary-row strong{ font-size: 13px; font-weight: 700; color: #020310; }
.summary-total {
    border-top: 2px solid #f1f1f2; margin-top: 8px; padding-top: 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.summary-total span   { font-size: 14px; font-weight: 700; color: #020310; }
.summary-total strong { font-size: 18px; font-weight: 700; color: #625AFA; }

/* ── Buttons ── */
.cart-proceed-btn {
    display: block; width: 100%; padding: 15px;
    background: linear-gradient(135deg, #625AFA 0%, #21d6f1 100%);
    color: #fff; font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    border: none; border-radius: 14px; cursor: pointer;
    text-align: center; text-decoration: none;
    box-shadow: 0 6px 20px rgba(98,90,250,0.35);
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 4px;
}
.cart-proceed-btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.cart-share-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px; background: #fff; color: #625AFA;
    font-size: 13px; font-weight: 700;
    border: 2px solid #625AFA; border-radius: 12px;
    cursor: pointer; transition: all 0.2s; margin-top: 8px; text-decoration: none;
}
.cart-share-btn:hover { background: #625AFA; color: #fff; }
.cart-section-heading {
    font-size: 13px; font-weight: 700; color: #747794;
    text-transform: uppercase; letter-spacing: 0.6px; margin: 0 0 12px;
}

/* ─────────────────────────────────────────
   STATE: EMPTY
───────────────────────────────────────── */
.cart-empty-wrapper {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 48px 24px 40px; text-align: center;
}
.cart-empty-icon {
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(135deg, #f3f2ff 0%, #e8f9fe 100%);
    display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.cart-empty-icon i { font-size: 44px; color: #625AFA; }
.cart-empty-title  { font-size: 20px; font-weight: 700; color: #020310; margin-bottom: 10px; }
.cart-empty-subtitle {
    font-size: 13px; color: #747794; line-height: 1.7;
    max-width: 260px; margin: 0 auto 32px;
}
.cart-empty-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #625AFA 0%, #21d6f1 100%);
    color: #fff; font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    border-radius: 14px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(98,90,250,0.35);
    transition: opacity 0.2s, transform 0.15s;
}
.cart-empty-btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.empty-suggestion {
    background: #fff; border-radius: 16px; padding: 16px 20px;
    margin-top: 12px; box-shadow: 0 2px 12px rgba(2,3,16,0.06);
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    transition: box-shadow 0.2s;
}
.empty-suggestion:hover { box-shadow: 0 4px 20px rgba(98,90,250,0.15); }
.empty-suggestion > i { font-size: 22px; color: #625AFA; flex-shrink: 0; }
.empty-suggestion-text strong { display: block; font-size: 13px; font-weight: 700; color: #020310; margin-bottom: 2px; }
.empty-suggestion-text span   { font-size: 12px; color: #747794; }
.empty-suggestion .ti-chevron-right { margin-left: auto; color: #b0b0c8; font-size: 18px; }

/* ─────────────────────────────────────────
   STATE: SİFARİŞ (step 2)
───────────────────────────────────────── */
.order-card {
    background: #fff; border-radius: 16px; padding: 20px;
    margin-bottom: 12px; box-shadow: 0 2px 12px rgba(2,3,16,0.06);
}
.order-card h6 {
    font-size: 13px; font-weight: 700; color: #747794;
    text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 16px;
}
.order-card legend {
    font-size: 13px; font-weight: 700; color: #020310;
    margin-bottom: 14px; padding: 0;
}

/* Delivery toggle */
.delivery-toggle {
    display: flex; gap: 10px; margin-bottom: 20px;
}
.delivery-toggle-btn {
    flex: 1; padding: 11px 8px; border-radius: 12px;
    border: 2px solid #e0e0ef; background: #fff;
    font-size: 13px; font-weight: 600; color: #747794;
    cursor: pointer; text-align: center; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.delivery-toggle input[type=radio] { display: none; }
.delivery-toggle input[type=radio]:checked + label {
    border-color: #625AFA; background: #f3f2ff; color: #625AFA;
}

/* Form fields */
.order-form-group { margin-bottom: 14px; }
.order-form-group label {
    display: block; font-size: 11px; font-weight: 700;
    color: #747794; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px;
}
.order-form-group input,
.order-form-group select {
    display: block; width: 100%;
    border: 1.5px solid #e8e8f0; border-radius: 10px;
    padding: 11px 14px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px; font-weight: 500; color: #020310;
    background: #f8f8fc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.order-form-group input:focus,
.order-form-group select:focus {
    outline: none; border-color: #625AFA;
    box-shadow: 0 0 0 3px rgba(98,90,250,0.12); background: #fff;
}

/* Payment type */
.payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid #e8e8f0; margin-bottom: 8px;
    cursor: pointer; transition: border-color 0.2s, background 0.2s;
    background: #f8f8fc;
}
.payment-option:has(input:checked) {
    border-color: #625AFA; background: #f3f2ff;
}
.payment-option input[type=radio] { accent-color: #625AFA; width: 16px; height: 16px; }
.payment-option img { width: 34px; }
.payment-option span { font-size: 13px; font-weight: 600; color: #020310; }

/* Shop address info */
.shop-address-card {
    background: #f8f8fc; border-radius: 12px; padding: 14px;
    margin-top: 14px;
}
.shop-address-card.active { display: block; }
.shop-address-card p { font-size: 13px; color: #747794; margin-bottom: 6px; line-height: 1.6; }
.shop-address-card strong { color: #020310; }

/* ─────────────────────────────────────────
   STATE: TƏSDİQ (step 3)
───────────────────────────────────────── */
.testiq-wrapper {
    padding: 24px 0 48px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.testiq-image-wrap {
    position: relative; width: 200px; height: 200px; margin-bottom: 28px;
}
.testiq-image-wrap img.testiq-girl {
    width: 200px; height: 200px;
    border-radius: 50%; object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 30px rgba(98,90,250,0.2);
}
.testiq-image-wrap img.testiq-logo {
    position: absolute; bottom: 0; left: -10px;
    width: 70px; height: 70px;
    border-radius: 50%; border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    background: #fff;
}
.testiq-check-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #00cec9);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; box-shadow: 0 6px 20px rgba(0,184,148,0.35);
}
.testiq-check-icon i { font-size: 26px; color: #fff; }
.testiq-title {
    font-size: 22px; font-weight: 700; color: #020310; margin-bottom: 10px;
}
.testiq-subtitle {
    font-size: 13px; color: #747794; line-height: 1.7;
    max-width: 280px; margin: 0 auto 32px;
}
.testiq-continue-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #625AFA 0%, #21d6f1 100%);
    color: #fff; font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    border-radius: 14px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(98,90,250,0.35);
    transition: opacity 0.2s, transform 0.15s;
    border: none; cursor: pointer;
}
.testiq-continue-btn:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }

.testiq-info-cards { width: 100%; margin-top: 28px; }
.testiq-info-card {
    background: #fff; border-radius: 14px; padding: 16px 18px;
    margin-bottom: 10px; box-shadow: 0 2px 12px rgba(2,3,16,0.06);
    display: flex; align-items: center; gap: 14px; text-align: left;
}
.testiq-info-card i { font-size: 22px; color: #625AFA; flex-shrink: 0; }
.testiq-info-card strong { display: block; font-size: 13px; font-weight: 700; color: #020310; margin-bottom: 2px; }
.testiq-info-card span  { font-size: 12px; color: #747794; }

/* ─────────────────────────────────────────
   SHARE CART POPUP
───────────────────────────────────────── */
.share-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(2,3,16,0.45);
    z-index: 1050;
    backdrop-filter: blur(2px);
}
.share-overlay.active { display: block; }

.share-popup {
    display: none;
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -48%) scale(0.95);
    width: calc(100% - 32px); max-width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(2,3,16,0.18);
    z-index: 1051;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.share-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.share-popup-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f1f1f2;
}
.share-popup-header span {
    font-size: 16px; font-weight: 700; color: #625AFA;
}
.share-popup-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: #e8e8f0; border: none;
    color: #444; font-size: 16px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.share-popup-close:hover { background: #625AFA; color: #fff; }

.share-popup-body { padding: 20px; }

.share-popup-label {
    font-size: 13px; font-weight: 600; color: #747794;
    margin-bottom: 12px;
}

.share-popup-icons {
    list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 10px;
}
.share-popup-icons li a {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    background: #25D366;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
    transition: opacity 0.2s, transform 0.15s;
}
.share-popup-icons li a:hover { opacity: 0.85; transform: scale(1.08); }


.share-popup-field {
    display: flex; align-items: center;
    border: 1.5px solid #e0e0ef; border-radius: 10px;
    overflow: hidden; background: #f8f8fc;
    transition: border-color 0.2s;
}
.share-popup-field.copied { border-color: #625AFA; background: #f3f2ff; }
.share-popup-field .fa-link {
    padding: 0 10px; color: #b0b0c8; font-size: 15px; flex-shrink: 0;
}
.share-popup-field input {
    flex: 1; border: none; background: transparent;
    font-size: 12px; color: #747794; padding: 11px 4px 11px 0;
    outline: none; min-width: 0; font-family: "Plus Jakarta Sans", sans-serif;
}
.share-popup-field input.highlighted { color: #625AFA; font-weight: 600; }
.share-popup-field button {
    flex-shrink: 0; padding: 11px 16px;
    background: #625AFA; color: #fff;
    border: none; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
    font-family: "Plus Jakarta Sans", sans-serif;
    white-space: nowrap;
}
.share-popup-field button.copied-state { background: #00b894; }
.share-popup-field button:hover:not(.copied-state) { background: #4e47d4; }