/*
Theme Name: Mafatih Dynamic Store
Theme URI: https://mcssd.ae
Description: Premium Dynamic Badges System and modern compact product cards. Parent theme: Blocksy.
Author: Mafatih Computer System
Template: blocksy
Version: 1.7.0
Text Domain: mafatih-dynamic-store
*/

:root{
  --mfs-bg:#05070b;
  --mfs-panel:#0c1018;
  --mfs-card:#10141d;
  --mfs-line:rgba(255,255,255,.10);
  --mfs-line-2:rgba(255,255,255,.16);
  --mfs-text:#f7f8fb;
  --mfs-muted:rgba(247,248,251,.66);
  --mfs-soft:rgba(247,248,251,.44);
  --mfs-orange:#ff6a00;
  --mfs-orange-2:#ff9a32;
  --mfs-shadow:0 24px 70px rgba(0,0,0,.42);
}

html,body,#main,.site-main,.site-content,.ct-container-full,.ct-container,.entry-content,
[data-content="normal"],[data-content="wide"],[data-vertical-spacing*="top"],[data-vertical-spacing*="bottom"]{
  background:transparent!important;
}

body{
  color:var(--mfs-text)!important;
  background:
    radial-gradient(circle at 0% 0%,rgba(255,106,0,.14),transparent 28%),
    radial-gradient(circle at 100% 0%,rgba(36,57,74,.26),transparent 30%),
    linear-gradient(180deg,#05070b 0%,#070a10 55%,#05070b 100%)!important;
}

.hero-section,.entry-header,.page-title,.ct-breadcrumbs,.ct-title-label,h1.page-title{
  display:none!important;
}

/* Header */
.mfs-store-header{
  position:sticky;
  top:0;
  z-index:90;
  margin:0 auto 22px;
  padding:14px 22px;
  border-bottom:1px solid var(--mfs-line);
  background:rgba(5,7,11,.88);
  backdrop-filter:blur(20px);
}

.mfs-store-header-inner{
  max-width:1220px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.mfs-store-logo img{height:38px;width:auto;display:block}

.mfs-store-nav{display:flex;align-items:center;gap:8px}

.mfs-store-nav a{
  color:var(--mfs-muted);
  text-decoration:none!important;
  font-weight:600;
  font-size:13px;
  padding:9px 12px;
  border-radius:999px;
}

.mfs-store-nav a:hover{color:#fff;background:rgba(255,255,255,.07)}

.mfs-store-header .mfs-store-cta{
  color:#fff!important;
  background:linear-gradient(135deg,var(--mfs-orange),var(--mfs-orange-2));
  box-shadow:0 12px 26px rgba(255,106,0,.24);
}

/* Hero */
.mfs-hero{
  max-width:1220px;
  margin:26px auto 22px;
  padding:56px 34px;
  position:relative;
  overflow:hidden;
  border-radius:30px;
  border:1px solid var(--mfs-line-2);
  background:
    radial-gradient(circle at 76% 20%,rgba(255,106,0,.18),transparent 30%),
    radial-gradient(circle at 18% 88%,rgba(36,57,74,.28),transparent 32%),
    linear-gradient(135deg,rgba(255,255,255,.060),rgba(255,255,255,.022))!important;
  box-shadow:var(--mfs-shadow);
}

.mfs-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.032) 1px,transparent 1px);
  background-size:46px 46px;
  opacity:.65;
  pointer-events:none;
}

.mfs-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) 390px;
  gap:42px;
  align-items:center;
}

.mfs-brand-lockup{
  display:inline-flex;
  align-items:center;
  gap:13px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.055);
}

.mfs-brand-lockup img{height:29px;width:auto}

.mfs-kicker{color:var(--mfs-orange-2);font-size:12px;font-weight:650}

.mfs-hero h1{
  max-width:720px;
  margin:22px 0 14px;
  color:#fff!important;
  font-size:clamp(38px,5vw,58px);
  line-height:1.04;
  letter-spacing:-.045em;
  font-weight:720!important;
}

.mfs-hero p{
  max-width:640px;
  margin:0;
  color:var(--mfs-muted)!important;
  font-size:16px;
  line-height:1.75;
}

.mfs-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}

.mfs-primary-btn,.mfs-secondary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  text-decoration:none!important;
  font-size:14px;
  font-weight:650;
}

.mfs-primary-btn{color:#fff!important;background:linear-gradient(135deg,var(--mfs-orange),var(--mfs-orange-2));box-shadow:0 14px 30px rgba(255,106,0,.25)}
.mfs-secondary-btn{color:#fff!important;border:1px solid var(--mfs-line-2);background:rgba(255,255,255,.055)}

.mfs-hero-card{
  position:relative;
  min-height:330px;
  border-radius:28px;
  padding:28px;
  border:1px solid rgba(255,255,255,.13);
  background:radial-gradient(circle at 72% 18%,rgba(255,106,0,.18),transparent 35%),linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.032));
  box-shadow:0 26px 70px rgba(0,0,0,.34);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.mfs-hero-icon{
  width:86px;
  height:86px;
  border-radius:24px;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.32);
  border:1px solid rgba(255,255,255,.12);
}

.mfs-hero-icon img{width:66px;height:66px;object-fit:contain}

.mfs-hero-card h3{margin:20px 0 8px;font-size:24px;line-height:1.2;font-weight:650!important;color:#fff!important;letter-spacing:-.025em}
.mfs-hero-card p{font-size:14px;line-height:1.7;color:var(--mfs-muted)!important}

.mfs-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.mfs-stat{padding:12px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.045)}
.mfs-stat strong{display:block;font-size:16px;color:#fff;font-weight:650}
.mfs-stat span{display:block;margin-top:4px;font-size:11px;color:var(--mfs-muted)}

/* Category chips */
.mfs-categories{
  max-width:1220px;
  margin:18px auto 28px;
  padding:0 16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.mfs-category-chip{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--mfs-line);
  color:#fff!important;
  background:rgba(255,255,255,.045);
  text-decoration:none!important;
  font-size:13px;
  font-weight:600;
}

.mfs-category-chip:hover{
  border-color:rgba(255,106,0,.38);
  background:rgba(255,106,0,.08);
}

/* Marketplace product cards */
.mpe45-store{
  max-width:1220px!important;
  margin:0 auto!important;
  padding:0 16px!important;
}

.mpe45-section{margin-bottom:48px!important}

.mpe45-section-title{
  font-size:24px!important;
  font-weight:620!important;
  letter-spacing:-.025em!important;
  margin:0 0 18px!important;
  color:#fff!important;
}

.mpe45-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr))!important;
  gap:18px!important;
}

/* Modern Compact Product Card */
.mpe45-card{
  position:relative!important;
  overflow:hidden!important;
  min-height:336px!important;
  border-radius:24px!important;
  padding:18px!important;
  border:1px solid rgba(255,255,255,.105)!important;
  background:
    radial-gradient(circle at 82% 18%,rgba(255,106,0,.12),transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.060),rgba(255,255,255,.028))!important;
  box-shadow:0 18px 46px rgba(0,0,0,.30)!important;
  display:flex!important;
  flex-direction:column!important;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}

.mpe45-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,106,0,.36)!important;
  box-shadow:0 24px 60px rgba(0,0,0,.38),0 0 48px rgba(255,106,0,.08)!important;
}

.mpe45-card:before{
  content:"";
  width:54px;
  height:54px;
  border-radius:16px;
  margin-bottom:14px;
  flex:0 0 auto;
  background:
    url("https://online.mcssd.ae/wp-content/uploads/2026/05/Mafatih-Icon.png") center/34px 34px no-repeat,
    linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}

.mpe45-name{
  color:#fff!important;
  font-size:16px!important;
  line-height:1.42!important;
  font-weight:540!important;
  letter-spacing:-.01em!important;
  min-height:68px!important;
  margin:0 0 12px!important;
}

.mpe45-meta{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin:0 0 14px!important;
}

.mpe45-pill{
  padding:6px 9px!important;
  border-radius:999px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:600!important;
  color:rgba(255,255,255,.74)!important;
  background:rgba(255,255,255,.060)!important;
  border:1px solid rgba(255,255,255,.08)!important;
}

/* Premium Dynamic Badges System */
.mpe45-pill.badge-new,
.mpe47-floating-badge.badge-new{
  color:#fff!important;
  border:0!important;
  background:linear-gradient(135deg,#2563eb,#7c3aed)!important;
  box-shadow:0 0 22px rgba(79,70,229,.28)!important;
}

.mpe45-pill.badge-hot,
.mpe47-floating-badge.badge-hot{
  color:#fff!important;
  border:0!important;
  background:linear-gradient(135deg,#ff6a00,#ff2d55)!important;
  box-shadow:0 0 24px rgba(255,106,0,.30)!important;
}

.mpe45-pill.badge-best,
.mpe47-floating-badge.badge-best{
  color:#1d1300!important;
  border:0!important;
  background:linear-gradient(135deg,#f7c76b,#f59e0b)!important;
  box-shadow:0 0 24px rgba(245,158,11,.26)!important;
}

.mpe45-pill.badge-limited,
.mpe47-floating-badge.badge-limited{
  color:#fff!important;
  border:0!important;
  background:linear-gradient(135deg,#7c3aed,#c026d3)!important;
  box-shadow:0 0 24px rgba(192,38,211,.28)!important;
}

.mpe45-pill.badge-featured,
.mpe47-floating-badge.badge-featured{
  color:#001b22!important;
  border:0!important;
  background:linear-gradient(135deg,#22d3ee,#14b8a6)!important;
  box-shadow:0 0 24px rgba(20,184,166,.26)!important;
}

.mpe45-pill.badge-trending,
.mpe47-floating-badge.badge-trending{
  color:#fff!important;
  border:0!important;
  background:linear-gradient(135deg,#ec4899,#f43f5e)!important;
  box-shadow:0 0 24px rgba(236,72,153,.28)!important;
}

.mpe45-pill.stock-in{
  color:#d1fae5!important;
  border-color:rgba(34,197,94,.28)!important;
  background:rgba(34,197,94,.12)!important;
}

.mpe45-pill.stock-low{
  color:#fef3c7!important;
  border-color:rgba(245,158,11,.32)!important;
  background:rgba(245,158,11,.13)!important;
}

.mpe45-pill.stock-out{
  color:#fecaca!important;
  border-color:rgba(239,68,68,.34)!important;
  background:rgba(239,68,68,.14)!important;
}

.mpe45-pill.stock-verify{
  color:#dbeafe!important;
  border-color:rgba(59,130,246,.32)!important;
  background:rgba(59,130,246,.13)!important;
}

/* Floating Corner Badges */
.mpe47-floating-badge{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  z-index:4!important;
  padding:8px 11px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
  animation:mpe47FloatGlow 2.8s ease-in-out infinite;
}

/* Existing discount badge */
.mpe45-discount{
  top:16px!important;
  right:16px!important;
  border-radius:999px!important;
  padding:7px 9px!important;
  font-size:10px!important;
  font-weight:800!important;
  color:#fff!important;
  background:linear-gradient(135deg,#ff6a00,#ff3b30)!important;
  box-shadow:0 0 24px rgba(255,106,0,.28)!important;
  z-index:5!important;
}

/* If discount exists, floating badge shifts */
.mpe45-card:has(.mpe45-discount) .mpe47-floating-badge{
  top:52px!important;
}

@keyframes mpe47FloatGlow{
  0%,100%{transform:translateY(0);filter:saturate(1)}
  50%{transform:translateY(-1px);filter:saturate(1.18)}
}

/* Price */
.mpe45-price-row{
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  align-items:end!important;
  gap:8px!important;
  margin:auto 0 14px!important;
}

.mpe45-price{
  color:#fff!important;
  font-size:30px!important;
  line-height:1!important;
  font-weight:660!important;
  letter-spacing:-.035em!important;
}

.mpe45-price small{
  font-size:12px!important;
  font-weight:600!important;
  color:var(--mfs-soft)!important;
  margin-right:5px!important;
}

.mpe45-old{
  align-self:end!important;
  font-size:13px!important;
  line-height:1.2!important;
  color:rgba(255,255,255,.36)!important;
  text-decoration:line-through!important;
  margin-bottom:2px!important;
}

.mpe45-btn{
  min-height:44px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,var(--mfs-orange),var(--mfs-orange-2))!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:14px!important;
  font-weight:650!important;
  box-shadow:0 12px 24px rgba(255,106,0,.22)!important;
}

.mpe45-btn:visited,.mpe45-btn:hover,.mpe45-btn:focus{
  color:#fff!important;
}

/* Footer logo fix */
.mfs-footer-brand{
  max-width:1220px;
  margin:70px auto 28px;
  padding:28px 20px;
  border-radius:28px;
  border:1px solid var(--mfs-line);
  background:rgba(255,255,255,.035);
  text-align:center;
}

.mfs-footer-brand img{
  max-width:360px!important;
  width:100%!important;
  height:auto!important;
  display:block!important;
  margin:0 auto 14px!important;
  opacity:.92;
  filter:drop-shadow(0 0 20px rgba(255,120,0,.12));
}

.mfs-footer-brand p{
  margin:0!important;
  color:var(--mfs-muted)!important;
  font-size:14px!important;
}

/* Mobile */
@media (max-width:860px){
  .mfs-store-header-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .mfs-store-nav{
    width:100%;
    overflow-x:auto;
    padding-bottom:4px;
  }

  .mfs-hero{
    margin:18px 14px 20px;
    padding:34px 18px;
    border-radius:24px;
  }

  .mfs-hero-grid{
    grid-template-columns:1fr;
  }

  .mfs-hero h1{
    font-size:36px;
  }

  .mfs-hero-card{
    min-height:auto;
  }

  .mpe45-grid{
    grid-template-columns:1fr!important;
  }

  .mpe45-name{
    min-height:auto!important;
  }

  .mfs-footer-brand img{
    max-width:230px!important;
  }
}
