/* GEARHUB Phase 4 — Cart, checkout, order tracking and static information pages */
.commerce-page { padding-bottom: 92px; }
.commerce-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(20,29,22,.98), rgba(13,19,15,.98)); box-shadow: 0 14px 38px rgba(0,0,0,.12); }
.commerce-panel h2 { margin: 7px 0 0; color: #edf5ee; font-size: 19px; letter-spacing: -.035em; }
.commerce-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:22px; }
.commerce-panel-heading .text-link { color:var(--green); font-size:10px; font-weight:700; }
.commerce-loading { padding:28px 12px; color:var(--muted); font-size:12px; text-align:center; }
.commerce-hint { margin:13px 0 0; color:#748278; font-size:9px; line-height:1.8; }
.commerce-divider { height:1px; margin:25px 0; background:var(--line); }
.button-full { width:100%; justify-content:center; }
.drawer-footer-actions { display:grid; grid-template-columns:.8fr 1.2fr; gap:9px; }
.drawer-footer-actions .button { justify-content:center; min-width:0; padding-inline:10px; }

/* Cart page */
.cart-page-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(275px,.75fr); gap:22px; align-items:start; padding-top:28px; }
.cart-page-items { display:flex; flex-direction:column; }
.cart-page-item { display:grid; grid-template-columns:100px minmax(0,1fr) auto; gap:17px; align-items:center; padding:17px 0; border-top:1px solid var(--line); }
.cart-page-item:first-child { border-top:0; padding-top:0; }
.cart-page-image { width:100px; height:95px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:radial-gradient(circle at 50% 50%,rgba(33,212,119,.12),transparent 70%),#101811; color:#a4e6b9; font-size:35px; }
.cart-page-image img { width:100%; height:100%; padding:7px; object-fit:contain; }
.cart-page-item-copy { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.cart-page-item-copy h3 { margin:0; font-size:13px; line-height:1.5; }
.cart-page-item-copy h3 a:hover { color:var(--green); }
.cart-page-item-copy > strong { color:var(--green); font-size:14px; }
.cart-page-item-copy > small { color:#7e8b81; font-size:9px; }
.cart-page-item-controls { display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
.cart-page-item-controls .quantity-control { display:flex; align-items:center; gap:0; border:1px solid var(--line-strong); border-radius:7px; overflow:hidden; }
.cart-page-item-controls .quantity-control button { width:29px; height:30px; border:0; color:#dce8de; background:#152018; cursor:pointer; }
.cart-page-item-controls .quantity-control button:disabled { opacity:.35; cursor:not-allowed; }
.cart-page-item-controls .quantity-control span { min-width:30px; color:#e8f2e9; font-size:10px; text-align:center; }
.remove-cart-link { border:0; color:#e68c8c; background:transparent; font-size:9px; cursor:pointer; }
.remove-cart-link:hover { color:#ff646e; }
.order-summary-panel { position:sticky; top:150px; }
.order-summary-panel h2 { margin-bottom:22px; }
.summary-line,.summary-total { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:12px 0; color:#98a69c; font-size:10px; border-top:1px solid var(--line); }
.summary-line strong { color:#e4eee5; font-size:11px; }
.summary-total { margin-top:5px; padding:17px 0; color:#e8f2e9; font-weight:750; }
.summary-total strong { color:var(--green); font-size:19px; letter-spacing:-.035em; }
.order-summary-panel > .button { margin-top:11px; }
.commerce-empty,.commerce-auth-required { padding:60px 20px 70px; text-align:center; }
.commerce-empty[hidden],.commerce-auth-required[hidden],.checkout-layout[hidden],.checkout-success[hidden] { display:none; }
.commerce-empty .empty-icon,.commerce-auth-required .empty-icon { width:60px; height:60px; display:grid; place-items:center; margin:0 auto 17px; border:1px solid rgba(33,212,119,.2); border-radius:50%; color:var(--green); background:var(--green-soft); font-size:26px; }
.commerce-empty h2,.commerce-auth-required h2 { margin:0 0 8px; font-size:23px; letter-spacing:-.04em; }
.commerce-empty p,.commerce-auth-required p { max-width:460px; margin:0 auto 22px; color:var(--muted); font-size:11px; line-height:1.8; }
.commerce-error { margin:20px 0; padding:14px 16px; border:1px solid rgba(255,100,110,.25); border-radius:9px; color:#ff9aa0; background:rgba(255,100,110,.07); font-size:11px; }
.commerce-error[hidden] { display:none; }

/* Checkout */
.checkout-security { display:flex; align-items:center; gap:11px; padding:11px 13px; border:1px solid rgba(33,212,119,.18); border-radius:9px; background:rgba(33,212,119,.055); }
.checkout-security > span { width:29px; height:29px; display:grid; place-items:center; border-radius:50%; color:#05150b; background:var(--green); font-weight:900; }
.checkout-security strong,.checkout-security small { display:block; }
.checkout-security strong { color:#dceee0; font-size:10px; }
.checkout-security small { margin-top:2px; color:#84968a; font-size:8px; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.75fr); gap:22px; align-items:start; padding-top:28px; }
.checkout-form { display:flex; flex-direction:column; gap:15px; }
.checkout-form .commerce-panel-heading { margin-bottom:2px; }
.required-note { color:#819086; font-size:9px; }
.form-grid-two { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field-group { display:flex; flex-direction:column; gap:7px; }
.field-group label { color:#dce7de; font-size:10px; font-weight:700; }
.field-group label span { color:#829087; font-weight:450; }
.field-group .form-control { min-height:42px; padding:10px 12px; font-size:11px; }
.form-textarea { min-height:89px; resize:vertical; padding-block:11px !important; line-height:1.6; }
.note-textarea { min-height:65px; }
.payment-options { display:flex; flex-direction:column; gap:10px; }
.payment-option { position:relative; display:grid; grid-template-columns:17px 38px minmax(0,1fr); align-items:center; gap:12px; padding:14px; border:1px solid var(--line-strong); border-radius:10px; background:#101712; cursor:pointer; transition:border-color .2s,background .2s; }
.payment-option:hover,.payment-option.is-selected { border-color:rgba(33,212,119,.55); background:rgba(33,212,119,.055); }
.payment-option input { position:absolute; opacity:0; pointer-events:none; }
.payment-radio { width:15px; height:15px; border:1px solid #647269; border-radius:50%; }
.payment-option input:checked + .payment-radio { border:5px solid var(--green); }
.payment-option-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:8px; color:var(--green); background:var(--green-soft); font-size:20px; font-weight:800; }
.payment-option-copy strong,.payment-option-copy small { display:block; }
.payment-option-copy strong { color:#e4eee5; font-size:10px; }
.payment-option-copy small { margin-top:4px; color:#819086; font-size:9px; line-height:1.6; }
.payment-demo-info { padding:12px 14px; border:1px dashed rgba(255,198,110,.3); border-radius:8px; color:#d9c08e; background:rgba(255,198,110,.045); }
.payment-demo-info[hidden] { display:none; }
.payment-demo-info strong { font-size:10px; }
.payment-demo-info p { margin:5px 0 0; color:#a99b7a; font-size:9px; line-height:1.75; }
.checkout-form-message { padding:11px 13px; border:1px solid var(--line); border-radius:8px; color:#b8c9bc; background:#111a14; font-size:10px; line-height:1.7; }
.checkout-form-message[hidden] { display:none; }
.checkout-form-message-error { border-color:rgba(255,100,110,.25); color:#ff9aa0; background:rgba(255,100,110,.06); }
.checkout-form-message-success { border-color:rgba(33,212,119,.25); color:#a9e4bb; background:rgba(33,212,119,.06); }
.checkout-form-message-info { border-color:rgba(90,160,255,.2); color:#a8c6ed; background:rgba(90,160,255,.05); }
.checkout-submit { min-height:47px; margin-top:3px; }
.checkout-submit:disabled { opacity:.65; cursor:wait; }
.checkout-legal { margin:-7px 0 0; color:#76857a; font-size:8px; line-height:1.7; text-align:center; }
.checkout-summary { position:sticky; top:150px; }
.checkout-summary h2 { margin-bottom:18px; }
.checkout-items { display:flex; flex-direction:column; gap:12px; margin-bottom:17px; }
.checkout-item { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:10px; }
.checkout-item-art { width:48px; height:48px; position:relative; display:grid; place-items:center; border:1px solid var(--line); border-radius:7px; color:#b4e7c2; background:#101912; font-size:19px; }
.checkout-item-art img { width:100%; height:100%; padding:4px; object-fit:contain; }
.checkout-item-art b { min-width:17px; height:17px; display:grid; place-items:center; position:absolute; top:-6px; right:-6px; border-radius:50%; color:#06140b; background:var(--green); font-size:8px; }
.checkout-item-copy { min-width:0; }
.checkout-item-copy strong,.checkout-item-copy small { display:block; }
.checkout-item-copy strong { overflow:hidden; color:#e3ece4; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.checkout-item-copy small { margin-top:3px; color:#7d8b81; font-size:8px; }
.checkout-item-price { color:#dfe9e1; font-size:9px; white-space:nowrap; }
.checkout-success { max-width:720px; margin:35px auto 0; padding:38px; text-align:center; }
.checkout-success .profile-success-icon { margin:0 auto 15px; }
.checkout-success h2 { margin:8px 0; font-size:29px; }
.checkout-success h2 em { color:var(--green); font-style:normal; }
.checkout-success > p { color:#9aa79d; font-size:11px; line-height:1.8; }
.success-order-code { display:grid; grid-template-columns:1fr 1fr; gap:7px 20px; max-width:400px; margin:25px auto; padding:18px; border:1px solid var(--line); border-radius:10px; background:#0d140f; text-align:left; }
.success-order-code span { color:#758479; font-size:8px; letter-spacing:.13em; }
.success-order-code strong { color:var(--green); font-size:13px; }
.demo-qr-wrap { display:flex; align-items:center; justify-content:center; gap:18px; max-width:470px; margin:0 auto 24px; padding:17px; border:1px dashed rgba(255,198,110,.28); border-radius:10px; text-align:left; }
.demo-qr-code { width:132px; flex:0 0 132px; padding:8px; border-radius:7px; background:#fff; text-align:center; }
.demo-qr-code svg { width:100%; display:block; }
.demo-qr-code small { display:block; margin-top:5px; color:#9d4c13; font-size:6px; font-weight:900; }
.demo-qr-wrap strong { color:#e9e3d4; font-size:10px; }
.demo-qr-wrap p { margin:6px 0 0; color:#9b927f; font-size:9px; line-height:1.75; }
.success-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }

/* Order history */
.orders-list { display:flex; flex-direction:column; gap:16px; padding-top:27px; }
.order-card { padding:21px 23px; border:1px solid var(--line); border-radius:13px; background:linear-gradient(145deg,#141d16,#0e1510); }
.order-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.order-card-head small { display:block; margin-top:5px; color:#7d8b81; font-size:9px; }
.order-status { display:inline-flex; align-items:center; gap:7px; padding:6px 9px; border:1px solid var(--line); border-radius:99px; color:#d7e3d9; font-size:8px; font-weight:750; white-space:nowrap; }
.order-status i,.order-status > span { width:6px; height:6px; border-radius:50%; background:#8b9b8f; }
.order-status.pending { color:#e7ca8b; border-color:rgba(255,198,110,.18); background:rgba(255,198,110,.05); }
.order-status.pending i { background:#ffc66e; }
.order-status.processing { color:#9ec7f1; border-color:rgba(100,160,255,.18); background:rgba(100,160,255,.05); }
.order-status.processing i { background:#7fb4f5; }
.order-status.shipping { color:#9ee6c0; border-color:rgba(33,212,119,.18); background:rgba(33,212,119,.05); }
.order-status.shipping i { background:var(--green); }
.order-status.completed { color:#a9e9bd; border-color:rgba(33,212,119,.25); background:rgba(33,212,119,.08); }
.order-status.completed i { background:var(--green); }
.order-status.cancelled { color:#ff9aa0; border-color:rgba(255,100,110,.2); background:rgba(255,100,110,.05); }
.order-status.cancelled i { background:#ff646e; }
.order-timeline { display:grid; grid-template-columns:repeat(4,1fr); gap:0; padding:19px 5px 18px; }
.order-timeline-step { min-width:0; display:flex; flex-direction:column; align-items:center; position:relative; gap:7px; color:#69776d; font-size:8px; text-align:center; }
.order-timeline-step:not(:last-child)::after { content:""; width:100%; height:1px; position:absolute; z-index:0; top:12px; left:50%; background:#303b33; }
.order-timeline-step i { width:24px; height:24px; display:grid; place-items:center; position:relative; z-index:1; border:1px solid #3b493e; border-radius:50%; color:#829187; background:#111812; font-size:8px; font-style:normal; font-weight:800; }
.order-timeline-step.is-done { color:#9dc9aa; }
.order-timeline-step.is-done i { border-color:var(--green-dark); color:#07140c; background:var(--green); }
.order-timeline-step.is-done:not(:last-child)::after { background:var(--green-dark); }
.order-timeline-step.is-current i { box-shadow:0 0 0 4px rgba(33,212,119,.1); }
.order-card-foot { display:flex; justify-content:space-between; align-items:center; gap:14px; padding-top:14px; border-top:1px solid var(--line); }
.order-card-foot > div { display:flex; flex-direction:column; gap:4px; }
.order-card-foot > div:last-child { flex-direction:row; align-items:center; gap:12px; }
.order-card-foot span { color:#819086; font-size:8px; }
.order-card-foot strong { color:var(--green); font-size:16px; }
.order-detail-toggle { min-height:32px; padding:7px 10px; font-size:8px; }
.order-detail-panel { margin-top:17px; padding-top:17px; border-top:1px solid var(--line); }
.order-detail-panel[hidden] { display:none; }
.order-detail-meta { display:grid; grid-template-columns:1fr 1fr; gap:13px 20px; }
.order-detail-meta > div { display:flex; flex-direction:column; gap:4px; }
.order-detail-meta span { color:#758379; font-size:8px; }
.order-detail-meta strong { color:#dbe6dd; font-size:9px; font-weight:600; overflow-wrap:anywhere; }
.order-address { grid-column:1/-1; }
.order-item-list { display:flex; flex-direction:column; gap:9px; margin-top:17px; }
.order-line-item { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:10px; padding:9px; border:1px solid var(--line); border-radius:8px; background:rgba(0,0,0,.12); }
.order-line-art { width:42px; height:42px; display:grid; place-items:center; overflow:hidden; border-radius:6px; color:#a8e6bb; background:#142017; }
.order-line-art img { width:100%; height:100%; padding:3px; object-fit:contain; }
.order-line-copy { min-width:0; }
.order-line-copy strong,.order-line-copy small { display:block; }
.order-line-copy strong { overflow:hidden; color:#dfe9e1; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.order-line-copy small { margin-top:3px; color:#78877d; font-size:8px; }
.order-line-item > strong { color:#b8d8c1; font-size:9px; white-space:nowrap; }

/* About & contact */
.about-hero { position:relative; overflow:hidden; padding:52px; background:radial-gradient(ellipse at 88% 30%,rgba(33,212,119,.15),transparent 35%),linear-gradient(125deg,#17231a,#0d140f); }
.about-hero h1 { margin:14px 0; font-size:clamp(38px,6vw,66px); line-height:1.02; letter-spacing:-.07em; font-weight:900; }
.about-hero h1 em { color:var(--green); font-style:normal; }
.about-hero p { max-width:650px; margin:0 0 22px; color:#a4b0a7; font-size:12px; line-height:1.9; }
.about-values { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; margin-top:18px; }
.about-values article > span { color:var(--green); font-size:10px; font-weight:900; letter-spacing:.14em; }
.about-values h2 { margin:12px 0 7px; font-size:15px; }
.about-values p,.about-note p { margin:0; color:#9aa79d; font-size:10px; line-height:1.9; }
.about-note { margin-top:18px; }
.about-note h2 { margin-bottom:9px; }
.contact-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:20px; padding-top:25px; align-items:start; }
.contact-detail { display:flex; flex-direction:column; gap:4px; padding:15px 0; border-bottom:1px solid var(--line); }
.contact-detail span { color:#718076; font-size:8px; letter-spacing:.14em; font-weight:800; }
.contact-detail strong { color:#dce7de; font-size:11px; }
.contact-form { display:flex; flex-direction:column; gap:14px; margin-top:20px; }

.profile-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px; }
.profile-actions .button { justify-content:center; padding-inline:8px; font-size:9px; }

@media (max-width: 900px) {
  .cart-page-layout,.checkout-layout { grid-template-columns:1fr; }
  .order-summary-panel,.checkout-summary { position:static; }
  .order-summary-panel { order:-1; }
  .contact-layout { grid-template-columns:1fr; }
}
@media (max-width: 650px) {
  .commerce-panel { padding:17px; }
  .commerce-panel-heading { align-items:flex-start; }
  .cart-page-item { grid-template-columns:74px minmax(0,1fr); gap:11px; }
  .cart-page-image { width:74px; height:76px; grid-row:span 2; }
  .cart-page-item-controls { grid-column:2; flex-direction:row; align-items:center; justify-content:space-between; }
  .form-grid-two { grid-template-columns:1fr; }
  .checkout-security { display:none; }
  .payment-option { grid-template-columns:16px 32px minmax(0,1fr); gap:8px; padding:11px; }
  .payment-option-icon { width:30px; height:30px; }
  .order-card { padding:15px; }
  .order-card-head { flex-direction:column; }
  .order-timeline-step { font-size:7px; }
  .order-timeline-step i { width:21px; height:21px; }
  .order-timeline-step:not(:last-child)::after { top:10px; }
  .order-card-foot { align-items:flex-start; }
  .order-card-foot > div:last-child { flex-direction:column; align-items:flex-end; gap:5px; }
  .order-detail-meta { grid-template-columns:1fr; }
  .order-address { grid-column:auto; }
  .about-hero { padding:30px 22px; }
  .about-values { grid-template-columns:1fr; }
  .demo-qr-wrap { flex-direction:column; text-align:center; }
  .success-order-code { grid-template-columns:1fr 1fr; }
  .success-actions { flex-direction:column; }
  .profile-actions { grid-template-columns:1fr; }
  .drawer-footer-actions { grid-template-columns:1fr; }
}


/* GEARHUB payment-flow upgrade */
.payment-qr-copy { display: grid; gap: 8px; min-width: 0; }
.payment-qr-copy p { margin: 0; line-height: 1.55; }
.payment-qr-copy span { color: var(--muted, #68766d); }
.payment-warning,
.order-payment-note {
  border: 1px solid rgba(198, 135, 36, .24);
  background: rgba(245, 177, 59, .08);
  color: #765117;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .9rem;
}
.order-payment-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.order-payment-note span { color: #68766d; font-size: .84rem; }
.order-payment-qr { display: grid; gap: 10px; justify-items: start; padding: 14px; border: 1px solid var(--line, #dce7df); border-radius: 14px; background: var(--surface, #fff); }
.order-payment-qr img { display: block; width: min(260px, 100%); height: auto; border-radius: 10px; border: 1px solid #e7ece8; background: #fff; }
.admin-payment-confirm-box {
  display: grid; gap: 12px; margin-top: 18px; padding: 16px;
  border: 1px solid rgba(22, 200, 120, .25); border-radius: 14px;
  background: rgba(22, 200, 120, .07);
}
.admin-payment-confirm-box strong { line-height: 1.5; }
.demo-qr-code img { display: block; width: min(250px, 100%); height: auto; background: #fff; border-radius: 12px; border: 1px solid #e3e9e4; }
.payment-demo-info { margin-top: 14px; }
.payment-demo-info p { line-height: 1.55; }
@media (max-width: 640px) {
  .order-payment-note { align-items: flex-start; flex-direction: column; }
}
