@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
:root {
  --color-primary: #41C4C3;
  --bg-image: url("https://template-assets.tebex.io/images/page-bg.jpg");
}

body {
  font-family: Lato, sans-serif;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-height: 400px;
  z-index: -1;
  background: var(--bg-image) center center/cover no-repeat;
  mask-image: linear-gradient(rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 2px;
}

.btn-primary:hover, .btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 0 6px rgb(from var(--btn-color-bg-hover) r g b/0.6);
}

.quantity-field {
  border-radius: 5px;
}

.site-header-inner .info .image {
  border-radius: 5px;
}

.site-sale-banner {
  border-radius: 5px;
}

.site-home-categories .category {
  border-radius: 5px;
  padding: 20px var(--widget-padding);
  background: var(--color-brighter-bg);
  transition: color 0.15s ease-in-out;
}
.site-home-categories .category:hover {
  color: var(--color-primary);
}

.category-description {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-text {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}
.store-text h1,
.store-text h2,
.store-text h3,
.store-text h4,
.store-text h5,
.store-text h6 {
  text-align: center;
}

.store-products-list .store-product,
.store-products-images .store-product {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-products-images .store-product {
  text-align: center;
}

.widget-title {
  text-align: center;
}

.widget .store-product {
  text-align: center;
}

.no-products {
  color: var(--color-text-secondary);
  background: var(--color-brighter-bg);
  border-radius: 5px;
}

.store-product-full {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-product .quantity-field {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}
.store-product .quantity-field input[type=number] {
  border: none;
}

@media (width > 960px) {
  .navigation-horizontal > ul {
    border-radius: 5px;
  }
}
.navigation-horizontal .has-children > ul {
  border-radius: 5px;
}

.widget {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}
@media (width <= 960px) {
  .widget.site-navigation {
    border-radius: 0;
    background: transparent;
  }
}

.widget-gift-card .gift-card-input {
  border-radius: 2px;
}

.widget-top-donator .avatar {
  border-radius: 50%;
}

.widget-community-goal .progress,
.widget-goal .progress {
  border-radius: 2px;
}
.widget-community-goal .progress-bar,
.widget-goal .progress-bar {
  border-radius: 2px;
}

.popup-content {
  border-radius: 5px;
}

.popup-close {
  border-radius: 0 5px 0 5px;
}

.basket-popup-content,
.basket-popup-content .popup-close {
  border-radius: 0;
}

.basket-items {
  padding: var(--widget-padding) calc(var(--content-padding) - var(--widget-padding));
}

.basket-item {
  border-radius: 5px;
}
.basket-item .quantity {
  border-radius: 2px;
}

.toast {
  border-radius: 6px;
}

.toast-close {
  border-radius: 2px;
}

.store-category-tiered {
  border-radius: 5px;
  background: var(--color-brighter-bg);
}

.store-category-tiered-header h1,
.store-category-tiered-header h2,
.store-category-tiered-header h3,
.store-category-tiered-header h4,
.store-category-tiered-header h5,
.store-category-tiered-header h6 {
  text-align: center;
}

.store-product-tiered {
  border-radius: 5px;
  background: rgb(from var(--color-bg) r g b/0.5);
}

.media-slider .slider,
.media-slider .thumb {
  border-radius: 5px;
}
.media-slider .open-lightbox {
  border-radius: 2px;
}

.popup.popup-media-slider .thumb {
  border-radius: 5px;
}
.popup.popup-media-slider .popup-close {
  border-radius: 5px;
}

/* ════════════════════════════════════════════════════
   MINEFALL — thème boutique
   Ajouté à la fin de generic.css, ne remplace rien.
   Ne touche que couleurs et typo : aucune position,
   aucune marge, la mise en page d'Exo reste intacte.
   ════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --mf-papier:#F4F6F1;
  --mf-carte:#FFFFFF;
  --mf-bord:#E1E7DA;
  --mf-encre:#14180F;
  --mf-encre-mi:#5B6454;
  --mf-lime:#A8FF3D;
  --mf-vert:#3E8E17;
  --mf-copper:#B4652C;
  --mf-honey:#C98F0B;
  --mf-magma:#D8431B;
}

/* ── Le fond et le texte ── */
body{
  background:var(--mf-papier)!important;
  color:var(--mf-encre)!important;
  font-family:"IBM Plex Sans",system-ui,"Segoe UI",sans-serif!important;
}
p,li,td,span,label{color:var(--mf-encre-mi)!important;}

h1,h2,h3,h4,h5,
.title,.heading,[class*="package"] a,[class*="category"] a{
  font-family:"Archivo Black","Arial Black",sans-serif!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  color:var(--mf-encre)!important;
}

/* ── Le vert est un ACCENT, pas une couleur de texte ──
   Chez Exo les titres de catégories et le menu sont des
   liens : colorer « a » repeignait la page entière. */
a,a:visited{color:var(--mf-encre)!important;text-decoration:none!important;}
a:hover{color:var(--mf-vert)!important;}
p a,td a{color:var(--mf-vert)!important;text-decoration:underline!important;}

/* ── Le menu : noir, trait vert sur la page courante ── */
[class*="sidebar"] a,[class*="navigation"] a,nav a{
  color:var(--mf-encre-mi)!important;
  font-weight:500!important;
  border-left:2px solid transparent;
  padding-left:10px!important;
}
[class*="sidebar"] a:hover,nav a:hover{
  color:var(--mf-encre)!important;
  border-left-color:var(--mf-bord);
}
[class*="active"],[class*="current"]{
  color:var(--mf-encre)!important;
  border-left-color:var(--mf-lime)!important;
  font-weight:600!important;
}

/* ── Les blocs ── */
[class*="card"],[class*="panel"],[class*="package"],
[class*="tile"],[class*="box"],[class*="module"]{
  background:var(--mf-carte)!important;
  border-color:var(--mf-bord)!important;
  border-radius:12px!important;
  box-shadow:none!important;
  color:var(--mf-encre)!important;
}
[class*="featured"]{border:2px solid var(--mf-lime)!important;}

/* ── Les boutons ── */
.btn,button,input[type="submit"],[class*="button"]{
  font-family:"Archivo Black","Arial Black",sans-serif!important;
  font-size:14px!important;
  letter-spacing:.06em!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--mf-encre)!important;
  color:#fff!important;
}
.btn:hover,button:hover,[class*="button"]:hover{background:var(--mf-magma)!important;}

/* ── Les prix ── */
[class*="price"],[class*="amount"],[class*="total"]{
  font-family:"Archivo Black","Arial Black",sans-serif!important;
  color:var(--mf-encre)!important;
  font-variant-numeric:tabular-nums;
}

/* ── Le texte blanc hérité du thème sombre ── */
.text-white,.text-light,[class*="text-white"],
[class*="muted"],small,.small{color:var(--mf-encre-mi)!important;}

/* ── Formulaires ── */
input,select,textarea{
  background:var(--mf-carte)!important;
  border:1px solid var(--mf-bord)!important;
  border-radius:8px!important;
  color:var(--mf-encre)!important;
}
input::placeholder{color:#A6AE9C!important;}
input:focus,select:focus,textarea:focus{
  outline:2px solid var(--mf-vert)!important;
  border-color:var(--mf-vert)!important;
}

/* ── Tableaux ── */
th{
  font-family:"IBM Plex Mono",monospace!important;
  font-size:11px!important;letter-spacing:.14em!important;
  text-transform:uppercase!important;color:#8A9382!important;
}
td,table,th{border-color:var(--mf-bord)!important;}
tr:hover td{background:var(--mf-papier)!important;}

/* ── Étiquettes ── */
[class*="badge"],[class*="tag"],[class*="label"]{
  background:var(--mf-lime)!important;color:#16230A!important;
  border:0!important;border-radius:4px!important;
  font-family:"IBM Plex Mono",monospace!important;
  font-size:10.5px!important;letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

/* ── Fenêtres ── */
[class*="modal"],[class*="popup"],[class*="dropdown"],[class*="alert"]{
  background:var(--mf-carte)!important;
  border:1px solid var(--mf-bord)!important;
  border-radius:12px!important;color:var(--mf-encre)!important;
  box-shadow:0 8px 32px rgba(20,24,15,.12)!important;
}

/* ── Pied de page ── */
footer,[class*="footer"]{
  background:var(--mf-papier)!important;
  border-top:1px solid var(--mf-bord)!important;
  color:#8A9382!important;
}

/* ── Détails ── */
img{border-radius:8px;}
hr{border-color:var(--mf-bord)!important;}
::selection{background:var(--mf-lime);color:#16230A;}
:focus-visible{outline:2px solid var(--mf-vert)!important;outline-offset:2px;}

/* ── Le fond étoilé hérité d'Exo : on le retire ──
   Exo peint une image par défaut dans body::before,
   même quand le champ Background image est vide. */
body::before{display:none!important;}
:root{--bg-image:none!important;}

/* ── Les blocs propres à Exo ──
   Exo nomme ses conteneurs .category, .site-navigation,
   .store-text : aucun ne contient "card" ni "panel",
   ils restaient donc noirs sur le fond clair. */
.category,
.site-navigation,
.store-text,
.widget,
.store-products > *,
.package{
  background:var(--mf-carte)!important;
  border:1px solid var(--mf-bord)!important;
  border-radius:12px!important;
  box-shadow:none!important;
  color:var(--mf-encre)!important;
}
.widget-title,.widget-content,.category-name,
.site-content,.store-sidebar,.text-content > *{
  background:transparent!important;
  border:0!important;
}
.category .category-name,.category span,.category a{color:var(--mf-encre)!important;}
.site-title{color:var(--mf-encre)!important;}
.site-header,.site-footer{background:transparent!important;}

/* ── Les fiches produit et le bouton d'achat ──
   Exo nomme la carte d'un paquet .store-product et
   son bouton .add.btn-primary : ni "card" ni "btn". */
.store-product{
  background:var(--mf-carte)!important;
  border:1px solid var(--mf-bord)!important;
  border-radius:12px!important;
  color:var(--mf-encre)!important;
}
.store-product .product-title,
.store-product .product-title a,
.store-product a{color:var(--mf-encre)!important;}
.store-product .product-price,.store-product [class*="price"]{color:var(--mf-encre)!important;}
.btn-primary,a.add,.add{
  background:var(--mf-encre)!important;
  color:#fff!important;
  border:0!important;border-radius:8px!important;
  font-family:"Archivo Black","Arial Black",sans-serif!important;
  letter-spacing:.06em!important;
}
.btn-primary:hover,a.add:hover,.add:hover{background:var(--mf-magma)!important;color:#fff!important;}

/* ── Chaque paquet à sa matière ──
   Exo ne met pas l'ID du paquet sur la carte : on va le
   chercher sur le lien qu'elle contient, avec :has().
   Navigateur trop ancien = carte neutre, rien de cassé.
   COPPER 7672540 · HONEY 7672543 · MAGMA 7672545
   Fallcoins 7672546 / 7672550 / 7672555 */
.store-product{position:relative;overflow:hidden;}
.store-product::before{
  content:"";position:absolute;top:0;left:0;right:0;height:4px;
  background:var(--mf-bord);
}
.store-product:has(a[href$="/package/7672540"])::before{background:var(--mf-copper);}
.store-product:has(a[href$="/package/7672543"])::before{background:var(--mf-honey);}
.store-product:has(a[href$="/package/7672545"])::before{background:var(--mf-magma);}
.store-product:has(a[href$="/package/7672546"])::before,
.store-product:has(a[href$="/package/7672550"])::before,
.store-product:has(a[href$="/package/7672555"])::before{background:var(--mf-honey);}

.store-product:has(a[href$="/package/7672540"]) .add{background:var(--mf-copper)!important;}
.store-product:has(a[href$="/package/7672543"]) .add{background:var(--mf-honey)!important;}
.store-product:has(a[href$="/package/7672545"]) .add{background:var(--mf-magma)!important;}
.store-product:has(a[href$="/package/7672546"]) .add,
.store-product:has(a[href$="/package/7672550"]) .add,
.store-product:has(a[href$="/package/7672555"]) .add{background:var(--mf-honey)!important;}
.store-product .add:hover{background:var(--mf-encre)!important;}

/* Le miel est trop clair pour du texte blanc : encre dessus. */
.store-product:has(a[href$="/package/7672543"]) .add,
.store-product:has(a[href$="/package/7672546"]) .add,
.store-product:has(a[href$="/package/7672550"]) .add,
.store-product:has(a[href$="/package/7672555"]) .add{color:var(--mf-encre)!important;}
.store-product .add:hover{color:#fff!important;}
