/* ============================================================
   💗 Chris – Booster SEO Boutique
   Admin + Front
   ============================================================ */

.wrap.chris-admin-wrap { max-width: 1600px; }
.thea-box-grey {
  background: #f1f3f5;
  padding: 28px 32px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.thea-box-white {
  background: #fff;
  padding: 26px 30px;
  border-radius: 16px;
  margin-bottom: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.chris-hero-admin {
  background: linear-gradient(135deg, #E6EFFE, #F8E8E2);
  color: #916D63;
}
.chris-hero-admin h1 { margin-top: 0; color: #916D63; }

.chris-popup-open { overflow: hidden; }
.chris-popup-wrap {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: var(--chris-brown, #916D63);
}
.chris-popup-wrap.is-visible { display: flex; }
.chris-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(55, 42, 38, 0.35);
  backdrop-filter: blur(3px);
}
.chris-popup {
  position: relative;
  width: min(980px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.24);
  border: 1px solid rgba(145,109,99,0.16);
  padding: 28px;
}
.chris-popup-help,
.chris-popup-cart { width: min(560px, 100%); text-align: center; }
.chris-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--chris-rose, #F8E8E2);
  color: var(--chris-brown, #916D63);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.chris-popup-head {
  text-align: center;
  background: linear-gradient(135deg, var(--chris-blue, #E6EFFE), var(--chris-rose, #F8E8E2));
  border-radius: 22px;
  padding: 26px 50px 28px;
  margin-bottom: 22px;
}
.chris-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--chris-brown, #916D63);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}
.chris-popup h2 {
  margin: 0 0 10px;
  color: var(--chris-brown, #916D63);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}
.chris-popup p {
  margin: 0 auto 18px;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--chris-brown, #916D63);
}
.chris-main-button,
.chris-main-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--chris-blue, #E6EFFE);
  color: var(--chris-brown, #916D63) !important;
  text-decoration: none !important;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(145,109,99,0.16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.chris-main-button:hover,
.chris-main-button:focus {
  transform: translateY(-3px);
  background: #d9e8ff;
  box-shadow: 0 14px 30px rgba(145,109,99,0.24);
}

.chris-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.chris-product-card,
.chris-product-card:visited {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: var(--chris-brown, #916D63) !important;
  background: #fff;
  border: 1px solid rgba(145,109,99,0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.chris-product-card:hover,
.chris-product-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.chris-product-img {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--chris-blue, #E6EFFE);
  overflow: hidden;
}
.chris-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chris-product-name {
  padding: 12px 12px 4px;
  font-weight: 400;
  line-height: 1.25;
  min-height: 52px;
}
.chris-product-price {
  padding: 0 12px 8px;
  font-weight: 700;
  color: #222;
}
.chris-product-link {
  margin: auto 12px 12px;
  display: inline-flex;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chris-rose, #F8E8E2);
  font-weight: 800;
}
.chris-coupon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 220px;
  margin: 4px auto 16px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--chris-blue, #E6EFFE);
  border: 2px dashed var(--chris-brown, #916D63);
  color: var(--chris-brown, #916D63);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .chris-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .chris-popup { padding: 22px; }
}
@media (max-width: 767px) {
  .chris-popup-wrap { align-items: flex-end; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .chris-popup {
    width: 100%;
    max-height: 80vh;
    border-radius: 22px 22px 16px 16px;
    padding: 18px;
  }
  .chris-popup-head { padding: 22px 42px 22px; margin-bottom: 16px; }
  .chris-popup p { font-size: 14px; }
  .chris-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .chris-product-name { font-size: 13px; min-height: 48px; padding: 10px 10px 4px; }
  .chris-product-price { font-size: 13px; padding: 0 10px 8px; }
  .chris-product-link { margin: auto 10px 10px; padding: 7px 10px; font-size: 13px; }
  .chris-popup-close { top: 10px; right: 10px; width: 36px; height: 36px; }
}


/* Admin tabs */
.chris-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}
.chris-admin-tab {
  border: 1px solid rgba(145,109,99,0.18);
  background: #fff;
  color: #916D63;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.chris-admin-tab.is-active {
  background: linear-gradient(135deg, #E6EFFE, #F8E8E2);
  box-shadow: 0 8px 20px rgba(145,109,99,0.13);
}
.chris-admin-panel { display: none; }
.chris-admin-panel.is-active { display: block; }
.chris-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.chris-explain-card {
  background: #fff;
  border: 1px solid rgba(145,109,99,0.16);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
@media (max-width: 900px) {
  .chris-explain-grid { grid-template-columns: 1fr; }
}

/* Confettis coupon valide */
.chris-confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  pointer-events: none;
  overflow: hidden;
}
.chris-confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  background: var(--chris-blue, #E6EFFE);
  animation: chris-confetti-fall 1.25s ease-out forwards;
}
.chris-confetti-piece:nth-child(3n) { background: var(--chris-rose, #F8E8E2); }
.chris-confetti-piece:nth-child(4n) { background: var(--chris-brown, #916D63); }
.chris-confetti-piece:nth-child(5n) { width: 8px; height: 8px; border-radius: 999px; }

@keyframes chris-confetti-fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--chris-x, 0px), 105vh, 0) rotate(var(--chris-r, 360deg)); opacity: 0; }
}
