/* ===== CART / CHECKOUT / CERTIFICATES / POLICY PAGES — CART-20261031 ===== */
.nav-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.nav-right .nav-cta { margin: 0; }
@media (max-width: 768px) { .nav-right { margin-left: auto; margin-right: 8px; } .nav-right .nav-cta { display: none; } }
.cart-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--green-dark); display: grid; place-items: center; cursor: pointer; transition: var(--trans); }
.cart-btn:hover { background: var(--green-pale); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--amber); color: #1a2518; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.add-cart-btn { background: var(--amber); color: #1a2518; border: 0; border-radius: 50px; padding: 7px 16px; font: 700 .85rem var(--font-body); cursor: pointer; transition: var(--trans); white-space: nowrap; }
.add-cart-btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.product-footer { gap: 8px; flex-wrap: wrap; }
.pd-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; width: 100%; margin-bottom: 4px; }
.pd-buy .pd-add { padding: 12px 28px; font-size: 1rem; }
.qty-pick { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; background: var(--white); }
.qty-pick button { width: 38px; height: 42px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--green-dark); }
.qty-pick button:hover { background: var(--green-pale); }
.qty-in { width: 44px; text-align: center; border: 0; background: none; font: 700 1rem var(--font-body); color: var(--text-dark); }
.cart-overlay { position: fixed; inset: 0; background: rgba(10,20,10,.5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 190; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--white); color: var(--text-dark); z-index: 200; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
.cart-drawer.open { transform: none; }
.cart-lock { overflow: hidden; }
.cd-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cd-head h3 { font-family: var(--font-serif); color: var(--green-dark); font-size: 1.25rem; }
.cd-close { border: 0; background: none; font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--text-mid); }
.cd-items { flex: 1; overflow-y: auto; padding: 6px 20px; }
.cd-foot { padding: 16px 20px 20px; border-top: 1px solid var(--border); background: var(--bg-light); }
.cd-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.cd-row strong { font-size: 1.1rem; }
.cd-note, .co-small { font-size: .82rem; color: var(--text-light); line-height: 1.5; margin: 6px 0 12px; }
.cd-go { display: block; text-align: center; }
.cd-empty { text-align: center; padding: 48px 12px; }
.cd-empty p { margin-bottom: 16px; color: var(--text-mid); }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.ci-img img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.ci-name { display: block; font-weight: 700; font-size: .92rem; line-height: 1.3; color: var(--text-dark); }
.ci-price { display: block; font-size: .85rem; color: var(--text-light); margin: 2px 0 6px; }
.ci-line { font-weight: 800; font-size: .95rem; }
.ci-qty { display: flex; align-items: center; gap: 8px; }
.ci-qty button[data-act="inc"], .ci-qty button[data-act="dec"] { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--green-dark); cursor: pointer; font-size: 1rem; line-height: 1; }
.ci-qty > span { min-width: 20px; text-align: center; font-weight: 700; }
.ci-rm { border: 0; background: none; color: #b3261e; font-size: .78rem; cursor: pointer; text-decoration: underline; margin-left: 6px; }
.cart-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 30px); background: #1f2f1c; color: #fff; padding: 12px 18px; border-radius: 50px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: all .25s; z-index: 210; max-width: 92vw; display: flex; gap: 12px; align-items: center; }
.cart-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ct-view { border: 0; background: var(--amber); color: #1a2518; font-weight: 800; padding: 5px 12px; border-radius: 50px; cursor: pointer; white-space: nowrap; }
.co-page { padding: 40px 0 64px; }
.co-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: start; }
.co-form h2, .co-side h2 { font-family: var(--font-serif); color: var(--green-dark); font-size: 1.35rem; margin: 0 0 14px; }
.co-form h2:not(:first-child) { margin-top: 26px; }
.fld { margin-bottom: 14px; min-width: 0; }
.fld[hidden] { display: none; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 5px; color: var(--text-mid); }
.fld input, .fld textarea, .fld select { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; font: 400 1rem var(--font-body); background: var(--white); color: var(--text-dark); }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: 2px solid var(--green-light); border-color: var(--green-light); }
.pay-opts { display: grid; gap: 10px; }
.po { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--white); }
.po:has(input:checked) { border-color: var(--green-mid); background: var(--green-pale); }
.po input { margin-top: 4px; accent-color: var(--green-dark); }
.po span { font-size: .92rem; line-height: 1.45; color: var(--text-mid); }
.co-err { margin: 14px 0 0; padding: 10px 14px; background: #fdecea; color: #8a1c14; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.co-err[hidden] { display: none; }
.co-submit { width: 100%; margin-top: 18px; padding: 14px; font-size: 1.05rem; }
.co-side { position: sticky; top: 90px; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.co-items { max-height: 46vh; overflow-y: auto; margin-bottom: 8px; }
.co-done { max-width: 760px; margin: 0 auto; }
.co-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green-dark); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 14px; }
.co-done h2 { text-align: center; font-family: var(--font-serif); color: var(--green-dark); font-size: 1.7rem; }
.co-oid { text-align: center; margin: 8px 0 24px; color: var(--text-mid); }
.co-step { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; background: var(--white); }
.co-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #1a2518; font-weight: 800; display: grid; place-items: center; }
.co-step h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--text-dark); }
.co-step p { color: var(--text-mid); font-size: .93rem; line-height: 1.55; }
.co-wa { display: inline-block; margin-top: 12px; background: #25d366; color: #0b2e16; font-weight: 800; padding: 13px 26px; }
.co-wa:hover { background: #1fb957; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.pay-box { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--bg-light); font-size: .9rem; }
.pay-box h4 { font-family: var(--font-serif); color: var(--green-dark); margin-bottom: 8px; }
.pay-qr { display: block; width: 180px; max-width: 100%; height: auto; margin: 0 auto 10px; background: #fff; border-radius: 12px; }
.pay-box dt { font-size: .75rem; color: var(--text-light); margin-top: 8px; }
.pay-box dd { font-weight: 700; word-break: break-word; }
.cp-btn { border: 1px solid var(--border); background: var(--white); color: var(--green-dark); border-radius: 50px; padding: 2px 10px; font-size: .75rem; font-weight: 700; cursor: pointer; margin-left: 6px; }
.co-sum { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--bg-light); margin-bottom: 14px; }
.co-sum h3 { font-family: var(--font-serif); color: var(--green-dark); margin-bottom: 8px; }
.co-sum ul { list-style: none; }
.co-sum li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .92rem; border-bottom: 1px dashed var(--border); }
.co-actions { text-align: center; margin-top: 20px; }
.legal { padding: 44px 0 64px; max-width: 820px; }
.legal h2 { font-family: var(--font-serif); color: var(--green-dark); font-size: 1.3rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-mid); line-height: 1.75; font-size: .98rem; }
.legal ul { margin: 6px 0 6px 22px; list-style: disc; }
.legal .upd { color: var(--text-light); font-size: .85rem; }
.legal a { color: var(--green-mid); text-decoration: underline; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.cert-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cert-card a.cert-th { display: block; background: var(--bg-light); border-bottom: 1px solid var(--border); }
.cert-card img { width: 100%; height: 300px; object-fit: cover; object-position: top; display: block; }
.cert-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cert-body h3 { font-family: var(--font-serif); font-size: 1.05rem; color: var(--green-dark); }
.cert-body p { font-size: .86rem; color: var(--text-mid); line-height: 1.5; }
.cert-body .cert-id { font-weight: 700; color: var(--text-dark); }
.cert-body .btn { margin-top: auto; text-align: center; }
.footer-legal { font-size: .8rem; margin-bottom: 8px; line-height: 1.8; }
.footer-legal a { color: rgba(255,255,255,.8); text-decoration: underline; margin: 0 4px; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } .co-side { position: static; order: -1; } .pay-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fld-row { grid-template-columns: 1fr; gap: 0; } .co-step { padding: 14px; } .cart-toast { bottom: 76px; } }
