/* SVG Stickers – cart / order detail */
.svgstickers-cart-details {
  margin: 0 0 8px 0;
  padding: 0;
  list-style: none;
  font-size: .82em;
  color: #555;
}
.svgstickers-cart-details li {
  padding: 1px 0;
}

/* Two SVG previews side by side */
.svgstickers-svg-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 8px;
}
.svgstickers-svg-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.svgstickers-svg-preview-label {
  font-size: .75em;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.svgstickers-svg-inline {
  width: 120px;
  height: 120px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}
.svgstickers-svg-inline svg {
  max-width: 100%;
  max-height: 100%;
}

/* Download button */
.svgstickers-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #555;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: .75em;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.svgstickers-dl-btn:hover {
  background: #333;
  color: #fff;
}
.svgstickers-dl-btn svg {
  flex-shrink: 0;
}

/* ── Pleine largeur de page (thème hummingbird / PS9) ── */
.product__module-fullwidth {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 20px;
  box-sizing: border-box;
  margin-bottom: 40px;
}

/* ── Pleine largeur de page (JS relocate, tous thèmes) ── */
.svgstickers-product-header {
  margin-bottom: 20px;
}
.svgstickers-fullwidth-slot {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 40px;
}

/* SVG Stickers – front (product page only) */
body#product .social-sharing,
body#product .ps-sharebuttons,
body#product .product__prices,
body#product .js-product-prices,
body#product .product__add-to-cart-container,
body#product .js-product-add-to-cart,
body#product .product__actions-qty-add,
body#product .product-quantity,
body#product .product__add-to-cart,
body#product .product__add-to-cart-button {
  display: none !important;
}

.svgstickers-wrapper {
  width: 100%;
  margin: 0 0 30px 0;
  font-family: inherit;
  box-sizing: border-box;
}


/* Loading state */
.svgstickers-upload-zone.loading {
  opacity: .6;
  pointer-events: none;
}
.svgstickers-upload-zone.loading .svgstickers-upload-text::after {
  content: ' Traitement en cours…';
}

/* Preview header (filename + reset button) */
.svgstickers-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.svgstickers-filename {
  font-size: .85rem;
  color: #777;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}
.svgstickers-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.svgstickers-btn-reset,
.svgstickers-btn-reinit {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  color: #fff;
}
.svgstickers-btn-reset {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 4px 12px rgba(239,68,68,.4);
}
.svgstickers-btn-reinit {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 12px rgba(59,130,246,.4);
}
.svgstickers-btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(239,68,68,.55);
}
.svgstickers-btn-reinit:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(59,130,246,.55);
}
.svgstickers-btn-reset:active,
.svgstickers-btn-reinit:active {
  transform: translateY(1px);
}
.svgstickers-btn-reset::before,
.svgstickers-btn-reinit::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .4s ease;
}
.svgstickers-btn-reset:hover::before,
.svgstickers-btn-reinit:hover::before {
  left: 160%;
}

/* Upload zone */
.svgstickers-upload-zone {
  border: 2px dashed #c8c8c8;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fafafa;
}
.svgstickers-upload-zone:hover,
.svgstickers-upload-zone.drag-over {
  border-color: #222;
  background: #f3f3f3;
}
.svgstickers-upload-inner svg {
  color: #aaa;
  margin-bottom: 12px;
}
.svgstickers-upload-text {
  margin: 0;
  color: #666;
  font-size: .95rem;
}
.svgstickers-file-input {
  position: absolute;
  width: 0; height: 0;
  opacity: 0;
  pointer-events: none;
}

/* SVG preview */
.svgstickers-preview-area {
  margin-bottom: 20px;
}
.svgstickers-svg-container {
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  overflow: hidden;
}
.svgstickers-svg-container svg {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
}

/* Small elements warning */
.svgstickers-small-warning {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.svgstickers-warning-text {
  margin: 0 0 8px 0;
  color: #555;
  font-size: .9rem;
}
.svgstickers-warning-hint {
  margin: 0 0 12px 0;
  color: #888;
  font-size: .85rem;
  font-style: italic;
}
.svgstickers-warning-icon {
  margin-right: 6px;
  font-size: 1.1rem;
}
.svgstickers-small-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Dimensions */
.svgstickers-dimensions-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.svgstickers-dim-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svgstickers-dim-group label {
  font-size: .8rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
}
.svgstickers-dim-input {
  width: 110px;
  padding: 8px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  font-size: .95rem;
  text-align: center;
  transition: border-color .2s;
}
.svgstickers-dim-input:focus {
  outline: none;
  border-color: #222;
}
.svgstickers-lock-btn {
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  padding: 8px 10px;
  cursor: pointer;
  color: #555;
  transition: background .2s, color .2s;
  margin-bottom: 0;
}
.svgstickers-lock-btn:hover,
.svgstickers-lock-btn.unlocked {
  background: #f0f0f0;
}
.svgstickers-lock-btn.unlocked {
  color: #c0392b;
  border-color: #c0392b;
}
.svgstickers-elements-count {
  min-width: 80px;
}
.svgstickers-count-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
}

/* Custom text */
.svgstickers-custom-text {
  background: #f8f9fa;
  border-left: 3px solid #6366f1;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: .9rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Colors */
.svgstickers-colors-row {
  margin-bottom: 50px;
}
.svgstickers-section-label {
  display: block;
  font-size: .8rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.svgstickers-color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.svgstickers-swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
  padding: 0;
  outline: none;
}
.svgstickers-swatch:hover {
  transform: scale(1.15);
}
.svgstickers-swatch.active {
  border-color: #222 !important;
  transform: scale(1.1);
}

/* Custom color input */
.svgstickers-color-custom {
  margin-top: 14px;
}
.svgstickers-color-custom-label {
  display: block;
  font-size: .8rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.svgstickers-color-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.svgstickers-color-picker {
  width: 44px;
  height: 44px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}
.svgstickers-color-hex-input {
  width: 110px;
  padding: 8px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  font-size: .95rem;
  font-family: monospace;
  text-align: center;
  transition: border-color .2s;
}
.svgstickers-color-hex-input:focus {
  outline: none;
  border-color: #222;
}
.svgstickers-color-custom-preview {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ddd;
  flex-shrink: 0;
  display: inline-block;
}

/* Price */
.svgstickers-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.svgstickers-price-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
}

/* Total bar */
.svgstickers-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: linear-gradient(135deg, #1e1e2e, #2d2d44);
  color: #fff;
  border-radius: 14px;
  padding: 16px 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.svgstickers-total-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .65;
}
.svgstickers-total-price {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

/* Price tiers */
.svgstickers-price-tiers {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.svgstickers-tier-row {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px 10px 16px;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  overflow: hidden;
  background: linear-gradient(145deg, #c00090, #800060);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192,0,144,.5);
}
.svgstickers-tier-row:nth-child(2) {
  background: linear-gradient(145deg, #3300c0, #220080);
  box-shadow: 0 4px 14px rgba(51,0,192,.5);
}
.svgstickers-tier-row:nth-child(3) {
  background: linear-gradient(145deg, #c00009, #800006);
  box-shadow: 0 4px 14px rgba(192,0,9,.5);
}
.svgstickers-tier-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.svgstickers-tier-row.active {
  border-color: #fff;
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.3), 0 0 0 3px rgba(255,255,255,.6);
  filter: brightness(1.12);
}
.svgstickers-tier-row:not(.active) {
  opacity: .65;
  filter: saturate(.6);
}
.svgstickers-tier-row:not(.active):hover {
  opacity: .85;
  filter: saturate(.9);
}
.svgstickers-tier-row.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.svgstickers-tier-row.active::after {
  content: '✓ Sélectionné';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.25);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 0;
  text-align: center;
}
.svgstickers-tier-popular {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.2);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 0;
  text-align: center;
}
.svgstickers-tier-qty {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 10px;
}
.svgstickers-tier-qty-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .85;
  display: block;
  margin-top: 2px;
  text-align: center;
}
.svgstickers-tier-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 800;
  background: rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: .03em;
}
.svgstickers-tier-sep {
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,.3);
  margin: 10px auto 8px;
}
.svgstickers-tier-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.svgstickers-tier-price {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.svgstickers-tier-unit {
  font-size: .68rem;
  opacity: .75;
  margin-top: 1px;
}
/* Tiers responsive */
@media (max-width: 640px) {
  .svgstickers-price-tiers { gap: 8px; }
  .svgstickers-tier-row { padding: 14px 6px 12px; border-radius: 10px; }
  .svgstickers-tier-qty { font-size: 1.2rem; margin-top: 8px; }
  .svgstickers-tier-qty-label { font-size: .6rem; }
  .svgstickers-tier-badge { font-size: .7rem; padding: 1px 7px; margin-top: 4px; }
  .svgstickers-tier-sep { margin: 6px auto; }
  .svgstickers-tier-price { font-size: 1rem; }
  .svgstickers-tier-unit { font-size: .6rem; }
  .svgstickers-tier-popular { font-size: .55rem; }
}
@media (max-width: 400px) {
  .svgstickers-price-tiers { flex-direction: column; gap: 10px; }
  .svgstickers-tier-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
  }
  .svgstickers-tier-popular {
    position: static;
    background: transparent;
    font-size: .6rem;
    padding: 0;
    text-align: left;
    order: -1;
    opacity: .8;
  }
  .svgstickers-tier-qty { font-size: 1.1rem; margin-top: 0; flex: 1; text-align: left; }
  .svgstickers-tier-qty-label { display: inline; font-size: .7rem; margin-top: 0; }
  .svgstickers-tier-badge { margin-top: 0; }
  .svgstickers-tier-sep { display: none; }
  .svgstickers-tier-price-wrap { flex-direction: row; align-items: baseline; gap: 4px; }
  .svgstickers-tier-price { font-size: 1.1rem; }
  .svgstickers-tier-unit { font-size: .65rem; margin-top: 0; }
  .svgstickers-tier-row.active { transform: scale(1.02); }
  .svgstickers-tier-row.active::after { display: none; }
}

/* Cart row */
.svgstickers-cart-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svgstickers-qty-group label {
  display: block;
  font-size: .8rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.svgstickers-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  overflow: hidden;
}
.svgstickers-qty-btn {
  background: #f5f5f5;
  border: none;
  width: 36px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
  transition: background .2s;
}
.svgstickers-qty-btn:hover { background: #e8e8e8; }
.svgstickers-qty-input {
  width: 52px;
  border: none;
  text-align: center;
  font-size: .95rem;
  height: 40px;
  padding: 0;
}
.svgstickers-qty-input:focus { outline: none; }

/* Buttons */
.svgstickers-btn {
  padding: 11px 24px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, opacity .2s;
  letter-spacing: .03em;
}
.svgstickers-btn-primary {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e02020, #a00000);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(192,0,0,.45);
  position: relative;
  overflow: hidden;
  animation: svgstickers-pulse 2.4s ease-in-out infinite;
}
.svgstickers-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
  animation: svgstickers-shine 2.4s ease-in-out infinite;
}
.svgstickers-btn-primary:hover {
  background: linear-gradient(135deg, #c01010, #800000);
  box-shadow: 0 10px 28px rgba(192,0,0,.6);
  transform: translateY(-2px);
  animation: none;
}
.svgstickers-btn-primary:hover::before { animation: none; }
.svgstickers-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(192,0,0,.4);
}

@keyframes svgstickers-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(192,0,0,.45); }
  50%       { box-shadow: 0 8px 30px rgba(192,0,0,.75), 0 0 0 5px rgba(192,0,0,.12); }
}
@keyframes svgstickers-shine {
  0%   { left: -100%; }
  50%, 100% { left: 160%; }
}
.svgstickers-btn-outline {
  background: transparent;
  color: #333;
  border: 1px solid #ccc;
}
.svgstickers-btn-outline:hover { background: #f5f5f5; }
.svgstickers-btn-danger {
  background: #c0392b;
  color: #fff;
}
.svgstickers-btn-danger:hover { background: #a93226; }

/* Clignotement des éléments trop petits */
@keyframes svgstickers-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}
.svgstickers-blink {
  animation: svgstickers-blink 1s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .svgstickers-dimensions-row { gap: 8px; }
  .svgstickers-dim-input { width: 90px; }
  .svgstickers-cart-row { flex-direction: column; align-items: flex-start; }
  .svgstickers-btn-primary { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .svgstickers-upload-zone { padding: 24px 12px; }
  .svgstickers-price-value { font-size: 1.3rem; }
}

/* ── SVG Resources / Links block ── */
.svgstickers-links-block {
  margin-top: 80px;
  padding: 20px 24px;
  background: #f8f9fa;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
}
.svgstickers-links-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  line-height: 1.3;
}
.svgstickers-links-intro {
  font-size: .9rem;
  color: #555;
  margin: 0 0 14px 0;
  line-height: 1.55;
}
.svgstickers-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svgstickers-links-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: #3300c0;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.svgstickers-links-list li a::before {
  content: '→';
  font-size: .85rem;
  opacity: .7;
}
.svgstickers-links-list li a:hover {
  color: #1a006a;
  text-decoration: underline;
}

/* ── Cart customization display ── */
.svgstickers-cart-preview {
  margin: 6px 0 4px;
}
.svgstickers-cart-preview__img {
  display: block;
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  object-fit: contain;
}

.svgstickers-cart-details {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: .82rem;
  color: #555;
  line-height: 1.6;
}
.svgstickers-cart-details li::before {
  content: '▸ ';
  color: #3300c0;
  font-size: .75rem;
}
