/* Shell header + drawer: ver assets/css/atomti-zazule-app-shell.css */

.atomti-cp-app-main{
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:0;
}

/* Fundo tipo .scene-bg do Frontnovo */
.atomti-cp-scene-bg{
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(235,229,216,.55) 0%, transparent 65%),
    radial-gradient(120% 80% at 50% 100%, #f7f4eb 0%, #ffffff 60%),
    #ffffff;
}

.atomti-cp-app-upload-flow{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:24px 16px 0px;
}

.atomti-cp-center{
  text-align:center;
  margin:0 auto;
  width:100%;
  max-width:55rem;
  padding:16px 8px 0px;
  background:transparent;
}

.atomti-cp-app-center{
  max-width:55rem;
}

.atomti-cp-hero-wrap{
  margin:0 auto 29px;
  padding:0 4px;
}

.atomti-cp-hero-title{
  font-family:Inter,system-ui,sans-serif;
  font-size:2.8em;
  font-weight:600;
  color:#174A4F;
  margin:0 0 12px;
  letter-spacing:-0.02em;
  line-height:1.2;
}

.atomti-cp-hero-sub{
  font-family:Inter,system-ui,sans-serif;
  font-size:1.2rem;
  line-height:1.55;
  color:#666;
  margin:0 auto;
  max-width:28rem;
}

@media (min-width:768px){
  .atomti-cp-hero-sub{
    font-size:1.275rem;
  }
}

.atomti-cp-uploader-modern{
  width:100%;
  max-width:55rem;
  margin:0 auto 32px;
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
}

.atomti-cp-upload-area{
  border:2px dashed #e5e1d8;
  border-radius:1.5rem;
  padding:2.4rem 2rem;
  background:#fff;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.6rem;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}

.atomti-cp-upload-area:hover{
  border-color:rgba(31,189,198,.45);
  background:#faf8f4;
}

.atomti-cp-upload-area.drag-over{
  border-color:#1FBDC6;
  background:#f0fafb;
}

.atomti-cp-upload-icon{
  width:auto;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:transparent;
  border-radius:0;
  color:#1FBDC6;
  margin:0;
  box-shadow:none;
}

.atomti-cp-upload-icon svg{
  display:block;
  width:53px;
  height:53px;
}

.atomti-cp-drag-hint{
  margin:0;
  font-size:1.05rem;
  line-height:1.4;
  color:#666;
}

.atomti-cp-drag-hint--desktop{
  display:none;
}

.atomti-cp-drag-hint--mobile{
  display:block;
}

@media (min-width:768px){
  .atomti-cp-drag-hint--desktop{
    display:block;
  }
  .atomti-cp-drag-hint--mobile{
    display:none;
  }
}

.atomti-cp-upload-btn{
  background:#B2BD42;
  color:#161616;
  border:none;
  padding:1.05rem 2.7rem;
  border-radius:999px;
  font-size:1.2rem;
  font-weight:600;
  cursor:pointer;
  transition:opacity .15s ease, transform .15s ease, box-shadow .15s ease;
  margin-top:0.25rem;
  box-shadow:0 1px 2px rgba(15,23,42,.06);
}

.atomti-cp-upload-btn:hover{
  opacity:0.92;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(178,189,66,.28);
}

.atomti-cp-feedback{
  display:none;
  padding:24px 16px;
  text-align:center;
}

.atomti-cp-spinner{
  width:48px;
  height:48px;
  border:4px solid #e5e7eb;
  border-top-color:#1FBDC6;
  border-radius:50%;
  animation:spin 0.8s linear infinite;
  margin:0 auto 16px;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

.atomti-cp-feedback-text{
  font-size:16px;
  color:#475569;
  margin:0;
  font-weight:500;
}

/* Blocos de confiança (resumo estilo landing) */
.atomti-cp-trust{
  margin-top:8px;
  text-align:center;
}

.atomti-cp-trust-title{
  font-size:clamp(1.5rem,3.6vw,1.8rem);
  font-weight:700;
  color:#174A4F;
  margin:0 0 20px;
}

.atomti-cp-trust-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  text-align:left;
}

@media (min-width:640px){
  .atomti-cp-trust-grid{
    grid-template-columns:1fr 1fr;
    gap:20px;
  }
}

.atomti-cp-trust-card{
  background:#fff;
  border:1px solid #ece8df;
  border-radius:16px;
  padding:29px 24px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}

.atomti-cp-trust-card-icon{
  width:58px;
  height:58px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(31,189,198,.12);
  color:#1FBDC6;
  font-size:1.5rem;
  margin-bottom:12px;
}

.atomti-cp-trust-card-icon--shield{
  background:rgba(23,74,79,.1);
  color:#174A4F;
}

.atomti-cp-trust-card-title{
  margin:0 0 8px;
  font-size:1.275rem;
  font-weight:700;
  color:#174A4F;
}

.atomti-cp-trust-card-text{
  margin:0;
  font-size:1.05rem;
  line-height:1.45;
  color:#666;
}

.atomti-cp-preview{
  margin:20px auto 0;
  max-width:36rem;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #ece8df;
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}

.atomti-cp-preview img{
  display:block;
  width:100%;
  height:auto;
  vertical-align:middle;
}

@media (max-width:640px){
  .atomti-cp-upload-area{
    padding:2rem 1.5rem;
  }
}

/* Editor embutido na página do produto (mesmo documento) */
.atomti-cp-editor-stage.atomti-cp-editor-embed{
  position:relative;
  width:100%;
  max-width:100%;
  margin:0 auto;
  box-sizing:border-box;
  text-align:left;
}

.atomti-editor-embed-loader{
  position:absolute;
  inset:0;
  z-index:100;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:24px;
  box-sizing:border-box;
  background:linear-gradient(180deg,#faf8f3 0%,#f4f1ea 100%);
  color:#174a4f;
  font-family:Inter,system-ui,sans-serif;
  text-align:center;
  transition:opacity .28s ease,visibility .28s ease;
}
.atomti-cp-editor-stage.atomti-cp-editor-embed:not(.atomti-editor-stage--loading) .atomti-editor-embed-loader{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.atomti-editor-embed-loader__spinner{
  width:44px;
  height:44px;
  border-radius:50%;
  border:3px solid rgba(13,148,136,.2);
  border-top-color:#0d9488;
  animation:atomti-editor-loader-spin .75s linear infinite;
}
.atomti-editor-embed-loader__text{
  margin:0;
  font-size:15px;
  font-weight:600;
  color:#334155;
  max-width:20rem;
  line-height:1.45;
}
@keyframes atomti-editor-loader-spin{
  to{ transform:rotate(360deg); }
}

body.atomti-cp-editor-active .atomti-cp-app-center,
body.atomti-cp-editor-active .atomti-cp-center{
  max-width:100%;
  padding-left:0;
  padding-right:0;
  background:transparent;
}

body.atomti-cp-editor-active .atomti-cp-editor-stage-toolbar{
  max-width:min(1200px,100%);
  margin:0 auto 12px;
  padding:0 16px;
}

.atomti-cp-editor-stage-toolbar{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  margin-bottom:12px;
  gap:12px;
}

.atomti-cp-change-image-btn{
  appearance:none;
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  font-size:14px;
  font-weight:600;
  padding:10px 18px;
  border-radius:12px;
  cursor:pointer;
  font-family:Inter,system-ui,sans-serif;
  transition:background .2s ease,border-color .2s ease;
}

.atomti-cp-change-image-btn:hover{
  background:#f8fafc;
  border-color:#94a3b8;
}

/* Carrinho: linha AtomTI (nome + tamanho/peça/kit) + miniatura do mockup */
.atomti-cp-cart-line-suffix{
  display:block;
  margin-top:4px;
  font-weight:600;
  color:#475569;
  line-height:1.35;
}
.atomti-cp-cart-thumb{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100px;
  max-height: 100px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8f5ef;
  aspect-ratio: 1 / 1;
}

/* --- Cart: photo thumbnails --- */
.atomti-cp-photo-link{
  display:inline-block;
  border-radius:6px;
  overflow:hidden;
  line-height:0;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  transition:opacity .15s;
  flex-shrink:0;
}
.atomti-cp-photo-link:hover{ opacity:.82; }
.atomti-cp-photo-thumb{
  width:72px;
  height:72px;
  object-fit:cover;
  display:block;
  border-radius:6px;
}

/* --- Cart: kit pieces list --- */
.atomti-cp-pieces-list{
  display:inline-flex;
  flex-wrap:wrap;
  flex-direction:column;
  gap:8px;
  margin-top:2px;
  vertical-align:top;
}
.atomti-cp-piece-row{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#475569;
}
.atomti-cp-piece-label{
  font-weight:600;
  white-space:nowrap;
  min-width:4rem;
}

/* Cart photo links */
a.atomti-cp-photo-link-text,
.atomti-cp-cart-photo-links a{
  color:#0d9488 !important;
  text-decoration:underline !important;
  font-weight:700 !important;
  cursor:pointer !important;
  display:inline-block !important;
  font-size:13px !important;
  line-height:1.4 !important;
  pointer-events:auto !important;
  visibility:visible !important;
  opacity:1 !important;
}
a.atomti-cp-photo-link-text:hover,
.atomti-cp-cart-photo-links a:hover{
  color:#0a7a70 !important;
}
.atomti-cp-photo-links,
.atomti-cp-cart-photo-links{
  display:flex !important;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
  padding:4px 0;
}

/* ===== Upload page — cart bar (sticky bottom) ===== */
.atomti-cp-upload-cart-bar{
  position: sticky;
  bottom: 0;
  z-index: 60;
  padding: 8px 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #e8e4dc;
  box-shadow: 0 -4px 16px rgba(15,23,42,.08);
}
.atomti-cp-upload-cart-bar-inner{
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.atomti-cp-upload-cart-bar-icon{
  color: #0d9488;
  flex-shrink: 0;
}
.atomti-cp-upload-cart-bar-summary{
  flex: 1;
  font: 500 13px/1.3 Inter, system-ui, sans-serif;
  color: #334155;
  min-width: 0;
}
.atomti-cp-upload-cart-bar-price{
  font-weight: 700;
  color: #0d9488;
}
.atomti-cp-upload-cart-bar-actions{
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.atomti-cp-upload-cart-btn{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 12px Inter, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s;
}
.atomti-cp-upload-cart-btn--view{
  border: 1.5px solid #0d9488;
  background: #fff;
  color: #0d9488;
}
.atomti-cp-upload-cart-btn--view:hover{ background: #f0fdf9; }
.atomti-cp-upload-cart-btn--checkout{
  border: none;
  background: #4a5e00;
  color: #fff;
}
.atomti-cp-upload-cart-btn--checkout:hover{ background: #3b4c00; color: #fff; }
