/* পাইকারি সুইট — Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --ps-primary: #F58822;
    --ps-secondary: #D9534F;
}

/* ── WhatsApp Buttons ───────────────────────────────────────── */
.ps-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    margin: 10px 0;
    transition: opacity .2s, transform .1s;
    background: #25D366;
}
.ps-wa-btn:hover { opacity: .9; color: #fff; transform: translateY(-1px); }
.ps-wa-btn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

/* ── Loyalty Points ─────────────────────────────────────────── */
.ps-loyalty-box {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-secondary) 100%);
    border-radius: 14px;
    padding: 24px;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Hind Siliguri', sans-serif;
}
.ps-loyalty-box h3 { margin: 0 0 6px; font-size: 18px; }
.ps-loyalty-points-big { font-size: 48px; font-weight: 700; line-height: 1; }
.ps-loyalty-label { font-size: 14px; opacity: .85; }
.ps-loyalty-history { background: #fff; border-radius: 10px; overflow: hidden; margin-top: 16px; }
.ps-loyalty-history-row { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #333; }
.ps-loyalty-history-row:last-child { border-bottom: none; }
.ps-pts-earn { color: #16a34a; font-weight: 600; }
.ps-pts-redeem { color: #dc2626; font-weight: 600; }

/* Checkout redeem box */
.ps-redeem-box { background: #fffbeb; border: 2px dashed var(--ps-primary); border-radius: 10px; padding: 14px 16px; margin: 12px 0; font-family: 'Hind Siliguri', sans-serif; }
.ps-redeem-box p { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #92400e; }
.ps-redeem-btn { background: var(--ps-primary); color: #fff; border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; }
.ps-redeem-msg { font-size: 13px; margin-top: 6px; color: #16a34a; display: none; }

/* ── Referral Box ───────────────────────────────────────────── */
.ps-referral-box { background: #fff; border: 2px solid var(--ps-primary); border-radius: 14px; padding: 20px 24px; font-family: 'Hind Siliguri', sans-serif; }
.ps-referral-box h3 { margin: 0 0 6px; color: var(--ps-primary); font-size: 18px; }
.ps-ref-link-row { display: flex; gap: 8px; margin: 12px 0; }
.ps-ref-link-row input { flex: 1; padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 13px; color: #555; background: #f8fafc; }
.ps-ref-copy-btn { background: var(--ps-primary); color: #fff; border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ps-ref-stats { display: flex; gap: 16px; margin-top: 10px; }
.ps-ref-stat { background: #f8fafc; border-radius: 8px; padding: 10px 14px; text-align: center; flex: 1; }
.ps-ref-stat span { display: block; font-size: 22px; font-weight: 700; color: var(--ps-primary); }
.ps-ref-stat small { font-size: 12px; color: #64748b; }

/* ── Order Tracking ─────────────────────────────────────────── */
.ps-tracking-form { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.08); font-family: 'Hind Siliguri', sans-serif; max-width: 480px; margin: 0 auto 24px; }
.ps-tracking-form h3 { margin: 0 0 16px; font-size: 20px; color: #1e293b; }
.ps-tracking-form input { width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 15px; box-sizing: border-box; margin-bottom: 10px; }
.ps-tracking-form input:focus { outline: none; border-color: var(--ps-primary); }
.ps-tracking-submit { width: 100%; padding: 12px; background: var(--ps-primary); color: #fff; border: none; border-radius: 8px; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }

.ps-timeline { font-family: 'Hind Siliguri', sans-serif; padding: 20px 0; }
.ps-timeline-step { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.ps-timeline-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; border: 3px solid #e2e8f0; background: #f8fafc; color: #94a3b8; }
.ps-timeline-step.done .ps-timeline-icon { background: var(--ps-primary); border-color: var(--ps-primary); color: #fff; }
.ps-timeline-step.active .ps-timeline-icon { background: #fff; border-color: var(--ps-primary); color: var(--ps-primary); animation: ps-pulse .8s infinite alternate; }
.ps-timeline-body h4 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.ps-timeline-body p { margin: 0; font-size: 13px; color: #64748b; }
@keyframes ps-pulse { from { box-shadow: 0 0 0 0 rgba(245,136,34,.4); } to { box-shadow: 0 0 0 8px rgba(245,136,34,0); } }

/* ── Notifications Bell ─────────────────────────────────────── */
.ps-bell-wrap { position: fixed; top: 70px; right: 20px; z-index: 9999; font-family: 'Hind Siliguri', sans-serif; }
.ps-bell-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--ps-primary); color: #fff; border: none; font-size: 20px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); position: relative; display: flex; align-items: center; justify-content: center; }
.ps-bell-count { position: absolute; top: -4px; right: -4px; background: var(--ps-secondary); color: #fff; border-radius: 10px; min-width: 18px; height: 18px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ps-notif-panel { position: absolute; top: 52px; right: 0; width: 300px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.15); overflow: hidden; display: none; }
.ps-notif-panel.open { display: block; }
.ps-notif-header { padding: 12px 16px; background: var(--ps-primary); color: #fff; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.ps-notif-item { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.ps-notif-item.unread { background: #fffbeb; }
.ps-notif-item strong { display: block; margin-bottom: 2px; font-size: 14px; }
.ps-notif-item time { color: #94a3b8; font-size: 11px; }
.ps-notif-empty { padding: 20px; text-align: center; color: #94a3b8; font-size: 13px; }
.ps-notif-mark-all { display: block; padding: 10px; text-align: center; font-size: 13px; color: var(--ps-primary); cursor: pointer; border-top: 1px solid #f0f0f0; background: none; border-left: none; border-right: none; border-bottom: none; width: 100%; font-family: inherit; }

/* ── Bazar Dar Shortcode ─────────────────────────────────────── */
.ps-bazar-dar { font-family: 'Hind Siliguri', sans-serif; }
.ps-bazar-dar-header { background: linear-gradient(135deg, var(--ps-primary), var(--ps-secondary)); color: #fff; padding: 14px 20px; border-radius: 10px 10px 0 0; display: flex; justify-content: space-between; align-items: center; }
.ps-bazar-dar-header h3 { margin: 0; font-size: 18px; }
.ps-bazar-dar-date { font-size: 13px; opacity: .85; }
.ps-bazar-dar-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 0 0 10px 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ps-bazar-dar-table th { background: #f8fafc; padding: 10px 16px; text-align: left; font-size: 13px; color: #64748b; font-weight: 600; }
.ps-bazar-dar-table td { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.ps-bazar-dar-table tr:last-child td { border-bottom: none; }
.ps-dar-price { font-weight: 700; color: var(--ps-secondary); }

/* ── Packages Shortcode ─────────────────────────────────────── */
.ps-packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; font-family: 'Hind Siliguri', sans-serif; }
.ps-package-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.08); overflow: hidden; transition: transform .2s; }
.ps-package-card:hover { transform: translateY(-4px); }
.ps-package-card-header { background: linear-gradient(135deg, var(--ps-primary), var(--ps-secondary)); padding: 16px 18px; color: #fff; }
.ps-package-card-header h3 { margin: 0 0 4px; font-size: 17px; }
.ps-package-price { font-size: 26px; font-weight: 700; }
.ps-package-body { padding: 16px 18px; }
.ps-package-items { list-style: none; margin: 0 0 14px; padding: 0; }
.ps-package-items li { padding: 4px 0; font-size: 14px; color: #374151; border-bottom: 1px solid #f9fafb; }
.ps-package-items li::before { content: "✓ "; color: var(--ps-primary); font-weight: 700; }
.ps-package-wa-btn { display: block; background: #25D366; color: #fff; text-align: center; padding: 10px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }

/* ── Payment Icons ──────────────────────────────────────────── */
.ps-payment-icons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 12px 0; }
.ps-pay-icon-wrap { display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.ps-pay-icon-wrap svg { display: block; width: 60px; height: 24px; }

/* ── Reorder Button ─────────────────────────────────────────── */
.ps-reorder-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--ps-primary); color: #fff; border: none; border-radius: 6px; font-family: 'Hind Siliguri', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s; }
.ps-reorder-btn:hover { background: var(--ps-secondary); color: #fff; }
.ps-reorder-btn.loading { opacity: .7; pointer-events: none; }
