/* =====================================================================
   Danielino Store — Frutiger Aero e-commerce + gestione (tutte le regole con prefisso .app.store)
   ===================================================================== */
.store-win { min-width: 600px; min-height: 440px; }
.app.store { position: relative; overflow: hidden; outline: none;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255,255,255,0.7), rgba(255,255,255,0) 50%),
    radial-gradient(ellipse at 100% 100%, rgba(125,220,43,0.18), rgba(125,220,43,0) 45%),
    linear-gradient(180deg, rgba(236,248,255,0.6), rgba(205,232,255,0.55)); }

/* ---------- header ---------- */
.app.store .store-header {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(225,242,255,0.8) 50%, rgba(190,228,255,0.75) 51%, rgba(220,240,255,0.85) 100%);
  border-bottom: 1px solid rgba(0,60,150,0.22); box-shadow: 0 2px 8px rgba(0,40,120,0.12);
}
.app.store .store-logo { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,20,80,0.35)); }
.app.store .store-brand { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.app.store .store-brand h1 {
  margin: 0; font: 700 1.35rem var(--font-display); letter-spacing: -0.01em;
  background: linear-gradient(180deg, #2d8ff2 0%, #0b5fd6 48%, #0745a8 52%, #1f7ee8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.9));
}
.app.store .store-sub { font-size: 0.78rem; font-weight: 600; opacity: 0.85; white-space: nowrap; }
.app.store .store-sub .heb { unicode-bidi: isolate; font-weight: 700; color: #0b5fd6; }

.app.store .store-header-shop { flex: 1; display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.app.store .store-header-shop[hidden] { display: none; }
.app.store .store-search { flex: 1; max-width: 300px; margin-left: auto; position: relative; display: block; }
.app.store .store-search .lens { position: absolute; left: 10px; top: 50%; transform: translateY(-55%); font-size: 1.1rem; opacity: 0.55; pointer-events: none; }
.app.store .store-search input { height: 34px; padding-left: 30px; border-radius: 999px; font-size: 0.9rem; }
.app.store .store-search input::-webkit-search-cancel-button { cursor: pointer; }

.app.store .store-cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid #0b4ea8; cursor: pointer; color: #fff; font: 600 0.88rem var(--font); text-shadow: 0 -1px 0 rgba(0,40,120,0.7);
  background: linear-gradient(180deg, #a9ecff 0%, #3aa8ff 45%, #0f7de8 50%, #0b5fd6 100%);
  box-shadow: 0 3px 10px rgba(0,60,160,0.4), 0 1px 0 rgba(255,255,255,0.8) inset; overflow: visible; flex: none;
  transition: filter 0.2s, transform 0.12s;
}
.app.store .store-cart-btn::before { content: ""; position: absolute; left: 6%; right: 6%; top: 6%; height: 44%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.15)); pointer-events: none; }
.app.store .store-cart-btn:hover { filter: brightness(1.1) saturate(1.15); }
.app.store .store-cart-btn.active { background: linear-gradient(180deg, #e2ffb0 0%, #8fe040 45%, #4fb31a 50%, #3f9a12 100%); border-color: #2f7a0c; }
.app.store .store-cart-btn .cart-ico { font-size: 1.05rem; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.4)); }
.app.store .store-cart-badge {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; font: 700 0.75rem var(--font); color: #fff; text-shadow: 0 -1px 0 rgba(80,20,0,0.5);
  background: linear-gradient(180deg, #ffd0a0 0%, #ff8a2a 45%, #f06a00 50%, #e35a00 100%); border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(120,40,0,0.4), 0 1px 0 rgba(255,255,255,0.8) inset; transform-origin: center;
}
.app.store .store-cart-badge.empty { background: linear-gradient(180deg, #fff, #cfe6fb); color: #0b3a80; text-shadow: none; }
.app.store .store-cart-badge.bump { animation: store-bump 0.5s cubic-bezier(.2,1.6,.4,1); }
.app.store .store-cart-btn.bump { animation: store-wiggle 0.5s ease; }
@keyframes store-bump { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
@keyframes store-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg) scale(1.05); } 60% { transform: rotate(5deg) scale(1.05); } }

/* ---------- switch "Sono Danielino" ---------- */
.app.store .store-owner-switch { flex: none; display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; margin-left: 4px; }
.app.store .store-owner-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.app.store .switch-track {
  position: relative; width: 40px; height: 22px; border-radius: 999px; border: 1px solid #7fa9d8; flex: none;
  background: linear-gradient(180deg, #dcecfa, #c1def4); box-shadow: 0 1px 3px rgba(0,40,120,0.25) inset; transition: background 0.2s, border-color 0.2s;
}
.app.store .switch-thumb {
  position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dceeff); box-shadow: 0 1px 3px rgba(0,40,120,0.4), 0 1px 0 rgba(255,255,255,0.9) inset;
  transition: transform 0.2s cubic-bezier(.3,1.3,.4,1);
}
.app.store .store-owner-input:checked + .switch-track { background: linear-gradient(180deg, #e2ffb0, #4fb31a); border-color: #2f7a0c; }
.app.store .store-owner-input:checked + .switch-track .switch-thumb { transform: translateX(18px); }
.app.store .store-owner-switch .switch-label { font: 700 0.8rem var(--font); white-space: nowrap; }

/* ---------- filtri: chip ---------- */
.app.store .store-filters { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid rgba(0,60,150,0.12); background: rgba(255,255,255,0.35); }
.app.store .store-filters[hidden] { display: none; }
.app.store .store-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.app.store .store-chip {
  height: 28px; padding: 0 13px; border-radius: 999px; border: 1px solid #7fa9d8; cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #e4f2ff 48%, #cfe6fb 52%, #e6f3ff 100%);
  color: #0b3a80; font: 600 0.8rem var(--font); box-shadow: 0 2px 5px rgba(0,40,120,0.18), 0 1px 0 rgba(255,255,255,0.9) inset; transition: filter 0.15s, transform 0.12s;
}
.app.store .store-chip:hover { filter: brightness(1.06); box-shadow: 0 3px 8px rgba(0,60,160,0.3), 0 0 8px rgba(120,210,255,0.6); }
.app.store .store-chip.active { background: linear-gradient(180deg, #a9ecff, #3aa8ff 48%, #0f7de8 52%, #0b5fd6); color: #fff; text-shadow: 0 -1px 0 rgba(0,40,120,0.6); border-color: #0b4ea8; }

/* ---------- griglia + card ---------- */
.app.store .app-content { padding: 14px; }
.app.store .store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 14px; }
.app.store .store-grid[hidden] { display: none; }
.app.store .store-card { display: flex; flex-direction: column; cursor: pointer; user-select: none; }
.app.store .store-card.owner { cursor: default; }
.app.store .store-card-img {
  height: 150px; display: grid; place-items: center; padding: 10px;
  background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, #e6f6ff 38%, #b9e2ff 72%, #8fd0ff 100%);
  border-bottom: 1px solid rgba(255,255,255,0.9);
}
.app.store .store-card-img img { width: 100%; height: 130px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0,30,100,0.35)); transition: transform 0.25s cubic-bezier(.2,1.2,.3,1); }
.app.store .store-card:not(.owner):hover .store-card-img img { transform: scale(1.08) translateY(-3px); }
.app.store .store-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.app.store .store-card-name { font-weight: 600; font-size: 0.9rem; line-height: 1.2; min-height: 2.4em; }
.app.store .store-card-cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; opacity: 0.6; }
.app.store .store-card-price { display: flex; align-items: baseline; gap: 8px; font-size: 1.05rem; }
.app.store .store-card-price b { font-size: 1.15rem; color: #0745a8; }
.app.store .store-add { margin-top: auto; align-self: stretch; text-align: center; }
.app.store .store-owner-actions { margin-top: auto; display: flex; gap: 6px; }
.app.store .store-owner-actions .aqua-btn { flex: 1; text-align: center; }

.app.store .store-empty, .app.store .store-cart-empty { grid-column: 1 / -1; text-align: center; padding: 30px 10px; opacity: 0.75; font-weight: 600; }
.app.store .store-empty img, .app.store .store-cart-empty img { width: 90px; opacity: 0.8; }
.app.store .store-empty p, .app.store .store-cart-empty p { margin: 6px 0 0; }

/* ---------- immagine che vola al carrello ---------- */
.app.store .store-fly {
  position: absolute; z-index: 50; pointer-events: none; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,30,100,0.4));
  transition: transform 0.75s cubic-bezier(.35,-0.2,.6,1), opacity 0.75s ease; transform: translate(0,0) scale(1); opacity: 1;
}
.app.store .store-fly.go { transform: translate(var(--dx), var(--dy)) scale(0.18) rotate(20deg); opacity: 0.25; }

/* ---------- drawer carrello (vetro, senza blur per prestazioni) ---------- */
.app.store .store-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(0,25,90,0.18); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.app.store .store-scrim.open { opacity: 1; pointer-events: auto; }
.app.store .store-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 21; width: min(340px, 85%); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(248,253,255,0.97), rgba(220,240,255,0.96));
  border-left: 1px solid rgba(255,255,255,0.95); box-shadow: -10px 0 30px rgba(0,30,110,0.3);
  transform: translateX(105%); transition: transform 0.35s cubic-bezier(.2,1,.3,1);
}
.app.store .store-drawer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0)); pointer-events: none; }
.app.store .store-drawer.open { transform: translateX(0); }
.app.store .store-drawer-head { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid rgba(0,60,150,0.2); }
.app.store .store-drawer-head h3 { margin: 0; font: 700 1.1rem var(--font-display); }
.app.store .store-x {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,40,120,0.45); cursor: pointer; padding: 0; font-size: 0.75rem; line-height: 1; color: #fff;
  background: linear-gradient(180deg, #ffb3a3, #e0432a); text-shadow: 0 -1px 0 rgba(0,0,0,0.4); box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 2px 4px rgba(0,0,0,0.25);
}
.app.store .store-x:hover { filter: brightness(1.15); }
.app.store .store-drawer-items { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.app.store .store-line {
  display: flex; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.95);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(220,240,255,0.6)); box-shadow: 0 3px 10px rgba(0,40,120,0.15);
  animation: store-line-in 0.25s ease both; transition: opacity 0.18s, transform 0.18s;
}
.app.store .store-line.out { opacity: 0; transform: translateX(30px); }
@keyframes store-line-in { from { opacity: 0; transform: translateY(6px); } }
.app.store .store-line-img { flex: none; width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; padding: 4px; background: radial-gradient(circle at 50% 40%, #fff, #cfeaff); border: 1px solid #fff; }
.app.store .store-line-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,30,100,0.3)); }
.app.store .store-line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app.store .store-line-name { font-weight: 600; font-size: 0.85rem; line-height: 1.15; }
.app.store .store-line-price { font-size: 0.78rem; opacity: 0.85; }
.app.store .store-qty { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.app.store .store-qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid #7fa9d8; cursor: pointer; padding: 0; color: #0b3a80; font: 700 0.9rem var(--font); line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #e4f2ff 48%, #cfe6fb 52%, #e6f3ff 100%); box-shadow: 0 2px 4px rgba(0,40,120,0.2), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.app.store .store-qty button:hover { filter: brightness(1.06); box-shadow: 0 2px 6px rgba(0,60,160,0.3), 0 0 6px rgba(120,210,255,0.6); }
.app.store .store-qty span, .app.store .store-qty input { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.app.store .store-qty.big button { width: 32px; height: 32px; font-size: 1.1rem; }
.app.store .store-qty.big input { width: 48px; height: 32px; border-radius: 8px; border: 1px solid rgba(20,80,170,0.5); background: linear-gradient(180deg, #fff, #eef8ff); color: #0b3a80; font: 700 1rem var(--font); outline: none; -moz-appearance: textfield; }
.app.store .store-qty.big input::-webkit-inner-spin-button, .app.store .store-qty.big input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.app.store .store-line-remove { margin-left: auto; width: auto !important; height: 22px !important; border-radius: 999px !important; padding: 0 9px !important; font: 600 0.72rem var(--font) !important; color: #a02010 !important; }
.app.store .store-drawer-foot { flex: none; padding: 12px 14px 14px; border-top: 1px solid rgba(0,60,150,0.2); background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(220,240,255,0.7)); }
.app.store .store-drawer-foot .row, .app.store .store-summary .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.88rem; padding: 3px 0; }
.app.store .row.ship { font-size: 0.8rem; opacity: 0.9; }
.app.store .row .free { color: #3f9a12; letter-spacing: 0.04em; }
.app.store .row.total { border-top: 1px dashed rgba(0,60,150,0.3); margin-top: 4px; padding-top: 8px; font-size: 1.05rem; }
.app.store .row.total b { font-size: 1.25rem; color: #0745a8; }
.app.store .store-drawer-foot .btns { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.app.store .store-drawer-foot .btns .aqua-btn.green { flex: 1; font-size: 0.92rem; padding: 0.5em 1em; }

/* ---------- modale nella finestra: scheda prodotto / carrello->ordine / conferma / form prodotto ---------- */
.app.store .store-modal { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(0,20,80,0.28); animation: store-fade 0.2s ease both; }
@keyframes store-fade { from { opacity: 0; } }
.app.store .store-modal[hidden] { display: none; }
.app.store .store-modal-box {
  position: relative; width: min(680px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px;
  background: linear-gradient(180deg, rgba(247,253,255,0.99), rgba(216,238,255,0.98)); border: 1px solid rgba(255,255,255,0.95); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,30,110,0.45), 0 0 0 1px rgba(0,60,150,0.25), 0 1px 0 rgba(255,255,255,0.9) inset;
  animation: store-pop 0.3s cubic-bezier(.2,1.2,.3,1) both;
}
@keyframes store-pop { from { opacity: 0; transform: scale(0.88) translateY(14px); } }
.app.store .store-modal-box > .store-x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.app.store .store-modal-title { margin: 0 30px 12px 0; font: 700 1.3rem var(--font-display); }
.app.store .store-modal-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

.app.store .store-detail { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.app.store .store-detail-img { height: 260px; display: grid; place-items: center; padding: 14px; border-radius: 16px; border: 1px solid #fff;
  background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, #e6f6ff 38%, #b9e2ff 72%, #8fd0ff 100%); box-shadow: 0 6px 18px rgba(0,40,120,0.2), 0 1px 0 rgba(255,255,255,0.9) inset; }
.app.store .store-detail-img img { width: 100%; height: 232px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,30,100,0.35)); }
.app.store .store-detail-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-right: 22px; }
.app.store .store-detail-cat { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.75; }
.app.store .store-detail h2 { margin: 0; font: 700 1.35rem/1.15 var(--font-display); }
.app.store .store-detail p { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.app.store .store-detail-price { display: flex; align-items: baseline; gap: 10px; }
.app.store .store-detail-price b { font-size: 1.7rem; color: #0745a8; }
.app.store .store-detail-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.app.store .store-detail-ship { font-size: 0.78rem; color: #3f9a12; font-weight: 600; }

.app.store .store-checkout { display: grid; grid-template-columns: 1fr 240px; gap: 18px; align-items: start; }
.app.store .store-form { display: flex; flex-direction: column; gap: 10px; }
.app.store .store-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 700; }
.app.store .store-form textarea.app-input { resize: vertical; font-family: var(--font); font-weight: 500; padding: 8px 10px; }
.app.store .store-form.shake, .app.store .store-pform.shake { animation: store-shake 0.35s ease; }
@keyframes store-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.app.store .store-form-error { padding: 8px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 600; color: #8f2312; background: rgba(255,200,190,0.6); border: 1px solid rgba(224,67,42,0.5); margin-top: 10px; }
.app.store .store-summary { padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.95); background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(230,244,255,0.55)); box-shadow: 0 6px 18px rgba(0,40,120,0.15), 0 1px 0 rgba(255,255,255,0.9) inset; }
.app.store .store-summary h4 { margin: 0 0 6px; font: 700 0.95rem var(--font-display); }
.app.store .store-summary .row { font-size: 0.8rem; }
.app.store .store-summary .row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app.store .store-modal-box.confirm { overflow: hidden; width: min(560px, 100%); }
.app.store .store-confirm { position: relative; text-align: center; padding: 18px 10px 6px; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.app.store .store-confirm > * { position: relative; z-index: 1; }
.app.store .store-confirm-check {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 2rem; text-shadow: 0 -1px 0 rgba(0,60,0,0.5);
  background: linear-gradient(180deg, #e2ffb0 0%, #8fe040 45%, #4fb31a 50%, #3f9a12 100%); border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(60,150,20,0.45), 0 1px 0 rgba(255,255,255,0.9) inset, 0 0 24px rgba(125,220,43,0.5); animation: store-pop 0.5s cubic-bezier(.2,1.4,.3,1) both;
}
.app.store .store-confirm h2 { margin: 6px 0 0; font: 700 1.3rem/1.25 var(--font-display); }
.app.store .store-confirm p { margin: 0; font-size: 0.92rem; }
.app.store .store-confirm .aqua-btn { margin-top: 8px; }
.app.store .store-bubble { position: absolute; bottom: -60px; width: var(--s, 30px); height: var(--s, 30px); z-index: 0 !important; opacity: 0; pointer-events: none;
  animation: store-rise var(--t, 5s) linear var(--d, 0s) infinite; }
@keyframes store-rise {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
  12% { opacity: 0.9; }
  50% { transform: translate(14px, -190px) scale(1); }
  88% { opacity: 0.7; }
  100% { transform: translate(-10px, -400px) scale(1.05); opacity: 0; }
}

/* ---------- modalità Gestione (owner) ---------- */
.app.store .store-owner { display: flex; flex-direction: column; gap: 12px; }
.app.store .store-owner[hidden] { display: none; }
.app.store .store-owner-tabs { flex: none; display: flex; gap: 8px; }
.app.store .store-owner-tab {
  position: relative; height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid #7fa9d8; cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #e4f2ff 48%, #cfe6fb 52%, #e6f3ff 100%);
  color: #0b3a80; font: 700 0.85rem var(--font); box-shadow: 0 2px 5px rgba(0,40,120,0.18), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.app.store .store-owner-tab.active { background: linear-gradient(180deg, #a9ecff, #3aa8ff 48%, #0f7de8 52%, #0b5fd6); color: #fff; text-shadow: 0 -1px 0 rgba(0,40,120,0.6); border-color: #0b4ea8; }
.app.store .store-orders-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px;
  background: linear-gradient(180deg, #ffd0a0 0%, #ff8a2a 45%, #f06a00 50%, #e35a00 100%); color: #fff; font: 700 0.68rem var(--font); text-shadow: 0 -1px 0 rgba(80,20,0,0.5);
  border: 1px solid #fff; vertical-align: middle;
}
.app.store .store-orders-badge[hidden] { display: none; }
.app.store .store-owner-toolbar { flex: none; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app.store .store-owner-count { font-size: 0.82rem; font-weight: 600; opacity: 0.75; }
.app.store .store-grid.owner .store-card-body { gap: 4px; }

/* ---------- ordini ---------- */
.app.store .store-orders { display: flex; flex-direction: column; gap: 10px; }
.app.store .store-order {
  border-radius: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.95);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(225,241,255,0.65)); box-shadow: 0 4px 12px rgba(0,40,120,0.15), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.app.store .store-order.new { border-color: rgba(255,138,42,0.7); box-shadow: 0 4px 12px rgba(0,40,120,0.15), 0 0 0 2px rgba(255,138,42,0.35) inset; }
.app.store .store-order-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app.store .store-order-num { font: 700 0.95rem var(--font-display); }
.app.store .store-order-status { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font: 700 0.68rem var(--font); text-transform: uppercase; letter-spacing: 0.03em; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,0.25); vertical-align: middle; }
.app.store .store-order-status.new { background: linear-gradient(180deg, #ffd0a0, #f06a00); }
.app.store .store-order-status.done { background: linear-gradient(180deg, #e2ffb0, #4fb31a); }
.app.store .store-order-date { font-size: 0.76rem; opacity: 0.65; }
.app.store .store-order-customer { margin-top: 4px; font-size: 0.85rem; font-weight: 600; }
.app.store .store-order-customer i { font-weight: 500; opacity: 0.8; }
.app.store .store-order-items { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(0,60,150,0.25); display: flex; flex-direction: column; gap: 2px; }
.app.store .store-order-items .row { display: flex; justify-content: space-between; font-size: 0.8rem; }
.app.store .store-order-foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app.store .store-order-total { font-size: 0.85rem; }
.app.store .store-order-total b { font-size: 1rem; color: #0745a8; }
.app.store .store-order-actions { display: flex; gap: 8px; }

/* ---------- form prodotto (aggiungi/modifica) ---------- */
.app.store .store-pform-grid { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: start; }
.app.store .store-pform-fields { display: flex; flex-direction: column; gap: 10px; }
.app.store .store-pform-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 700; }
.app.store .store-pform-fields textarea.app-input { resize: vertical; font-family: var(--font); font-weight: 500; padding: 8px 10px; }
.app.store .store-pform-image { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.app.store .store-pform-preview {
  height: 130px; display: grid; place-items: center; padding: 10px; border-radius: 14px; border: 1px solid #fff;
  background: radial-gradient(ellipse at 50% 42%, #ffffff 0%, #e6f6ff 38%, #b9e2ff 72%, #8fd0ff 100%); box-shadow: 0 4px 12px rgba(0,40,120,0.18), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.app.store .store-pform-preview img { max-width: 100%; max-height: 110px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,30,100,0.3)); }
.app.store .store-upload-btn { justify-content: center; cursor: pointer; }
.app.store .store-pform-label { font-size: 0.76rem; font-weight: 600; opacity: 0.7; text-align: center; }
.app.store .store-pform-bundled { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.app.store .store-bundled-pick {
  padding: 4px; border-radius: 8px; border: 2px solid rgba(127,169,216,0.5); cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #e6f6ff);
}
.app.store .store-bundled-pick img { width: 100%; height: 30px; object-fit: contain; display: block; }
.app.store .store-bundled-pick:hover { border-color: #3aa8ff; }
.app.store .store-bundled-pick.active { border-color: #0b5fd6; box-shadow: 0 0 0 2px rgba(58,168,255,0.5); }

/* ---------- finestra stretta ---------- */
@media (max-width: 760px) {
  .app.store .store-detail, .app.store .store-checkout, .app.store .store-pform-grid { grid-template-columns: 1fr; }
  .app.store .store-detail-img { height: 200px; }
  .app.store .store-header-shop { flex-wrap: wrap; }
}
