/* Pinglo — shop styles: cart icon, toast, mini-cart drawer, product / cart / checkout pages. */

.btn-lg { padding: 16px 28px; font-size: 16px; }
.mt-3 { margin-top: var(--space-3); }
.muted { color: var(--muted); font-weight: 500; }
.link-btn { background: none; border: none; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--danger); }

/* ---------- header cart icon ---------- */
.cart-btn { position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--blue-deep); background: #fff; border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.cart-btn:hover { border-color: var(--blue); background: var(--blue-50); }
.cart-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 300; inset-inline: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: var(--space-3); padding: 12px 18px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--green-100); color: var(--text); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-raised); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .22s var(--ease-standard), transform .22s var(--ease-standard); }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---------- mini-cart drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(8, 114, 235, 0.14); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s var(--ease-standard); }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 100%); background: #fff; box-shadow: var(--shadow-raised); transform: translateX(100%); transition: transform .26s var(--ease-standard); overflow-y: auto; }
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-body { padding: calc(var(--space-6) + env(safe-area-inset-top, 0px)) var(--space-6) var(--space-8); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.drawer-head h3 { font-size: 19px; }
.mini-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.mini-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--blue-50); }
.mini-list li .mini-info { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.mini-list li strong { color: var(--text); font-size: 14px; }
.mini-total { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0; margin-bottom: var(--space-4); border-top: 1px dashed var(--border-strong); font-size: 15px; }
.mini-total strong { font-family: var(--font-display); font-size: 20px; color: var(--blue-deep); direction: ltr; unicode-bidi: isolate; }
.empty-note { color: var(--muted); margin-bottom: var(--space-5); }

/* ---------- shop page frame ---------- */
.shop-page { padding-block: 112px var(--space-24); background: linear-gradient(180deg, var(--blue-50) 0%, #fff 360px); min-height: 70vh; }
@media (max-width: 640px) { .shop-page { padding-block: 92px var(--space-16); } }
.page-title { font-size: clamp(26px, 4vw, 36px); margin-bottom: var(--space-6); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 13px; color: var(--muted); margin-bottom: var(--space-5); }
.crumbs a { color: var(--blue-deep); }

/* ---------- product ---------- */
.type-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border); margin-bottom: var(--space-8); }
.type-switch button { border: none; background: none; padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 700; color: var(--muted); font-size: 14px; cursor: pointer; }
.type-switch button.active { background: var(--blue); color: #fff; box-shadow: var(--shadow-glow-blue); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10); align-items: start; }
@media (min-width: 920px) { .product-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-16); } }
.product-visual { position: sticky; top: 96px; }
@media (max-width: 919px) { .product-visual { position: static; } }
.esim-art { position: relative; overflow: hidden; aspect-ratio: 1.58; max-width: 520px; border-radius: 28px; padding: clamp(20px, 4vw, 34px); color: #fff; background: var(--blue); background-image: linear-gradient(135deg, #0872EB 0%, #0A62CF 55%, #14B067 130%); box-shadow: 0 30px 60px rgba(8, 114, 235, 0.25); display: flex; flex-direction: column; }
.esim-art.unlimited { background-image: linear-gradient(135deg, #0A62CF 0%, #0872EB 40%, #14B067 100%); }
.esim-art-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.esim-chip { width: 46px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #F6E7B8, #D9B45A); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.esim-art-brand { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; opacity: .95; }
.esim-art-flag { margin-top: auto; width: 34px; height: 24px; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.esim-art-flag span { width: 12px; height: 12px; border-radius: 50%; background: #E5484D; }
.esim-art-title { font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-top: var(--space-3); position: relative; z-index: 1; }
.esim-art-sub { opacity: .9; font-size: 14px; margin-top: 2px; position: relative; z-index: 1; }
.esim-art-ripple { position: absolute; width: 320px; height: 320px; inset-inline-end: -110px; top: -110px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); box-shadow: 0 0 0 40px rgba(255, 255, 255, .06), 0 0 0 80px rgba(255, 255, 255, .04); pointer-events: none; }
.product-perks { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-2); max-width: 520px; }
.product-perks li { padding: 12px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); font-size: 14px; }
.product-info h1 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.3; }
.price-range { margin-top: var(--space-2); font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--blue-deep); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.spec-rows { margin: var(--space-6) 0; display: grid; gap: var(--space-2); }
.spec-rows div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--space-4); font-size: 14px; }
.spec-rows dt { color: var(--muted); }
.spec-rows dd { margin: 0; font-weight: 600; }
.opt-label { font-weight: 700; margin-bottom: var(--space-3); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.chips.chips-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .chips.chips-3 { grid-template-columns: minmax(0, 1fr); } }
.chip { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: #fff; color: var(--text); font-weight: 600; font-size: 14px; text-align: start; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.chip:hover { border-color: var(--blue-200); }
.chip-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong); }
.chip.active { border-color: var(--blue); background: var(--blue-50); color: var(--blue-deep); box-shadow: 0 0 0 4px var(--blue-soft); }
.chip.active .chip-dot { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.chip-badge { position: absolute; top: -9px; inset-inline-end: 10px; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--gradient-brand); }
.selected-desc { margin: var(--space-4) 0 var(--space-6); font-size: 14px; color: var(--muted); line-height: 1.7; }
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.buy-price { display: grid; text-align: end; }
.buy-price strong { font-family: var(--font-display); font-size: 30px; color: #1F2A44; direction: ltr; unicode-bidi: isolate; }
.buy-price span { font-size: 12px; color: var(--blue-deep); }
.secure-line { text-align: center; font-size: 13px; color: var(--green-text); margin-top: var(--space-4); }
.pay-icons.center { justify-content: center; flex-wrap: wrap; margin-top: var(--space-3); }
.product-info .fup-note { text-align: start; margin-top: var(--space-6); }
.qty-row.sm button { width: 32px; height: 32px; font-size: 16px; }

/* ---------- cart + checkout ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; }
@media (min-width: 920px) { .cart-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.cart-lines { display: grid; gap: var(--space-4); }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--space-5); align-items: center; padding: var(--space-5); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
@media (max-width: 560px) { .cart-line { grid-template-columns: 48px minmax(0, 1fr); } .cart-line-side { grid-column: 1 / -1; } }
.cart-line-art { width: 64px; height: 44px; border-radius: 10px; background: var(--gradient-brand); display: flex; align-items: flex-end; padding: 6px; }
@media (max-width: 560px) { .cart-line-art { width: 48px; height: 34px; } }
.cart-line-art span { width: 12px; height: 9px; border-radius: 2px; background: linear-gradient(135deg, #F6E7B8, #D9B45A); }
.cart-line-name { font-weight: 700; color: var(--text); font-size: 16px; }
.cart-line-sub, .cart-line-unit { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-line-side { display: flex; align-items: center; gap: var(--space-5); justify-content: flex-end; flex-wrap: wrap; }
.cart-line-total { font-family: var(--font-display); font-size: 18px; min-width: 86px; text-align: end; direction: ltr; unicode-bidi: isolate; }
.continue-link { color: var(--blue-deep); font-weight: 600; font-size: 14px; margin-top: var(--space-2); }
.summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-soft); position: sticky; top: 96px; }
@media (max-width: 919px) { .summary-card { position: static; } }
.summary-card h2 { font-size: 18px; margin-bottom: var(--space-4); }
.sum-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: 10px 0; font-size: 14px; color: var(--muted); }
.sum-row > :last-child { direction: ltr; unicode-bidi: isolate; }
.sum-row .free { color: var(--green-text); font-weight: 700; }
.sum-row.total { border-top: 1px dashed var(--border-strong); margin-top: var(--space-2); padding-top: var(--space-4); color: var(--text); font-weight: 700; font-size: 16px; }
.sum-row.total strong { font-family: var(--font-display); font-size: 24px; color: var(--blue-deep); }
.summary-card .charge-note { font-size: 12.5px; color: var(--blue-deep); margin: 0 0 var(--space-2); }
.vat-note { font-size: 12px; color: var(--muted); margin-bottom: var(--space-5); }
.summary-lines { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-3); }
.summary-lines li { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 14px; }
.summary-lines li > div { display: grid; gap: 2px; justify-items: start; }
.summary-lines li > div > span { font-size: 12.5px; color: var(--muted); }
.summary-lines li > span { font-weight: 700; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.edit-link { display: inline-block; font-size: 13px; color: var(--blue-deep); font-weight: 600; }
.checkout-head .page-title { margin-bottom: var(--space-1); }
.checkout-head p { margin-bottom: var(--space-6); }
.checkout-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-soft); }
@media (max-width: 560px) { .checkout-form { padding: var(--space-6) var(--space-5); } }
.checkout-form label { display: block; font-size: 13px; font-weight: 600; margin: var(--space-5) 0 var(--space-2); }
.checkout-form input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: #fff; font: inherit; color: var(--text); }
.checkout-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
html[dir="rtl"] .checkout-form input[dir="ltr"] { text-align: right; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: var(--space-2); }
.step-title { display: flex; align-items: center; gap: var(--space-3); font-weight: 800; font-size: 17px; margin-top: var(--space-8); }
.step-title:first-child { margin-top: 0; }
.step-title span { width: 28px; height: 28px; border-radius: 9px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.pay-explain { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: var(--space-3) 0; }
.checkout-form .pay-icons { flex-wrap: wrap; margin-bottom: var(--space-6); }
.checkout-form .checkout-error { font-size: 13.5px; color: var(--danger); background: #FFF1F1; border: 1px solid #F9D3D4; border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.empty-state { max-width: 460px; margin: var(--space-12) auto; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-12) var(--space-8); box-shadow: var(--shadow-soft); }
.empty-ic { font-size: 40px; margin-bottom: var(--space-4); }
.empty-state h1 { font-size: 24px; margin-bottom: var(--space-3); }
.empty-state p { color: var(--muted); margin-bottom: var(--space-6); }
.esim-plan { font-weight: 700; margin-top: 4px; }

/* ---------- cart editing (mini cart, cart page, checkout summary) ---------- */
.qty-row .qty-del { color: var(--danger); border-color: #F9D3D4; display: inline-flex; align-items: center; justify-content: center; }
.qty-row .qty-del:hover { background: #FFF1F1; border-color: var(--danger); }
.qty-row .is-maxed { opacity: .4; cursor: not-allowed; }
.qty-row strong { min-width: 22px; text-align: center; }
.mini-list li { align-items: center; }
.mini-info { min-width: 0; }
.mini-side { display: grid; justify-items: end; gap: var(--space-2); flex: none; }
.mini-line-total { font-family: var(--font-display); color: var(--blue-deep); direction: ltr; unicode-bidi: isolate; }
.summary-lines li.editable { align-items: flex-start; }
.summary-lines li.editable .qty-row { margin-top: var(--space-2); }
.toast-action { margin-inline-start: var(--space-2); border: none; background: var(--blue-50); color: var(--blue-deep); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.toast-action:hover { background: var(--blue-100); }
.toast.warn { border-color: #FBE3B5; }
.toast.warn .toast-ic { background: #E8A317; font-weight: 800; }

/* ---------- unlimited day picker ---------- */
.day-picker { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }
.day-quick { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.day-chip { min-width: 46px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.day-chip:hover { border-color: var(--blue-200); }
.day-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-glow-blue); }
.day-exact { display: flex; align-items: center; justify-content: center; gap: var(--space-6); margin: var(--space-6) 0 var(--space-3); }
.day-step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: #fff; color: var(--blue-deep); font-size: 22px; line-height: 1; cursor: pointer; }
.day-step:hover:not(:disabled) { background: var(--blue-50); border-color: var(--blue); }
.day-step:disabled { opacity: .35; cursor: not-allowed; }
.day-value { display: grid; justify-items: center; min-width: 90px; }
.day-value strong { font-family: var(--font-display); font-size: 40px; line-height: 1.1; color: var(--blue-deep); }
.day-value span { font-size: 13px; color: var(--muted); }
.day-range { width: 100%; accent-color: var(--blue); margin: 0; }
html[dir="rtl"] .day-range { direction: rtl; }
.day-range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 2px; }
.day-rate { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-4); font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.day-save { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-text); font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
