:root{
  --navy:#102758;
  --blue:#2468eb;
  --orange:#ff4f12;
  --green:#20a66a;
  --text:#1b2945;
  --muted:#71809b;
  --line:#e0e7f1;
  --soft:#f7f9fc;
  --shadow:0 12px 36px rgba(28,57,112,.07);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:#fff;
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{cursor:pointer}
svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.container{width:min(1360px,calc(100% - 64px));margin:auto}

.site-header{
  position:relative;
  z-index:20;
  border-bottom:1px solid #edf0f5;
  background:rgba(255,255,255,.96);
}
.header-inner{min-height:86px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:14px;min-width:max-content}
.brand img{
  width:56px;
  height:56px;
  padding:4px;
  object-fit:contain;
  border:2px solid #fff0eb;
  border-radius:50%;
  background:#fff;
  box-shadow:0 5px 16px rgba(255,91,69,.15);
}
.brand-copy strong{display:block;color:var(--navy);font-size:22px;line-height:1;letter-spacing:-.6px}
.brand-copy small{display:block;margin-top:7px;color:#68758d;font-size:10px;font-weight:700;letter-spacing:.5px}
.main-nav{margin-left:auto;display:flex;align-items:center;gap:42px;color:#21314f;font-size:14px;font-weight:700}
.main-nav a{transition:.18s}
.main-nav a:hover{color:var(--blue)}
.cart-link{display:flex;align-items:center;gap:7px;color:#223250;font-size:14px;font-weight:700;white-space:nowrap}
.cart-link svg{width:20px;height:20px;color:#7b879a}
.cart-link b{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--blue);font-size:11px}
.account-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;color:#8290a8;background:#edf2fa}
.account-icon svg{width:21px;height:21px}

.steps{
  margin-top:30px;
  min-height:72px;
  padding:12px 82px;
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  align-items:center;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 4px 18px rgba(28,57,112,.025);
}
.step{display:flex;align-items:center;justify-content:center;gap:12px;color:#8a97ac;font-size:13px}
.step span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#65748d;background:#eff3f9;font-size:12px;font-style:normal}
.step span svg{width:17px;height:17px}
.step b{font-weight:700}
.step.active{color:var(--blue)}
.step.active span{color:#fff;background:var(--blue);box-shadow:0 5px 14px rgba(36,104,235,.25)}
.steps>i{color:#8793a7;font-size:23px;font-style:normal}

.checkout-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(380px,1fr);gap:26px;padding:30px 0 18px;align-items:start}
.panel{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.form-panel{padding:34px}
.form-panel>h1{margin:0 0 25px;color:var(--navy);font-size:22px;letter-spacing:-.4px}
.field{margin-top:19px}
.field label{display:block;margin-bottom:9px;color:#22324e;font-size:12px;font-weight:700}
.field label span{color:#7b879c;font-weight:500}
.input-box{
  min-height:52px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 16px;
  border:1px solid #d7dfeb;
  border-radius:11px;
  background:#fff;
  transition:border-color .18s,box-shadow .18s;
}
.input-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,104,235,.09)}
.input-box>svg{width:18px;height:18px;flex:none;color:#8290a9}
.input-box input,.input-box textarea{width:100%;border:0;outline:0;color:#25344f;background:transparent;font-size:13px}
.input-box input::placeholder,.input-box textarea::placeholder{color:#919db0}
.textarea-box{min-height:84px;padding:0}
.textarea-box textarea{min-height:84px;padding:16px;resize:vertical;line-height:1.55}

.promo-box{
  margin-top:22px;
  padding:13px 14px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px 16px;
  align-items:center;
  border:1px solid #cfe0ff;
  border-radius:11px;
  background:#fbfdff;
}
.promo-label{display:flex;align-items:center;gap:9px;color:#2557b8;font-size:12px;white-space:nowrap}
.promo-label svg{width:18px;height:18px}
.promo-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.promo-control input{min-width:0;height:44px;padding:0 15px;border:1px solid #d9e2ef;border-radius:9px;outline:none;color:#263653;background:#fff;font-size:12px}
.promo-control input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,104,235,.08)}
.promo-control button{min-width:110px;border:1px solid #c9d9f4;border-radius:9px;color:var(--blue);background:#f7faff;font-size:12px;font-weight:800}
.promo-control button:hover{background:#edf4ff}
.promo-box small{grid-column:2;color:var(--muted);font-size:10px}
.promo-box small.success-text{color:var(--green)}
.promo-box small.error-text{color:#c64848}

.payment-section{margin-top:26px}
.payment-section h2{margin:0 0 12px;color:var(--navy);font-size:18px}
.qris-option{
  min-height:88px;
  padding:14px 18px;
  display:grid;
  grid-template-columns:92px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  border:2px solid #3a79f1;
  border-radius:12px;
  background:#fff;
  box-shadow:0 0 0 3px rgba(58,121,241,.06);
}
.qris-logo{height:58px;display:grid;place-items:center;border-radius:10px;color:#101a2c;background:linear-gradient(145deg,#f4f7fb,#eaf0fa);font-size:22px;font-weight:900;letter-spacing:-2px}
.qris-copy>div{display:flex;align-items:center;gap:12px}
.qris-copy strong{color:#1c2b49;font-size:14px}
.qris-copy span{padding:5px 10px;border-radius:999px;color:#22985e;background:#e9f8ef;font-size:9px;font-weight:800}
.qris-copy p{margin:9px 0 0;color:#75839a;font-size:11px}
.qris-option>i{width:24px;height:24px;display:grid;place-items:center;border:2px solid var(--blue);border-radius:50%}
.qris-option>i:after{content:"";width:12px;height:12px;border-radius:50%;background:var(--blue)}

.summary-panel{position:sticky;top:22px;padding:34px}
.summary-panel>h2{margin:0 0 22px;color:var(--navy);font-size:20px;letter-spacing:-.3px}
.product-summary{display:grid;grid-template-columns:108px minmax(0,1fr);gap:18px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.product-thumb{width:108px;height:112px;display:grid;place-items:center;overflow:hidden;border-radius:11px;color:var(--navy);background:#eaf1ff;text-align:center;font-size:11px;font-weight:800}
.product-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.product-copy{min-width:0;padding-top:3px}
.product-copy>span{display:inline-flex;padding:6px 10px;border-radius:7px;color:#356edb;background:#edf4ff;font-size:9px;font-weight:800}
.product-copy h3{margin:14px 0 12px;color:var(--navy);font-size:16px;line-height:1.25}
.product-copy>strong{color:var(--orange);font-size:17px}
.price-list{padding:20px 0 17px;display:flex;flex-direction:column;gap:14px;border-bottom:1px solid var(--line)}
.price-list>div{display:flex;justify-content:space-between;gap:20px;color:#4e5e78;font-size:12px}
.price-list strong{color:#35445f;font-size:12px}
.price-list .discount strong{color:var(--green)}
.price-list [hidden]{display:none}
.total-row{padding:22px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--navy);font-size:13px;font-weight:800}
.total-row strong{color:var(--orange);font-size:28px;letter-spacing:-.7px}
.security-note{padding:13px 15px;display:flex;align-items:flex-start;gap:11px;border:1px solid #c9ead7;border-radius:10px;color:#278253;background:#f0fbf5;font-size:10px;line-height:1.6}
.security-note svg{width:20px;height:20px;flex:none;color:#24a665}
.pay-button{
  width:100%;
  min-height:60px;
  margin-top:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:0;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(105deg,#ff5c09,#ff3b13);
  box-shadow:0 12px 24px rgba(255,76,15,.22);
  font-size:17px;
  font-weight:800;
  transition:transform .18s,box-shadow .18s,opacity .18s;
}
.pay-button:hover{transform:translateY(-1px);box-shadow:0 15px 28px rgba(255,76,15,.28)}
.pay-button:disabled{opacity:.7;cursor:wait;transform:none}
.pay-button svg{width:24px;height:24px}
.pay-help{margin:13px 0 0;display:flex;align-items:center;justify-content:center;gap:7px;color:#7a879b;font-size:9px}
.pay-help svg{width:13px;height:13px}

.alert{margin-bottom:24px;padding:14px 16px;border-radius:10px;font-size:12px;line-height:1.6}
.alert strong{display:block;margin-bottom:4px}
.alert ul{margin:0;padding-left:18px}
.alert-error{border:1px solid #ffd2d2;color:#a93434;background:#fff5f5}
.success-card{margin-bottom:28px;padding:20px;border:1px solid #bfe6cf;border-radius:13px;background:#f2fbf6}
.success-heading{display:flex;align-items:flex-start;gap:12px}
.success-heading>span{width:30px;height:30px;display:grid;place-items:center;flex:none;border-radius:50%;color:#fff;background:var(--green);font-weight:900}
.success-heading strong{color:#176b42;font-size:14px}
.success-heading p{margin:5px 0 0;color:#438163;font-size:11px}
.success-payment{margin-top:18px;display:flex;align-items:center;gap:24px}
.success-qr{width:360px;height:360px;flex:none;padding:10px;border:1px solid #d6e5dc;border-radius:14px;background:#fff;box-shadow:0 10px 26px rgba(20,105,67,.10)}
.success-qr img{width:100%;height:100%;object-fit:contain}
.success-payment span{display:block;color:#678477;font-size:10px}
.success-payment strong{display:block;margin:5px 0;color:var(--orange);font-size:20px}
.success-payment p{margin:0;color:#5d776b;font-size:10px;line-height:1.55}
.success-actions{margin-top:15px;display:flex;flex-wrap:wrap;gap:9px}
.success-actions a{padding:10px 14px;border:1px solid var(--green);border-radius:8px;color:#fff;background:var(--green);font-size:10px;font-weight:800}
.success-actions a.outline{color:var(--green);background:#fff}

.checkout-footer{min-height:54px;padding:5px 0 30px;display:flex;align-items:center;justify-content:center;gap:52px;color:#8995a8;font-size:10px}
.checkout-footer span,.checkout-footer a{display:flex;align-items:center;gap:8px}
.checkout-footer svg{width:16px;height:16px}

.not-found-wrap{padding:70px 0}
.not-found{padding:55px;text-align:center}
.not-found-icon{width:50px;height:50px;margin:auto;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--orange);font-size:24px;font-weight:800}
.not-found h1{margin:18px 0 9px;color:var(--navy)}
.not-found p{margin:0 0 22px;color:var(--muted)}
.link-button{display:inline-flex;padding:12px 18px;border-radius:9px;color:#fff;background:var(--blue);font-size:12px;font-weight:800}

@media(max-width:1100px){
  .container{width:min(100% - 38px,1360px)}
  .main-nav{gap:22px}
  .checkout-layout{grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr)}
  .form-panel,.summary-panel{padding:27px}
}

@media(max-width:900px){
  .main-nav{display:none}
  .cart-link{margin-left:auto}
  .steps{padding-inline:34px}
  .checkout-layout{grid-template-columns:1fr}
  .summary-panel{position:static;grid-row:2}
}

@media(max-width:620px){
  .container{width:min(100% - 20px,1360px)}
  .header-inner{min-height:68px;gap:12px}
  .brand{gap:9px}
  .brand img{width:44px;height:44px}
  .brand-copy strong{font-size:15px;letter-spacing:-.2px}
  .brand-copy small{margin-top:4px;font-size:7px;letter-spacing:.15px}
  .cart-link span{display:none}
  .cart-link b{width:20px;height:20px;font-size:9px}
  .account-icon{width:32px;height:32px}
  .steps{margin-top:16px;min-height:60px;padding:9px 13px}
  .step{gap:7px;font-size:10px}
  .step span{width:28px;height:28px}
  .steps>i{font-size:17px}
  .checkout-layout{gap:16px;padding:16px 0}
  .form-panel,.summary-panel{padding:20px;border-radius:14px}
  .form-panel>h1{font-size:19px}
  .promo-box{grid-template-columns:1fr}
  .promo-box small{grid-column:1}
  .promo-control button{min-width:88px}
  .qris-option{padding:13px;grid-template-columns:70px minmax(0,1fr) auto;gap:11px}
  .qris-logo{height:52px;font-size:18px}
  .qris-copy>div{align-items:flex-start;flex-direction:column;gap:5px}
  .qris-copy p{font-size:9px;line-height:1.5}
  .product-summary{grid-template-columns:88px minmax(0,1fr);gap:14px}
  .product-thumb{width:88px;height:96px}
  .total-row strong{font-size:23px}
  .pay-button{font-size:15px}
  .success-payment{align-items:flex-start;flex-direction:column}
  .success-qr{width:300px;height:300px;align-self:center}
  .checkout-footer{gap:18px;align-items:flex-start;flex-direction:column;padding-inline:6px}
}

@media(max-width:390px){
  .brand-copy small{display:none}
  .steps{grid-template-columns:1fr auto 1fr}
  .steps .step:first-child,.steps>i:first-of-type{display:none}
  .promo-control{grid-template-columns:1fr}
  .promo-control button{min-height:42px}
  .success-qr{width:250px;height:250px}
}
