/**
 * Cart / checkout / order-received — Atlas buyer-style hero + commerce body.
 */
@keyframes atlasCommerceHeroPan{
  from{transform:scale(1.04) translate3d(0,0,0)}
  to{transform:scale(1.1) translate3d(-1.5%,1%,0)}
}

.atlas-commerce-page .atlas-commerce-hero{
  position:relative;min-height:480px;padding:88px 0 56px;
  display:flex;align-items:center;overflow:hidden;isolation:isolate;background:#111
}
.atlas-commerce-page .atlas-commerce-hero .hero-bg{
  position:absolute;inset:0;z-index:-3;
  background-size:cover;background-position:center;background-repeat:no-repeat;
  animation:atlasCommerceHeroPan 14s ease-in-out infinite alternate
}
.atlas-commerce-page .atlas-commerce-hero .hero-shade{
  position:absolute;inset:0;z-index:-2;
  background:linear-gradient(90deg,rgba(5,5,6,.95),rgba(5,5,6,.78) 54%,rgba(5,5,6,.42))
}
.atlas-commerce-page .atlas-commerce-hero .hero-grid{
  display:grid;grid-template-columns:1.06fr .72fr;gap:48px;align-items:center;width:100%
}
.atlas-commerce-page .atlas-commerce-hero .hero-copy{color:#fff}
.atlas-commerce-page .atlas-commerce-hero .eyebrow{
  display:inline-block;font-size:11px;font-weight:800;letter-spacing:.14em;
  color:var(--y,#f4c400);text-transform:uppercase
}
.atlas-commerce-page .atlas-commerce-hero .hero-copy h1{
  font-family:var(--serif,"Cormorant Garamond",Georgia,serif);
  font-size:clamp(36px,4.8vw,58px);margin:14px 0 14px;line-height:.98;
  text-shadow:0 8px 30px rgba(0,0,0,.28);font-weight:600
}
.atlas-commerce-page .atlas-commerce-hero .hero-title-accent{
  display:inline;background:#fff;color:#111;padding:.01em .14em .04em;
  box-decoration-break:clone;-webkit-box-decoration-break:clone;text-shadow:none
}
.atlas-commerce-page .atlas-commerce-hero .hero-copy>p{
  max-width:620px;font-size:16px;line-height:1.55;color:#deded8;margin:0
}
.atlas-commerce-page .atlas-commerce-hero .hero-actions{
  display:flex;gap:11px;flex-wrap:wrap;margin:28px 0 0
}
.atlas-commerce-page .atlas-commerce-hero .hero-actions .btn{
  min-height:46px;padding:0 18px;display:inline-flex;align-items:center;gap:8px
}
.atlas-commerce-page .atlas-commerce-hero .btn-ghost{
  background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35)
}
.atlas-commerce-page .atlas-commerce-hero .btn-ghost:hover{background:rgba(255,255,255,.08);border-color:#fff}
.atlas-commerce-page .atlas-commerce-hero .hero-panel{
  background:rgba(8,8,9,.84);border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(18px);padding:28px;color:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.3);border-radius:12px
}
.atlas-commerce-page .atlas-commerce-hero .hero-panel h3{
  font-family:var(--serif,"Cormorant Garamond",Georgia,serif);
  font-size:28px;margin:12px 0 18px;line-height:1.15;font-weight:600
}
.atlas-commerce-page .atlas-commerce-hero .hero-panel .row{
  display:flex;gap:13px;padding:14px 0;border-top:1px solid rgba(255,255,255,.12);align-items:flex-start
}
.atlas-commerce-page .atlas-commerce-hero .hero-panel .row:first-of-type{border-top:0;padding-top:0}
.atlas-commerce-page .atlas-commerce-hero .hero-panel .row i,
.atlas-commerce-page .atlas-commerce-hero .hero-panel .row svg{
  color:var(--y,#f4c400);flex:0 0 auto;width:18px;height:18px;margin-top:2px
}
.atlas-commerce-page .atlas-commerce-hero .hero-panel b,
.atlas-commerce-page .atlas-commerce-hero .hero-panel small{display:block}
.atlas-commerce-page .atlas-commerce-hero .hero-panel b{font-size:14px;font-weight:700}
.atlas-commerce-page .atlas-commerce-hero .hero-panel small{color:#aaa;font-size:11px;margin-top:2px;line-height:1.4}

.atlas-commerce-page .atlas-commerce-body{padding:48px 0 80px}
.atlas-commerce-page .atlas-commerce-body > .wrap{width:min(100% - 40px,1200px);margin:0 auto}

@media(max-width:980px){
  .atlas-commerce-page .atlas-commerce-hero{min-height:auto;padding:88px 0 56px}
  .atlas-commerce-page .atlas-commerce-hero .hero-grid{grid-template-columns:1fr;gap:28px}
  .atlas-commerce-page .atlas-commerce-hero .hero-copy h1{font-size:clamp(36px,8vw,52px)}
  .atlas-commerce-page .atlas-commerce-hero .hero-panel{max-width:640px}
}
@media(max-width:640px){
  .atlas-commerce-page .atlas-commerce-hero{padding:76px 0 48px}
  .atlas-commerce-page .atlas-commerce-hero .hero-shade{background:rgba(4,4,5,.88)}
  .atlas-commerce-page .atlas-commerce-hero .hero-actions .btn{width:100%;justify-content:center}
  .atlas-commerce-page .atlas-commerce-hero .hero-panel{padding:22px}
}

.atlas-cart-empty-panel{
  background:#fff;border:1px dashed var(--line,#deded7);border-radius:16px;
  padding:56px 24px;text-align:center;max-width:520px;margin:20px auto 60px
}
.atlas-cart-empty-panel i,.atlas-cart-empty-panel svg{width:40px;height:40px;color:#bbb;margin:0 auto 14px;display:block}
.atlas-cart-empty-panel h2{margin:0 0 8px;font-size:22px}
.atlas-cart-empty-panel p{color:var(--mut);margin:0 0 18px}
.atlas-cart-empty-panel .btn{min-width:180px}

.atlas-cart-layout{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.7fr);
  gap:24px;align-items:start;padding-bottom:70px
}
.atlas-cart-lines{display:grid;gap:12px}
.atlas-cart-page-line{
  display:grid;grid-template-columns:88px 1fr auto;gap:16px;align-items:center;
  background:#fff;border:1px solid var(--line,#deded7);border-radius:14px;padding:14px 16px
}
.atlas-cart-page-line .thumb{display:block;width:88px;height:88px;border-radius:10px;overflow:hidden;background:#f0f0ea}
.atlas-cart-page-line .thumb img{width:100%;height:100%;object-fit:cover}
.atlas-cart-page-line .info h3{margin:0 0 4px;font-size:15px;line-height:1.3}
.atlas-cart-page-line .info h3 a{color:inherit;text-decoration:none}
.atlas-cart-page-line .info small{color:#888;font-size:11px}
.atlas-cart-page-line .unit{margin-top:6px;font-size:13px;font-weight:700}
.atlas-cart-page-line .unit span{font-weight:600;color:#888;font-size:11px;margin-left:4px}
.atlas-cart-page-line .ops{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.atlas-cart-page-line .line-total{font-size:16px;font-weight:800}
.atlas-cart-page-line .atlas-qty{
  display:inline-flex;align-items:stretch;border:1px solid #111;border-radius:8px;overflow:hidden
}
.atlas-cart-page-line .atlas-qty button{
  width:40px;height:40px;border:0;background:#111;color:#fff;font-size:20px;cursor:pointer;
  touch-action:manipulation;-webkit-user-select:none;user-select:none
}
.atlas-cart-page-line .atlas-qty span{min-width:34px;display:grid;place-items:center;font-weight:700;font-size:13px}

.atlas-cart-summary,.atlas-checkout-summary,.atlas-checkout-card{
  background:#fff;border:1px solid var(--line,#deded7);border-radius:14px;padding:20px 22px;
  box-shadow:0 12px 32px rgba(0,0,0,.04)
}
.atlas-cart-summary h2,.atlas-checkout-summary h2,.atlas-checkout-card h2{
  margin:0 0 14px;font-size:18px;font-family:var(--sans)!important
}
.atlas-cart-summary .row,.atlas-checkout-summary .totals .row{
  display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:14px
}
.atlas-cart-summary .row.muted{color:#888;font-size:12px}
.atlas-cart-summary .btn{width:100%;margin-top:10px}

.atlas-checkout-grid{
  display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
  gap:24px;align-items:start;padding-bottom:80px
}
.atlas-checkout-main{display:grid;gap:16px}
.atlas-checkout-card .hint{margin:-4px 0 14px;color:#777;font-size:12px;line-height:1.45}
.atlas-checkout-card .field{display:grid;gap:6px;margin-bottom:12px}
.atlas-checkout-card .field span{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#666}
.atlas-checkout-card .field input,
.atlas-checkout-card .field select,
.atlas-checkout-card .field textarea{
  width:100%;border:1px solid var(--line,#deded7);border-radius:10px;padding:12px 14px;
  font-size:14px;background:#fff
}
.atlas-checkout-card .field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.atlas-shipping-box{
  border:1px solid #ecece7;background:#fafaf7;border-radius:10px;padding:14px 16px
}
.atlas-shipping-box p{margin:0 0 6px;font-size:14px}
.atlas-shipping-box .hint{margin:0;color:#777;font-size:12px}

/* Payment method cards (checkout) */
.atlas-commerce-page .atlas-checkout-pay .hint{margin:0 0 16px}
.atlas-commerce-page .atlas-pay-picker{margin:0}
.atlas-commerce-page .pay-methods{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.atlas-commerce-page .pay-method{
  position:relative;
  display:block;
  margin:0;
  cursor:pointer;
}
.atlas-commerce-page .pay-method input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
}
.atlas-commerce-page .pay-method-card{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 22px;
  align-items:center;
  column-gap:14px;
  min-height:68px;
  padding:12px 14px;
  border:1px solid var(--line,#e6e6e0);
  border-radius:12px;
  background:#fff;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.atlas-commerce-page .pay-method-icon{
  width:44px;height:44px;border-radius:11px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#f6f6f1;border:1px solid #ecece6;flex:0 0 auto
}
.atlas-commerce-page .pay-method-icon i,
.atlas-commerce-page .pay-method-icon svg{
  width:20px;height:20px;color:#111;display:block
}
.atlas-commerce-page .pay-method-copy{
  display:grid;gap:2px;min-width:0
}
.atlas-commerce-page .pay-method-card b{
  font-size:14px;font-weight:800;line-height:1.25;color:#111;
  font-family:var(--sans)!important;display:flex;align-items:center;flex-wrap:wrap;gap:6px
}
.atlas-commerce-page .pay-method-card small{
  font-size:12px;color:#777;line-height:1.4
}
.atlas-commerce-page .pay-method-check{
  width:20px;height:20px;border-radius:50%;
  border:2px solid #cfcfc7;background:#fff;justify-self:end;
  position:relative;flex:0 0 auto;transition:border-color .15s,background .15s,box-shadow .15s
}
.atlas-commerce-page .pay-method-check::after{
  content:"";position:absolute;inset:4px;border-radius:50%;
  background:transparent;transition:background .15s
}
.atlas-commerce-page .pay-method:hover .pay-method-card{
  border-color:#cfcfc7;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.atlas-commerce-page .pay-method input:focus-visible + .pay-method-card{
  outline:2px solid var(--y,#f4c400);
  outline-offset:2px;
}
.atlas-commerce-page .pay-method input:checked + .pay-method-card{
  border-color:#111;
  background:#fffdf3;
  box-shadow:inset 0 0 0 1px #111;
}
.atlas-commerce-page .pay-method input:checked + .pay-method-card .pay-method-icon{
  background:var(--y,#f4c400);border-color:#e0b400
}
.atlas-commerce-page .pay-method input:checked + .pay-method-card .pay-method-check{
  border-color:#111;background:#111
}
.atlas-commerce-page .pay-method input:checked + .pay-method-card .pay-method-check::after{
  background:var(--y,#f4c400)
}
.atlas-commerce-page .pay-method-card.is-crypto{
  background:linear-gradient(90deg,#fffdf3 0%,#fff 48%);
}
.atlas-commerce-page .pay-method input:checked + .pay-method-card.is-crypto{
  background:linear-gradient(90deg,#fff8d6,#fffdf3);
}
.atlas-commerce-page .pay-discount-pill{
  display:inline-block;
  padding:2px 7px;
  border-radius:999px;
  background:var(--y,#f4c400);
  color:#111;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
  vertical-align:middle;
}

.atlas-checkout-items{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:10px}
.atlas-checkout-items li{
  display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:start;
  padding-bottom:10px;border-bottom:1px solid #f0f0ea;font-size:13px
}
.atlas-checkout-items .qty{font-weight:800;color:#888}
.atlas-checkout-items .title{
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35
}
.atlas-checkout-summary .totals .row.total{
  border-top:1px solid #111;margin-top:6px;padding-top:12px;font-size:16px;font-weight:800
}
.atlas-checkout-summary .btn{width:100%;margin-top:14px}
.atlas-checkout-summary .fine{font-size:11px;color:#888;line-height:1.45;margin:12px 0 8px}
.atlas-checkout-summary .back-link{font-size:13px;color:#444}

.atlas-order-confirm{max-width:640px;margin:0 auto}
.atlas-order-confirm .ship-to{margin:18px 0;font-size:14px;line-height:1.5;color:#444}
.atlas-order-confirm .totals .row{
  display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:14px
}
.atlas-order-confirm .totals .row.total{
  border-top:1px solid #111;margin-top:6px;padding-top:12px;font-size:16px;font-weight:800
}

.atlas-pallet-buy .atlas-add-cart-row{display:grid;gap:8px;margin-top:10px}
.atlas-pallet-buy .atlas-add-cart-row .btn{width:100%}
.atlas-product-card .atlas-add-cart-row{margin-top:4px}

@media(max-width:900px){
  .atlas-cart-layout,.atlas-checkout-grid{grid-template-columns:1fr}
  .atlas-cart-page-line{grid-template-columns:72px 1fr}
  .atlas-cart-page-line .ops{grid-column:1 / -1;flex-direction:row;justify-content:space-between;align-items:center}
  .atlas-checkout-card .field-row{grid-template-columns:1fr}
}
