/* ================================================================
   SHOP — public catalog, product page, voucher landing, course enrolment
   Loaded only on shop pages (+ /cursuri). Namespaces: .shop-*, .voucher-*, .course-enroll*
   Colours/radii come from the theme tokens in site.css (never hardcode brand colours).
   ================================================================ */

/* ---- Catalog ---- */
.shop-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 4px; }
.shop-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--border); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.shop-chip:hover { border-color: var(--accent); color: var(--accent); }
.shop-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.shop-chip .n { font-size: 12px; opacity: .75; }

.shop-voucher-banner { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--secondary), #F7E88F); color: #3b3200; margin: 8px 0 36px; text-decoration: none; box-shadow: var(--shadow-card); }
.shop-voucher-banner .ic { font-size: 28px; line-height: 1; }
.shop-voucher-banner .txt b { display: block; font-size: 17px; }
.shop-voucher-banner .txt span { font-size: 14px; opacity: .85; }
.shop-voucher-banner .go { margin-left: auto; background: var(--ink); color: #fff; border-radius: var(--radius-full); padding: 10px 18px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.shop-voucher-banner:hover .go { background: var(--accent); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-bottom: 48px; }
.shop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.shop-card-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #E9F2EE, var(--primary)); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 40px; }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-media > a { position: absolute; inset: 0; }
.shop-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); box-shadow: var(--shadow-card); z-index: 1; }
.shop-badge.soldout { background: var(--ink); color: #fff; }
.shop-badge.low { background: var(--secondary); color: #3b3200; }
.shop-badge-inline { position: static; box-shadow: none; }
.shop-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.shop-card-cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.shop-card-title { font-family: var(--font-heading); font-size: 19px; line-height: 1.25; margin: 0; font-weight: 400; }
.shop-card-title a { color: inherit; text-decoration: none; }
.shop-card-title a:hover { color: var(--accent); }
.shop-card-desc { font-size: 14px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.shop-card-row form { margin: 0; }
.shop-price { font-weight: 800; font-size: 18px; color: var(--ink); }
.shop-price small { font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 6px; }
.shop-card .btn { padding: 10px 16px; font-size: 14px; }
.shop-empty { text-align: center; padding: 64px 24px; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius-lg); margin-bottom: 48px; }

/* ---- Product page ---- */
.shop-product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 24px 0 40px; }
.shop-product-media { position: sticky; top: 100px; }
.shop-product-media .frame { aspect-ratio: 4 / 3; border-radius: var(--radius-xl); overflow: hidden; background: linear-gradient(135deg, #E9F2EE, var(--primary)); box-shadow: var(--shadow-hover); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 72px; }
.shop-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-product-info h1 { margin: 12px 0 10px; font-size: clamp(30px, 3.6vw, 42px); }
.shop-product-info .lead { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.shop-buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 18px; }
.shop-buy .shop-price { font-size: 30px; }
.shop-add-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 6px; }
.shop-add-form .btn { padding: 14px 26px; font-size: 16px; }
/* Voucher/subscription product page: optional gift personalization block */
.shop-add-form-voucher { flex-direction: column; align-items: stretch; }
.shop-add-form-voucher > .btn { align-self: flex-start; }
.shop-gift-fields { width: 100%; border: 1px dashed var(--border); border-radius: var(--radius, 14px); background: #fff; padding: 12px 16px; }
.shop-gift-fields summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--accent); -webkit-tap-highlight-color: transparent; }
.shop-gift-fields summary i { margin-right: 8px; }
.shop-gift-fields[open] summary { margin-bottom: 14px; }
.shop-gift-fields .voucher-fields { margin-bottom: 4px; }
.shop-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-full); overflow: hidden; background: #fff; }
.shop-qty button { width: 42px; height: 44px; border: 0; background: #F7F6F3; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.shop-qty button:hover { background: var(--primary); }
.shop-qty input { width: 52px; height: 44px; border: 0; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; appearance: textfield; }
.shop-qty input::-webkit-outer-spin-button, .shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-trust { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 8px; }
.shop-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.shop-trust li i { color: var(--accent); margin-top: 3px; width: 16px; text-align: center; }
.shop-trust a { color: var(--accent); }
.shop-acc details { border-top: 1px solid var(--border); }
.shop-acc details:last-child { border-bottom: 1px solid var(--border); }
.shop-acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 700; font-size: 16px; }
.shop-acc summary::-webkit-details-marker { display: none; }
.shop-acc summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s; }
.shop-acc details[open] summary::after { transform: rotate(45deg); }
.shop-acc .body { padding: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.shop-acc .body p:last-child { margin-bottom: 0; }
.shop-acc .body ul, .shop-acc .body ol { padding-left: 20px; }
.shop-soldout-note { background: #FFF3E8; border: 1px solid #F5D3B3; color: #7A3E00; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 8px; }
.shop-related { padding-top: 0; }
.shop-related h2 { font-size: 28px; margin-bottom: 22px; }

/* ---- Voucher landing ---- */
.voucher-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding: 12px 0 48px; }
.voucher-step { display: flex; align-items: center; gap: 12px; font-size: 22px; margin: 0 0 14px; }
.voucher-step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; font-family: var(--font-body); }
.voucher-values { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.voucher-value { position: relative; flex: 1 1 120px; }
.voucher-value input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.voucher-value span { display: block; text-align: center; padding: 18px 10px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: #fff; font-weight: 800; font-size: 20px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.voucher-value input:checked + span { border-color: var(--btn-color); background: #FFF0F8; color: var(--btn-color); box-shadow: 0 0 0 4px rgba(221, 7, 149, .12); }
.voucher-value input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.voucher-value:hover span { transform: translateY(-2px); }
.voucher-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.voucher-field-full { grid-column: 1 / -1; }
.voucher-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.voucher-input { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.voucher-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(65, 117, 114, .15); }
.voucher-help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.voucher-submit { padding: 15px 28px; font-size: 16px; }
.voucher-trust { margin-top: 18px; }
.voucher-preview-wrap { position: sticky; top: 100px; }
.voucher-preview { position: relative; background: var(--bg); border: 1px dashed #CFD8D4; border-radius: var(--radius-xl); padding: 28px 28px 22px; box-shadow: var(--shadow-hover); overflow: hidden; }
.voucher-preview::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--primary); opacity: .55; right: -80px; top: -80px; }
.voucher-preview > * { position: relative; }
.voucher-preview-logo { font-family: var(--font-heading); letter-spacing: .16em; font-size: 13px; color: var(--accent); }
.voucher-preview-eyebrow { margin-top: 18px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.voucher-preview-amount { font-family: var(--font-heading); font-size: clamp(44px, 5vw, 60px); line-height: 1.05; color: var(--ink); margin: 4px 0 10px; overflow-wrap: anywhere; }
.voucher-preview-who { font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.voucher-preview-msg { margin: 14px 0 18px; font-style: italic; color: var(--muted); font-size: 15px; line-height: 1.6; min-height: 48px; overflow-wrap: anywhere; white-space: pre-line; }
.voucher-preview-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; font-size: 12px; color: var(--muted); border-top: 1px dashed #CFD8D4; padding-top: 12px; }
.voucher-preview-foot .code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; white-space: nowrap; }
.voucher-preview-stamp { position: absolute; right: 22px; top: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: var(--shadow-card); }
.voucher-preview-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---- Cart drawer + /cos page ---- */
.cart-drawer { position: fixed; inset: 0; z-index: 1200; }
.cart-drawer-overlay { position: absolute; inset: 0; background: rgba(30, 31, 30, .45); opacity: 0; transition: opacity .25s; }
.cart-drawer.is-open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .28s ease; border-radius: 22px 0 0 22px; }
.cart-drawer.is-open .cart-drawer-panel { transform: translateX(0); }
@media (max-width: 480px) { .cart-drawer-panel { border-radius: 0; } }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; border-bottom: 1px solid var(--border); }
.cart-drawer-head h2 { font-size: 24px; margin: 0; }
.cart-drawer-count { font-size: 14px; color: var(--muted); font-family: var(--font-body); }
.cart-drawer-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 16px; color: var(--ink); }
.cart-drawer-close:hover { background: var(--primary); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 14px 22px 22px; }
body.cart-drawer-open { overflow: hidden; }

.cart-notice { background: #FFF3E8; border: 1px solid #F5D3B3; color: #7A3E00; padding: 10px 12px; border-radius: var(--radius-md); font-size: 13.5px; margin: 0 0 12px; }
.cart-empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.cart-empty i { font-size: 36px; color: var(--accent); margin-bottom: 12px; display: block; }
.cart-empty .btn { margin-top: 10px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line-thumb { width: 64px; height: 64px; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(135deg, #E9F2EE, var(--primary)); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--accent); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-line-thumb-voucher { background: linear-gradient(135deg, #FFF4C2, var(--secondary)); }
.cart-line-thumb-course { background: linear-gradient(135deg, #FDE2F1, #F7B6DC); }
.cart-line-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.cart-line-title a { color: inherit; text-decoration: none; }
.cart-line-title a:hover { color: var(--accent); }
.cart-line-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-line-meta a { color: var(--accent); }
.cart-line-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cart-qty-form { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-full); overflow: hidden; background: #fff; }
.cart-qty-form button { width: 30px; height: 30px; border: 0; background: #F7F6F3; cursor: pointer; font-size: 16px; color: var(--ink); line-height: 1; }
.cart-qty-form button:hover { background: var(--primary); }
.cart-qty-value { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-qty-static { font-size: 13px; color: var(--muted); font-weight: 700; }
.cart-remove-form { display: inline; }
.cart-remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; font-family: inherit; }
.cart-remove:hover { color: var(--btn-color); }
.cart-line-price { font-weight: 800; white-space: nowrap; font-size: 15px; }
.cart-free-bar { margin: 14px 0 4px; padding: 10px 12px; border-radius: var(--radius-md); background: #EEF6F2; color: #2e5a56; font-size: 13px; }
.cart-free-bar .bar { display: block; height: 5px; border-radius: 3px; background: #D2E2DA; margin-top: 8px; overflow: hidden; }
.cart-free-bar .bar b { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.cart-free-bar.is-reached { background: var(--primary); }
.cart-totals { margin-top: 14px; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; padding: 8px 0; border-top: 1px dashed var(--border); }
.cart-subtotal strong { font-size: 20px; }
.cart-note { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.cart-checkout-btn, .cart-continue-btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.cart-page { max-width: 760px; }
.cart-page-head { margin: 10px 0 18px; }
.cart-page-head h1 { margin: 12px 0 0; font-size: clamp(30px, 3.6vw, 40px); }
.cart-page-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 22px 22px; box-shadow: var(--shadow-card); }
.cart-clear-form { margin: 12px 0 0; text-align: right; }
.cart-flash { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin: 0 0 14px; }
.cart-flash-ok { background: #EEF6F2; color: #2e5a56; border: 1px solid #CFE3D9; }
.cart-flash-err { background: #FFF3E8; color: #7A3E00; border: 1px solid #F5D3B3; }
.shop-added { background: var(--accent) !important; }

/* ---- Course enrolment (/cursuri#inscriere) ---- */
.course-enroll { padding-top: 0; }
.course-enroll-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.course-enroll-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-card); }
.course-enroll-card h3 { font-size: 22px; margin: 0; }
.course-enroll-card p { margin: 0; color: var(--muted); font-size: 15px; }
.course-enroll-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--bg); }
.course-enroll-price .lbl { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.course-enroll-price .val { font-size: 26px; font-weight: 800; color: var(--ink); }
.course-enroll-card form { margin: 4px 0 0; }
.course-enroll-card .btn { width: 100%; justify-content: center; }
.course-enroll-card .footnote { color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 860px) {
  .voucher-layout { grid-template-columns: 1fr; gap: 28px; }
  .voucher-preview-wrap { position: static; order: -1; }
  .voucher-fields { grid-template-columns: 1fr; }
  .voucher-value span { padding: 14px 8px; font-size: 18px; }
  .shop-product { grid-template-columns: 1fr; gap: 26px; padding-top: 12px; }
  .shop-product-media { position: static; }
  .shop-product-info h1 { margin-top: 6px; }
  .shop-voucher-banner { flex-wrap: wrap; gap: 12px; padding: 16px 18px; }
  .shop-voucher-banner .go { margin-left: 0; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .shop-card-title { font-size: 16px; }
  .shop-card .btn { padding: 8px 12px; font-size: 13px; }
  .shop-card-body { padding: 12px 12px 14px; }
}

/* ---- Checkout (/checkout) ---- */
.ck-page { padding: 24px 0 80px; }
.ck-head { margin: 8px 0 18px; }
.ck-head h1 { margin: 6px 0 10px; font-size: clamp(30px, 3.6vw, 40px); }
.ck-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-chips .chip { background: var(--primary); color: #2e5a56; border-radius: var(--radius-full); padding: 5px 12px; font-size: 13px; font-weight: 700; }
.ck-banner { padding: 12px 16px; border-radius: var(--radius-md); margin: 0 0 16px; font-size: 14px; }
.ck-banner-error { background: #FFF3E8; border: 1px solid #F5D3B3; color: #7A3E00; }
.ck-form { position: relative; }
.ck-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ck-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.ck-section { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; padding: 18px 20px; margin: 0 0 14px; min-width: 0; }
.ck-section[data-state="locked"] { opacity: .55; }
.ck-section[data-state="done"] { background: #F3F8F5; border-color: #CFE3D9; }
.ck-section-head { display: flex; align-items: center; gap: 12px; }
.ck-section-head h2 { font-size: 21px; margin: 0; flex: 1; }
.ck-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; font-family: var(--font-body); flex: none; }
.ck-section[data-state="done"] .ck-num { background: #2e5a56; }
.ck-edit { background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; font-family: inherit; padding: 4px; }
.ck-summary { margin: 8px 0 0 42px; font-size: 14.5px; color: #2e5a56; overflow-wrap: anywhere; }
.ck-body { margin-top: 14px; }
.ck-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ck-field { margin-bottom: 12px; min-width: 0; }
.ck-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.ck-opt { font-weight: 500; color: var(--muted); }
.ck-input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.ck-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(65, 117, 114, .15); }
.ck-input[aria-invalid="true"] { border-color: #C0392B; }
.ck-field-error { color: #B03A2E; font-size: 13px; margin-top: 5px; }
.ck-radios { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ck-radio { position: relative; display: block; }
.ck-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.ck-radio-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-md); background: #fff; transition: border-color .15s, background .15s; }
.ck-radio-box::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B7C4BF; flex: none; box-sizing: border-box; }
.ck-radio input:checked + .ck-radio-box { border-color: var(--accent); background: #EEF6F2; }
.ck-radio input:checked + .ck-radio-box::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.ck-radio input:focus-visible + .ck-radio-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.ck-radio-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ck-radio-main strong { font-size: 15px; }
.ck-radio-main small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ck-radio-price { font-weight: 800; white-space: nowrap; }
.ck-cards { display: flex; gap: 6px; font-size: 24px; color: var(--muted); }
.ck-hint { font-size: 13px; color: var(--muted); background: var(--bg); padding: 8px 12px; border-radius: var(--radius-md); margin: 0 0 12px; }
/* Explains an option the customer cannot see (e.g. why cash on delivery is gone). */
.ck-hint-info { border-left: 3px solid var(--accent); color: var(--ink); }
.ck-address { margin-top: 6px; }
.ck-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; cursor: pointer; }
.ck-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.ck-check a { color: var(--accent); }
.ck-terms { padding-top: 8px; border-top: 1px dashed var(--border); }
.ck-company { margin: 4px 0 8px; padding: 12px; background: var(--bg); border-radius: var(--radius-md); }
.ck-next { margin-top: 4px; }
.ck-secure { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.ck-aside { position: sticky; top: 100px; }
.ck-summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-card); }
.ck-summary-card h3 { font-size: 20px; margin: 0 0 12px; }
.ck-items { list-style: none; margin: 0; padding: 0; }
.ck-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.ck-item-qty { color: var(--muted); font-weight: 700; }
.ck-item-title small { display: block; color: var(--muted); font-size: 12px; }
.ck-item-price { font-weight: 700; white-space: nowrap; }
.ck-totals { margin: 12px 0; }
.ck-totals div { display: flex; justify-content: space-between; font-size: 14.5px; padding: 4px 0; }
.ck-totals dt { color: var(--muted); }
.ck-totals dd { margin: 0; }
.ck-totals .ck-total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; font-size: 18px; font-weight: 800; }
.ck-totals .ck-total dt { color: var(--ink); }
.ck-submit { width: 100%; justify-content: center; padding: 15px 20px; font-size: 16px; }
.ck-legal { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.ck-bar { display: none; }
@media (max-width: 1023px) {
  .ck-layout { grid-template-columns: 1fr; }
  .ck-aside { position: static; }
  .ck-summary-card .ck-submit { display: none; }
  .ck-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid var(--border); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
  .ck-bar-total strong { font-size: 19px; display: block; }
  .ck-bar-total small { color: var(--muted); font-size: 12px; }
  .ck-bar .btn { padding: 12px 18px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .ck-row-2 { grid-template-columns: 1fr; gap: 0; }
  .ck-section { padding: 16px 14px; }
  .ck-summary { margin-left: 0; }
}

/* ---- Order page (/comanda/{token}) ---- */
.od-page { padding: 28px 0 64px; }
.od-hero { text-align: center; padding: 30px 20px 26px; border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--border); margin-bottom: 26px; box-shadow: var(--shadow-card); }
.od-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; background: var(--primary); color: #2e5a56; }
.od-warn .od-icon { background: #FFF1C9; color: #7A5A00; }
.od-muted .od-icon { background: #ECECEA; color: var(--muted); }
.od-hero h1 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 8px; }
.od-sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 16px; }
.od-retry { margin-top: 16px; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.od-steps { list-style: none; display: flex; gap: 0; margin: 0 0 18px; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.od-steps li { flex: 1; padding: 14px 10px; text-align: center; font-size: 13px; color: var(--muted); position: relative; border-right: 1px solid var(--border); }
.od-steps li:last-child { border-right: 0; }
.od-steps .dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: #DDE3E0; margin: 0 auto 6px; }
.od-steps li.is-done { color: var(--ink); font-weight: 700; }
.od-steps li.is-done .dot { background: var(--accent); }
.od-steps li.is-current { background: #F3F8F5; }
.od-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 18px; }
.od-card .eyebrow { margin-bottom: 10px; }
.od-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.od-next li { display: flex; gap: 12px; align-items: flex-start; }
.od-next .ic { font-size: 22px; line-height: 1; }
.od-next b { display: block; font-size: 15px; }
.od-next span { color: var(--muted); font-size: 14px; }
.od-next code { background: var(--bg); padding: 1px 6px; border-radius: 4px; }
.od-next a { color: var(--accent); }
.od-items { list-style: none; margin: 0; padding: 0; }
.od-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.od-items .q { color: var(--muted); font-weight: 700; }
.od-items .t small { display: block; color: var(--muted); font-size: 13px; }
.od-items .p { font-weight: 700; white-space: nowrap; }
.od-totals { margin: 10px 0 0; }
.od-totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; }
.od-totals dt { color: var(--muted); } .od-totals dd { margin: 0; }
.od-totals .tot { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 18px; }
.od-totals .tot dt { color: var(--ink); }
.od-dl div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.od-dl div:last-child { border-bottom: 0; }
.od-dl dt { color: var(--muted); } .od-dl dd { margin: 0; overflow-wrap: anywhere; }
.od-help { text-align: center; padding: 12px 0; }
.od-help p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.od-help .btn { margin: 4px; }
@media (max-width: 900px) {
  .od-grid { grid-template-columns: 1fr; }
  .od-steps { flex-wrap: wrap; }
  .od-steps li { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
}
