/*
Theme Name: Monkey Lab Galaxy
Description: Galaxy-themed WooCommerce-ready WordPress theme for Monkey Lab Peptides.
Version: 1.6.9
License: GNU General Public License v2 or later
Text Domain: monkeylab-galaxy
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700;800;900&display=swap');

:root{
  --mlp-text: rgba(255,255,255,0.92);
  --mlp-muted: rgba(255,255,255,0.72);
  --mlp-card: rgba(0,0,0,0.38);
  --mlp-border: rgba(255,255,255,0.12);
  --mlp-accent: #9b5cff;
}

html,body{height:100%;}
body{
  margin:0;
  font-family:"Space Grotesk",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial;
  color:var(--mlp-text);
  background:#070814;
  line-height:1.55;
}
a{color:inherit;text-decoration:none;}
a:hover{text-decoration:underline;}

.mlp-bg{
  min-height:100vh;
  background-image:
    radial-gradient(1200px 800px at 20% 10%, rgba(155,92,255,0.18), transparent 60%),
    radial-gradient(1000px 700px at 80% 20%, rgba(0,210,255,0.14), transparent 55%),
    radial-gradient(1000px 800px at 40% 90%, rgba(255,0,153,0.10), transparent 60%),
    linear-gradient(180deg, rgba(4,5,20,0.55) 0%, rgba(7,8,20,0.55) 40%, rgba(6,6,26,0.65) 100%),
    url('assets/galaxy-bg.png');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

.mlp-container{
  width:min(1100px, calc(100% - 2rem));
  margin:0 auto;
  padding:1.25rem 0 3rem;
  position:relative;
}

.mlp-card{
  background:var(--mlp-card);
  border:1px solid var(--mlp-border);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.mlp-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem 1.25rem;
}

.mlp-brand{display:flex;align-items:center;gap:1rem;}
.mlp-logo-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;}
.mlp-logo-wrap::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(155,92,255,0.45) 0%, rgba(0,210,255,0.18) 35%, transparent 70%);
  filter: blur(6px);
  opacity:.9;
}
.mlp-logo-wrap img, .mlp-logo-wrap .custom-logo{
  width:96px;height:auto;display:block;position:relative;z-index:1;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55));
}
.mlp-brand-text .title{
  font-weight:900;letter-spacing:.04em;text-transform:uppercase;font-size:1.05rem;line-height:1.1;
}
.mlp-brand-text .tag{margin-top:.15rem;font-size:.9rem;color:var(--mlp-muted);}

.mlp-actions{display:flex;align-items:center;gap:.75rem;}
.mlp-nav{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
.mlp-nav a{padding:.45rem .7rem;border-radius:999px;border:1px solid transparent;}
.mlp-nav a:hover{border-color:var(--mlp-border);background:rgba(255,255,255,0.05);text-decoration:none;}

.mlp-cart{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:999px;
  border:1px solid var(--mlp-border);
  background:rgba(255,255,255,0.04);
}
.mlp-cart:hover{background:rgba(255,255,255,0.08);text-decoration:none;}
.mlp-cart svg{width:20px;height:20px;}
.mlp-cart-count{
  position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;
  border-radius:999px;font-size:12px;font-weight:800;line-height:18px;text-align:center;
  border:1px solid rgba(155,92,255,0.6);background:rgba(155,92,255,0.30);color:rgba(255,255,255,0.95);
}

.mlp-content{padding:1.25rem;box-sizing:border-box;width:100%;}

/* --- Terms page readability (prevents cramped / cut-off looking content) --- */
.mlp-terms{width:100%;}
.mlp-terms h1{margin:0 0 1rem 0;line-height:1.2;}
.mlp-terms h2{margin:1.5rem 0 .75rem 0;line-height:1.25;}
.mlp-terms p{margin:.75rem 0;}
.mlp-terms ul{margin:.5rem 0 1rem 1.25rem;}
.mlp-terms li{margin:.35rem 0;}
.mlp-terms hr{margin:1.5rem 0;opacity:.25;}
.mlp-hero{padding:2rem 1.25rem;}
.mlp-hero h1{margin:0 0 .5rem;font-size:clamp(1.7rem,3vw,2.4rem);}
.mlp-hero p{margin:0 0 1.25rem;color:var(--mlp-muted);max-width:62ch;}
.mlp-btn{display:inline-flex;align-items:center;justify-content:center;padding:.65rem 1rem;border-radius:999px;border:1px solid rgba(155,92,255,0.55);background:rgba(155,92,255,0.18);font-weight:800;}
.mlp-btn:hover{background:rgba(155,92,255,0.28);text-decoration:none;}

.mlp-footer{
  margin-top:1.5rem;
  padding:1rem 1.25rem;
  color:var(--mlp-muted);
  font-size:.92rem;
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:.75rem 1rem;
  width:100%;
  box-sizing:border-box;
}
.mlp-footer .mlp-disclaimer{
  flex: 1 1 100%;
  color:rgba(255,255,255,0.72);
  font-size:.9rem;
  line-height:1.45;
  text-align:center;
  max-width: 92ch;
  margin: 0 auto;
}
.mlp-footer > div:last-child{
  display:flex;flex-wrap:wrap;gap:.65rem 1rem;align-items:center;justify-content:flex-end;
}
.mlp-footer > div:last-child a{padding:.25rem .55rem;border-radius:999px;border:1px solid transparent;}
.mlp-footer > div:last-child a:hover{border-color:rgba(255,255,255,0.14);background:rgba(255,255,255,0.05);text-decoration:none;}

@media (max-width:640px){
  .mlp-footer{justify-content:center;text-align:center;}
  .mlp-footer > div:last-child{justify-content:center;}
}

/* --- Remove sidebar completely --- */
#secondary, .widget-area, .woocommerce-sidebar{display:none !important;}

/* --- WooCommerce centered grid --- */
.woocommerce ul.products, .woocommerce-page ul.products{
  display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;margin:0;padding:0;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
  float:none !important;margin:0 !important;
  width:280px;max-width:calc(100% - 1rem);
  background: rgba(0,0,0,0.42) !important;
  border:1px solid rgba(255,255,255,0.14) !important;
  border-radius:18px;
  padding:1rem;
  box-sizing:border-box;
}
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering, .woocommerce nav.woocommerce-pagination{
  text-align:center;float:none;margin-left:auto;margin-right:auto;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button{
  border-radius:999px;
  border:1px solid rgba(155,92,255,0.55) !important;
  background:rgba(155,92,255,0.18) !important;
  color:var(--mlp-text) !important;
  font-weight:800 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover{
  background:rgba(155,92,255,0.28) !important;
}

/* Category count plain white */
.woocommerce .product-categories li .count,
.woocommerce-page .product-categories li .count,
.woocommerce .product-categories li.current-cat .count,
.woocommerce-page .product-categories li.current-cat .count{
  color:#fff !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}


/* --- Logo size + layout fix --- */
.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  width: 56px !important;
  max-width: 56px !important;
  height: auto !important;
}

.mlp-logo-wrap::before{
  inset: -10px;
  filter: blur(4px);
}

/* Prevent header shifting */
.mlp-header{
  overflow: hidden;
}


/* --- HARD logo size clamp (prevent layout shift) --- */
.mlp-logo-wrap{
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  flex: 0 0 40px;
}

.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  width: 40px !important;
  max-width: 40px !important;
  height: auto !important;
}

.mlp-logo-wrap::before{
  inset: -6px;
  filter: blur(3px);
}

/* Lock header sizing */
.mlp-header{
  max-width: 100%;
  overflow-x: hidden;
}


/* --- Logo resized to ~31x18 (requested 319x186 scaled down) --- */
.mlp-logo-wrap{
  width: 31px !important;
  min-width: 31px !important;
  max-width: 31px !important;
  flex: 0 0 31px !important;
}

.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  width: 31px !important;
  max-width: 31px !important;
  height: auto !important;
  object-fit: contain;
}

.mlp-logo-wrap::before{
  inset: -4px;
  filter: blur(2px);
}


/* --- Logo EXACT size 319x186 --- */
.mlp-logo-wrap{
  width: 319px !important;
  min-width: 319px !important;
  max-width: 319px !important;
  height: 186px !important;
  flex: 0 0 319px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  width: 319px !important;
  height: 186px !important;
  max-width: 319px !important;
  max-height: 186px !important;
  object-fit: contain;
}

/* Prevent header overflow pushing content */
.mlp-header{
  flex-wrap: wrap;
  overflow-x: hidden;
}


/* --- Logo centered with glow + reduced by half (159x93) --- */
.mlp-logo-wrap{
  width: 159px !important;
  min-width: 159px !important;
  max-width: 159px !important;
  height: 93px !important;
  flex: 0 0 159px !important;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  width: 159px !important;
  height: 93px !important;
  max-width: 159px !important;
  max-height: 93px !important;
  object-fit: contain;
  display: block;
}

/* Perfectly centered glow */
.mlp-logo-wrap::before{
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(155,92,255,0.45) 0%,
    rgba(0,210,255,0.22) 35%,
    transparent 70%
  );
  filter: blur(10px);
  z-index: 0;
}

.mlp-logo-wrap img{
  position: relative;
  z-index: 1;
}


/* --- Render banana logo at HALF size (ignore source resolution) --- */
.mlp-logo-wrap{
  width: 160px !important;      /* container */
  height: auto !important;
}

.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  width: 50% !important;        /* render at half */
  height: auto !important;
  max-width: 50% !important;
  image-rendering: auto;
}


/* --- Header brand layout: logo left + text next to it --- */
.mlp-brand{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap: .9rem !important;
}

.mlp-logo-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important; /* keep it left, not centered */
  position: relative !important;
}

/* Banana BEHIND the glow (glow overlays banana slightly) */
.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  position: relative !important;
  z-index: 1 !important;
}

/* Glow on top */
.mlp-logo-wrap::before{
  z-index: 2 !important;
  pointer-events: none !important;
  mix-blend-mode: screen;
  opacity: .85;
}

/* Bigger brand name next to banana */
.mlp-brand-text .title{
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
}


/* --- FORCE glow above logo, logo behind --- */
.mlp-logo-wrap{
  position: relative !important;
}

.mlp-logo-wrap::before{
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(155,92,255,0.55) 0%,
    rgba(0,210,255,0.30) 35%,
    transparent 70%
  );
  filter: blur(10px);
  z-index: 10 !important;   /* GLOW ON TOP */
  pointer-events: none;
}

.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  position: relative !important;
  z-index: 1 !important;    /* LOGO UNDER GLOW */
}


/* --- Brand header alignment fix: logo + glow LEFT, text next to it --- */
.mlp-header{
  justify-content: space-between;
}

.mlp-brand{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
}

.mlp-logo-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  position: relative !important;
}

/* Make sure the logo sits on the LEFT side of the glow */
.mlp-logo-wrap img,
.mlp-logo-wrap .custom-logo{
  display:block !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 1 !important;  /* logo under glow overlay */
}

/* Glow anchored slightly LEFT behind logo */
.mlp-logo-wrap::before{
  content:"";
  position:absolute;
  width: 220px;
  height: 140px;
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(circle,
    rgba(155,92,255,0.55) 0%,
    rgba(0,210,255,0.30) 35%,
    transparent 72%
  );
  filter: blur(12px);
  pointer-events:none;
  z-index: 2; /* glow on top */
  mix-blend-mode: screen;
  opacity: .9;
}

/* Ensure brand text stays to the right of logo */
.mlp-brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width: 0;
}

.mlp-brand-text .title{
  font-size: 1.35rem !important;
  line-height: 1.1;
  white-space: nowrap;
}













