:root{
  --brand:#8b2cff;
  --brand2:#ff3d8b;
  --dark:#1f1830;
  --soft:#f8f4ff;
  --body:#fbfbfe;
  --text:#241f2f;
  --muted:#6c6478;
  --border:rgba(31,24,48,.08);
  --shadow:0 12px 35px rgba(31,24,48,.08);
  --shadow-hover:0 18px 45px rgba(31,24,48,.13);
  --radius:22px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  background:var(--body);
  color:var(--text);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

img{
  max-width:100%;
}

a{
  transition:.2s ease;
}

.skip-link{
  position:absolute;
  left:.5rem;
  top:.5rem;
  z-index:9999;
  padding:.65rem 1rem;
  background:#fff;
  color:var(--brand);
  border-radius:999px;
  box-shadow:var(--shadow);
  transform:translateY(-140%);
}

.skip-link:focus{
  transform:translateY(0);
}

.brand-gradient{
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.btn{
  transition:.2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  --bs-btn-bg:var(--brand);
  --bs-btn-border-color:var(--brand);
  --bs-btn-hover-bg:#7624dc;
  --bs-btn-hover-border-color:#7624dc;
}

.btn-accent{
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  border:0;
  color:#fff;
  box-shadow:0 12px 24px rgba(139,44,255,.22);
}

.btn-accent:hover{
  color:#fff;
  filter:brightness(.98);
  box-shadow:0 16px 30px rgba(139,44,255,.28);
}

.form-control,
.form-select{
  border-radius:14px;
  border-color:rgba(31,24,48,.12);
}

.form-control:focus,
.form-select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 .2rem rgba(139,44,255,.12);
}

.navbar{
  backdrop-filter:saturate(180%) blur(10px);
}

.navbar-brand{
  letter-spacing:-.03em;
}

.hero-slide{
  min-height:360px;
  border-radius:28px;
  overflow:hidden;
  background:linear-gradient(135deg,#efe5ff,#ffe4f0);
}

.hero-img{
  width:100%;
  height:360px;
  object-fit:cover;
  display:block;
}

.promo-card,
.product-card,
.soft-card,
.report-card,
.metric-card,
.dashboard-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  background:#fff;
}

.product-card{
  position:relative;
  transition:transform .22s ease, box-shadow .22s ease;
}

.product-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-hover);
}

.product-card img{
  aspect-ratio:1/1;
  object-fit:cover;
  transition:.25s ease;
}

.product-card:hover img{
  transform:scale(1.04);
}

.price{
  color:var(--brand2);
  font-weight:800;
}

.badge-soft{
  background:var(--soft);
  color:var(--brand);
}

.cart-badge{
  font-size:.65rem;
  position:absolute;
  top:0;
  right:-8px;
}

.variation-btn input{
  display:none;
}

.variation-btn span{
  border:1px solid #ddd;
  border-radius:999px;
  padding:.55rem .9rem;
  display:inline-block;
  background:#fff;
  cursor:pointer;
}

.variation-btn input:checked+span{
  background:var(--dark);
  color:#fff;
  border-color:var(--dark);
}

.variation-btn.disabled span{
  opacity:.45;
  text-decoration:line-through;
  cursor:not-allowed;
}

.thumb{
  width:74px;
  height:74px;
  object-fit:cover;
  border-radius:14px;
  border:2px solid transparent;
  cursor:pointer;
}

.thumb.active{
  border-color:var(--brand);
}

.footer{
  background:#fff;
  border-top:1px solid #eee;
}

.social{
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--soft);
  color:var(--brand);
  margin-left:.4rem;
  text-decoration:none;
}

.social:hover{
  background:var(--brand);
  color:#fff;
  transform:translateY(-2px);
}

.admin-sidebar{
  min-height:100vh;
  background:#171226;
  position:sticky;
  top:0;
}

.admin-sidebar a{
  color:#efe8ff;
  text-decoration:none;
  display:block;
  padding:.75rem 1rem;
  border-radius:12px;
  transition:.18s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active{
  background:rgba(255,255,255,.12);
}

.table img{
  width:54px;
  height:54px;
  object-fit:cover;
  border-radius:10px;
}

.table{
  vertical-align:middle;
}

.alert{
  border-radius:16px;
}

@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}

@media(max-width:991px){
  .admin-sidebar{
    min-height:auto;
    position:relative;
  }
}

@media(max-width:767px){
  body{
    font-size:.96rem;
  }

  .hero-slide,
  .hero-img{
    min-height:260px;
    height:260px;
  }

  .display-5{
    font-size:2rem;
  }

  .cart-link{
    display:inline-block;
  }

  .product-card{
    border-radius:18px;
  }

  .product-card .p-3{
    padding:.85rem!important;
  }

  .product-card h2,
  .product-card h3{
    font-size:.92rem;
  }

  .btn-lg{
    font-size:1rem;
  }
}