/* ========= Inkeon Canvas - Premium UI (safe/compat, ASCII) ========== */

/* Base */
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  background:#f9f9f9; color:#0a0a0a; line-height:1.55;
  max-width:1100px; margin:0 auto; padding:20px;
}
a{color:#0077cc; text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
.site-header{
  background:#ffffff;
  border-bottom:1px solid #eaeaea;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:10px 20px;
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-logo{display:block; width:64px; height:64px}
.brand-name{font-size:26px; font-weight:800; letter-spacing:.2px; color:#0a0a0a}
.brand-name strong{color:#0077cc; font-weight:900}

/* Nav */
.primary-nav ul{list-style:none; display:flex; gap:20px; padding:0; margin:0}
.primary-nav ul li a{color:#0077cc; font-weight:600}
.language-switcher{display:flex; gap:8px}
.language-switcher button{
  background:#f3f6fa; color:#0a0a0a; border:1px solid #eaeaea;
  padding:8px 12px; border-radius:999px; cursor:pointer; font-weight:600;
}
.language-switcher button[aria-pressed="true"]{
  background:#0077cc; color:#ffffff; border-color:#0077cc;
}

/* Hero */
.hero{
  margin:24px 0 10px;
  background:#ffffff;
  border:1px solid #eaeaea; border-radius:16px; padding:24px 20px;
}
.hero h1{font-size:28px; margin:0 0 10px}
.lead{font-size:1.05rem; color:#333333;}
.cta-row{display:flex; gap:12px; margin-top:14px}

/* Buttons */
.btn{display:inline-block; width:auto; max-width:none}
.btn-primary{
  background:#0077cc; color:#ffffff; border:1px solid #0077cc;
  padding:12px 16px; border-radius:12px; font-weight:700; cursor:pointer;
  transition:filter .15s ease, transform .15s ease;
}
.btn-primary:hover{filter:brightness(1.03)}
.btn-primary:active{transform:translateY(1px)}
.btn-outline{
  background:#ffffff; color:#0077cc; border:1px solid #0077cc;
  padding:12px 16px; border-radius:12px; font-weight:700; cursor:pointer;
}
.btn-outline:hover{background:#f3faff}

/* Headings */
h1,h2,h3{margin:0 0 12px}
h2{margin-top:40px}

/* Forms */
label,input,select,textarea,button{display:block; width:100%; max-width:520px}
label{margin-top:12px; font-weight:600}
input,select,textarea{
  padding:12px; border:1px solid #d8d8d8; border-radius:10px; background:#ffffff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus,select:focus,textarea:focus{
  outline:none; border-color:#0077cc; box-shadow:0 0 0 3px rgba(0,119,204,.12);
}
button{
  background:#0077cc; color:#ffffff; border:none; padding:12px 14px;
  border-radius:12px; cursor:pointer; font-weight:700;
}
button:hover{filter:brightness(1.03)}
button:disabled{opacity:.6; cursor:not-allowed}

/* Fieldsets */
fieldset{
  border:1px solid #eaeaea; border-radius:14px; padding:16px 16px 20px; margin:18px 0;
  background:#ffffff;
}
legend{
  padding:0 8px; font-weight:800; color:#111111; font-size:1.02rem;
}

/* Gallery (cards) */
.gallery{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px; margin-top:20px;
}
.card{
  background:#ffffff; border-radius:14px; border:1px solid #eaeaea;
  padding:18px; box-shadow:0 6px 16px rgba(18,18,23,.05);
}
.card h3{margin:2px 0 6px; font-size:1.15rem}

/* ===== Premium frame for previews ===== */
.preview-images{
  display:grid; grid-template-columns:1fr 1fr;
  gap:12px; margin-top:12px;
}
.preview-images img{
  display:block; width:100%; height:auto;
  border-radius:12px;
  background:#ffffff; padding:10px;
  border:1px solid #e6e8ef;
  box-shadow:
    0 1px 0 #ffffff inset,
    0 0 0 6px #ffffff,
    0 10px 18px rgba(18,18,23,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.preview-images img:hover{
  transform:translateY(-1px);
  box-shadow:
    0 1px 0 #ffffff inset,
    0 0 0 6px #ffffff,
    0 16px 26px rgba(18,18,23,.10);
}

/* Select buttons */
.select-buttons{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap}
.desired{background:#0077cc}
.optional{background:#d6d6d6; color:#000000}

/* Selection feedback */
.card.is-desired{outline:2px solid #0077cc}
.card.is-optional{outline:2px dashed #999999}
.card.selected{outline-offset:2px}
.card.is-desired .select-buttons .desired{box-shadow:0 0 0 2px #0077cc inset}
.card.is-optional .select-buttons .optional{box-shadow:0 0 0 2px #999999 inset}

/* Toggle "Details" */
.toggle{
  cursor:pointer; color:#111111; font-weight:700; padding:6px 0;
  background:none; border:0; margin:0; text-align:left;
}
.toggle:focus{outline:2px solid #0077cc; outline-offset:2px}

/* Status + honeypot */
#status{margin-top:10px}
.status{margin-top:10px; font-size:.96rem}
.status.success{
  color:#0a7a24; background:#e9f7ee; border:1px solid #bfe7cb; border-radius:10px; padding:10px 12px; max-width:520px;
}
.status.error{
  color:#b00020; background:#fdecee; border:1px solid #f6c4ca; border-radius:10px; padding:10px 12px; max-width:520px;
}
.hp{position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden}

/* Pairs: Before | After */
.pairs{display:grid; grid-template-columns:1fr; gap:16px; margin-top:12px}
.pair{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
  align-items:flex-start;
  background:#ffffff; border-radius:12px; padding:12px; border:1px solid #eaeaea;
  box-shadow:0 6px 16px rgba(18,18,23,.05);
}
.pair figure{margin:0}
.pair img{
  display:block; width:100%; height:auto;
  border-radius:12px; background:#ffffff; padding:10px;
  border:1px solid #e6e8ef;
  box-shadow:
    0 1px 0 #ffffff inset,
    0 0 0 6px #ffffff,
    0 10px 18px rgba(18,18,23,.06);
}
.pair figcaption{font-size:.9rem; text-align:center; margin-top:6px; color:#555555}

/* FAQs */
#faqs details{
  background:#ffffff; border:1px solid #eaeaea; border-radius:12px;
  padding:12px 14px; margin:10px 0;
}
#faqs summary{font-weight:800; cursor:pointer}
#faqs p{margin:8px 0 2px; color:#333333}

/* Mobile comfort */
button,input,select,textarea{min-height:44px}

/* Responsive */
@media (max-width:700px){
  .primary-nav{flex-direction:column; align-items:flex-start; gap:10px}
  .primary-nav ul{flex-wrap:wrap; gap:12px}
  .brand-logo{width:56px; height:56px}
  .brand-name{font-size:24px}
  .pair{grid-template-columns:1fr}
  .preview-images{grid-template-columns:1fr 1fr}
}
@media (min-width:480px){
  .brand-name{font-size:28px}
}
@media (min-width:900px){
  .brand-name{font-size:30px}
}
@media (min-width:700px){
  .pairs{grid-template-columns:1fr 1fr}
}

/* === Previews: no recortar, mantener proporcion y alto consistente === */
#previewGrid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  align-items:flex-start; /* compat */
}
#previewGrid .card{
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  background:#fff;
}
#previewGrid .card img{
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:contain;
  display:block;
  border-radius:8px;
}

.artist-tag{
  margin-top:10px;
  font-size:.95rem;
  font-weight:600;
  text-align:center;
  opacity:.9;
}

.delivery{
  margin: 0 0 8px 0;
  font-size: .95rem;
}

/* Lead paragraph: force full width on hero */
.hero .lead{
  max-width: none;
  display: block;
  white-space: normal;  /* por si algun minificador raro altera saltos */
}

/* === Selects (Country & Canvas Size): fix unificado Edge/Windows === */

/* 1) Evitar que el dropdown se corte por bordes del fieldset */
#shippingFieldset,
#addressFieldset,
#paymentFieldset{
  position:relative; /* seguro en cualquier validador */
}

/* 2) Normalizar caja del <select> y evitar cortes de fondo */
select{
  display:block;
  width:100%;
  max-width:520px;
  box-sizing:border-box;
  background-clip:padding-box; /* previene cortes del fondo en Edge */
}

/* 3) Crear stacking propio en los selects problematicos */
#country,
#canvasSize{
  position:relative;   /* stacking context propio */
  z-index:1;
  min-width:0;         /* evita wrapping raro en Edge */
  transform:translateZ(0); /* hack inofensivo que ayuda en Edge */
}

/* 4) Cuando estan abiertos/enfocados, subir por encima de bordes/sombras */
#country:focus,
#canvasSize:focus{
  z-index:999;
}

/* 5) Opciones de una sola linea (listas largas y ordenadas) */
#country option,
#canvasSize option{
  white-space:nowrap;
  line-height:1.25;
  font-size:1rem;
}
/* === Hero notes (discretas, elegantes, sin look legal) === */
.hero-notes{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(10,10,10,.10); /* separador sutil */
}

.hero-note{
  margin:6px 0 0;
  font-size:.74rem;
  line-height:1.35;
  opacity:.62;
  font-style:italic;
}
.inkeon-pick{
  text-transform:none;
  overflow:hidden;
}
/* ===== Crop modal ===== */
.ike-modal[hidden]{display:none!important}
.ike-modal{position:fixed; inset:0; z-index:99999}
.ike-modal-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.6)}
.ike-modal-card{
  position:relative; z-index:1;
  width:min(980px, 92vw);
  margin:4vh auto;
  background:#fff; border-radius:16px; overflow:hidden;
  display:flex; flex-direction:column;
  max-height:92vh;
}
.ike-modal-header,.ike-modal-footer{
  padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-bottom:1px solid #eaeaea;
}
.ike-modal-footer{border-top:1px solid #eaeaea; border-bottom:0; justify-content:flex-end}
.ike-modal-body{padding:12px 14px; display:flex; flex-direction:column; gap:12px; overflow:auto}
#cropStepEdit[hidden],#cropStepConfirm[hidden]{display:none!important}
.ike-icon-btn{border:none;background:transparent;font-size:18px;cursor:pointer}
.ike-crop-wrap{
  background:#111; border-radius:14px; overflow:hidden;
  height:min(62vh,520px);
  display:flex; align-items:center; justify-content:center;
}
.ike-crop-wrap img{max-width:100%; max-height:100%; display:block}
.ike-zoom-row{display:flex; gap:10px; align-items:center}
.ike-zoom-row input{flex:1}
.ike-action-row{display:flex; gap:10px; align-items:center}
.ike-crop-preview{
  display:block; width:100%;
  overflow-x:auto; overflow-y:auto;
  max-height:min(52vh,560px);
  max-width:100%;
  border:1px solid #eaeaea; border-radius:12px; background:#fff;
  padding:0 14px 14px 0; box-sizing:border-box;
}
.ike-crop-preview img{display:block; width:auto; max-width:none; height:auto; border-radius:12px}

/* ===== Recommended sizes ===== */
.ike-recs-panel{
  margin:10px 0 0;
  padding:10px 12px;
  border:1px solid #eaeaea;
  background:#fff;
  border-radius:12px;
  max-width:520px;
}
.ike-recs-head{display:flex; align-items:center; justify-content:space-between; gap:10px}
.ike-link-btn{border:none;background:transparent;color:#0077cc;cursor:pointer;padding:6px 8px}
.ike-recs-chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.ike-chip{
  border:1px solid #e5e7eb; background:#f9fafb; color:#111;
  border-radius:999px; padding:8px 12px; cursor:pointer; font-weight:700;
  display:inline-flex; align-items:center; justify-content:flex-start;
  gap:8px; line-height:1.2;
}
.ike-chip:hover{background:#eef6ff; border-color:#b9dbff}
.ike-chip.is-best{justify-content:flex-start}
.ike-best{
  display:inline-block;
  padding:0;
  border-radius:0;
  background:transparent;
  color:#0b5cff;
  font-size:12px;
  font-weight:800;
  margin-right:0;
}

#shippingNext[disabled]{opacity:.6;cursor:not-allowed}
#cropNextBtn[disabled],#cropUseBtn[disabled]{opacity:.55;cursor:not-allowed;pointer-events:none}
#imageUpload[disabled]{opacity:.65;cursor:not-allowed}


input[type="file"]:disabled{pointer-events:none;opacity:.65;cursor:not-allowed}
.is-file-locked{opacity:.92}
.ike-confirm-controls{display:flex;gap:10px;justify-content:flex-end;margin:10px 0 12px}
.ike-confirm-zoom-btn{width:auto;min-width:52px;padding:10px 16px;border-radius:12px}
.ike-crop-preview{overflow:auto;max-height:52vh;padding-bottom:6px}
.ike-crop-preview-inner{display:inline-block;min-width:max-content}
.ike-crop-preview img{max-width:none;width:auto;height:auto;transform-origin:top left}
.only-total span,.only-total strong{font-size:1.05rem}
.only-total strong{font-weight:800}


/* v06 enhancements */
.hero-copy{position:relative;padding:16px 18px;border-radius:16px;margin:14px 0;border:1px solid #e8edf5;box-shadow:0 8px 22px rgba(18,18,23,.04);overflow:hidden}
.hero-copy:before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,#0077cc,#74b6f2)}
.hero-copy-a{background:linear-gradient(180deg,#f7fbff,#ffffff)}
.hero-copy-b{background:linear-gradient(180deg,#f4f9ff,#ffffff)}
.hero-copy-c{background:linear-gradient(180deg,#fffaf2,#ffffff)}
.hero-copy-d{background:linear-gradient(180deg,#f7fff8,#ffffff)}
.cart-top{overflow:visible;min-width:188px;max-width:188px;height:56px;background:linear-gradient(180deg,#ffffff,#f4f9ff);border:1px solid #dbe7f4;box-shadow:0 8px 18px rgba(18,18,23,.06);padding-right:26px}
.cart-rail{position:relative;display:block;width:100%;height:28px}
.cart-icon{position:absolute;left:8px;top:1px;display:flex;align-items:center;justify-content:center;color:#0077cc;animation:cartCruise 4.2s ease-in-out infinite}
.cart-svg{width:44px;height:28px;display:block;filter:drop-shadow(0 3px 4px rgba(0,119,204,.18))}
@keyframes cartCruise{0%{transform:translateX(0)}50%{transform:translateX(118px)}100%{transform:translateX(0)}}
.ike-best-word{color:#0077cc;font-weight:800;margin-left:4px}
#priceDetails{margin-top:12px}
.ike-crop-preview{overflow:auto;max-height:52vh;max-width:100%;padding-bottom:10px;padding-right:12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.ike-crop-preview-inner{display:inline-block;width:max-content;min-width:max-content}
.ike-crop-preview img{display:block;width:auto;height:auto;max-width:none;min-width:0}
#cropPreviewBox::-webkit-scrollbar{height:14px;width:14px}
#cropPreviewBox::-webkit-scrollbar-thumb{background:#a7b4c4;border-radius:999px;border:3px solid #eef3f8}
#cropPreviewBox::-webkit-scrollbar-track{background:#eef3f8;border-radius:999px}

.cart-badge{position:absolute;top:4px;right:6px;z-index:3;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;line-height:22px;box-shadow:0 2px 8px rgba(37,99,235,.28)}


/* v08 adjustments */
.ike-crop-summary{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;padding:10px 14px 8px;border-bottom:1px solid #eef2f7;background:linear-gradient(180deg,#fbfdff,#f5f9ff)}
.ike-crop-summary-item{display:flex;flex-direction:column;gap:2px;min-width:180px}
.ike-crop-summary-item span{font-size:.78rem;opacity:.72;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.ike-crop-summary-item strong{font-size:1rem;line-height:1.25}
.ike-crop-summary-note{font-size:.84rem;opacity:.82;margin-left:auto;align-self:center}
@media (max-width:760px){.ike-crop-summary-note{margin-left:0;width:100%}}
.cart-top{padding-right:34px}
.cart-badge{top:6px;right:10px;min-width:24px;height:24px;line-height:24px}
#cropPreviewBox{overflow:auto;max-width:100%;max-height:52vh;padding:0 14px 14px 0;box-sizing:border-box;scrollbar-gutter:stable both-edges}
#cropPreviewInner{display:inline-block;width:max-content;min-width:max-content;padding:0 0 8px 0}
#cropPreviewImg{display:block;width:auto;height:auto;max-width:none;min-width:0}
#cropPreviewBox::-webkit-scrollbar{height:16px;width:16px}
#cropPreviewBox::-webkit-scrollbar-thumb{background:#9fb0c4;border-radius:999px;border:3px solid #eef3f8}
#cropPreviewBox::-webkit-scrollbar-track{background:#eef3f8;border-radius:999px}

.card button.optional[disabled]{opacity:.55;cursor:not-allowed}


/* v10 crop-preview stability */
#cropPreviewBox{
  overflow-x: scroll !important;
  overflow-y: auto !important;
  max-width: 100% !important;
  scrollbar-gutter: stable both-edges;
}
#cropPreviewInner{
  display: inline-block !important;
  min-width: calc(100% + 180px);
}
#cropPreviewImg{
  display:block;
  max-width:none !important;
}

#cropCancelBtn{display:none!important}
#cropPreviewBox{overflow-x:auto!important;overflow-y:auto!important;max-height:52vh!important;padding-bottom:14px!important;}
#cropPreviewInner{display:inline-block!important;min-width:max-content!important;}
