/* ========== FOOTER TOOLS (install + admin dot) ========== */
.footer-tools {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: none;
  color: #a8a29e;
  cursor: pointer;
  padding: .35rem .5rem;
  border-radius: 8px;
  font-size: .8rem;
  transition: all .2s;
  text-decoration: none;
}
.tool-btn:hover { color: var(--gold); background: rgba(255,255,255,.06); }
.tool-btn.available { color: var(--gold-light); }
.tool-icon { font-size: 1.1rem; }
.tool-label { display: none; }
@media (min-width: 500px) { .tool-label { display: inline; } }
.tool-admin { padding: .5rem; }
.admin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #57534e;
  border: 2px solid #78716c;
  transition: all .2s;
}
.tool-admin:hover .admin-dot {
  background: var(--gold);
  border-color: var(--gold-light);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(212,160,23,.25);
}

.share-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.share-fab:hover { transform: scale(1.08); background: var(--red-dark); }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .75rem;
}
.tab-btn {
  background: transparent;
  border: none;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.tab-btn:hover { background: var(--warm); color: var(--text); }
.tab-btn.active { background: var(--red); color: white; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.card-box {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-box h3 { font-family: var(--font-display); color: var(--red-dark); margin-bottom: .5rem; }
.card-box h4 { margin: 1rem 0 .75rem; }
.muted { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--warm);
  transition: border-color .2s;
}
.upload-zone:hover { border-color: var(--gold); }
.upload-preview img {
  max-height: 180px;
  margin: 0 auto;
  border-radius: 8px;
}
.upload-hint { color: var(--text-muted); font-size: .9rem; }
.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.upload-row input[type="url"] { flex: 1; min-width: 160px; }
.upload-row .or { color: var(--text-muted); font-size: .85rem; }

.hero-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.hero-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--warm);
}
.hero-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.hero-thumb .btn { width: 100%; border-radius: 0; font-size: .75rem; }

.share-link-row {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}
.share-link-row input {
  flex: 1;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: .85rem;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.qr-block {
  text-align: center;
  margin-top: 1rem;
}
.qr-block canvas {
  display: block;
  margin: 0 auto 1rem;
  border-radius: 8px;
  background: white;
}
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }

#qr-product-select {
  width: 100%;
  max-width: 320px;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  background: white;
}

/* Share catalogue bar */
.share-catalogue-bar {
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  color: #fff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(185,28,28,.25);
  animation: pulseSoft 3s ease-in-out infinite;
}
.share-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.share-bar-text { font-weight: 600; font-size: .95rem; }
.share-catalogue-bar .btn-primary {
  background: #fff;
  color: #b91c1c;
  border-color: #fff;
}
.share-catalogue-bar .btn-primary:hover {
  background: #fef3c7;
  color: #7f1d1d;
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 10px 30px rgba(185,28,28,.25); }
  50% { box-shadow: 0 12px 36px rgba(185,28,28,.4); }
}
.product-image .carousel-img { transition: opacity .28s ease; }
.product-image.has-carousel .carousel-img { width:100%; height:100%; object-fit:cover; }
.img-count {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .45rem;
  border-radius: 999px;
}
.modal-gallery { position: relative; aspect-ratio: 1; margin-bottom: .75rem; border-radius: 12px; overflow: hidden; background: var(--warm, #f5efe6); }
.modal-gallery .modal-product-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .4s ease; margin: 0;
}
.modal-gallery .modal-product-img.active { opacity: 1; }
.modal-thumbs { display: flex; gap: .4rem; margin-bottom: 1rem; overflow-x: auto; }
.modal-thumbs .thumb {
  flex: 0 0 56px; height: 56px; border: 2px solid transparent; border-radius: 8px;
  padding: 0; overflow: hidden; cursor: pointer; background: none;
}
.modal-thumbs .thumb.active { border-color: var(--red, #b91c1c); }
.modal-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.multi-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.m-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-del {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px;
  border: none; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
}
.product-card { animation: fadeUp .5s ease backwards; }
.products-grid .product-card:nth-child(1) { animation-delay: .05s; }
.products-grid .product-card:nth-child(2) { animation-delay: .1s; }
.products-grid .product-card:nth-child(3) { animation-delay: .15s; }
.products-grid .product-card:nth-child(4) { animation-delay: .2s; }
.products-grid .product-card:nth-child(5) { animation-delay: .25s; }
.products-grid .product-card:nth-child(6) { animation-delay: .3s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-card { transition: transform .25s ease, box-shadow .25s ease; }
.hero-content { animation: fadeUp .7s ease; }

/* Product image full-screen enlargement */
.image-lightbox{position:fixed;inset:0;z-index:3000;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:3rem 1rem;cursor:zoom-out}
.image-lightbox img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:8px}
.image-lightbox-close{position:absolute;top:1rem;right:1rem;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:2rem;line-height:1;cursor:pointer}
