/* Child Sinatra — custom-cart.css v3
   Includes: Cart layout + Login Popup */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --cs-primary:   #d63384;
    --cs-primary-h: #b5206a;
    --cs-green:     #25d366;
    --cs-green-h:   #1db954;
    --cs-white:     #ffffff;
    --cs-border:    #e8c8d4;
    --cs-text:      #222222;
    --cs-muted:     #999;
    --cs-bg:        #f9f1f3;
    --cs-radius:    14px;
}


/* ============================================================
   CART LAYOUT
   ============================================================ */
.si-container {
    padding: 0 !important;
}
.cs-cart-left { flex: 1.9; min-width: 0; }

.cs-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 24px;
}
.cs-back-btn:hover { color: var(--cs-primary); }

.cs-cart-items { display: flex; flex-direction: column; gap: 0; }

.cs-item-outer {
    background: var(--cs-white);
    border: 1px solid #e8e8e8;
    border-radius: var(--cs-radius);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cs-item-img {
    flex-shrink: 0;
    width: 90px; height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}
.cs-item-img img { width:100%; height:100%; object-fit:cover; display:block; }

.cs-item-info { flex: 1; min-width: 0; }
.cs-item-name {
    font-size: 15px; font-weight: 600;
    color: var(--cs-text); margin: 0 0 8px; line-height: 1.4;
}
.cs-item-name a { color: inherit; text-decoration: none; }
.cs-item-name a:hover { color: var(--cs-primary); }
.cs-item-price {
    color: var(--cs-primary); font-weight: 700;
    font-size: 17px; display: flex;
    align-items: center; gap: 8px; flex-wrap: wrap;
}
.cs-reg-price { color:var(--cs-muted); font-size:13px; font-weight:400; text-decoration:line-through; }
.cs-save-badge { font-size:11px; font-weight:600; color:#666; background:#f0f0f0; padding:2px 8px; border-radius:4px; }

.cs-qty-btn {
    background: var(--cs-white); border: none;
    width: 36px; height: 36px; font-size: 18px;
    cursor: pointer; color: #444;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.cs-qty-btn:hover { background: #f5f5f5; color: var(--cs-primary); }
.cs-qty-num {
    font-size: 15px; font-weight: 600;
    width: 36px; text-align: center;
    color: var(--cs-text);
    border-left: 1.5px solid #ccc; border-right: 1.5px solid #ccc;
    line-height: 36px;
}
.cs-item-delete-row { border-top: 1px solid #f0f0f0; padding: 9px 20px;    text-align: center; }
.cs-delete-btn {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--cs-primary); font-size: 13px;
    font-weight: 500; text-decoration: none;
}
.cs-delete-btn:hover { opacity: 0.7; }

.cs-empty-cart {
    background: var(--cs-white); border-radius: var(--cs-radius);
    padding: 50px 30px; text-align: center; color: var(--cs-muted); font-size:15px;
}
.cs-empty-cart a { color: var(--cs-primary); font-weight: 600; text-decoration: none; }

/* RIGHT */
.cs-cart-right { flex: 1; min-width: 300px; }
.cs-checkout-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.cs-checkout-header h2 { font-size:24px; font-weight:700; color:var(--cs-text); margin:0; }
.cs-login-link {
    color: var(--cs-primary); font-size: 14px;
    font-weight: 500; text-decoration: underline;
    cursor: pointer;
}
.cs-address-section { margin-bottom: 22px; }
.cs-section-label { font-size:16px; font-weight:700; color:var(--cs-text); margin:0 0 12px; }
.cs-saved-address {
    background:#fff0f5; border:1.5px solid var(--cs-primary);
    border-radius:8px; padding:10px 14px;
    font-size:13px; color:#555; margin-bottom:10px;
}
.cs-add-address-btn {
    display: flex; align-items: center;
    width: 100%; border: 2px solid #222;
    background: var(--cs-white); color: var(--cs-text);
    padding: 12px 16px; border-radius: 10px;
    font-size:14px; font-weight:600;
    text-decoration: none; transition: background 0.2s, color 0.2s;
    font-family: 'Poppins', sans-serif; box-sizing: border-box;
}

.cs-bill-summary { margin-bottom: 22px; }
.cs-bill-summary h3 { font-size:20px; font-weight:700; color:var(--cs-text); margin:0 0 14px; }
.cs-bill-row { display:flex; justify-content:space-between; align-items:center; font-size:14px; color:#777; padding:5px 0; }
.cs-bill-val { font-weight:500; color:var(--cs-text); }
.cs-total-row { border-top:1.5px solid #eee; margin-top:12px; padding-top:14px; }
.cs-total-row strong { font-size:17px; color:var(--cs-text); }
.cs-total-val { font-size:20px !important; font-weight:700; }
a.cs-delete-btn {
    font-size: 20px;
}
div#main {
    background: #F9F0F2;
}
.cs-confirm-btn {
    display: block; width: 100%;
    background: #D04A6C; color: #fff !important;
    text-align: center; padding: 16px;
    border-radius: 12px; font-size:17px; font-weight:700;
    text-decoration: none; margin-bottom: 20px;
    border: none; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: 'Poppins', sans-serif; box-sizing: border-box;
    letter-spacing: 0.3px;
}
.cs-confirm-btn:hover { background: var(--cs-primary-h); transform: translateY(-1px); }

.cs-payment-icons { display:flex; gap:10px; justify-content:center; align-items:center; flex-wrap:wrap; }
.cs-payment-icons img { height:30px; object-fit:contain; opacity:0.85; }
.cs-payment-icons img:hover { opacity:1; }

.cs-loading { opacity:0.55; pointer-events:none; transition:opacity 0.2s; }

/* ============================================================
   LOGIN POPUP
   ============================================================ */
.cs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cs-fade-in 0.2s ease;
}
@keyframes cs-fade-in { from { opacity:0; } to { opacity:1; } }

.cs-popup {
    background: var(--cs-white);
    border-radius: 16px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: cs-slide-up 0.25s ease;
    font-family: 'Poppins', sans-serif;
}
@keyframes cs-slide-up { from { transform:translateY(30px); opacity:0; } to { transform:translateY(0); opacity:1; } }

.cs-popup-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 18px; color: #999;
    cursor: pointer; padding: 4px 8px;
    border-radius: 6px; transition: background 0.15s;
}
.cs-popup-close:hover { background: #f0f0f0; color: #333; }

.cs-popup-title {
    font-size: 22px; font-weight: 700;
    color: var(--cs-text);
    text-align: center;
    margin: 0 0 28px;
}

.cs-popup-label {
    display: block;
    font-size: 14px; font-weight: 600;
    color: var(--cs-text);
    margin-bottom: 10px;
}

/* Phone Input */
.cs-phone-wrap {
    display: flex;
    border: 1.5px solid var(--cs-primary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}
.cs-phone-prefix {
    background: #fff;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-text);
    border-right: 1.5px solid #eee;
    flex-shrink: 0;
}
.cs-phone-input {
    flex: 1; border: none; outline: none;
    padding: 12px 14px; font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: var(--cs-text);
}
.cs-phone-input::placeholder { color: #bbb; }

/* OTP Input */
.cs-otp-input {
    width: 100%; border: 1.5px solid #ddd;
    border-radius: 10px; padding: 12px 16px;
    font-size: 22px; font-weight: 700;
    text-align: center; letter-spacing: 10px;
    font-family: 'Poppins', sans-serif;
    outline: none; box-sizing: border-box;
    margin-bottom: 6px;
    transition: border-color 0.2s;
}
.cs-otp-input:focus { border-color: var(--cs-primary); }

.cs-error-msg { font-size: 12px; color: #e74c3c; margin-bottom: 12px; min-height: 16px; }

/* Send OTP / Verify Button — Green WhatsApp style */
.cs-otp-btn {
    width: 100%; background: var(--cs-green);
    color: #fff; border: none;
    border-radius: 10px; padding: 14px;
    font-size: 16px; font-weight: 700;
    cursor: pointer; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: background 0.2s;
    font-family: 'Poppins', sans-serif;
}
.cs-otp-btn:hover { background: var(--cs-green-h); }
.cs-otp-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.cs-resend-btn {
    background: none; border: none;
    color: var(--cs-primary); font-size: 13px;
    font-weight: 500; cursor: pointer;
    display: block; margin: 0 auto 10px;
    font-family: 'Poppins', sans-serif;
    text-decoration: underline;
}

/* OR Divider */
.cs-or-divider {
    display: flex; align-items: center;
    gap: 12px; margin: 4px 0 16px;
}
.cs-or-divider span { flex: 1; height: 1px; background: #e0e0e0; }
.cs-or-divider p { font-size: 13px; color: #aaa; margin: 0; font-weight: 500; }

/* Google Button */
.cs-google-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 100%;
    border: 1.5px solid #ddd; border-radius: 10px;
    padding: 13px; font-size: 15px; font-weight: 600;
    color: var(--cs-text); text-decoration: none;
    background: var(--cs-white); transition: background 0.2s;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
.cs-google-btn:hover { background: #f8f8f8; border-color: #bbb; }

/* Footer */
.cs-popup-footer {
    text-align: center; font-size: 12px;
    color: #aaa; margin: 18px 0 0; line-height: 1.6;
}
.cs-privacy-link { color: var(--cs-primary); text-decoration: none; display: block; font-weight: 500; }
.cs-privacy-link:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
    .cs-cart-wrapper { flex-direction: column; gap: 20px; }
    .cs-cart-right { width: 100%; min-width: unset; }
    .cs-checkout-box { position: static; }
    .cs-popup { padding: 30px 20px 24px; margin: 0 16px; }
}
@media (max-width: 480px) {
    .cs-cart-wrapper { padding: 0 12px; margin-top: 20px; }
    .cs-item-img { width: 70px; height: 70px; }
    .cs-confirm-btn { font-size: 15px; padding: 14px; }
}
